ramips: mt7621: add compatible strings
[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 = "planex,vr500", "mediatek,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 &spi0 {
44         status = "okay";
45
46         m25p80@0 {
47                 #address-cells = <1>;
48                 #size-cells = <1>;
49                 compatible = "jedec,spi-nor";
50                 reg = <0>;
51                 spi-max-frequency = <10000000>;
52                 m25p,chunked-io = <32>;
53
54                 partition@0 {
55                         label = "u-boot";
56                         reg = <0x0 0x30000>;
57                         read-only;
58                 };
59
60                 partition@30000 {
61                         label = "u-boot-env";
62                         reg = <0x30000 0x10000>;
63                         read-only;
64                 };
65
66                 factory: partition@40000 {
67                         label = "factory";
68                         reg = <0x40000 0x10000>;
69                         read-only;
70                 };
71
72                 partition@50000 {
73                         label = "firmware";
74                         reg = <0x50000 0x3fb0000>;
75                 };
76         };
77 };
78
79 &pinctrl {
80         state_default: pinctrl0 {
81                 gpio {
82                         ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
83                         ralink,function = "gpio";
84                 };
85         };
86 };