ramips: fix dtc warnings
[openwrt/openwrt.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-status = &led_status;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 led_status: status {
20 label = "dir-610-a1:green:status";
21 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
22 };
23
24 wps {
25 label = "dir-610-a1:green:wps";
26 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 gpio-keys-polled {
31 compatible = "gpio-keys-polled";
32 poll-interval = <20>;
33
34 reset {
35 label = "reset";
36 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39
40 wps {
41 label = "wps";
42 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_WPS_BUTTON>;
44 };
45 };
46 };
47
48 &spi0 {
49 status = "okay";
50
51 m25p80@0 {
52 #address-cells = <1>;
53 #size-cells = <1>;
54 compatible = "jedec,spi-nor";
55 reg = <0>;
56 spi-max-frequency = <10000000>;
57
58 partition@0 {
59 label = "u-boot";
60 reg = <0x0 0x30000>;
61 read-only;
62 };
63
64 devdata: partition@30000 {
65 label = "devdata";
66 reg = <0x30000 0x10000>;
67 read-only;
68 };
69
70 factory: partition@40000 {
71 label = "factory";
72 reg = <0x40000 0x10000>;
73 read-only;
74 };
75
76 partition@50000 {
77 label = "firmware";
78 reg = <0x50000 0x3b0000>;
79 };
80 };
81 };
82
83 &pinctrl {
84 state_default: pinctrl0 {
85 gpio {
86 ralink,group = "i2c", "jtag", "uartf";
87 ralink,function = "gpio";
88 };
89 };
90 };
91
92 &ethernet {
93 mtd-mac-address = <&devdata 0x4004>;
94 };
95
96 &esw {
97 status = "okay";
98 mediatek,portmap = <0x2f>;
99 mediatek,led_polarity = <0x17>;
100 };
101
102 &wmac {
103 status = "okay";
104 ralink,led-polarity = <1>;
105 ralink,mtd-eeprom = <&devdata 0x4000>;
106 };