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