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 <[email protected]>
---
 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 = <&eth0>;
                };
        };
+};
 
-       leds {
-               system {
-                       barebox,default-trigger = "heartbeat";
-               };
-       };
+&{/leds/led-0} {
+       barebox,default-trigger = "heartbeat";
+};
 
-       gpio-keys {
-               button@0 {
-                       gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
-               };
-       };
+&{/gpio-keys/button@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@18060008 {
-                       compatible = "qca,ar9331-wdt", "qca,ar9344-wdt";
-                       reg = <0x18060008 0x8>;
-                       clocks = <&pll ATH79_CLK_CPU>;
-               };
+&{/ahb} {
+       wdt0: wdt@18060008 {
+               compatible = "qca,ar9331-wdt", "qca,ar9344-wdt";
+               reg = <0x18060008 0x8>;
+               clocks = <&pll ATH79_CLK_CPU>;
        };
 };
 
-- 
2.30.2


Reply via email to