2013-04-03 09:59:46 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
2016-05-09 06:32:52 +00:00
|
|
|
#include "rt3050.dtsi"
|
2013-04-03 09:59:46 +00:00
|
|
|
|
2016-11-11 21:43:08 +00:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
2013-04-03 09:59:46 +00:00
|
|
|
/ {
|
|
|
|
compatible = "WL-351", "ralink,rt3052-soc";
|
|
|
|
model = "Sitecom WL-351 v1 002";
|
|
|
|
|
|
|
|
cfi@1f000000 {
|
|
|
|
compatible = "cfi-flash";
|
|
|
|
reg = <0x1f000000 0x800000>;
|
|
|
|
bank-width = <2>;
|
|
|
|
device-width = <2>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2013-04-09 14:19:24 +00:00
|
|
|
|
|
|
|
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 0x3b0000>;
|
|
|
|
};
|
2013-04-03 09:59:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2013-04-03 09:59:46 +00:00
|
|
|
power {
|
|
|
|
label = "wl-351:amber:power";
|
2013-04-07 11:47:03 +00:00
|
|
|
gpios = <&gpio0 8 1>;
|
2013-04-03 09:59:46 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2013-04-03 09:59:46 +00:00
|
|
|
unpopulated {
|
|
|
|
label = "wl-351:amber:unpopulated";
|
2013-04-07 11:47:03 +00:00
|
|
|
gpios = <&gpio0 12 1>;
|
2013-04-03 09:59:46 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2013-04-03 09:59:46 +00:00
|
|
|
unpopulated2 {
|
|
|
|
label = "wl-351:blue:unpopulated";
|
2013-04-07 11:47:03 +00:00
|
|
|
gpios = <&gpio0 13 1>;
|
2013-04-03 09:59:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <20>;
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2013-04-03 09:59:46 +00:00
|
|
|
reset {
|
|
|
|
label = "reset";
|
2013-04-07 11:47:03 +00:00
|
|
|
gpios = <&gpio0 10 1>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
2013-04-03 09:59:46 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2013-04-03 09:59:46 +00:00
|
|
|
wps {
|
|
|
|
label = "wps";
|
2013-04-07 11:47:03 +00:00
|
|
|
gpios = <&gpio0 0 1>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
2013-04-03 09:59:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
rtl8366rb {
|
2015-05-23 15:26:51 +00:00
|
|
|
compatible = "rtl8366rb";
|
2013-04-03 09:59:46 +00:00
|
|
|
gpio-sda = <&gpio0 1 0>;
|
|
|
|
gpio-sck = <&gpio0 2 0>;
|
|
|
|
};
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
2016-06-29 13:09:09 +00:00
|
|
|
ralink,group = "spi", "i2c", "jtag", "mdio", "uartf";
|
2016-05-10 10:41:46 +00:00
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
2016-06-29 13:09:09 +00:00
|
|
|
rgmii {
|
|
|
|
ralink,group = "rgmii";
|
|
|
|
ralink,function = "rgmii";
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&factory 0x4>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&esw {
|
2016-06-29 13:09:09 +00:00
|
|
|
ralink,rgmii = <1>;
|
2016-05-10 10:41:46 +00:00
|
|
|
mediatek,portmap = <0x3f>;
|
|
|
|
ralink,fct2 = <0x0002500c>;
|
|
|
|
/*
|
|
|
|
* ext phy base addr 31, rx/tx clock skew 0,
|
|
|
|
* turbo mii off, rgmi 3.3v off, port 5 polling off
|
|
|
|
* port5: enabled, gige, full-duplex, rx/tx-flow-control
|
|
|
|
* port6: enabled, gige, full-duplex, rx/tx-flow-control
|
|
|
|
*/
|
|
|
|
ralink,fpa2 = <0x1f003fff>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
ralink,mtd-eeprom = <&factory 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&otg {
|
|
|
|
status = "okay";
|
|
|
|
};
|