ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / DAP-1522-A1.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dap-1522-a1", "ralink,rt2880-soc";
10 model = "D-Link DAP-1522 A1";
11
12 aliases {
13 led-status = &led_status;
14 };
15
16 cfi@bc400000 {
17 compatible = "cfi-flash";
18 reg = <0xbc400000 0x800000>;
19 bank-width = <2>;
20 device-width = <2>;
21 #address-cells = <1>;
22 #size-cells = <1>;
23
24 partition@0 {
25 label = "uboot";
26 reg = <0x0 0x30000>;
27 read-only;
28 };
29
30 factory: partition@30000 {
31 label = "factory";
32 reg = <0x30000 0x10000>;
33 read-only;
34 };
35
36 partition@40000 {
37 label = "firmware";
38 reg = <0x40000 0x3a0000>;
39 };
40 };
41
42 rtl8366s {
43 compatible = "realtek,rtl8366s";
44 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
45 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
46 };
47
48 gpio-keys-polled {
49 compatible = "gpio-keys-polled";
50 poll-interval = <100>;
51
52 reset {
53 label = "reset";
54 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
56 };
57
58 wps {
59 label = "wps";
60 gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_WPS_BUTTON>;
62 };
63
64 ap {
65 label = "ap";
66 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
67 linux,code = <BTN_0>;
68 linux,input-type = <EV_SW>;
69 };
70
71 bridge {
72 label = "bridge";
73 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
74 linux,code = <BTN_1>;
75 linux,input-type = <EV_SW>;
76 };
77 };
78
79 gpio-leds {
80 compatible = "gpio-leds";
81
82 wps {
83 label = "dap-1522-a1:blue:wps";
84 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
85 };
86
87 ap {
88 label = "dap-1522-a1:blue:ap";
89 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
90 };
91
92 sta {
93 label = "dap-1522-a1:red:sta";
94 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
95 };
96
97 led_status: status {
98 label = "dap-1522-a1:blue:status";
99 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
100 };
101 };
102 };
103
104 &gpio0 {
105 status = "okay";
106 };
107
108 &gpio2 {
109 status = "okay";
110 };
111
112 &pinctrl {
113 state_default: pinctrl0 {
114 gpio {
115 ralink,group = "i2c", "uartlite", "pci";
116 ralink,function = "gpio";
117 };
118 };
119 };
120
121 &ethernet {
122 status = "okay";
123 mtd-mac-address = <&factory 0x2004>;
124
125 port@0 {
126 mediatek,fixed-link = <1000 1 1 1>;
127 };
128
129 mdio-bus {
130 status = "okay";
131
132 phy0: ethernet-phy@0 {
133 phy-mode = "mii";
134 reg = <0>;
135 };
136 };
137 };
138
139 &wmac {
140 ralink,mtd-eeprom = <&factory 0x2000>;
141 };