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