kernel: bump 4.9 to 4.9.65
[oweals/openwrt.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         memory@0 {
13                 device_type = "memory";
14                 reg = <0x0 0x10000000>;
15         };
16
17         chosen {
18                 bootargs = "console=ttyS0,115200";
19         };
20
21         gpio-leds {
22                 compatible = "gpio-leds";
23
24                 statw {
25                         label = "timecloud:white:status";
26                         gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
27                 };
28
29                 stato {
30                         label = "timecloud:orange:status";
31                         gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
32                 };
33
34         };
35
36         gpio-keys-polled {
37                 compatible = "gpio-keys-polled";
38                 #address-cells = <1>;
39                 #size-cells = <0>;
40                 poll-interval = <20>;
41
42                 reset {
43                         label = "reset";
44                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
45                         linux,code = <KEY_RESTART>;
46                 };
47
48                 BTN_0 {
49                         label = "BTN_0";
50                         gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
51                         linux,code = <BTN_0>;
52                 };
53         };
54 };
55
56 &sdhci {
57         status = "okay";
58
59         pinctrl-names = "default";
60         pinctrl-0 = <&sdhci_pins>;
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                 spi-max-frequency = <10000000>;
72                 m25p,chunked-io = <32>;
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 };