kernel: bump 4.9 to 4.9.65
[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         memory@0 {
13                 device_type = "memory";
14                 reg = <0x0 0x10000000>;
15         };
16
17         chosen {
18                 bootargs = "console=ttyS0,57600";
19         };
20
21         gpio-leds {
22                 compatible = "gpio-leds";
23
24                 power {
25                         label = "vr500:green:power";
26                         gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
27                 };
28         };
29
30         gpio-keys-polled {
31                 compatible = "gpio-keys-polled";
32                 #address-cells = <1>;
33                 #size-cells = <0>;
34                 poll-interval = <20>;
35
36                 reset {
37                         label = "reset";
38                         gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
39                         linux,code = <KEY_RESTART>;
40                 };
41         };
42 };
43
44 &spi0 {
45         status = "okay";
46
47         m25p80@0 {
48                 #address-cells = <1>;
49                 #size-cells = <1>;
50                 compatible = "jedec,spi-nor";
51                 reg = <0>;
52                 spi-max-frequency = <10000000>;
53                 m25p,chunked-io = <32>;
54
55                 partition@0 {
56                         label = "u-boot";
57                         reg = <0x0 0x30000>;
58                         read-only;
59                 };
60
61                 partition@30000 {
62                         label = "u-boot-env";
63                         reg = <0x30000 0x10000>;
64                         read-only;
65                 };
66
67                 factory: partition@40000 {
68                         label = "factory";
69                         reg = <0x40000 0x10000>;
70                         read-only;
71                 };
72
73                 partition@50000 {
74                         label = "firmware";
75                         reg = <0x50000 0x3fb0000>;
76                 };
77         };
78 };
79
80 &pinctrl {
81         state_default: pinctrl0 {
82                 gpio {
83                         ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
84                         ralink,function = "gpio";
85                 };
86         };
87 };