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