lantiq: move dts files to thir own folder
[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         memory@0 {
13                 reg = <0x0 0x4000000>;
14         };
15
16         fpi@10000000 {
17                 localbus@0 {
18                         nor-boot@0 {
19                                 compatible = "lantiq,nor";
20                                 bank-width = <2>;
21                                 reg = <0 0x0 0x2000000>;
22                                 #address-cells = <1>;
23                                 #size-cells = <1>;
24
25                                 partition@0 {
26                                         label = "uboot";
27                                         reg = <0x00000 0x40000>;
28                                         read-only;
29                                 };
30
31                                 partition@40000 {
32                                         label = "uboot_env";
33                                         reg = <0x40000 0x20000>;
34                                         read-only;
35                                 };
36
37                                 partition@20000 {
38                                         label = "linux";
39                                         reg = <0x60000 0x1f20000>;
40                                 };
41
42                                 partition@0x1fc0000 {
43                                         label = "board";
44                                         reg = <0x1fc0000 0x20000>;
45                                         read-only;
46                                 };
47
48                                 partition@0x1fe0000 {
49                                         label = "calibration";
50                                         reg = <0x1fe0000 0x20000>;
51                                         read-only;
52                                 };
53                         };
54
55                         mac_addr {
56                                 compatible = "lantiq,eth-mac";
57                                 reg = <0 0x1fd0024 0x6>;
58                         };
59                 };
60
61                 gpio: pinmux@E100B10 {
62                         pinctrl-names = "default";
63                         pinctrl-0 = <&state_default>;
64
65                         state_default: pinmux {
66                                 pci-in {
67                                         lantiq,groups = "req1";
68                                         lantiq,output = <0>;
69                                         lantiq,open-drain = <1>;
70                                         lantiq,pull = <2>;
71                                 };
72                                 pci-out {
73                                         lantiq,groups = "gnt1";
74                                         lantiq,output = <1>;
75                                         lantiq,pull = <0>;
76                                 };
77                                 pci_rst {
78                                         lantiq,pins = "io21";
79                                         lantiq,pull = <0>;
80                                         lantiq,output = <1>;
81                                 };
82                         };
83                 };
84
85                 etop@E180000 {
86                         phy-mode = "rgmii";
87                 };
88
89                 ifxhcd@E101000 {
90                         status = "okay";
91                         gpios = <&gpio 36 0>;
92                 };
93
94                 pci@E105400 {
95                         status = "okay";
96                 };
97         };
98
99         gpio-keys-polled {
100                 compatible = "gpio-keys-polled";
101                 #address-cells = <1>;
102                 #size-cells = <0>;
103                 poll-interval = <100>;
104                 
105                 wps {
106                         label = "wps";
107                         gpios = <&gpio 0 1>;
108                         linux,code = <0x211>;
109                 };
110                 reset {
111                         label = "reset";
112                         gpios = <&gpio 37 1>;
113                         linux,code = <0x198>;
114                 };
115                 eject {
116                         label = "eject";
117                         gpios = <&gpio 34 1>;
118                         linux,code = <0xf7>;
119                 };
120                 movie {
121                         label = "movie";
122                         gpios = <&gpio 22 1>;
123                         linux,code = <0x109>;
124                 };
125         };
126
127         gpio-leds {
128                 compatible = "gpio-leds";
129                 power {
130                         label = "power";
131                         gpios = <&gpio 1 1>;
132                 };
133                 power2 {
134                         label = "power2";
135                         gpios = <&gpio 5 1>;
136                 };
137                 security {
138                         label = "security";
139                         gpios = <&gpio 14 1>;
140                 };
141                 wifi {
142                         label = "wifi";
143                         gpios = <&gpio 15 1>;
144                 };
145                 dsl {
146                         label = "dsl";
147                         gpios = <&gpio 16 1>;
148                 };
149                 online {
150                         label = "online";
151                         gpios = <&gpio 17 1>;
152                 };
153                 online2 {
154                         label = "online2";
155                         gpios = <&gpio 18 1>;
156                 };
157                 movie {
158                         label = "movie";
159                         gpios = <&gpio 20 1>;
160                 };
161                 usb {
162                         label = "usb";
163                         gpios = <&gpio 28 1>;
164                         default-state = "on";
165                 };
166         };
167 };