2016-08-10 00:18:32 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include "mt7621.dtsi"
|
|
|
|
|
2017-07-29 02:14:07 +00:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2016-11-11 21:43:08 +00:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
2016-08-10 00:18:32 +00:00
|
|
|
/ {
|
2017-07-27 16:49:06 +00:00
|
|
|
compatible = "thunder,timecloud", "mediatek,mt7621-soc";
|
2016-08-10 00:18:32 +00:00
|
|
|
model = "Thunder Timecloud";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
|
|
|
led-status = &led_statuso;
|
|
|
|
};
|
|
|
|
|
2016-08-10 00:18:32 +00:00
|
|
|
memory@0 {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x0 0x10000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200";
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
statw {
|
|
|
|
label = "timecloud:white:status";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
|
2016-08-10 00:18:32 +00:00
|
|
|
};
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_statuso: stato {
|
2016-08-10 00:18:32 +00:00
|
|
|
label = "timecloud:orange:status";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
|
2016-08-10 00:18:32 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
poll-interval = <20>;
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
2016-08-10 00:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
BTN_0 {
|
|
|
|
label = "BTN_0";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <BTN_0>;
|
2016-08-10 00:18:32 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&sdhci {
|
|
|
|
status = "okay";
|
2016-11-18 07:39:05 +00:00
|
|
|
|
2016-08-10 00:18:32 +00:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&sdhci_pins>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
m25p80@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <10000000>;
|
2016-11-18 07:39:05 +00:00
|
|
|
m25p,chunked-io = <32>;
|
2016-08-10 00:18:32 +00:00
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x0 0x30000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@30000 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x30000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
factory: partition@40000 {
|
|
|
|
label = "factory";
|
|
|
|
reg = <0x40000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@50000 {
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x50000 0xfb0000>;
|
|
|
|
};
|
2016-08-10 00:18:32 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&factory 0xe000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
|
|
|
ralink,group = "i2c", "uart2", "jtag";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|