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