ramips: mt7621: add compatible strings
[openwrt/openwrt.git] / target / linux / ramips / dts / Timecloud.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "thunder,timecloud", "mediatek,mt7621-soc";
9 model = "Thunder Timecloud";
10
11 memory@0 {
12 device_type = "memory";
13 reg = <0x0 0x10000000>;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 gpio-leds {
21 compatible = "gpio-leds";
22
23 statw {
24 label = "timecloud:white:status";
25 gpios = <&gpio0 7 0>;
26 };
27
28 stato {
29 label = "timecloud:orange:status";
30 gpios = <&gpio0 8 0>;
31 };
32
33 };
34
35 gpio-keys-polled {
36 compatible = "gpio-keys-polled";
37 #address-cells = <1>;
38 #size-cells = <0>;
39 poll-interval = <20>;
40
41 reset {
42 label = "reset";
43 gpios = <&gpio0 13 1>;
44 linux,code = <KEY_RESTART>;
45 };
46
47 BTN_0 {
48 label = "BTN_0";
49 gpios = <&gpio0 4 1>;
50 linux,code = <BTN_0>;
51 };
52 };
53 };
54
55 &sdhci {
56 status = "okay";
57
58 pinctrl-names = "default";
59 pinctrl-0 = <&sdhci_pins>;
60 };
61
62 &spi0 {
63 status = "okay";
64
65 m25p80@0 {
66 #address-cells = <1>;
67 #size-cells = <1>;
68 compatible = "jedec,spi-nor";
69 reg = <0>;
70 spi-max-frequency = <10000000>;
71 m25p,chunked-io = <32>;
72
73 partition@0 {
74 label = "u-boot";
75 reg = <0x0 0x30000>;
76 read-only;
77 };
78
79 partition@30000 {
80 label = "u-boot-env";
81 reg = <0x30000 0x10000>;
82 read-only;
83 };
84
85 factory: partition@40000 {
86 label = "factory";
87 reg = <0x40000 0x10000>;
88 read-only;
89 };
90
91 partition@50000 {
92 label = "firmware";
93 reg = <0x50000 0xfb0000>;
94 };
95 };
96 };
97
98 &ethernet {
99 mtd-mac-address = <&factory 0xe000>;
100 };
101
102 &pinctrl {
103 state_default: pinctrl0 {
104 gpio {
105 ralink,group = "i2c", "uart2", "jtag";
106 ralink,function = "gpio";
107 };
108 };
109 };