2016-11-13 22:36:00 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include "rt5350.dtsi"
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
|
|
|
/ {
|
2017-07-29 02:14:07 +00:00
|
|
|
compatible = "dlink,dwr-512-b", "ralink,rt5350-soc";
|
2016-11-13 22:36:00 +00:00
|
|
|
model = "D-Link DWR-512 B";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
|
|
|
led-status = &led_status;
|
|
|
|
};
|
|
|
|
|
2016-11-13 22:36:00 +00:00
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <20>;
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
2017-07-18 20:55:53 +00:00
|
|
|
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
|
2016-11-13 22:36:00 +00:00
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
};
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
sms {
|
|
|
|
label = "dwr-512-b:green:sms";
|
2017-02-13 10:36:41 +00:00
|
|
|
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
|
2016-11-13 22:36:00 +00:00
|
|
|
};
|
2018-07-16 08:27:22 +00:00
|
|
|
led_status: status {
|
2016-11-13 22:36:00 +00:00
|
|
|
label = "dwr-512-b:green:status";
|
|
|
|
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
2g {
|
|
|
|
label = "dwr-512-b:green:2g";
|
|
|
|
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
3g {
|
|
|
|
label = "dwr-512-b:green:3g";
|
|
|
|
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
sstrengthr {
|
|
|
|
label = "dwr-512-b:red:sigstrength";
|
|
|
|
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
sstrengthg {
|
|
|
|
label = "dwr-512-b:green:sigstrength";
|
|
|
|
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-export {
|
|
|
|
compatible = "gpio-export";
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2017-02-14 13:12:24 +00:00
|
|
|
slic_int {
|
|
|
|
gpio-export,name = "slic_int";
|
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2016-11-13 22:36:00 +00:00
|
|
|
modem3g_enable {
|
|
|
|
gpio-export,name = "modem3g_enable";
|
|
|
|
gpio-export,output = <1>;
|
2017-12-16 23:02:06 +00:00
|
|
|
gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
|
2016-11-13 22:36:00 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
mx25l6405d@0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <30000000>;
|
|
|
|
m25p,fast-read;
|
|
|
|
|
|
|
|
partition@0 {
|
2018-04-05 16:01:41 +00:00
|
|
|
label = "jboot";
|
|
|
|
reg = <0x0 0x10000>;
|
2016-11-13 22:36:00 +00:00
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2018-04-05 16:01:41 +00:00
|
|
|
partition@10000 {
|
2016-11-13 22:36:00 +00:00
|
|
|
label = "firmware";
|
2018-04-05 16:01:41 +00:00
|
|
|
reg = <0x10000 0x7e0000>;
|
2016-11-13 22:36:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config: partition@7f0000 {
|
|
|
|
label = "config";
|
|
|
|
reg = <0x7f0000 0x10000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-12-19 17:45:52 +00:00
|
|
|
&spi1 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
spidev@1 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "siliconlabs,si3210";
|
|
|
|
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <1000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-11-13 22:36:00 +00:00
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
|
|
|
ralink,group = "i2c", "jtag", "uartf";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&esw {
|
|
|
|
mediatek,portmap = <0x2f>;
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&config 0xe07e>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
ralink,mtd-eeprom = <&config 0xe08a>;
|
|
|
|
ralink,led-polarity = <1>;
|
|
|
|
mtd-mac-address = <&config 0xe07e>;
|
|
|
|
};
|