ramips: rt3883: fix dtc compiler warning
[oweals/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         cfi@1f000000 {
14                 compatible = "cfi-flash";
15                 reg = <0x1f000000 0x800000>;
16                 bank-width = <2>;
17                 device-width = <2>;
18                 #address-cells = <1>;
19                 #size-cells = <1>;
20
21                 partition@0 {
22                         label = "u-boot";
23                         reg = <0x0 0x30000>;
24                         read-only;
25                 };
26
27                 devdata: partition@30000 {
28                         label = "devdata";
29                         reg = <0x30000 0x10000>;
30                         read-only;
31                 };
32
33                 partition@40000 {
34                         label = "devconf";
35                         reg = <0x40000 0x30000>;
36                         read-only;
37                 };
38
39                 partition@70000 {
40                         label = "devlang";
41                         reg = <0x70000 0x40000>;
42                         read-only;
43                 };
44
45                 partition@b0000 {
46                         label = "firmware";
47                         reg = <0xb0000 0x750000>;
48                 };
49         };
50
51         gpio-leds {
52                 compatible = "gpio-leds";
53
54                 power {
55                         label = "dap-1350:blue:power";
56                         gpios = <&gpio0 8 1>;
57                 };
58
59                 power2 {
60                         label = "dap-1350:red:power";
61                         gpios = <&gpio0 9 1>;
62                 };
63
64                 wps {
65                         label = "dap-1350:blue:wps";
66                         gpios = <&gpio0 14 1>;
67                 };
68         };
69
70         gpio-keys-polled {
71                 compatible = "gpio-keys-polled";
72                 #address-cells = <1>;
73                 #size-cells = <0>;
74                 poll-interval = <20>;
75
76                 reset {
77                         label = "reset";
78                         gpios = <&gpio0 10 1>;
79                         linux,code = <0x198>;
80                 };
81
82                 wps {
83                         label = "wps";
84                         gpios = <&gpio0 0 1>;
85                         linux,code = <0x211>;
86                 };
87
88                 rt {
89                         label = "rt";
90                         gpios = <&gpio0 11 1>;
91                         linux,code = <0x100>;
92                 };
93
94                 ap {
95                         label = "ap";
96                         gpios = <&gpio0 7 1>;
97                         linux,code = <0x101>;
98                 };
99         };
100 };
101
102 &pinctrl {
103         state_default: pinctrl0 {
104                 gpio {
105                         ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
106                         ralink,function = "gpio";
107                 };
108         };
109 };
110
111 &ethernet {
112         mtd-mac-address = <&devdata 0x2e>;
113 };
114
115 &esw {
116         mediatek,portmap = <0x2f>;
117 };
118
119 &wmac {
120         ralink,mtd-eeprom = <&devdata 0>;
121 };
122
123 &otg {
124         status = "okay";
125 };