Skip to content

Commit fbe8758

Browse files
committed
Revert "ARM: dts: nomadik: Fix polarity of SPI CS"
This reverts commit fa94635. 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 e5545c9 "gpio: of: Check propname before applying "cs-gpios" quirks" commit 7ce4027 "gpio: of: Check for "spi-cs-high" in child instead of parent node" Signed-off-by: Olof Johansson <olof@lixom.net>
1 parent c983f10 commit fbe8758

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,12 @@
213213
gpio-sck = <&gpio0 5 GPIO_ACTIVE_HIGH>;
214214
gpio-mosi = <&gpio0 4 GPIO_ACTIVE_HIGH>;
215215
/*
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.
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.
220220
*/
221221
cs-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
222-
spi-cs-high;
223222
num-chipselects = <1>;
224223

225224
/*

0 commit comments

Comments
 (0)