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