openwrtv4/target/linux/ath79/dts/ar7242_buffalo_wzr-hp-g450h.dts
INAGAKI Hiroshi 4b9882eb92 ath79: fix MAC address for Buffalo BHR-4GRV
I added mtd-mac-address for WZR-HP-G450H and BHR-4GRV in
1df1ea4d7e, but that address in ART is
incorrect for BHR-4GRV.

WZR-HP-G450H has wlan eeprom and MAC address in ART, but BHR-4GRV
has only MAC address in ART.

- WZR-HP-G450H
  - eeprom: 0x1000
  - MAC:    0x1002

- BHR-4GRV
  - MAC:    0x0

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-10-07 10:46:20 +02:00

81 lines
1.5 KiB
Text

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "ar7242_buffalo_wzr-bhr.dtsi"
/ {
compatible = "buffalo,wzr-hp-g450h", "qca,ar7242";
model = "Buffalo WZR-HP-G450H/WZR-450HP";
ath9k-leds {
compatible = "gpio-leds";
led_movie_engine {
label = "buffalo:blue:movie_engine";
gpios = <&ath9k 13 GPIO_ACTIVE_LOW>;
default-state = "off";
};
router {
label = "buffalo:green:router";
gpios = <&ath9k 14 GPIO_ACTIVE_LOW>;
default-state = "off";
};
wireless {
label = "buffalo:green:wireless";
gpios = <&ath9k 15 GPIO_ACTIVE_LOW>;
default-state = "off";
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>;
};
};
&eth0 {
mtd-mac-address = <&ART 0x1002>;
};
&sec_vpn {
label = "buffalo:orange:security";
};
&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;
};
};