Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

arm64: dts: ti: k3-am69-aquila: Change main_spi0/2 CS to GPIO mode

Hardware chip select does not work correctly on main_spi0 and
main_spi2 controllers. Testing shows main_spi2 loses CS state
during runtime PM suspend, while main_spi0 cannot drive CS HIGH
when bus is idle.

Use GPIO-based chip select for both controllers.

Fixes: 39ac6623b1d8 ("arm64: dts: ti: Add Aquila AM69 Support")
Cc: stable@vger.kernel.org
Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://patch.msgid.link/20260112175350.79270-2-ivitro@gmail.com
Signed-off-by: Nishanth Menon <nm@ti.com>

authored by

Vitor Soares and committed by
Nishanth Menon
78a123f4 234a884d

+4 -2
+4 -2
arch/arm64/boot/dts/ti/k3-am69-aquila.dtsi
··· 479 479 /* Aquila SPI_2 CS */ 480 480 pinctrl_main_spi0_cs0: main-spi0-cs0-default-pins { 481 481 pinctrl-single,pins = < 482 - J784S4_IOPAD(0x0cc, PIN_OUTPUT, 0) /* (AM37) SPI0_CS0 */ /* AQUILA D16 */ 482 + J784S4_IOPAD(0x0cc, PIN_OUTPUT, 7) /* (AM37) SPI0_CS0.GPIO0_51 */ /* AQUILA D16 */ 483 483 >; 484 484 }; 485 485 ··· 495 495 /* Aquila SPI_1 CS */ 496 496 pinctrl_main_spi2_cs0: main-spi2-cs0-default-pins { 497 497 pinctrl-single,pins = < 498 - J784S4_IOPAD(0x09c, PIN_OUTPUT, 10) /* (AF35) MCASP0_AXR11.SPI2_CS1 */ /* AQUILA D9 */ 498 + J784S4_IOPAD(0x09c, PIN_OUTPUT, 7) /* (AF35) MCASP0_AXR11.GPIO0_39 */ /* AQUILA D9 */ 499 499 >; 500 500 }; 501 501 ··· 1204 1204 &main_spi0 { 1205 1205 pinctrl-names = "default"; 1206 1206 pinctrl-0 = <&pinctrl_main_spi0>, <&pinctrl_main_spi0_cs0>; 1207 + cs-gpios = <&main_gpio0 51 GPIO_ACTIVE_LOW>; 1207 1208 status = "disabled"; 1208 1209 }; 1209 1210 ··· 1212 1211 &main_spi2 { 1213 1212 pinctrl-names = "default"; 1214 1213 pinctrl-0 = <&pinctrl_main_spi2>, <&pinctrl_main_spi2_cs0>; 1214 + cs-gpios = <&main_gpio0 39 GPIO_ACTIVE_LOW>; 1215 1215 status = "disabled"; 1216 1216 }; 1217 1217