diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-02-17 18:30:42 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-02-22 11:21:02 +0100 |
commit | 088c5da6fa59e5118271e97b581e2104c16cd1d8 (patch) | |
tree | 39eb8292582b13d9ce86e96dd01d75c104d67f2d /arch/mips | |
parent | add4671c1f105013833d46dcedb24aa450fa4e82 (diff) | |
download | barebox-088c5da6fa59e5118271e97b581e2104c16cd1d8.tar.gz barebox-088c5da6fa59e5118271e97b581e2104c16cd1d8.tar.xz |
MIPS: dts: ath79: ar9331: use path references when extending nodes
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@pengutronix.de>
Link: https://lore.barebox.org/20230217173057.1839835-6-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/dts/ar9331-dptechnics-dpt-module.dts | 16 | ||||
-rw-r--r-- | 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 8a0ae9caf7..25eabc9b7e 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@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 72f029754e..20e4d64c04 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>; }; }; |