From 89afabf9f884190308f6021f6300a3a6301d2dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= Date: Sun, 30 Dec 2018 12:42:53 +0100 Subject: ath79: dts: Unify naming of gpio-led nodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In DTS Checklist[1] we're now demanding proper generic node names, as the name of a node should reflect the function of the device and use generic name for that[2]. Everybody seems to be copy&pasting from DTS files available in the repository today, so let's unify that naming there as well and provide proper examples. 1. https://openwrt.org/submitting-patches#dts_checklist 2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation Signed-off-by: Petr Štetiar [split up, removed entries where it could clash due to ath9k-leds] Signed-off-by: Christian Lamparter --- target/linux/ath79/dts/ar7161_ubnt_routerstation.dtsi | 2 +- target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi | 2 +- target/linux/ath79/dts/ar9331_pisen_wmm003n.dts | 2 +- target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi | 2 +- target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi | 2 +- target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts | 2 +- target/linux/ath79/dts/ar9342_ubnt_xw.dtsi | 2 +- target/linux/ath79/dts/qca9557_buffalo_bhr-4grv2.dts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'target/linux/ath79') diff --git a/target/linux/ath79/dts/ar7161_ubnt_routerstation.dtsi b/target/linux/ath79/dts/ar7161_ubnt_routerstation.dtsi index a438a3f913..6e4361f10f 100644 --- a/target/linux/ath79/dts/ar7161_ubnt_routerstation.dtsi +++ b/target/linux/ath79/dts/ar7161_ubnt_routerstation.dtsi @@ -25,7 +25,7 @@ clock-frequency = <40000000>; }; - gpio-leds { + leds { compatible = "gpio-leds"; rf: rf_green { diff --git a/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi b/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi index e3f0fa6420..8e934429a3 100644 --- a/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi +++ b/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi @@ -26,7 +26,7 @@ }; }; - gpio-leds { + leds { compatible = "gpio-leds"; power: power { label = "netgear:green:power"; diff --git a/target/linux/ath79/dts/ar9331_pisen_wmm003n.dts b/target/linux/ath79/dts/ar9331_pisen_wmm003n.dts index 673a0b3589..b3bc2e4c45 100644 --- a/target/linux/ath79/dts/ar9331_pisen_wmm003n.dts +++ b/target/linux/ath79/dts/ar9331_pisen_wmm003n.dts @@ -30,7 +30,7 @@ }; }; - gpio-leds { + leds { compatible = "gpio-leds"; led_system: system { diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi b/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi index edbacbc767..ffd3d71a62 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi +++ b/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi @@ -27,7 +27,7 @@ }; }; - gpio-leds { + leds { compatible = "gpio-leds"; system: system { diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi b/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi index b401aadf47..02c647c179 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi +++ b/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi @@ -37,7 +37,7 @@ }; }; - gpio-leds { + leds { compatible = "gpio-leds"; pinctrl-names = "default"; pinctrl-0 = <&switch_led_pins>; diff --git a/target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts b/target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts index 29b6fdab5e..2ace37ad68 100644 --- a/target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts +++ b/target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts @@ -10,7 +10,7 @@ compatible = "ubnt,nanostation-ac","ubnt,wa", "qca,ar9342"; model = "Ubiquiti Nanostation AC (WA)"; - gpio-leds { + leds { compatible = "gpio-leds"; rssi0 { diff --git a/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi b/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi index 01ea7c9eb3..84fc222156 100644 --- a/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi +++ b/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi @@ -16,7 +16,7 @@ led-failsafe = &system; }; - gpio-leds { + leds { compatible = "gpio-leds"; link1 { diff --git a/target/linux/ath79/dts/qca9557_buffalo_bhr-4grv2.dts b/target/linux/ath79/dts/qca9557_buffalo_bhr-4grv2.dts index 1c778f57ac..995ecb3b73 100644 --- a/target/linux/ath79/dts/qca9557_buffalo_bhr-4grv2.dts +++ b/target/linux/ath79/dts/qca9557_buffalo_bhr-4grv2.dts @@ -21,7 +21,7 @@ bootargs = "console=ttyS0,115200n8"; }; - gpio-leds { + leds { compatible = "gpio-leds"; power: power { -- cgit v1.2.3