2016-11-13 23:36:00 +01:00
|
|
|
#include "rt5350.dtsi"
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
|
|
|
/ {
|
2017-07-29 10:14:07 +08:00
|
|
|
compatible = "dlink,dwr-512-b", "ralink,rt5350-soc";
|
2016-11-13 23:36:00 +01:00
|
|
|
model = "D-Link DWR-512 B";
|
|
|
|
|
2018-07-16 16:27:22 +08:00
|
|
|
aliases {
|
2018-08-28 06:54:27 +02:00
|
|
|
led-boot = &led_status;
|
|
|
|
led-failsafe = &led_status;
|
|
|
|
led-running = &led_status;
|
|
|
|
led-upgrade = &led_status;
|
2018-07-16 16:27:22 +08:00
|
|
|
};
|
|
|
|
|
2018-12-30 12:17:25 +01:00
|
|
|
keys {
|
2016-11-13 23:36:00 +01:00
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
poll-interval = <20>;
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
2017-07-18 22:55:53 +02:00
|
|
|
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
|
2016-11-13 23:36:00 +01:00
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
};
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 12:42:53 +01:00
|
|
|
leds {
|
2016-11-13 23:36:00 +01:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
sms {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:sms";
|
2017-02-13 11:36:41 +01:00
|
|
|
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
|
2016-11-13 23:36:00 +01:00
|
|
|
};
|
2018-07-16 16:27:22 +08:00
|
|
|
led_status: status {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:status";
|
2016-11-13 23:36:00 +01:00
|
|
|
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
2g {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:2g";
|
2016-11-13 23:36:00 +01:00
|
|
|
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
3g {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:3g";
|
2016-11-13 23:36:00 +01:00
|
|
|
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
sstrengthr {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "red:sigstrength";
|
2016-11-13 23:36:00 +01:00
|
|
|
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
sstrengthg {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:sigstrength";
|
2016-11-13 23:36:00 +01:00
|
|
|
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-export {
|
|
|
|
compatible = "gpio-export";
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2017-02-14 14:12:24 +01:00
|
|
|
slic_int {
|
|
|
|
gpio-export,name = "slic_int";
|
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2016-11-13 23:36:00 +01:00
|
|
|
modem3g_enable {
|
|
|
|
gpio-export,name = "modem3g_enable";
|
|
|
|
gpio-export,output = <1>;
|
2017-12-17 00:02:06 +01:00
|
|
|
gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
|
2016-11-13 23:36:00 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
2018-11-29 20:42:35 +00:00
|
|
|
flash@0 {
|
2016-11-13 23:36:00 +01:00
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <30000000>;
|
|
|
|
m25p,fast-read;
|
|
|
|
|
2018-08-01 21:32:34 +01:00
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "jboot";
|
|
|
|
reg = <0x0 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@10000 {
|
2018-11-29 20:42:35 +00:00
|
|
|
compatible = "amit,jimage";
|
2018-08-01 21:32:34 +01:00
|
|
|
label = "firmware";
|
|
|
|
reg = <0x10000 0x7e0000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
config: partition@7f0000 {
|
|
|
|
label = "config";
|
|
|
|
reg = <0x7f0000 0x10000>;
|
|
|
|
};
|
2016-11-13 23:36:00 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-12-19 18:45:52 +01:00
|
|
|
&spi1 {
|
|
|
|
status = "okay";
|
|
|
|
|
2018-12-06 10:02:29 +01:00
|
|
|
spidev@0 {
|
2016-12-19 18:45:52 +01:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "siliconlabs,si3210";
|
|
|
|
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <1000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-22 21:26:01 +01:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 20:58:29 +08:00
|
|
|
groups = "i2c", "jtag", "uartf";
|
|
|
|
function = "gpio";
|
2016-11-13 23:36:00 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&esw {
|
|
|
|
mediatek,portmap = <0x2f>;
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
2021-04-02 23:50:02 +02:00
|
|
|
nvmem-cells = <&macaddr_config_e07e>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2016-11-13 23:36:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
ralink,mtd-eeprom = <&config 0xe08a>;
|
|
|
|
ralink,led-polarity = <1>;
|
2021-04-02 23:50:02 +02:00
|
|
|
nvmem-cells = <&macaddr_config_e07e>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
|
|
|
};
|
|
|
|
|
|
|
|
&config {
|
|
|
|
compatible = "nvmem-cells";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
macaddr_config_e07e: macaddr@e07e {
|
|
|
|
reg = <0xe07e 0x6>;
|
|
|
|
};
|
2016-11-13 23:36:00 +01:00
|
|
|
};
|