Commit 78a123f4 authored by Vitor Soares's avatar Vitor Soares Committed by Nishanth Menon
Browse files

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: 39ac6623 ("arm64: dts: ti: Add Aquila AM69 Support")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarVitor Soares <vitor.soares@toradex.com>
Reviewed-by: default avatarFrancesco Dolcini <francesco.dolcini@toradex.com>
Link: https://patch.msgid.link/20260112175350.79270-2-ivitro@gmail.com


Signed-off-by: default avatarNishanth Menon <nm@ti.com>
parent 234a884d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -479,7 +479,7 @@ J784S4_IOPAD(0x0dc, PIN_OUTPUT, 0) /* (AM36) SPI0_D1 */ /* AQUILA D17 */
	/* Aquila SPI_2 CS */
	pinctrl_main_spi0_cs0: main-spi0-cs0-default-pins {
		pinctrl-single,pins = <
			J784S4_IOPAD(0x0cc, PIN_OUTPUT, 0) /* (AM37) SPI0_CS0 */ /* AQUILA D16 */
			J784S4_IOPAD(0x0cc, PIN_OUTPUT, 7) /* (AM37) SPI0_CS0.GPIO0_51 */ /* AQUILA D16 */
		>;
	};

@@ -495,7 +495,7 @@ J784S4_IOPAD(0x0ac, PIN_OUTPUT, 10) /* (AE34) MCASP0_AXR15.SPI2_D1 */ /* AQUILA
	/* Aquila SPI_1 CS */
	pinctrl_main_spi2_cs0: main-spi2-cs0-default-pins {
		pinctrl-single,pins = <
			J784S4_IOPAD(0x09c, PIN_OUTPUT, 10) /* (AF35) MCASP0_AXR11.SPI2_CS1 */ /* AQUILA D9 */
			J784S4_IOPAD(0x09c, PIN_OUTPUT, 7) /* (AF35) MCASP0_AXR11.GPIO0_39 */ /* AQUILA D9 */
		>;
	};

@@ -1204,6 +1204,7 @@ &main_sdhci1 {
&main_spi0 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_main_spi0>, <&pinctrl_main_spi0_cs0>;
	cs-gpios = <&main_gpio0 51 GPIO_ACTIVE_LOW>;
	status = "disabled";
};

@@ -1211,6 +1212,7 @@ &main_spi0 {
&main_spi2 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_main_spi2>, <&pinctrl_main_spi2_cs0>;
	cs-gpios = <&main_gpio0 39 GPIO_ACTIVE_LOW>;
	status = "disabled";
};