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