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