lantiq: add 3.18 support
[openwrt/svn-archive/archive.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 ethernet@10100000 {
62 mtd-mac-address = <&devdata 0x2e>;
63 };
64
65 esw@10110000 {
66 ralink,portmap = <0x2f>;
67 };
68
69 wmac@10180000 {
70 ralink,mtd-eeprom = <&devdata 0>;
71 };
72
73 gpio-leds {
74 compatible = "gpio-leds";
75 power {
76 label = "d-link:blue:power";
77 gpios = <&gpio0 8 1>;
78 };
79 power2 {
80 label = "d-link:red:power";
81 gpios = <&gpio0 9 1>;
82 };
83 wps {
84 label = "d-link:blue:wps";
85 gpios = <&gpio0 14 1>;
86 };
87 };
88
89 gpio-keys-polled {
90 compatible = "gpio-keys-polled";
91 #address-cells = <1>;
92 #size-cells = <0>;
93 poll-interval = <20>;
94 reset {
95 label = "reset";
96 gpios = <&gpio0 10 1>;
97 linux,code = <0x198>;
98 };
99 wps {
100 label = "wps";
101 gpios = <&gpio0 0 1>;
102 linux,code = <0x211>;
103 };
104 rt {
105 label = "rt";
106 gpios = <&gpio0 11 1>;
107 linux,code = <0x100>;
108 };
109 ap {
110 label = "ap";
111 gpios = <&gpio0 7 1>;
112 linux,code = <0x101>;
113 };
114 };
115
116 otg@101c0000 {
117 status = "okay";
118 };
119 };