ramips: add ralink v3.10 support
[15.05/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         palmbus@10000000 {
10                 sysc@0 {
11                         ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
12                         ralink,uartmux = "gpio";
13                         ralink,wdtmux = <1>;
14                 };
15
16                 gpio0: gpio@600 {
17                         status = "okay";
18                 };
19
20                 spi@b00 {
21                         status = "okay";
22                         m25p80@0 {
23                                 #address-cells = <1>;
24                                 #size-cells = <1>;
25                                 compatible = "mx25l3205d";
26                                 reg = <0 0>;
27                                 linux,modalias = "m25p80", "mx25l3205d";
28                                 spi-max-frequency = <10000000>;
29
30                 partition@0 {
31                         label = "u-boot";
32                         reg = <0x0 0x30000>;
33                         read-only;
34                 };
35
36                 partition@30000 {
37                         label = "u-boot-env";
38                         reg = <0x30000 0x10000>;
39                         read-only;
40                 };
41
42                 factory: partition@40000 {
43                         label = "factory";
44                         reg = <0x40000 0x10000>;
45                         read-only;
46                 };
47
48                 partition@50000 {
49                         label = "firmware";
50                         reg = <0x50000 0x3b0000>;
51                 };
52                         };
53                 };
54         };
55
56         ethernet@10100000 {
57                 status = "okay";
58         };
59
60         esw@10110000 {
61                 status = "okay";
62                 ralink,portmap = <0x2f>;
63         };
64
65         gpio-leds {
66                 compatible = "gpio-leds";
67                 status {
68                         label = "d-link:amber:status";
69                         gpios = <&gpio0 7 0>;
70                 };
71                 status2 {
72                         label = "d-link:green:status";
73                         gpios = <&gpio0 9 0>;
74                 };
75                 wan {
76                         label = "d-link:amber:wan";
77                         gpios = <&gpio0 12 1>;
78                 };
79                 wan2 {
80                         label = "d-link:green:wan";
81                         gpios = <&gpio0 13 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         };
105
106         wmac@10180000 {
107                 status = "okay";
108         };
109 };