9ec66b4b003c19a746265702dcfc819aa2fb3dc1
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / DIR-610-A1.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6 compatible = "DIR-610-A1", "ralink,rt5350-soc";
7 model = "D-Link DIR-610 A1";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 status {
13 label = "dir-610-a1:green:status";
14 gpios = <&gpio0 9 1>;
15 };
16
17 wps {
18 label = "dir-610-a1:green:wps";
19 gpios = <&gpio0 13 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 {
30 label = "reset";
31 gpios = <&gpio0 10 1>;
32 linux,code = <0x198>;
33 };
34
35 wps {
36 label = "wps";
37 gpios = <&gpio0 0 1>;
38 linux,code = <0x211>;
39 };
40 };
41 };
42
43 &spi0 {
44 status = "okay";
45
46 m25p80@0 {
47 #address-cells = <1>;
48 #size-cells = <1>;
49 compatible = "jedec,spi-nor";
50 reg = <0>;
51 linux,modalias = "m25p80";
52 spi-max-frequency = <10000000>;
53
54 partition@0 {
55 label = "u-boot";
56 reg = <0x0 0x30000>;
57 read-only;
58 };
59
60 devdata: partition@30000 {
61 label = "devdata";
62 reg = <0x30000 0x10000>;
63 read-only;
64 };
65
66 factory: partition@40000 {
67 label = "factory";
68 reg = <0x40000 0x10000>;
69 read-only;
70 };
71
72 partition@50000 {
73 label = "firmware";
74 reg = <0x50000 0x3b0000>;
75 };
76 };
77 };
78
79 &pinctrl {
80 state_default: pinctrl0 {
81 gpio {
82 ralink,group = "i2c", "jtag", "uartf";
83 ralink,function = "gpio";
84 };
85 };
86 };
87
88 &ethernet {
89 mtd-mac-address = <&devdata 0x4004>;
90 };
91
92 &esw {
93 status = "okay";
94 mediatek,portmap = <0x2f>;
95 mediatek,led_polarity = <0x17>;
96 };
97
98 &wmac {
99 status = "okay";
100 ralink,led-polarity = <1>;
101 ralink,mtd-eeprom = <&devdata 0x4000>;
102 };