ramips: unielec-u7621-01: Increase SPI frequency to 50MHz
[openwrt/openwrt.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 label = "devdata";
40 reg = <0x30000 0x10000>;
41 read-only;
42
43 nvmem-layout {
44 compatible = "fixed-layout";
45 #address-cells = <1>;
46 #size-cells = <1>;
47
48 eeprom_devdata_0: eeprom@0 {
49 reg = <0x0 0x200>;
50 };
51
52 macaddr_devdata_2e: macaddr@2e {
53 reg = <0x2e 0x6>;
54 };
55 };
56 };
57
58 partition@40000 {
59 label = "devconf";
60 reg = <0x40000 0x30000>;
61 read-only;
62 };
63
64 partition@70000 {
65 label = "devlang";
66 reg = <0x70000 0x40000>;
67 read-only;
68 };
69
70 partition@b0000 {
71 compatible = "denx,uimage";
72 label = "firmware";
73 reg = <0xb0000 0x750000>;
74 };
75 };
76 };
77
78 leds {
79 compatible = "gpio-leds";
80
81 led_power_blue: power {
82 label = "blue:power";
83 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
84 };
85
86 power2 {
87 label = "red:power";
88 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
89 };
90
91 wps {
92 label = "blue:wps";
93 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
94 };
95 };
96
97 keys {
98 compatible = "gpio-keys-polled";
99 poll-interval = <20>;
100
101 reset {
102 label = "reset";
103 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_RESTART>;
105 };
106
107 wps {
108 label = "wps";
109 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_WPS_BUTTON>;
111 };
112
113 rt {
114 label = "rt";
115 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
116 linux,code = <BTN_0>;
117 };
118
119 ap {
120 label = "ap";
121 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
122 linux,code = <BTN_1>;
123 };
124 };
125 };
126
127 &state_default {
128 gpio {
129 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
130 function = "gpio";
131 };
132 };
133
134 &ethernet {
135 nvmem-cells = <&macaddr_devdata_2e>;
136 nvmem-cell-names = "mac-address";
137 };
138
139 &esw {
140 mediatek,portmap = <0x2f>;
141 };
142
143 &wmac {
144 nvmem-cells = <&eeprom_devdata_0>;
145 nvmem-cell-names = "eeprom";
146 };
147
148 &otg {
149 status = "okay";
150 };