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