ARM: dts: nomadik: Set up the CS GPIO right
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 13 Aug 2019 07:27:31 +0000 (09:27 +0200)
committerArnd Bergmann <arnd@arndb.de>
Tue, 13 Aug 2019 13:28:33 +0000 (15:28 +0200)
Now that the SPI GPIO driver knows how to handle these
chip select GPIOs and we get nasty messages about the
core having to enforce active low on the GPIO, fix this
up by actually requesting the CS GPIO line as active
low.

Link: https://lore.kernel.org/r/20190813072731.4558-1-linus.walleij@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/boot/dts/ste-nomadik-nhk15.dts

index 04066f9cb8a31c643cba82ea337dd22cb7a85626..41ed21a4fdc1b2e596b24fe6b282088a9d5f6c00 100644 (file)
                 */
                gpio-sck = <&gpio0 5 GPIO_ACTIVE_HIGH>;
                gpio-mosi = <&gpio0 4 GPIO_ACTIVE_HIGH>;
-               /*
-                * 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>;
+               cs-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                num-chipselects = <1>;
 
                /*