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