[PATCH v1 05/20] MIPS: dts: ath79: ar9331: use path references when extending nodes
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Feb 17 09:30:42 PST 2023
LED heartbeat already broke, because upstream renamed the node name.
Fix that and let's use references, so we get errors if an upstream DT
update breaks our usage.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
arch/mips/dts/ar9331-dptechnics-dpt-module.dts | 16 ++++++----------
arch/mips/dts/ar9331.dtsi | 12 +++++-------
2 files changed, 11 insertions(+), 17 deletions(-)
diff --git a/arch/mips/dts/ar9331-dptechnics-dpt-module.dts b/arch/mips/dts/ar9331-dptechnics-dpt-module.dts
index 8a0ae9caf791..da19d7b88ee1 100644
--- a/arch/mips/dts/ar9331-dptechnics-dpt-module.dts
+++ b/arch/mips/dts/ar9331-dptechnics-dpt-module.dts
@@ -20,18 +20,14 @@
barebox,provide-mac-address = <ð0>;
};
};
+};
- leds {
- system {
- barebox,default-trigger = "heartbeat";
- };
- };
+&{/leds/led-0} {
+ barebox,default-trigger = "heartbeat";
+};
- gpio-keys {
- button at 0 {
- gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
- };
- };
+&{/gpio-keys/button at 0} {
+ gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
&spiflash {
diff --git a/arch/mips/dts/ar9331.dtsi b/arch/mips/dts/ar9331.dtsi
index 72f029754eab..20e4d64c040f 100644
--- a/arch/mips/dts/ar9331.dtsi
+++ b/arch/mips/dts/ar9331.dtsi
@@ -1,10 +1,8 @@
-/ {
- ahb {
- wdt0: wdt at 18060008 {
- compatible = "qca,ar9331-wdt", "qca,ar9344-wdt";
- reg = <0x18060008 0x8>;
- clocks = <&pll ATH79_CLK_CPU>;
- };
+&{/ahb} {
+ wdt0: wdt at 18060008 {
+ compatible = "qca,ar9331-wdt", "qca,ar9344-wdt";
+ reg = <0x18060008 0x8>;
+ clocks = <&pll ATH79_CLK_CPU>;
};
};
--
2.30.2
More information about the barebox
mailing list