]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "ARM: dts: nomadik: Fix polarity of SPI CS"
authorOlof Johansson <olof@lixom.net>
Sun, 7 Apr 2019 22:18:41 +0000 (15:18 -0700)
committerOlof Johansson <olof@lixom.net>
Sun, 7 Apr 2019 22:18:41 +0000 (15:18 -0700)
This reverts commit 2c156e033856bf182d8fa0be1881a8643fa20909.

Per Linus Walleij:

Dear ARM SoC maintainers,

can you please revert this patch. It was the wrong solution to the
wrong problem, and I must have acted in stress. Andrey fixed the
real bug in a proper way in these commits:

commit 0c7a2c6b93b2bacb5ba13443f4048dc50bba1d21
"gpio: of: Check propname before applying "cs-gpios" quirks"
commit 5f66b74d1a411a5545b04d9a3046cb7f310b580c
"gpio: of: Check for "spi-cs-high" in child instead of parent node"

Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/boot/dts/ste-nomadik-nhk15.dts

index f2f6558a00f188937ca55ee5f44e689da5e1bf7a..04066f9cb8a31c643cba82ea337dd22cb7a85626 100644 (file)
                gpio-sck = <&gpio0 5 GPIO_ACTIVE_HIGH>;
                gpio-mosi = <&gpio0 4 GPIO_ACTIVE_HIGH>;
                /*
-                * This chipselect is active high. Just setting the flags
-                * to GPIO_ACTIVE_HIGH is not enough for the SPI DT bindings,
-                * it will be ignored, only the special "spi-cs-high" flag
-                * really counts.
+                * It's not actually active high, but the frameworks assume
+                * the polarity of the passed-in GPIO is "normal" (active
+                * high) then actively drives the line low to select the
+                * chip.
                 */
                cs-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
-               spi-cs-high;
                num-chipselects = <1>;
 
                /*