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