ath79: Add wifi to WNDR3700, WNDR3700v2 and WNDR3800
[oweals/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.dtsi"
8
9 / {
10         compatible = "buffalo,wzr-hp-g450h", "qca,ar7242";
11         model = "Buffalo WZR-HP-G450H";
12
13         keys {
14                 compatible = "gpio-keys-polled";
15                 poll-interval = <20>;
16
17                 usb {
18                         linux,code = <BTN_2>;
19                         gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
20                         debounce-interval = <60>;
21                 };
22
23                 reset {
24                         linux,code = <KEY_RESTART>;
25                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
26                         debounce-interval = <60>;
27                 };
28
29                 movie_engine {
30                         linux,code = <KEY_RESTART>;
31                         gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
32                         debounce-interval = <60>;
33                 };
34
35                 aoss {
36                         linux,code = <KEY_WPS_BUTTON>;
37                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
38                         debounce-interval = <60>;
39                 };
40
41                 router_off {
42                         linux,code = <BTN_5>;
43                         gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
44                         debounce-interval = <60>;
45                 };
46
47         };
48
49         leds {
50                 compatible = "gpio-leds";
51                 security {
52                         label = "buffalo:orange:security";
53                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
54                 };
55
56                 diag {
57                         label = "buffalo:red:diag";
58                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
59                 };
60         };
61
62         gpio-export {
63                 compatible = "gpio-export";
64                 #size-cells = <0>;
65
66                 gpio_usb_power {
67                         gpio-export,name = "wzr-hp-g450h:usb-power";
68                         gpio-export,output = <1>;
69                         gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
70                 };
71         };
72 };
73
74 &mdio0 {
75         status = "okay";
76         phy-mask = <0x1>;
77
78         phy0: ethernet-phy@0 {
79                 reg = <0>;
80                 phy-mode = "rgmii";
81         };
82 };
83
84 &eth0 {
85         status = "okay";
86
87         phy-mode = "rgmii";
88         pll-data = <0x62000000 0 0>;
89
90         fixed-link {
91                 speed = <1000>;
92                 full-duplex;
93         };
94 };
95
96 &uart {
97         status = "okay";
98 };
99
100 &usb_phy {
101         status = "okay";
102 };
103
104 &usb {
105         status = "okay";
106 };
107
108 &pcie {
109         status = "okay";
110
111         wifi@0,0 {
112                 reg = <0x0000 0 0 0 0>;
113                 qca,no-eeprom;
114         };
115 };