ath79: suppress GPIO static base allocation warning
authorShiji Yang <yangshiji66@qq.com>
Thu, 4 Jul 2024 10:35:50 +0000 (18:35 +0800)
committerRobert Marko <robimarko@gmail.com>
Thu, 4 Jul 2024 17:30:37 +0000 (19:30 +0200)
commitee01666cd32e156214fe1ebc250c5c9ed7256aba
treebfd9dd198fd16fd8f9c9d4e55fed215c9d290a66
parent8895c51d694ea4b76d5821c41b14a09ff97f858b
ath79: suppress GPIO static base allocation warning

Silence ath79 GPIO driver warning by setting GPIO numberspace base
dynamically. This patch also reorganize and fix the GPIO numbers on
6.6 kernel. The new gpio chip base number algorithm:

gpiochip    ath79-SOC    ath9k-0       ath9k-1
base           512      512+ngpios   512+ngpios+10

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/15784
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches
target/linux/ath79/nand/base-files/etc/board.d/03_gpio_switches
target/linux/ath79/patches-6.6/001-v6.11-gpio-ath79-convert-to-dynamic-GPIO-base-allocation.patch [new file with mode: 0644]