ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / DIR-645.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dir-645", "ralink,rt3883-soc";
10 model = "D-Link DIR-645";
11
12 aliases {
13 led-status = &led_wps;
14 };
15
16 rtl8367b {
17 compatible = "realtek,rtl8367b";
18 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
19 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
20 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
21 };
22
23 gpio-keys-polled {
24 compatible = "gpio-keys-polled";
25 poll-interval = <100>;
26
27 reset {
28 label = "reset";
29 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
30 linux,code = <KEY_RESTART>;
31 };
32
33 wps {
34 label = "wps";
35 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
36 linux,code = <KEY_WPS_BUTTON>;
37 };
38 };
39
40 gpio-leds {
41 compatible = "gpio-leds";
42
43 inet {
44 label = "dir-645:green:inet";
45 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
46 };
47
48 led_wps: wps {
49 label = "dir-645:green:wps";
50 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
51 };
52 };
53
54 gpio_export {
55 compatible = "gpio-export";
56 #size-cells = <0>;
57
58 usb {
59 gpio-export,name = "usb";
60 gpio-export,output = <1>;
61 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
62 };
63 };
64 };
65
66 &gpio1 {
67 status = "okay";
68 };
69
70 &spi0 {
71 status = "okay";
72
73 m25p80@0 {
74 #address-cells = <1>;
75 #size-cells = <1>;
76 compatible = "jedec,spi-nor";
77 reg = <0>;
78 spi-max-frequency = <25000000>;
79
80 partition@0 {
81 label = "uboot";
82 reg = <0x0 0x30000>;
83 read-only;
84 };
85
86 partition@30000 {
87 label = "uboot-env";
88 reg = <0x30000 0x4000>;
89 read-only;
90 };
91
92 factory: partition@34000 {
93 label = "factory";
94 reg = <0x34000 0x4000>;
95 read-only;
96 };
97
98 partition@38000 {
99 label = "nvram";
100 reg = <0x38000 0x8000>;
101 read-only;
102 };
103
104 partition@40000 {
105 label = "devdata";
106 reg = <0x40000 0x10000>;
107 };
108
109 partition@50000 {
110 label = "firmware";
111 reg = <0x50000 0x7b0000>;
112 };
113 };
114 };
115
116 &pinctrl {
117 state_default: pinctrl0 {
118 gpio {
119 ralink,group = "i2c", "jtag", "uartf";
120 ralink,function = "gpio";
121 };
122 };
123 };
124
125 &ethernet {
126 mtd-mac-address = <&factory 0x4>;
127
128 port@0 {
129 mediatek,fixed-link = <1000 1 1 0>;
130 };
131 };
132
133 &wmac {
134 ralink,5ghz = <0>;
135 ralink,mtd-eeprom = <&factory 0>;
136 };
137
138 &ehci {
139 status = "okay";
140 };
141
142 &ohci {
143 status = "okay";
144 };