2016-05-09 06:32:52 +00:00
|
|
|
#include "mt7628an.dtsi"
|
2016-01-01 21:19:50 +00:00
|
|
|
|
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-01-01 21:19:50 +00:00
|
|
|
/ {
|
2017-07-29 02:14:07 +00:00
|
|
|
compatible = "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
|
|
|
|
|
2016-01-01 21:19:50 +00:00
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200";
|
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +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 5 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
2016-01-01 21:19:50 +00:00
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
};
|
2016-01-01 21:19:50 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
m25p80@0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "jedec,spi-nor";
|
2016-05-14 17:22:08 +00:00
|
|
|
reg = <0>;
|
2016-05-10 10:41:46 +00:00
|
|
|
spi-max-frequency = <10000000>;
|
|
|
|
m25p,chunked-io = <32>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x0 0x30000>;
|
|
|
|
read-only;
|
2016-01-01 21:19:50 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
partition@30000 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x30000 0x10000>;
|
|
|
|
read-only;
|
2016-01-01 21:19:50 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
factory: partition@40000 {
|
|
|
|
label = "factory";
|
|
|
|
reg = <0x40000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
2016-01-01 21:19:50 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
partition@50000 {
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x50000 0x1fb0000>;
|
|
|
|
};
|
2016-01-01 21:19:50 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
spidev@1 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2016-05-18 14:56:31 +00:00
|
|
|
compatible = "linux,spidev";
|
2016-05-14 17:22:08 +00:00
|
|
|
reg = <1>;
|
2016-05-10 10:41:46 +00:00
|
|
|
spi-max-frequency = <10000000>;
|
2016-01-01 21:19:50 +00:00
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
2016-01-01 21:19:50 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&uart1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-01-01 21:19:50 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&i2c {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-01-01 21:19:50 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&factory 0x4>;
|
2017-02-14 13:08:59 +00:00
|
|
|
mediatek,portmap = "llllw";
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
2016-01-01 21:19:50 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&sdhci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-01-01 21:19:50 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
2016-01-01 21:19:50 +00:00
|
|
|
};
|
|
|
|
|
2016-05-11 19:24:12 +00:00
|
|
|
&wmac {
|
|
|
|
status = "okay";
|
|
|
|
};
|