ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / DIR-810L.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
10 model = "D-Link DIR-810L";
11
12 aliases {
13 led-status = &led_power_green;
14 };
15
16 gpio-keys-polled {
17 compatible = "gpio-keys-polled";
18 poll-interval = <20>;
19
20 reset {
21 label = "reset";
22 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
23 linux,code = <BTN_0>;
24 };
25
26 wps {
27 label = "wps";
28 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
29 linux,code = <BTN_0>;
30 };
31 };
32
33 gpio-leds {
34 compatible = "gpio-leds";
35
36 led_power_green: power {
37 label = "dir-810l:green:power";
38 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
39 };
40
41 wan {
42 label = "dir-810l:orange:wan";
43 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
44 };
45
46 power2 {
47 label = "dir-810l:orange:power";
48 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
49 };
50 };
51 };
52
53 &spi0 {
54 status = "okay";
55
56 m25p80@0 {
57 #address-cells = <1>;
58 #size-cells = <1>;
59 compatible = "jedec,spi-nor";
60 reg = <0>;
61 spi-max-frequency = <10000000>;
62
63 partition@0 {
64 label = "u-boot";
65 reg = <0x0 0x30000>;
66 read-only;
67 };
68
69 partition@30000 {
70 label = "u-boot-env";
71 reg = <0x30000 0x10000>;
72 read-only;
73 };
74
75 factory: partition@40000 {
76 label = "factory";
77 reg = <0x40000 0x10000>;
78 read-only;
79 };
80
81 factory5g: partition@50000 {
82 label = "factory5g";
83 reg = <0x50000 0x10000>;
84 read-only;
85 };
86
87 partition@60000 {
88 label = "Wolf_Config";
89 reg = <0x60000 0x10000>;
90 read-only;
91 };
92
93 partition@70000 {
94 label = "MyDlink";
95 reg = <0x70000 0x80000>;
96 read-only;
97 };
98
99 partition@e0000 {
100 label = "Jffs2";
101 reg = <0xe0000 0x80000>;
102 read-only;
103 };
104
105 partition@170000 {
106 label = "firmware";
107 reg = <0x170000 0x690000>;
108 };
109 };
110 };
111
112 &pinctrl {
113 state_default: pinctrl0 {
114 gpio {
115 ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf";
116 ralink,function = "gpio";
117 };
118 };
119 };
120
121 &ethernet {
122 mtd-mac-address = <&factory 0x28>;
123 mediatek,portmap = "llllw";
124 };
125
126 &gsw {
127 mediatek,port4 = "ephy";
128 pinctrl-names = "default";
129 pinctrl-0 = <&ephy_pins>;
130 };
131
132 &pcie {
133 status = "okay";
134 };
135
136 &wmac {
137 ralink,mtd-eeprom = <&factory 0>;
138 };