ramips: add support for Planex VR500.
[lede-git/.git] / target / linux / ramips / dts / VR500.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6         compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
7         model = "Planex VR500";
8
9         memory@0 {
10                 device_type = "memory";
11                 reg = <0x0 0x10000000>;
12         };
13
14         chosen {
15                 bootargs = "console=ttyS0,57600";
16         };
17
18         gpio-leds {
19                 compatible = "gpio-leds";
20
21                 power {
22                         label = "vr500:green:power";
23                         gpios = <&gpio1 13 1>;
24                 };
25         };
26
27         gpio-keys-polled {
28                 compatible = "gpio-keys-polled";
29                 #address-cells = <1>;
30                 #size-cells = <0>;
31                 poll-interval = <20>;
32
33                 reset {
34                         label = "reset";
35                         gpios = <&gpio1 15 1>;
36                         linux,code = <0x198>;
37                 };
38         };
39 };
40
41 &xhci {
42         status = "okay";
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";
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 0x3fb0000>;
77                 };
78         };
79 };
80
81 &pinctrl {
82         state_default: pinctrl0 {
83                 gpio {
84                         ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
85                         ralink,function = "gpio";
86                 };
87         };
88 };
89
90 &pcie {
91         status = "disabled";
92 };