ath79: add support for Netgear WNR1000 v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7242_buffalo_wzr-hp-g450h.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar7242_buffalo_wzr-bhr.dtsi"
8
9 / {
10 compatible = "buffalo,wzr-hp-g450h", "qca,ar7242";
11 model = "Buffalo WZR-HP-G450H/WZR-450HP";
12
13 aliases {
14 label-mac-device = &eth0;
15 };
16
17 ath9k-leds {
18 compatible = "gpio-leds";
19
20 led_movie_engine {
21 label = "buffalo:blue:movie_engine";
22 gpios = <&ath9k 13 GPIO_ACTIVE_LOW>;
23 };
24
25 router {
26 label = "buffalo:green:router";
27 gpios = <&ath9k 14 GPIO_ACTIVE_LOW>;
28 };
29
30 wireless {
31 label = "buffalo:green:wireless";
32 gpios = <&ath9k 15 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy0tpt";
34 };
35 };
36 };
37
38 &keys {
39 movie_engine {
40 label = "movie_engine";
41 linux,code = <BTN_6>;
42 linux,input-type = <EV_SW>;
43 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
44 debounce-interval = <60>;
45 };
46
47 aoss {
48 label = "aoss";
49 linux,code = <KEY_WPS_BUTTON>;
50 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
51 debounce-interval = <60>;
52 };
53
54 router_off {
55 label = "router_off";
56 linux,code = <BTN_5>;
57 linux,input-type = <EV_SW>;
58 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
59 debounce-interval = <60>;
60 };
61 };
62
63 &eth0 {
64 mtd-mac-address = <&art 0x1002>;
65 };
66
67 &sec_vpn {
68 label = "buffalo:orange:security";
69 };
70
71 &pcie {
72 status = "okay";
73
74 ath9k: wifi@0,0 {
75 compatible = "pci168c,0030";
76 reg = <0x0000 0 0 0 0>;
77 mtd-mac-address = <&art 0x1002>;
78 qca,no-eeprom;
79 #gpio-cells = <2>;
80 gpio-controller;
81 };
82 };