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