2016-07-24 15:37:52 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include "rt3352.dtsi"
|
|
|
|
|
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-07-24 15:37:52 +00:00
|
|
|
/ {
|
2017-07-29 02:14:07 +00:00
|
|
|
compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc";
|
2016-07-24 15:37:52 +00:00
|
|
|
model = "ZyXEL NBG-419N v2";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
|
|
|
led-status = &led_power;
|
|
|
|
};
|
|
|
|
|
2016-07-24 15:37:52 +00:00
|
|
|
palmbus@10000000 {
|
|
|
|
spi@b00 {
|
|
|
|
status = "okay";
|
|
|
|
m25p80@0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2017-02-02 21:11:23 +00:00
|
|
|
compatible = "jedec,spi-nor";
|
2016-07-24 15:37:52 +00:00
|
|
|
reg = <0 0>;
|
|
|
|
spi-max-frequency = <10000000>;
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@50000 {
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x50000 0x7b0000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_power: power {
|
2016-07-24 15:37:52 +00:00
|
|
|
label = "nbg-419n2:green:power";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
|
2016-07-24 15:37:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "nbg-419n2:green:wps";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
|
2016-07-24 15:37:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
usb {
|
|
|
|
label = "nbg-419n2:green:usb";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
2016-07-24 15:37:52 +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 10 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
2016-07-24 15:37:52 +00:00
|
|
|
};
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
2016-07-24 15:37:52 +00:00
|
|
|
};
|
|
|
|
rfkill {
|
|
|
|
label = "rfkill";
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,input-type = <EV_SW>;
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_RFKILL>;
|
2016-07-24 15:37:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
|
|
|
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&factory 0x28>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&esw {
|
2017-02-14 13:08:59 +00:00
|
|
|
mediatek,portmap = <0x2f>;
|
2016-07-24 15:37:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
ralink,mtd-eeprom = <&factory 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|