4a9350931174710a6077201b9fded9a1e0339cc5
[openwrt/openwrt.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 #address-cells = <1>;
80 #size-cells = <0>;
81 poll-interval = <20>;
82
83 reset {
84 label = "reset";
85 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_RESTART>;
87 };
88
89 wps {
90 label = "wps";
91 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_WPS_BUTTON>;
93 };
94
95 rt {
96 label = "rt";
97 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
98 linux,code = <BTN_0>;
99 };
100
101 ap {
102 label = "ap";
103 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
104 linux,code = <BTN_1>;
105 };
106 };
107 };
108
109 &pinctrl {
110 state_default: pinctrl0 {
111 gpio {
112 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
113 ralink,function = "gpio";
114 };
115 };
116 };
117
118 &ethernet {
119 mtd-mac-address = <&devdata 0x2e>;
120 };
121
122 &esw {
123 mediatek,portmap = <0x2f>;
124 };
125
126 &wmac {
127 ralink,mtd-eeprom = <&devdata 0>;
128 };
129
130 &otg {
131 status = "okay";
132 };