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