Skip to content

Commit 3214b8a

Browse files
haukeDragonBluep
andcommitted
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: openwrt/openwrt#21697 Co-Authored-By: Shiji Yang <yangshiji66@outlook.com> Link: openwrt/openwrt#22444 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit d405685) [Fix danube.dtsi too] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent 77d54cc commit 3214b8a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@
314314
};
315315
};
316316

317-
stp: stp@e100bb0 {
317+
stp: gpio@e100bb0 {
318318
#gpio-cells = <2>;
319319
compatible = "lantiq,gpio-stp-xway";
320320
gpio-controller;

target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
interrupts = <126 127 128 129 130 131>;
142142
};
143143

144-
gpios: stp@e100bb0 {
144+
gpios: gpio@e100bb0 {
145145
#gpio-cells = <2>;
146146
compatible = "lantiq,gpio-stp-xway";
147147
gpio-controller;

target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@
354354
};
355355
};
356356

357-
stp: stp@e100bb0 {
357+
stp: gpio@e100bb0 {
358358
status = "disabled";
359359
compatible = "lantiq,gpio-stp-xway";
360360
reg = <0xe100bb0 0x40>;

0 commit comments

Comments
 (0)