ramips: add support for indicating the boot state using multiple leds
[openwrt/staging/mkresin.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 gpio-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 gpio-keys-polled {
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 m25p,chunked-io = <32>;
57
58 partitions {
59 compatible = "fixed-partitions";
60 #address-cells = <1>;
61 #size-cells = <1>;
62
63 partition@0 {
64 label = "u-boot";
65 reg = <0x0 0x30000>;
66 read-only;
67 };
68
69 partition@30000 {
70 label = "u-boot-env";
71 reg = <0x30000 0x10000>;
72 read-only;
73 };
74
75 factory: partition@40000 {
76 label = "factory";
77 reg = <0x40000 0x10000>;
78 read-only;
79 };
80
81 partition@50000 {
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 };