2014-02-18 13:33:25 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
2016-05-09 06:32:52 +00:00
|
|
|
#include "mt7620a.dtsi"
|
2014-02-18 13:33:25 +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>
|
|
|
|
|
2014-02-18 13:33:25 +00:00
|
|
|
/ {
|
2017-07-29 02:14:07 +00:00
|
|
|
compatible = "sercomm,na930", "ralink,mt7620a-soc";
|
2014-02-18 13:33:25 +00:00
|
|
|
model = "Sercomm NA930";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2014-02-18 13:33:25 +00:00
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS1,57600";
|
|
|
|
};
|
|
|
|
|
|
|
|
nand {
|
|
|
|
compatible = "mtk,mt7620-nand";
|
2015-08-17 05:57:18 +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 0x20000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@200000 {
|
|
|
|
label = "factory";
|
|
|
|
reg = <0x200000 0x40000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@240000 {
|
|
|
|
label = "Config";
|
|
|
|
reg = <0x240000 0x400000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@640000 {
|
2018-11-28 03:28:35 +00:00
|
|
|
compatible = "denx,uimage";
|
2018-08-01 20:32:34 +00:00
|
|
|
label = "firmware";
|
|
|
|
reg = <0x640000 0x1400000>;
|
|
|
|
};
|
2014-02-18 13:33:25 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2019-09-20 12:03:02 +00:00
|
|
|
compatible = "gpio-keys";
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-02-18 13:33:25 +00:00
|
|
|
reset {
|
|
|
|
label = "reset";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
2014-02-18 13:33:25 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-02-18 13:33:25 +00:00
|
|
|
zwave {
|
|
|
|
label = "zwave";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <BTN_0>;
|
2014-02-18 13:33:25 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-02-18 13:33:25 +00:00
|
|
|
wps {
|
|
|
|
label = "wps";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
2014-02-18 13:33:25 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2014-02-18 13:33:25 +00:00
|
|
|
compatible = "gpio-leds";
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-02-18 13:33:25 +00:00
|
|
|
zwave {
|
|
|
|
label = "na930:blue:zwave";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
|
2014-02-18 13:33:25 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-02-18 13:33:25 +00:00
|
|
|
status {
|
|
|
|
label = "na930:blue:status";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
|
2018-08-13 15:14:08 +00:00
|
|
|
trigger-sources = <&ohci_port1>, <&ehci_port1>;
|
|
|
|
linux,default-trigger = "usbport";
|
2014-02-18 13:33:25 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-02-18 13:33:25 +00:00
|
|
|
service {
|
|
|
|
label = "na930:blue:service";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
|
2014-02-18 13:33:25 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_power: power {
|
2014-02-18 13:33:25 +00:00
|
|
|
label = "na930:blue:power";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio2 29 GPIO_ACTIVE_LOW>;
|
2014-02-18 13:33:25 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_export {
|
|
|
|
compatible = "gpio-export";
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
telit {
|
|
|
|
gpio-export,name = "telit";
|
|
|
|
gpio-export,output = <1>;
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
|
2014-02-18 13:33:25 +00:00
|
|
|
};
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
|
|
|
ralink,group = "i2c", "rgmii2", "spi", "ephy";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
uartf_gpio {
|
|
|
|
ralink,group = "uartf";
|
|
|
|
ralink,function = "gpio uartf";
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-02-18 13:33:25 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&gpio1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
|
|
|
|
mediatek,portmap = "llllw";
|
|
|
|
|
|
|
|
port@4 {
|
|
|
|
status = "okay";
|
|
|
|
phy-handle = <&phy4>;
|
|
|
|
phy-mode = "rgmii";
|
2014-02-18 13:33:25 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
port@5 {
|
2014-02-18 13:33:25 +00:00
|
|
|
status = "okay";
|
2016-05-10 10:41:46 +00:00
|
|
|
phy-handle = <&phy5>;
|
|
|
|
phy-mode = "rgmii";
|
2014-02-18 13:33:25 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
mdio-bus {
|
2014-02-18 13:33:25 +00:00
|
|
|
status = "okay";
|
2016-05-10 10:41:46 +00:00
|
|
|
|
|
|
|
phy4: ethernet-phy@4 {
|
|
|
|
reg = <4>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
|
|
|
|
|
|
|
phy5: ethernet-phy@5 {
|
|
|
|
reg = <5>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
2014-02-18 13:33:25 +00:00
|
|
|
};
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
|
|
|
|
&gsw {
|
|
|
|
mediatek,port4 = "gmac";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|