2014-11-03 08:00:13 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
2016-05-09 06:32:52 +00:00
|
|
|
#include "rt2880.dtsi"
|
2014-11-03 08:00:13 +00:00
|
|
|
|
2017-07-29 02:14:07 +00:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2016-11-11 21:43:08 +00:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
2014-11-03 08:00:13 +00:00
|
|
|
/ {
|
2017-07-29 02:14:07 +00:00
|
|
|
compatible = "airlink101,ar670w", "ralink,rt2880-soc";
|
2014-11-03 08:00:13 +00:00
|
|
|
model = "Airlink101 AR670W";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
|
|
|
led-status = &led_power;
|
|
|
|
};
|
|
|
|
|
2014-11-03 08:00:13 +00:00
|
|
|
cfi@bdc00000 {
|
|
|
|
compatible = "cfi-flash";
|
|
|
|
reg = <0xbc400000 0x800000>;
|
|
|
|
bank-width = <2>;
|
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
reg = <0x0 0x30000>;
|
|
|
|
label = "u-boot";
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
factory: partition@30000 {
|
|
|
|
reg = <0x30000 0x10000>;
|
|
|
|
label = "factory";
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@40000 {
|
|
|
|
reg = <0x40000 0x3c0000>;
|
|
|
|
label = "firmware";
|
|
|
|
};
|
2014-11-03 08:00:13 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_power: power {
|
2014-11-03 08:00:13 +00:00
|
|
|
label = "ar670w:green:power";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
|
2014-11-03 08:00:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wpsblue {
|
|
|
|
label = "ar670w:blue:wps";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
2014-11-03 08:00:13 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
poll-interval = <100>;
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-11-03 08:00:13 +00:00
|
|
|
wps {
|
|
|
|
label = "wps";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
2014-11-03 08:00:13 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-11-03 08:00:13 +00:00
|
|
|
reset {
|
|
|
|
label = "reset";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
2014-11-03 08:00:13 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
|
|
|
|
&gpio0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
|
|
|
ralink,group = "i2c", "spi", "uartlite";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
status = "okay";
|
|
|
|
mtd-mac-address = <&factory 0x2004>;
|
|
|
|
|
|
|
|
port@0 {
|
|
|
|
phy-handle = <&phy0>;
|
|
|
|
phy-mode = "mii";
|
|
|
|
};
|
|
|
|
|
|
|
|
mdio-bus {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
phy0: ethernet-phy@0 {
|
|
|
|
phy-mode = "mii";
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
status = "okay";
|
|
|
|
ralink,mtd-eeprom = <&factory 0x2000>;
|
|
|
|
};
|