lantiq: move dts-v1 statement to top-level DTSI files
[openwrt/openwrt.git] / target / linux / lantiq / files-5.4 / arch / mips / boot / dts / lantiq / ar9_buffalo_wbmr-hp-g300h.dts
1 #include "ar9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 compatible = "buffalo,wbmr-hp-g300h", "lantiq,xway", "lantiq,ar9";
7 model = "Buffalo WBMR-HP-G300H";
8
9 chosen {
10 bootargs = "console=ttyLTQ0,115200";
11 };
12
13 aliases {
14 led-boot = &power_green;
15 led-failsafe = &power_red;
16 led-running = &power_green;
17 led-upgrade = &power_green;
18
19 led-dsl = &dsl;
20 led-internet = &online_green;
21 led-usb = &led_usb;
22 led-wifi = &wifi;
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x4000000>;
28 };
29
30 keys {
31 compatible = "gpio-keys-polled";
32 poll-interval = <100>;
33
34 wps {
35 label = "wps";
36 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
38 };
39 reset {
40 label = "reset";
41 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 };
44 eject {
45 label = "eject";
46 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_EJECTCD>;
48 };
49 movie {
50 label = "movie";
51 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_VIDEO>;
53 };
54 };
55
56 leds {
57 compatible = "gpio-leds";
58
59 power_green: power {
60 label = "wbmr:green:power";
61 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
62 default-state = "keep";
63 };
64 power_red: power2 {
65 label = "wbmr:red:power";
66 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
67 };
68 security {
69 label = "wbmr:yellow:security";
70 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
71 };
72 wifi: wifi {
73 label = "wbmr:green:wireless";
74 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
75 };
76 dsl: dsl {
77 label = "wbmr:green:dsl";
78 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
79 };
80 online_green: online {
81 label = "wbmr:green:internet";
82 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
83 };
84 online2 {
85 label = "wbmr:red:internet";
86 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
87 };
88 movie {
89 label = "wbmr:blue:movie";
90 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
91 };
92 led_usb: usb {
93 label = "wbmr:green:usb";
94 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
95 default-state = "on";
96 };
97 };
98
99 usb_vbus: regulator-usb-vbus {
100 compatible = "regulator-fixed";
101
102 regulator-name = "USB_VBUS";
103
104 regulator-min-microvolt = <5000000>;
105 regulator-max-microvolt = <5000000>;
106
107 gpio = <&gpio 36 GPIO_ACTIVE_HIGH>;
108 enable-active-high;
109 };
110 };
111
112 &gpio {
113 pinctrl-names = "default";
114 pinctrl-0 = <&state_default>;
115
116 state_default: pinmux {
117 pci-in {
118 lantiq,groups = "req1";
119 lantiq,output = <0>;
120 lantiq,open-drain = <1>;
121 lantiq,pull = <2>;
122 };
123 pci-out {
124 lantiq,groups = "gnt1";
125 lantiq,output = <1>;
126 lantiq,pull = <0>;
127 };
128 pci_rst {
129 lantiq,pins = "io21";
130 lantiq,pull = <0>;
131 lantiq,output = <1>;
132 };
133 };
134 };
135
136 &gsw {
137 phy-mode = "rgmii";
138 mtd-mac-address = <&boardconfig 0x10024>;
139 };
140
141 &pci0 {
142 status = "okay";
143 };
144
145 &localbus {
146 flash@0 {
147 compatible = "lantiq,nor";
148 bank-width = <2>;
149 reg = <0 0x0 0x2000000>;
150
151 partitions {
152 compatible = "fixed-partitions";
153 #address-cells = <1>;
154 #size-cells = <1>;
155
156 partition@0 {
157 label = "uboot";
158 reg = <0x00000 0x40000>;
159 read-only;
160 };
161
162 partition@40000 {
163 label = "u-boot-env";
164 reg = <0x40000 0x20000>;
165 read-only;
166 };
167
168 partition@20000 {
169 label = "firmware";
170 reg = <0x60000 0x1f20000>;
171 };
172
173 boardconfig: partition@1fc0000 {
174 label = "board";
175 reg = <0x1fc0000 0x20000>;
176 read-only;
177 };
178
179 partition@1fe0000 {
180 label = "calibration";
181 reg = <0x1fe0000 0x20000>;
182 read-only;
183 };
184 };
185 };
186 };
187
188 &usb_phy0 {
189 status = "okay";
190 };
191
192 &usb0 {
193 status = "okay";
194 vbus-supply = <&usb_vbus>;
195 };