ramips: soc wmac eeprom cleanup
[openwrt.git] / target / linux / ramips / dts / DAP-1350.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "DAP-1350", "ralink,rt3052-soc";
7         model = "D-Link DAP-1350";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         pinctrl {
14                 state_default: pinctrl0 {
15                         gpio {
16                                 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
17                                 ralink,function = "gpio";
18                         };
19                 };
20         };
21
22         cfi@1f000000 {
23                 compatible = "cfi-flash";
24                 reg = <0x1f000000 0x800000>;
25
26                 bank-width = <2>;
27                 device-width = <2>;
28                 #address-cells = <1>;
29                 #size-cells = <1>;
30
31                 partition@0 {
32                         label = "u-boot";
33                         reg = <0x0 0x30000>;
34                         read-only;
35                 };
36
37                 devdata: partition@30000 {
38                         label = "devdata";
39                         reg = <0x30000 0x10000>;
40                         read-only;
41                 };
42
43                 partition@40000 {
44                         label = "devconf";
45                         reg = <0x40000 0x30000>;
46                         read-only;
47                 };
48
49                 partition@70000 {
50                         label = "devlang";
51                         reg = <0x70000 0x40000>;
52                         read-only;
53                 };
54
55                 partition@b0000 {
56                         label = "firmware";
57                         reg = <0xb0000 0x750000>;
58                 };
59         };
60
61         esw@10110000 {
62                 ralink,portmap = <0x2f>;
63         };
64
65         wmac@10180000 {
66                 ralink,mtd-eeprom = <&devdata 0>;
67         };
68
69         gpio-leds {
70                 compatible = "gpio-leds";
71                 power {
72                         label = "d-link:blue:power";
73                         gpios = <&gpio0 8 1>;
74                 };
75                 power2 {
76                         label = "d-link:red:power";
77                         gpios = <&gpio0 9 1>;
78                 };
79                 wps {
80                         label = "d-link:blue:wps";
81                         gpios = <&gpio0 14 1>;
82                 };
83         };
84
85         gpio-keys-polled {
86                 compatible = "gpio-keys-polled";
87                 #address-cells = <1>;
88                 #size-cells = <0>;
89                 poll-interval = <20>;
90                 reset {
91                         label = "reset";
92                         gpios = <&gpio0 10 1>;
93                         linux,code = <0x198>;
94                 };
95                 wps {
96                         label = "wps";
97                         gpios = <&gpio0 0 1>;
98                         linux,code = <0x211>;
99                 };
100                 rt {
101                         label = "rt";
102                         gpios = <&gpio0 11 1>;
103                         linux,code = <0x100>;
104                 };
105                 ap {
106                         label = "ap";
107                         gpios = <&gpio0 7 1>;
108                         linux,code = <0x101>;
109                 };
110         };
111
112         otg@101c0000 {
113                 status = "okay";
114         };
115 };