ramips: add asiarf awapn2403 support
[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                 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         gpio-leds {
66                 compatible = "gpio-leds";
67                 power {
68                         label = "d-link:blue:power";
69                         gpios = <&gpio0 8 1>;
70                 };
71                 power2 {
72                         label = "d-link:red:power";
73                         gpios = <&gpio0 9 1>;
74                 };
75                 wps {
76                         label = "d-link:blue:wps";
77                         gpios = <&gpio0 14 1>;
78                 };
79         };
80
81         gpio-keys-polled {
82                 compatible = "gpio-keys-polled";
83                 #address-cells = <1>;
84                 #size-cells = <0>;
85                 poll-interval = <20>;
86                 reset {
87                         label = "reset";
88                         gpios = <&gpio0 10 1>;
89                         linux,code = <0x198>;
90                 };
91                 wps {
92                         label = "wps";
93                         gpios = <&gpio0 0 1>;
94                         linux,code = <0x211>;
95                 };
96                 rt {
97                         label = "rt";
98                         gpios = <&gpio0 11 1>;
99                         linux,code = <0x100>;
100                 };
101                 ap {
102                         label = "ap";
103                         gpios = <&gpio0 7 1>;
104                         linux,code = <0x101>;
105                 };
106         };
107
108         otg@101c0000 {
109                 status = "okay";
110         };
111 };