openwrt/target/linux/ipq806x
Shiji Yang 2a709d108e ipq806x: dts: fix SPI chip select GPIO polarity
The SPI chip select GPIO polarity is active low by default. We must
use "spi-cs-high" dts property to toggle the polarity. The polarity
on "cs-gpios" won't take effect at all[1]. Fix these incorrect GPIO
polarities to silence the kernel warnings.

[1] Refer to Linux/Documentation/devicetree/bindings/spi/spi-controller.yaml
```
      device node     | cs-gpio       | CS pin state active | Note
      ================+===============+=====================+=====
      spi-cs-high     | -             | H                   |
      -               | -             | L                   |
      spi-cs-high     | ACTIVE_HIGH   | H                   |
      -               | ACTIVE_HIGH   | L                   | 1
      spi-cs-high     | ACTIVE_LOW    | H                   | 2
      -               | ACTIVE_LOW    | L                   |

      Notes:
      1) Should print a warning about polarity inversion.
         Here it would be wise to avoid and define the gpio as
         ACTIVE_LOW.
      2) Should print a warning about polarity inversion
         because ACTIVE_LOW is overridden by spi-cs-high.
         Should be generally avoided and be replaced by
         spi-cs-high + ACTIVE_HIGH.
```

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19845
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-10-20 00:28:15 +02:00
..
base-files ipq806x: add missing semicolons for 10_fix_wifi_mac 2025-10-19 19:44:54 +02:00
chromium ipq806x: chromium: Support Chromium "crossystem" GPIO tooling 2025-01-10 11:50:44 +01:00
files-6.6/arch/arm/boot/dts/qcom ipq806x: dts: fix SPI chip select GPIO polarity 2025-10-20 00:28:15 +02:00
files-6.12/arch/arm/boot/dts/qcom ipq806x: dts: fix SPI chip select GPIO polarity 2025-10-20 00:28:15 +02:00
generic ipq806x: Initial TP-Link and ASUS OnHub support 2023-01-21 01:02:25 +01:00
image ipq806x: add support for IgniteNet SunSpot AC Wave2 2025-06-25 02:07:02 +01:00
patches-6.6 ipq806x: restore kernel 6.6 config files and patches 2025-10-14 10:27:25 +02:00
patches-6.12 ipq806x: 6.12: adapt OPP patch with upstream changes 2025-10-14 10:27:29 +02:00
config-6.6 ipq806x: restore kernel 6.6 config files and patches 2025-10-14 10:27:25 +02:00
config-6.12 ipq806x: refresh 6.12 kernel config files 2025-10-14 10:27:26 +02:00
Makefile ipq806x: enable 6.12 testing kernel 2025-10-14 10:27:29 +02:00
modules.mk ipq806x: Add kmod-sound-soc-ipq8064-storm 2023-01-21 01:02:25 +01:00