2016-11-13 22:36:00 +00:00
|
|
|
#include "rt5350.dtsi"
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
2024-02-07 13:48:43 +00:00
|
|
|
#include <dt-bindings/leds/common.h>
|
2016-11-13 22:36:00 +00:00
|
|
|
|
|
|
|
/ {
|
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 {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_status;
|
|
|
|
led-failsafe = &led_status;
|
|
|
|
led-running = &led_status;
|
|
|
|
led-upgrade = &led_status;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2016-11-13 22:36:00 +00:00
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
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>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2016-11-13 22:36:00 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
sms {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "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 {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_STATUS;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2016-11-13 22:36:00 +00:00
|
|
|
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
2g {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:2g";
|
2016-11-13 22:36:00 +00:00
|
|
|
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
3g {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:3g";
|
2016-11-13 22:36:00 +00:00
|
|
|
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
sstrengthr {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "red:sigstrength";
|
2016-11-13 22:36:00 +00:00
|
|
|
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
sstrengthg {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:sigstrength";
|
2016-11-13 22:36:00 +00:00
|
|
|
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";
|
|
|
|
|
2018-11-29 20:42:35 +00:00
|
|
|
flash@0 {
|
2016-11-13 22:36:00 +00:00
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <30000000>;
|
|
|
|
m25p,fast-read;
|
|
|
|
|
2018-08-01 20:32:34 +00: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 20:32:34 +00:00
|
|
|
label = "firmware";
|
|
|
|
reg = <0x10000 0x7e0000>;
|
|
|
|
};
|
|
|
|
|
2024-02-17 14:10:10 +00:00
|
|
|
partition@7f0000 {
|
2018-08-01 20:32:34 +00:00
|
|
|
label = "config";
|
|
|
|
reg = <0x7f0000 0x10000>;
|
2023-10-02 02:12:02 +00:00
|
|
|
|
2023-11-22 23:48:24 +00:00
|
|
|
nvmem-layout {
|
|
|
|
compatible = "fixed-layout";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
macaddr_config_e07e: macaddr@e07e {
|
|
|
|
reg = <0xe07e 0x6>;
|
|
|
|
};
|
2023-10-02 02:12:02 +00:00
|
|
|
|
2023-11-22 23:48:24 +00:00
|
|
|
eeprom_config_e08a: eeprom@e08a {
|
|
|
|
reg = <0xe08a 0x200>;
|
|
|
|
};
|
2023-10-02 02:12:02 +00:00
|
|
|
};
|
2018-08-01 20:32:34 +00:00
|
|
|
};
|
2016-11-13 22:36:00 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-12-19 17:45:52 +00:00
|
|
|
&spi1 {
|
|
|
|
status = "okay";
|
|
|
|
|
2018-12-06 09:02:29 +00:00
|
|
|
spidev@0 {
|
2016-12-19 17:45:52 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2023-01-01 19:16:08 +00:00
|
|
|
compatible = "silabs,si3210";
|
2016-12-19 17:45:52 +00:00
|
|
|
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <1000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "i2c", "jtag", "uartf";
|
|
|
|
function = "gpio";
|
2016-11-13 22:36:00 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&esw {
|
|
|
|
mediatek,portmap = <0x2f>;
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
2021-04-02 21:50:02 +00:00
|
|
|
nvmem-cells = <&macaddr_config_e07e>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2016-11-13 22:36:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
ralink,led-polarity = <1>;
|
2023-10-02 02:12:02 +00:00
|
|
|
nvmem-cells = <&eeprom_config_e08a>, <&macaddr_config_e07e>;
|
|
|
|
nvmem-cell-names = "eeprom", "mac-address";
|
2016-11-13 22:36:00 +00:00
|
|
|
};
|