summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens2026-03-16 01:40:09 +0000
committerHauke Mehrtens2026-03-17 00:58:10 +0000
commit3214b8a3289bfa219706447804a2f1daad3521d9 (patch)
treea51ebda47c8ee6457142cfb037afdf8ea5bb73d3
parent77d54cca84ffbb7754d592712ee96b0fcbff0d92 (diff)
downloadopenwrt-3214b8a3289bfa219706447804a2f1daad3521d9.tar.gz
lantiq: adapt gpio-stp-xway node name to get clock
The MIPS code assigns the clock node based on the device tree node name. This name was renamed with kernel 6.12.58 and v6.6.117. Adapt our out of tree device tree files to this rename to fix loading the STP GPIO driver. Without this fix the driver fails like this: ``` [ 0.320000] gpio-stp-xway 1e100bb0.stp: Failed to get clock [ 0.330000] gpio-stp-xway 1e100bb0.stp: probe with driver gpio-stp-xway failed with error -2 ``` Link: https://git.kernel.org/linus/b0d04fe6a633ada2c7bc1b5ddd011cbd85961868 Fixes: https://github.com/openwrt/openwrt/issues/21697 Co-Authored-By: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/22444 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit d405685b44c61b8d0f1ec046d58adfd8b1426893) [Fix danube.dtsi too] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9.dtsi2
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube.dtsi2
-rw-r--r--target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi2
3 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9.dtsi
index a96783f1f8..31b5a9b265 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9.dtsi
@@ -314,7 +314,7 @@
};
};
- stp: stp@e100bb0 {
+ stp: gpio@e100bb0 {
#gpio-cells = <2>;
compatible = "lantiq,gpio-stp-xway";
gpio-controller;
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube.dtsi
index ff67a2e2fe..463566558e 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube.dtsi
@@ -141,7 +141,7 @@
interrupts = <126 127 128 129 130 131>;
};
- gpios: stp@e100bb0 {
+ gpios: gpio@e100bb0 {
#gpio-cells = <2>;
compatible = "lantiq,gpio-stp-xway";
gpio-controller;
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi
index e0e49f377a..ce7f99388d 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi
@@ -354,7 +354,7 @@
};
};
- stp: stp@e100bb0 {
+ stp: gpio@e100bb0 {
status = "disabled";
compatible = "lantiq,gpio-stp-xway";
reg = <0xe100bb0 0x40>;