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