ramips: add support for Sitecom WLR-6000
[oweals/openwrt.git] / target / linux / ramips / dts / VR500.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
9         model = "Planex VR500";
10
11         memory@0 {
12                 device_type = "memory";
13                 reg = <0x0 0x10000000>;
14         };
15
16         chosen {
17                 bootargs = "console=ttyS0,57600";
18         };
19
20         gpio-leds {
21                 compatible = "gpio-leds";
22
23                 power {
24                         label = "vr500:green:power";
25                         gpios = <&gpio1 13 1>;
26                 };
27         };
28
29         gpio-keys-polled {
30                 compatible = "gpio-keys-polled";
31                 #address-cells = <1>;
32                 #size-cells = <0>;
33                 poll-interval = <20>;
34
35                 reset {
36                         label = "reset";
37                         gpios = <&gpio1 15 1>;
38                         linux,code = <KEY_RESTART>;
39                 };
40         };
41 };
42
43 &xhci {
44         status = "okay";
45 };
46
47 &spi0 {
48         status = "okay";
49
50         m25p80@0 {
51                 #address-cells = <1>;
52                 #size-cells = <1>;
53                 compatible = "jedec,spi-nor";
54                 reg = <0>;
55                 linux,modalias = "m25p80";
56                 spi-max-frequency = <10000000>;
57
58                 partition@0 {
59                         label = "u-boot";
60                         reg = <0x0 0x30000>;
61                         read-only;
62                 };
63
64                 partition@30000 {
65                         label = "u-boot-env";
66                         reg = <0x30000 0x10000>;
67                         read-only;
68                 };
69
70                 factory: partition@40000 {
71                         label = "factory";
72                         reg = <0x40000 0x10000>;
73                         read-only;
74                 };
75
76                 partition@50000 {
77                         label = "firmware";
78                         reg = <0x50000 0x3fb0000>;
79                 };
80         };
81 };
82
83 &pinctrl {
84         state_default: pinctrl0 {
85                 gpio {
86                         ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
87                         ralink,function = "gpio";
88                 };
89         };
90 };
91
92 &pcie {
93         status = "disabled";
94 };