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
|
|
|
|
2016-11-12 05:43:08 +08:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
2013-04-03 17:59:46 +08:00
|
|
|
/ {
|
|
|
|
compatible = "ALL0256N", "ralink,rt3050-soc";
|
2016-11-21 15:46:48 +08:00
|
|
|
model = "Allnet ALL0256N (4M)";
|
2013-04-03 17:59:46 +08:00
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-04-03 17:59:46 +08:00
|
|
|
rssilow {
|
|
|
|
label = "all0256n:green:rssilow";
|
|
|
|
gpios = <&gpio0 14 1>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-04-03 17:59:46 +08:00
|
|
|
rssimed {
|
|
|
|
label = "all0256n:green:rssimed";
|
|
|
|
gpios = <&gpio0 12 1>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-04-03 17:59:46 +08:00
|
|
|
rssihigh {
|
|
|
|
label = "all0256n:green:rssihigh";
|
|
|
|
gpios = <&gpio0 13 1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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 0 1>;
|
2016-11-12 05:43:08 +08:00
|
|
|
linux,code = <KEY_RESTART>;
|
2013-04-03 17:59:46 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-05-10 18:41:46 +08:00
|
|
|
|
|
|
|
&gpio0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
m25p80@0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "jedec,spi-nor";
|
2016-05-15 01:22:08 +08:00
|
|
|
reg = <0>;
|
2016-05-10 18:41:46 +08:00
|
|
|
spi-max-frequency = <10000000>;
|
|
|
|
|
|
|
|
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 0x3c8000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
|
|
|
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&factory 0x28>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&esw {
|
|
|
|
mediatek,portmap = <0x3f>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
ralink,mtd-eeprom = <&factory 0>;
|
|
|
|
};
|