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>
|
2024-02-07 13:48:43 +00:00
|
|
|
#include <dt-bindings/leds/common.h>
|
2016-11-11 21:43:08 +00:00
|
|
|
|
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 {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "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 {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_STATUS;
|
|
|
|
color = <LED_COLOR_ID_BLUE>;
|
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 {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "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 {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_POWER;
|
|
|
|
color = <LED_COLOR_ID_BLUE>;
|
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 {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "i2c", "rgmii2", "spi", "ephy";
|
|
|
|
function = "gpio";
|
2019-12-22 20:26:01 +00:00
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
uartf_gpio {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "uartf";
|
|
|
|
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
|
|
|
&gpio2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
|
2020-05-14 13:41:31 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
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 {
|
2021-03-31 20:09:37 +00:00
|
|
|
mediatek,port4-gmac;
|
2021-04-03 18:42:51 +00:00
|
|
|
mediatek,ephy-base = /bits/ 8 <8>;
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|