be9cb1022d6544b1b4f645a323e774e1b1e8d279
[openwrt/staging/wigyori.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 gpio-leds {
10 compatible = "gpio-leds";
11
12 status {
13 label = "dir-615-h1:amber:status";
14 gpios = <&gpio0 7 0>;
15 };
16
17 status2 {
18 label = "dir-615-h1:green:status";
19 gpios = <&gpio0 9 0>;
20 };
21
22 wan {
23 label = "dir-615-h1:amber:wan";
24 gpios = <&gpio0 12 1>;
25 };
26
27 wan2 {
28 label = "dir-615-h1:green:wan";
29 gpios = <&gpio0 13 1>;
30 };
31
32 wps {
33 label = "dir-615-h1:blue:wps";
34 gpios = <&gpio0 14 1>;
35 };
36 };
37
38 gpio-keys-polled {
39 compatible = "gpio-keys-polled";
40 #address-cells = <1>;
41 #size-cells = <0>;
42 poll-interval = <20>;
43
44 reset {
45 label = "reset";
46 gpios = <&gpio0 10 1>;
47 linux,code = <0x198>;
48 };
49
50 wps {
51 label = "wps";
52 gpios = <&gpio0 0 1>;
53 linux,code = <0x211>;
54 };
55 };
56 };
57
58 &spi0 {
59 status = "okay";
60
61 m25p80@0 {
62 #address-cells = <1>;
63 #size-cells = <1>;
64 compatible = "jedec,spi-nor";
65 reg = <0 0>;
66 linux,modalias = "m25p80", "mx25l3205d";
67 spi-max-frequency = <10000000>;
68
69 partition@0 {
70 label = "u-boot";
71 reg = <0x0 0x30000>;
72 read-only;
73 };
74
75 partition@30000 {
76 label = "u-boot-env";
77 reg = <0x30000 0x10000>;
78 read-only;
79 };
80
81 factory: partition@40000 {
82 label = "factory";
83 reg = <0x40000 0x10000>;
84 read-only;
85 };
86
87 partition@50000 {
88 label = "firmware";
89 reg = <0x50000 0x3b0000>;
90 };
91 };
92 };
93
94 &pinctrl {
95 state_default: pinctrl0 {
96 gpio {
97 ralink,group = "i2c", "jtag", "uartf";
98 ralink,function = "gpio";
99 };
100
101 rgmii {
102 ralink,group = "rgmii";
103 ralink,function = "rgmii";
104 };
105
106 mdio {
107 ralink,group = "mdio";
108 ralink,function = "mdio";
109 };
110 };
111 };
112
113 &ethernet {
114 mtd-mac-address = <&factory 0x28>;
115 };
116
117 &esw {
118 mediatek,portmap = <0x2f>;
119 };
120
121 &wmac {
122 ralink,mtd-eeprom = <&factory 0>;
123 };