2016-11-15 12:04:33 +00:00
|
|
|
#include "mt7621.dtsi"
|
|
|
|
|
2016-11-15 11:36:09 +00:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2016-11-15 12:04:33 +00:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
|
|
|
/ {
|
2017-07-27 16:49:06 +00:00
|
|
|
compatible = "zbtlink,zbt-wg3526", "mediatek,mt7621-soc";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
|
|
|
led-status = &led_status;
|
|
|
|
};
|
|
|
|
|
2016-11-15 12:04:33 +00:00
|
|
|
memory@0 {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200";
|
|
|
|
};
|
|
|
|
|
|
|
|
palmbus: palmbus@1E000000 {
|
|
|
|
i2c@900 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <20>;
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
2016-11-15 11:36:09 +00:00
|
|
|
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
|
2016-11-15 12:04:33 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_status: status {
|
2017-04-01 08:46:44 +00:00
|
|
|
label = "zbt-wg3526:green:status";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
|
2016-11-15 12:04:33 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&sdhci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
m25p80@0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <10000000>;
|
2016-11-18 07:39:05 +00:00
|
|
|
m25p,chunked-io = <32>;
|
2016-11-15 12:04:33 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
firmware: partition@50000 {
|
|
|
|
label = "firmware";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
pcie0 {
|
2016-11-15 11:36:09 +00:00
|
|
|
wifi@14c3,7603 {
|
|
|
|
compatible = "pci14c3,7603";
|
2016-11-15 12:04:33 +00:00
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
mediatek,mtd-eeprom = <&factory 0x0000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pcie1 {
|
2016-11-15 11:36:09 +00:00
|
|
|
wifi@14c3,7662 {
|
|
|
|
compatible = "pci14c3,7662";
|
2016-11-15 12:04:33 +00:00
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
mediatek,mtd-eeprom = <&factory 0x8000>;
|
2017-02-01 15:37:14 +00:00
|
|
|
ieee80211-freq-limit = <5000000 6000000>;
|
2016-11-15 12:04:33 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&factory 0xe000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
2017-10-25 08:21:35 +00:00
|
|
|
ralink,group = "wdt", "rgmii2", "jtag", "mdio";
|
2016-11-15 12:04:33 +00:00
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|