treewide: fix some cosmetic glitches in dts files
[openwrt/staging/chunkeey.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 leds {
49 compatible = "gpio-leds";
50 security {
51 label = "buffalo:orange:security";
52 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
53 };
54
55 diag {
56 label = "buffalo:red:diag";
57 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
58 };
59 };
60
61 gpio-export {
62 compatible = "gpio-export";
63 #size-cells = <0>;
64
65 gpio_usb_power {
66 gpio-export,name = "wzr-hp-g450h:usb-power";
67 gpio-export,output = <1>;
68 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
69 };
70 };
71 };
72
73 &mdio0 {
74 status = "okay";
75 phy-mask = <0x1>;
76
77 phy0: ethernet-phy@0 {
78 reg = <0>;
79 phy-mode = "rgmii";
80 };
81 };
82
83 &eth0 {
84 status = "okay";
85
86 phy-mode = "rgmii";
87 pll-data = <0x62000000 0 0>;
88
89 fixed-link {
90 speed = <1000>;
91 full-duplex;
92 };
93 };
94
95 &uart {
96 status = "okay";
97 };
98
99 &usb_phy {
100 status = "okay";
101 };
102
103 &usb {
104 status = "okay";
105 };
106
107 &pcie {
108 status = "okay";
109
110 wifi@0,0 {
111 reg = <0x0000 0 0 0 0>;
112 qca,no-eeprom;
113 };
114 };