lantiq: kernel 4.14: cleanup dts files
[openwrt/staging/chunkeey.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
20 led-dsl = &dsl;
21 led-internet = &online_green;
22 led-usb = &led_usb;
23 led-wifi = &wifi;
24 };
25
26 memory@0 {
27 reg = <0x0 0x4000000>;
28 };
29
30 gpio-keys-polled {
31 compatible = "gpio-keys-polled";
32 #address-cells = <1>;
33 #size-cells = <0>;
34 poll-interval = <100>;
35
36 wps {
37 label = "wps";
38 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_WPS_BUTTON>;
40 };
41 reset {
42 label = "reset";
43 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
45 };
46 eject {
47 label = "eject";
48 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_EJECTCD>;
50 };
51 movie {
52 label = "movie";
53 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_VIDEO>;
55 };
56 };
57
58 gpio-leds {
59 compatible = "gpio-leds";
60
61 power_green: power {
62 label = "wbmr:green:power";
63 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
64 default-state = "keep";
65 };
66 power_red: power2 {
67 label = "wbmr:red:power";
68 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
69 };
70 security {
71 label = "wbmr:yellow:security";
72 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
73 };
74 wifi: wifi {
75 label = "wbmr:green:wireless";
76 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
77 };
78 dsl: dsl {
79 label = "wbmr:green:dsl";
80 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
81 };
82 online_green: online {
83 label = "wbmr:green:internet";
84 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
85 };
86 online2 {
87 label = "wbmr:red:internet";
88 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
89 };
90 movie {
91 label = "wbmr:blue:movie";
92 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
93 };
94 led_usb: usb {
95 label = "wbmr:green:usb";
96 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
97 default-state = "on";
98 };
99 };
100 };
101
102 &gpio {
103 pinctrl-names = "default";
104 pinctrl-0 = <&state_default>;
105
106 state_default: pinmux {
107 pci-in {
108 lantiq,groups = "req1";
109 lantiq,output = <0>;
110 lantiq,open-drain = <1>;
111 lantiq,pull = <2>;
112 };
113 pci-out {
114 lantiq,groups = "gnt1";
115 lantiq,output = <1>;
116 lantiq,pull = <0>;
117 };
118 pci_rst {
119 lantiq,pins = "io21";
120 lantiq,pull = <0>;
121 lantiq,output = <1>;
122 };
123 };
124 };
125
126 &gsw {
127 phy-mode = "rgmii";
128 mtd-mac-address = <&boardconfig 0x10024>;
129 };
130
131 &pci0 {
132 status = "okay";
133 };
134
135 &localbus {
136 nor@0 {
137 compatible = "lantiq,nor";
138 bank-width = <2>;
139 reg = <0 0x0 0x2000000>;
140 #address-cells = <1>;
141 #size-cells = <1>;
142
143 partitions {
144 compatible = "fixed-partitions";
145 #address-cells = <1>;
146 #size-cells = <1>;
147
148 partition@0 {
149 label = "uboot";
150 reg = <0x00000 0x40000>;
151 read-only;
152 };
153
154 partition@40000 {
155 label = "uboot_env";
156 reg = <0x40000 0x20000>;
157 read-only;
158 };
159
160 partition@20000 {
161 label = "firmware";
162 reg = <0x60000 0x1f20000>;
163 };
164
165 boardconfig: partition@1fc0000 {
166 label = "board";
167 reg = <0x1fc0000 0x20000>;
168 read-only;
169 };
170
171 partition@1fe0000 {
172 label = "calibration";
173 reg = <0x1fe0000 0x20000>;
174 read-only;
175 };
176 };
177 };
178 };
179
180 &usb0 {
181 status = "okay";
182 gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
183 };