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