ramips: order mt7621.mk alphabetical
[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 = "mediatek,mt7621-eval-board", "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 pinctrl-names = "default";
58 pinctrl-0 = <&sdhci_pins>;
59 };
60
61 &xhci {
62 status = "okay";
63 };
64
65 &spi0 {
66 status = "okay";
67
68 m25p80@0 {
69 #address-cells = <1>;
70 #size-cells = <1>;
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 linux,modalias = "m25p80";
74 spi-max-frequency = <10000000>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x0 0x30000>;
79 read-only;
80 };
81
82 partition@30000 {
83 label = "u-boot-env";
84 reg = <0x30000 0x10000>;
85 read-only;
86 };
87
88 factory: partition@40000 {
89 label = "factory";
90 reg = <0x40000 0x10000>;
91 read-only;
92 };
93
94 partition@50000 {
95 label = "firmware";
96 reg = <0x50000 0xfb0000>;
97 };
98 };
99 };
100
101 &ethernet {
102 mtd-mac-address = <&factory 0xe000>;
103 };
104
105 &pinctrl {
106 state_default: pinctrl0 {
107 gpio {
108 ralink,group = "i2c", "uart2", "jtag";
109 ralink,function = "gpio";
110 };
111 };
112 };