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