ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / DAP-1350.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dap-1350", "ralink,rt3052-soc";
10 model = "D-Link DAP-1350";
11
12 aliases {
13 led-status = &led_power_blue;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 cfi@1f000000 {
21 compatible = "cfi-flash";
22 reg = <0x1f000000 0x800000>;
23 bank-width = <2>;
24 device-width = <2>;
25 #address-cells = <1>;
26 #size-cells = <1>;
27
28 partition@0 {
29 label = "u-boot";
30 reg = <0x0 0x30000>;
31 read-only;
32 };
33
34 devdata: partition@30000 {
35 label = "devdata";
36 reg = <0x30000 0x10000>;
37 read-only;
38 };
39
40 partition@40000 {
41 label = "devconf";
42 reg = <0x40000 0x30000>;
43 read-only;
44 };
45
46 partition@70000 {
47 label = "devlang";
48 reg = <0x70000 0x40000>;
49 read-only;
50 };
51
52 partition@b0000 {
53 label = "firmware";
54 reg = <0xb0000 0x750000>;
55 };
56 };
57
58 gpio-leds {
59 compatible = "gpio-leds";
60
61 led_power_blue: power {
62 label = "dap-1350:blue:power";
63 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
64 };
65
66 power2 {
67 label = "dap-1350:red:power";
68 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
69 };
70
71 wps {
72 label = "dap-1350:blue:wps";
73 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
74 };
75 };
76
77 gpio-keys-polled {
78 compatible = "gpio-keys-polled";
79 poll-interval = <20>;
80
81 reset {
82 label = "reset";
83 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RESTART>;
85 };
86
87 wps {
88 label = "wps";
89 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_WPS_BUTTON>;
91 };
92
93 rt {
94 label = "rt";
95 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
96 linux,code = <BTN_0>;
97 };
98
99 ap {
100 label = "ap";
101 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
102 linux,code = <BTN_1>;
103 };
104 };
105 };
106
107 &pinctrl {
108 state_default: pinctrl0 {
109 gpio {
110 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
111 ralink,function = "gpio";
112 };
113 };
114 };
115
116 &ethernet {
117 mtd-mac-address = <&devdata 0x2e>;
118 };
119
120 &esw {
121 mediatek,portmap = <0x2f>;
122 };
123
124 &wmac {
125 ralink,mtd-eeprom = <&devdata 0>;
126 };
127
128 &otg {
129 status = "okay";
130 };