ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / DWR-116-A1.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dwr-116-a1", "ralink,mt7620n-soc";
10 model = "D-Link DWR-116 A1/A2";
11
12 aliases {
13 led-status = &led_status;
14 };
15
16 gpio-keys-polled {
17 compatible = "gpio-keys-polled";
18 poll-interval = <20>;
19
20 wps {
21 label = "wps";
22 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
24 };
25
26 reset {
27 label = "reset";
28 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32
33 gpio-leds {
34 compatible = "gpio-leds";
35
36 led_status: status {
37 label = "dwr-116-a1:green:status";
38 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
39 };
40
41 wifi {
42 label = "dwr-116-a1:green:wifi";
43 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
44 };
45 };
46 };
47
48 &gpio1 {
49 status = "okay";
50 };
51
52 &gpio3 {
53 status = "okay";
54 };
55
56 &spi0 {
57 status = "okay";
58
59 m25p80@0 {
60 #address-cells = <1>;
61 #size-cells = <1>;
62 compatible = "jedec,spi-nor";
63 reg = <0>;
64 spi-max-frequency = <50000000>;
65
66 partition@0 {
67 label = "jboot";
68 reg = <0x0 0x10000>;
69 read-only;
70 };
71
72 partition@10000 {
73 label = "firmware";
74 reg = <0x10000 0x7e0000>;
75 };
76
77 config: partition@7f0000 {
78 label = "config";
79 reg = <0x7f0000 0x10000>;
80 read-only;
81 };
82 };
83 };
84
85 &ehci {
86 status = "okay";
87 };
88
89 &ohci {
90 status = "okay";
91 };
92
93 &pinctrl {
94 state_default: pinctrl0 {
95 default {
96 ralink,group = "i2c", "wled";
97 ralink,function = "gpio";
98 };
99 };
100 };
101
102 &ethernet {
103 mediatek,portmap = "llllw";
104 pinctrl-names = "default";
105 pinctrl-0 = <&ephy_pins>;
106 };