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