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