openwrt/target/linux/ipq40xx
Shiji Yang c2e5bded8d treewide: dts: fix spi-gpio 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 ipq40xx: add support for Cisco Meraki MR30H 2025-10-19 19:33:18 +02:00
chromium ipq40xx: chromium: Support Chromium "crossystem" GPIO tooling 2025-01-10 11:50:44 +01:00
files-6.12/arch/arm/boot/dts/qcom treewide: dts: fix spi-gpio chip select GPIO polarity 2025-10-20 00:28:15 +02:00
generic ipq40xx: refresh kernel symbol configs 2025-07-20 15:33:02 +02:00
image ipq40xx: add device alias for Linksys VLP01 2025-10-19 19:40:44 +02:00
mikrotik ipq40xx: mikrotik: kernel: pet watchdog during kernel uncompress 2025-10-18 16:41:53 +02:00
patches-6.12 ipq40xx: mikrotik: kernel: pet watchdog during kernel uncompress 2025-10-18 16:41:53 +02:00
config-6.12 ipq40xx: mikrotik: kernel: pet watchdog during kernel uncompress 2025-10-18 16:41:53 +02:00
Makefile ipq40xx: switch to kernel 6.12 2025-08-17 11:12:25 +02:00