mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
f4026ad24d
This applies several style adjustments that have been requested in recent reviews to older DTS files. Despite making the code base more consistent, this will also help to reduce review time when DTSes are copy/pasted. Applied changes: - Rename gpio-keys/gpio-leds to keys/leds - Remove node labels that are not used - Use label property for partitions - Prefix led node labels with "led_" - Remove redundant includes - Harmonize new lines after status property - Several smaller style fixes Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
83 lines
1.4 KiB
Plaintext
83 lines
1.4 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
/dts-v1/;
|
|
|
|
#include "ar7242_buffalo_wzr-bhr.dtsi"
|
|
|
|
/ {
|
|
compatible = "buffalo,wzr-hp-g450h", "qca,ar7242";
|
|
model = "Buffalo WZR-HP-G450H/WZR-450HP";
|
|
|
|
aliases {
|
|
label-mac-device = ð0;
|
|
};
|
|
|
|
ath9k-leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_movie_engine {
|
|
label = "buffalo:blue:movie_engine";
|
|
gpios = <&ath9k 13 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
router {
|
|
label = "buffalo:green:router";
|
|
gpios = <&ath9k 14 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
wireless {
|
|
label = "buffalo:green:wireless";
|
|
gpios = <&ath9k 15 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy0tpt";
|
|
};
|
|
};
|
|
};
|
|
|
|
&keys {
|
|
movie_engine {
|
|
label = "movie_engine";
|
|
linux,code = <BTN_6>;
|
|
linux,input-type = <EV_SW>;
|
|
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
|
|
debounce-interval = <60>;
|
|
};
|
|
|
|
aoss {
|
|
label = "aoss";
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
|
debounce-interval = <60>;
|
|
};
|
|
|
|
router_off {
|
|
label = "router_off";
|
|
linux,code = <BTN_5>;
|
|
linux,input-type = <EV_SW>;
|
|
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
|
|
debounce-interval = <60>;
|
|
};
|
|
};
|
|
|
|
&leds {
|
|
sec_vpn {
|
|
label = "buffalo:orange:security";
|
|
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
ð0 {
|
|
mtd-mac-address = <&art 0x1002>;
|
|
};
|
|
|
|
&pcie {
|
|
status = "okay";
|
|
|
|
ath9k: wifi@0,0 {
|
|
compatible = "pci168c,0030";
|
|
reg = <0x0000 0 0 0 0>;
|
|
mtd-mac-address = <&art 0x1002>;
|
|
qca,no-eeprom;
|
|
#gpio-cells = <2>;
|
|
gpio-controller;
|
|
};
|
|
};
|