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