Skip to contentSkip to conversation

ARM: dts: imx: Fix ECSPI nCS polarity on M53Menlo

PATCH In review Marek Vasut 2 participants 3 messages Sep 5, 2021 – Sep 8, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: imx: Fix ECSPI nCS polarity on M53Menlo

This board has the nCS lines connected to a CPLD and they are active high. Undo the change from 2bfdd113d0ee1 ("ARM: dts: imx: Fix the SPI chipselect polarity") for this board, as the previous DT description was correct.

Fixes 2bfdd113d0ee1 ("ARM: dts: imx: Fix the SPI chipselect polarity")
Cc Shawn Guo <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>
---
 arch/arm/boot/dts/imx53-m53menlo.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx53-m53menlo.dts +1 -1
index 4f88e96d81ddb..03c43c1912a7e 100644
@@ -104,7 +104,7 @@ &clks {
 &ecspi2 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_ecspi2>;
-	cs-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>, <&gpio2 27 GPIO_ACTIVE_LOW>;
+	cs-gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>, <&gpio2 27 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 
 	spidev@0 {
Signature · 7 lines
2.33.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
reviewer
#1 lore raw

[Adding Linus]

Quoted 20 lines · Marek Vasut

This board has the nCS lines connected to a CPLD and they are active high. Undo the change from 2bfdd113d0ee1 ("ARM: dts: imx: Fix the SPI chipselect polarity") for this board, as the previous DT description was correct.

Fixes 2bfdd113d0ee1 ("ARM: dts: imx: Fix the SPI chipselect polarity")
Cc Shawn Guo <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>
---
 arch/arm/boot/dts/imx53-m53menlo.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx53-m53menlo.dts +0 -0
index 4f88e96d81ddb..03c43c1912a7e 100644

arch/arm/boot/dts/imx53-m53menlo.dts &clks { · line 110

Quoted 8 lines
arch/arm/boot/dts/imx53-m53menlo.dts +1 -1
@@ -104,7 +104,7 @@ &clks {
 &ecspi2 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_ecspi2>;
-       cs-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>, <&gpio2 27 GPIO_ACTIVE_LOW>;
+       cs-gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>, <&gpio2 27 GPIO_ACTIVE_HIGH>;
        status = "okay";
 
        spidev@0 {

Then you need to pass the 'spi-cs-high' property under the spidev nodes.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw
Quoted 30 lines · Fabio Estevam

[Adding Linus]

Quoted 27 lines · Marek Vasut

This board has the nCS lines connected to a CPLD and they are active high. Undo the change from 2bfdd113d0ee1 ("ARM: dts: imx: Fix the SPI chipselect polarity") for this board, as the previous DT description was correct.

Fixes 2bfdd113d0ee1 ("ARM: dts: imx: Fix the SPI chipselect polarity")
Cc Shawn Guo <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>
---
  arch/arm/boot/dts/imx53-m53menlo.dts | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx53-m53menlo.dts +1 -1
index 4f88e96d81ddb..03c43c1912a7e 100644
@@ -104,7 +104,7 @@ &clks {
  &ecspi2 {
         pinctrl-names = "default";
         pinctrl-0 = <&pinctrl_ecspi2>;
-       cs-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>, <&gpio2 27 GPIO_ACTIVE_LOW>;
+       cs-gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>, <&gpio2 27 GPIO_ACTIVE_HIGH>;
         status = "okay";
 
Quoted 3 lines

arch/arm/boot/dts/imx53-m53menlo.dts &clks { · line 110

Quoted 1 line
arch/arm/boot/dts/imx53-m53menlo.dts +0 -0
         spidev@0 {

Then you need to pass the 'spi-cs-high' property under the spidev nodes.

Turns out this patch can be dropped altogether.

Please drop this one.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel