Skip to content

Commit fa94635

Browse files
linuswarndb
authored andcommitted
ARM: dts: nomadik: Fix polarity of SPI CS
The SPI DT bindings are for historical reasons a pitfall, the ability to flag a GPIO line as active high/low with the second cell flags was introduced later so the SPI subsystem will only accept the bool flag spi-cs-high to indicate that the line is active high. It worked by mistake, but the mistake was corrected in another commit. The comment in the DTS file was also misleading: this CS is indeed active high. Fixes: cffbb02 ("ARM: dts: nomadik: Augment NHK15 panel setting") Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 44cd905 commit fa94635

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

arch/arm/boot/dts/ste-nomadik-nhk15.dts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,13 @@
213213
gpio-sck = <&gpio0 5 GPIO_ACTIVE_HIGH>;
214214
gpio-mosi = <&gpio0 4 GPIO_ACTIVE_HIGH>;
215215
/*
216-
* It's not actually active high, but the frameworks assume
217-
* the polarity of the passed-in GPIO is "normal" (active
218-
* high) then actively drives the line low to select the
219-
* chip.
216+
* This chipselect is active high. Just setting the flags
217+
* to GPIO_ACTIVE_HIGH is not enough for the SPI DT bindings,
218+
* it will be ignored, only the special "spi-cs-high" flag
219+
* really counts.
220220
*/
221221
cs-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
222+
spi-cs-high;
222223
num-chipselects = <1>;
223224

224225
/*

0 commit comments

Comments
 (0)