2013-04-03 17:59:46 +08:00
|
|
|
/dts-v1/;
|
|
|
|
|
2016-05-09 14:32:52 +08:00
|
|
|
#include "rt3050.dtsi"
|
2013-04-03 17:59:46 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "DIR-600-B1", "ralink,rt3050-soc";
|
|
|
|
model = "D-Link DIR-600 B1";
|
|
|
|
|
|
|
|
cfi@1f000000 {
|
|
|
|
compatible = "cfi-flash";
|
|
|
|
reg = <0x1f000000 0x800000>;
|
|
|
|
bank-width = <2>;
|
|
|
|
device-width = <2>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2013-04-09 22:19:24 +08:00
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x0 0x30000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2014-07-17 18:55:31 +08:00
|
|
|
devdata: partition@30000 {
|
2013-04-09 22:19:24 +08:00
|
|
|
label = "devdata";
|
|
|
|
reg = <0x30000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2013-11-26 17:51:57 +08:00
|
|
|
factory: partition@40000 {
|
2013-04-09 22:19:24 +08:00
|
|
|
label = "devconf";
|
|
|
|
reg = <0x40000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@50000 {
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x50000 0x3b0000>;
|
|
|
|
};
|
2013-04-03 17:59:46 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <20>;
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-04-03 17:59:46 +08:00
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
gpios = <&gpio0 10 1>;
|
|
|
|
linux,code = <0x198>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-04-03 17:59:46 +08:00
|
|
|
wps {
|
|
|
|
label = "wps";
|
|
|
|
gpios = <&gpio0 0 1>;
|
|
|
|
linux,code = <0x211>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-04-03 17:59:46 +08:00
|
|
|
status {
|
2015-08-17 14:24:34 +08:00
|
|
|
label = "dir-600-b1:amber:status";
|
2013-04-03 17:59:46 +08:00
|
|
|
gpios = <&gpio0 8 1>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-04-03 17:59:46 +08:00
|
|
|
status2 {
|
2015-08-17 14:24:34 +08:00
|
|
|
label = "dir-600-b1:green:status";
|
2013-04-03 17:59:46 +08:00
|
|
|
gpios = <&gpio0 9 1>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-04-03 17:59:46 +08:00
|
|
|
wan {
|
2015-08-17 14:24:34 +08:00
|
|
|
label = "dir-600-b1:amber:wan";
|
2013-04-03 17:59:46 +08:00
|
|
|
gpios = <&gpio0 14 1>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-04-03 17:59:46 +08:00
|
|
|
wan2 {
|
2015-08-17 14:24:34 +08:00
|
|
|
label = "dir-600-b1:green:wan";
|
2013-04-03 17:59:46 +08:00
|
|
|
gpios = <&gpio0 12 1>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-04-03 17:59:46 +08:00
|
|
|
wps {
|
2015-08-17 14:24:34 +08:00
|
|
|
label = "dir-600-b1:blue:wps";
|
2013-04-03 17:59:46 +08:00
|
|
|
gpios = <&gpio0 13 1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-05-10 18:41:46 +08:00
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
|
|
|
ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&devdata 0x4004>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&esw {
|
|
|
|
mediatek,portmap = <0x2f>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
ralink,mtd-eeprom = <&devdata 0x4000>;
|
|
|
|
};
|