ramips: DTS rework
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / DIR-620-D1.dts
1 /dts-v1/;
2
3 #include "rt3352.dtsi"
4
5 / {
6 compatible = "DIR-620-D1", "ralink,rt3352-soc";
7 model = "D-Link DIR-620 D1";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 status {
13 label = "dir-620-d1:green:status";
14 gpios = <&gpio0 9 1>;
15 };
16
17 wifi {
18 label = "dir-620-d1:green:wifi";
19 gpios = <&gpio0 17 1>;
20 };
21 };
22
23 gpio-keys-polled {
24 compatible = "gpio-keys-polled";
25 #address-cells = <1>;
26 #size-cells = <0>;
27 poll-interval = <20>;
28
29 reset_wps {
30 label = "reset_wps";
31 gpios = <&gpio0 7 1>;
32 linux,code = <0x198>;
33 };
34 };
35 };
36
37 &spi0 {
38 status = "okay";
39
40 m25p80@0 {
41 #address-cells = <1>;
42 #size-cells = <1>;
43 compatible = "jedec,spi-nor";
44 reg = <0 0>;
45 linux,modalias = "m25p80", "mx25l6405d";
46 spi-max-frequency = <10000000>;
47
48 partition@0 {
49 label = "u-boot";
50 reg = <0x0 0x30000>;
51 read-only;
52 };
53
54 partition@30000 {
55 label = "u-boot-env";
56 reg = <0x30000 0x10000>;
57 read-only;
58 };
59
60 factory: partition@40000 {
61 label = "factory";
62 reg = <0x40000 0x10000>;
63 read-only;
64 };
65
66 partition@50000 {
67 label = "firmware";
68 reg = <0x50000 0x7b0000>;
69 };
70 };
71 };
72
73 &pinctrl {
74 state_default: pinctrl0 {
75 gpio {
76 ralink,group = "i2c", "jtag", "uartf";
77 ralink,function = "gpio";
78 };
79
80 rgmii {
81 ralink,group = "rgmii";
82 ralink,function = "rgmii";
83 };
84
85 mdio {
86 ralink,group = "mdio";
87 ralink,function = "mdio";
88 };
89 };
90 };
91
92 &ethernet {
93 mtd-mac-address = <&factory 0x4>;
94 };
95
96 &esw {
97 mediatek,portmap = <0x2f>;
98 };
99
100 &wmac {
101 ralink,mtd-eeprom = <&factory 0>;
102 };
103
104 &ehci {
105 status = "okay";
106 };
107
108 &ohci {
109 status = "okay";
110 };