7d78ed333dff5fcc336283d188ee5822c909e852
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt3352_dlink_dir-620-d1.dts
1 #include "rt3352.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "dlink,dir-620-d1", "ralink,rt3352-soc";
8 model = "D-Link DIR-620 D1";
9
10 aliases {
11 led-boot = &led_status;
12 led-failsafe = &led_status;
13 led-running = &led_status;
14 led-upgrade = &led_status;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_status: status {
21 label = "green:status";
22 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
23 };
24
25 wifi {
26 label = "green:wifi";
27 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
28 };
29 };
30
31 keys {
32 compatible = "gpio-keys-polled";
33 poll-interval = <20>;
34
35 reset_wps {
36 label = "reset_wps";
37 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
39 };
40 };
41 };
42
43 &spi0 {
44 status = "okay";
45
46 flash@0 {
47 compatible = "jedec,spi-nor";
48 reg = <0>;
49 spi-max-frequency = <10000000>;
50
51 partitions {
52 compatible = "fixed-partitions";
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 partition@0 {
57 label = "u-boot";
58 reg = <0x0 0x30000>;
59 read-only;
60 };
61
62 partition@30000 {
63 label = "u-boot-env";
64 reg = <0x30000 0x10000>;
65 read-only;
66 };
67
68 factory: partition@40000 {
69 compatible = "nvmem-cells";
70 label = "factory";
71 reg = <0x40000 0x10000>;
72 #address-cells = <1>;
73 #size-cells = <1>;
74 read-only;
75
76 eeprom_factory_0: eeprom@0 {
77 reg = <0x0 0x200>;
78 };
79
80 macaddr_factory_4: macaddr@4 {
81 reg = <0x4 0x6>;
82 };
83 };
84
85 partition@50000 {
86 compatible = "denx,uimage";
87 label = "firmware";
88 reg = <0x50000 0x7b0000>;
89 };
90 };
91 };
92 };
93
94 &state_default {
95 gpio {
96 groups = "i2c", "jtag", "uartf";
97 function = "gpio";
98 };
99 };
100
101 &ethernet {
102 nvmem-cells = <&macaddr_factory_4>;
103 nvmem-cell-names = "mac-address";
104 pinctrl-names = "default";
105 pinctrl-0 = <&rgmii_pins &mdio_pins>;
106 };
107
108 &esw {
109 mediatek,portmap = <0x2f>;
110 };
111
112 &wmac {
113 nvmem-cells = <&eeprom_factory_0>;
114 nvmem-cell-names = "eeprom";
115 };
116
117 &ehci {
118 status = "okay";
119 };
120
121 &ohci {
122 status = "okay";
123 };