b41ddd4fcc7cfcb3331453ea493718a75a52d15c
[openwrt.git] / target / linux / ramips / dts / DIR-615-H1.dts
1 /dts-v1/;
2
3 /include/ "rt3352.dtsi"
4
5 / {
6         compatible = "DIR-615-H1", "ralink,rt3352-soc";
7         model = "D-Link DIR-615 H1";
8
9         memorydetect {
10                 ralink,memory = <0x0 0x200000 0x10000000>;
11         };
12
13         chosen {
14                 bootargs = "console=ttyS0,57600 mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)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                 spi@b00 {
29                         status = "okay";
30                         m25p80@0 {
31                                 #address-cells = <1>;
32                                 #size-cells = <1>;
33                                 compatible = "mx25l3205d";
34                                 reg = <0 0>;
35                                 linux,modalias = "m25p80", "mx25l3205d";
36                                 spi-max-frequency = <10000000>;
37
38                 partition@0 {
39                         label = "u-boot";
40                         reg = <0x0 0x30000>;
41                         read-only;
42                 };
43
44                 partition@30000 {
45                         label = "u-boot-env";
46                         reg = <0x30000 0x10000>;
47                         read-only;
48                 };
49
50                 factory: partition@40000 {
51                         label = "factory";
52                         reg = <0x40000 0x10000>;
53                         read-only;
54                 };
55
56                 partition@50000 {
57                         label = "firmware";
58                         reg = <0x50000 0x3b0000>;
59                 };
60                         };
61                 };
62         };
63
64         ethernet@10100000 {
65                 status = "okay";
66         };
67
68         esw@10110000 {
69                 status = "okay";
70                 ralink,portmap = <0x2f>;
71         };
72
73         gpio-leds {
74                 compatible = "gpio-leds";
75                 status {
76                         label = "d-link:amber:status";
77                         gpios = <&gpio0 7 0>;
78                 };
79                 status2 {
80                         label = "d-link:green:status";
81                         gpios = <&gpio0 9 0>;
82                 };
83                 wan {
84                         label = "d-link:amber:wan";
85                         gpios = <&gpio0 12 1>;
86                 };
87                 wan2 {
88                         label = "d-link:green:wan";
89                         gpios = <&gpio0 13 1>;
90                 };
91                 wps {
92                         label = "d-link:blue:wps";
93                         gpios = <&gpio0 14 1>;
94                 };
95         };
96
97         gpio-keys-polled {
98                 compatible = "gpio-keys-polled";
99                 #address-cells = <1>;
100                 #size-cells = <0>;
101                 poll-interval = <20>;
102                 reset {
103                         label = "reset";
104                         gpios = <&gpio0 10 1>;
105                         linux,code = <0x198>;
106                 };
107                 wps {
108                         label = "wps";
109                         gpios = <&gpio0 0 1>;
110                         linux,code = <0x211>;
111                 };
112         };
113
114         wmac@10180000 {
115                 status = "okay";
116         };
117 };