5f1a4a99ca9e69af97c189720021a5413dab91bc
[openwrt.git] / target / linux / ramips / dts / DIR-615-D.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "DIR-615-D", "ralink,rt3050-soc";
7         model = "D-Link DIR-615 D";
8
9         memorydetect {
10                 ralink,memory = <0x0 0x200000 0x4000000>;
11         };
12
13         chosen {
14                 bootargs = "console=ttyS0,57600 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(devdata)ro,64k(devconf)ro,3776k@0x50000(firmware)";
15         };
16
17         palmbus@10000000 {
18                 sysc@0 {
19                         ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
20                         ralink,uartmux = "gpio";
21                         ralink,wdtmux = <1>;
22                 };
23
24                 gpio0: gpio@600 {
25                         status = "okay";
26                 };
27
28         };
29
30         cfi@1f000000 {
31                 compatible = "cfi-flash";
32                 reg = <0x1f000000 0x800000>;
33
34                 bank-width = <2>;
35                 device-width = <2>;
36                 #address-cells = <1>;
37                 #size-cells = <1>;
38
39                 partition@0 {
40                         label = "u-boot";
41                         reg = <0x0 0x30000>;
42                         read-only;
43                 };
44
45                 partition@30000 {
46                         label = "devdata";
47                         reg = <0x30000 0x10000>;
48                         read-only;
49                 };
50
51                 partition@40000 {
52                         label = "devconf";
53                         reg = <0x40000 0x10000>;
54                         read-only;
55                 };
56
57                 partition@50000 {
58                         label = "firmware";
59                         reg = <0x50000 0x3b0000>;
60                 };
61         };
62
63         ethernet@10100000 {
64                 status = "okay";
65         };
66
67         esw@10110000 {
68                 status = "okay";
69                 ralink,portmap = <0x2f>;
70         };
71
72         gpio-keys-polled {
73                 compatible = "gpio-keys-polled";
74                 #address-cells = <1>;
75                 #size-cells = <0>;
76                 poll-interval = <20>;
77                 reset {
78                         label = "reset";
79                         gpios = <&gpio0 10 1>;
80                         linux,code = <0x198>;
81                 };
82                 wps {
83                         label = "wps";
84                         gpios = <&gpio0 0 1>;
85                         linux,code = <0x211>;
86                 };
87         };
88
89         wmac@10180000 {
90                 status = "okay";
91         };
92
93         gpio-leds {
94                 compatible = "gpio-leds";
95                 status {
96                         label = "d-link:amber:status";
97                         gpios = <&gpio0 8 1>;
98                 };
99                 status2 {
100                         label = "d-link:green:status";
101                         gpios = <&gpio0 9 1>;
102                 };
103                 wan {
104                         label = "d-link:amber:wan";
105                         gpios = <&gpio0 14 1>;
106                 };
107                 wan2 {
108                         label = "d-link:green:wan";
109                         gpios = <&gpio0 12 1>;
110                 };
111                 wps {
112                         label = "d-link:blue:wps";
113                         gpios = <&gpio0 13 1>;
114                 };
115         };
116 };