cd6d07f4a07bc76b4b292f151c52b2cea60ec515
[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
26 partitions {
27 compatible = "fixed-partitions";
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 partition@0 {
32 label = "u-boot";
33 reg = <0x0 0x30000>;
34 read-only;
35 };
36
37 devdata: partition@30000 {
38 label = "devdata";
39 reg = <0x30000 0x10000>;
40 read-only;
41 };
42
43 partition@40000 {
44 label = "devconf";
45 reg = <0x40000 0x30000>;
46 read-only;
47 };
48
49 partition@70000 {
50 label = "devlang";
51 reg = <0x70000 0x40000>;
52 read-only;
53 };
54
55 partition@b0000 {
56 label = "firmware";
57 reg = <0xb0000 0x750000>;
58 };
59 };
60 };
61
62 gpio-leds {
63 compatible = "gpio-leds";
64
65 led_power_blue: power {
66 label = "dap-1350:blue:power";
67 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
68 };
69
70 power2 {
71 label = "dap-1350:red:power";
72 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
73 };
74
75 wps {
76 label = "dap-1350:blue:wps";
77 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
78 };
79 };
80
81 gpio-keys-polled {
82 compatible = "gpio-keys-polled";
83 poll-interval = <20>;
84
85 reset {
86 label = "reset";
87 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_RESTART>;
89 };
90
91 wps {
92 label = "wps";
93 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
94 linux,code = <KEY_WPS_BUTTON>;
95 };
96
97 rt {
98 label = "rt";
99 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
100 linux,code = <BTN_0>;
101 };
102
103 ap {
104 label = "ap";
105 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
106 linux,code = <BTN_1>;
107 };
108 };
109 };
110
111 &pinctrl {
112 state_default: pinctrl0 {
113 gpio {
114 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
115 ralink,function = "gpio";
116 };
117 };
118 };
119
120 &ethernet {
121 mtd-mac-address = <&devdata 0x2e>;
122 };
123
124 &esw {
125 mediatek,portmap = <0x2f>;
126 };
127
128 &wmac {
129 ralink,mtd-eeprom = <&devdata 0>;
130 };
131
132 &otg {
133 status = "okay";
134 };