8ec52457fa4b033e328487fdd122ae7cd3d50b98
[openwrt/openwrt.git] / target / linux / ramips / dts / DCS-930L-B1.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dcs-930l-b1", "ralink,rt5350-soc";
10 model = "D-Link DCS-930L B1";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 led_power: power {
20 label = "dcs-930l-b1:red:power";
21 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
22 };
23
24 wps {
25 label = "dcs-930l-b1:blue:wps";
26 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 gpio-keys-polled {
31 compatible = "gpio-keys-polled";
32 poll-interval = <20>;
33
34 reset {
35 label = "reset";
36 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39
40 wps {
41 label = "wps";
42 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_WPS_BUTTON>;
44 };
45 };
46 };
47
48 &spi0 {
49 status = "okay";
50
51 m25p80@0 {
52 compatible = "jedec,spi-nor";
53 reg = <0>;
54 spi-max-frequency = <10000000>;
55
56 partitions {
57 compatible = "fixed-partitions";
58 #address-cells = <1>;
59 #size-cells = <1>;
60
61 partition@0 {
62 label = "u-boot";
63 reg = <0x0 0x30000>;
64 read-only;
65 };
66
67 partition@30000 {
68 label = "u-boot-env";
69 reg = <0x30000 0x10000>;
70 read-only;
71 };
72
73 factory: partition@40000 {
74 label = "factory";
75 reg = <0x40000 0x10000>;
76 read-only;
77 };
78
79 partition@50000 {
80 label = "firmware";
81 reg = <0x50000 0x3b0000>;
82 };
83 };
84 };
85 };
86
87 &pinctrl {
88 state_default: pinctrl0 {
89 gpio {
90 ralink,group = "i2c", "jtag", "uartf", "led";
91 ralink,function = "gpio";
92 };
93 };
94 };
95
96 &ethernet {
97 mtd-mac-address = <&factory 0x4>;
98 };
99
100 &esw {
101 mediatek,portmap = <0x2f>;
102 };
103
104 &wmac {
105 ralink,mtd-eeprom = <&factory 0>;
106 };
107
108 &ehci {
109 status = "okay";
110 };
111
112 &ohci {
113 status = "okay";
114 };