Upstream refresh for v1.5.0-rc1 : Upstream 19.07 : 4fb6b8c553f692eeb5bcb203e0f8ee8df0...
[librecmc/librecmc.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         ath9k-leds {
14                 compatible = "gpio-leds";
15
16                 led_movie_engine {
17                         label = "buffalo:blue:movie_engine";
18                         gpios = <&ath9k 13 GPIO_ACTIVE_LOW>;
19                 };
20
21                 router {
22                         label = "buffalo:green:router";
23                         gpios = <&ath9k 14 GPIO_ACTIVE_LOW>;
24                 };
25
26                 wireless {
27                         label = "buffalo:green:wireless";
28                         gpios = <&ath9k 15 GPIO_ACTIVE_LOW>;
29                         linux,default-trigger = "phy0tpt";
30                 };
31         };
32 };
33
34 &keys {
35         movie_engine {
36                 label = "movie_engine";
37                 linux,code = <BTN_6>;
38                 linux,input-type = <EV_SW>;
39                 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
40                 debounce-interval = <60>;
41         };
42
43         aoss {
44                 label = "aoss";
45                 linux,code = <KEY_WPS_BUTTON>;
46                 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
47                 debounce-interval = <60>;
48         };
49
50         router_off {
51                 label = "router_off";
52                 linux,code = <BTN_5>;
53                 linux,input-type = <EV_SW>;
54                 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
55                 debounce-interval = <60>;
56         };
57 };
58
59 &eth0 {
60         mtd-mac-address = <&art 0x1002>;
61 };
62
63 &sec_vpn {
64         label = "buffalo:orange:security";
65 };
66
67 &pcie {
68         status = "okay";
69
70         ath9k: wifi@0,0 {
71                 compatible = "pci168c,0030";
72                 reg = <0x0000 0 0 0 0>;
73                 mtd-mac-address = <&art 0x1002>;
74                 qca,no-eeprom;
75                 #gpio-cells = <2>;
76                 gpio-controller;
77         };
78 };