2013-08-01 22:31:15 +08:00
|
|
|
/dts-v1/;
|
|
|
|
|
2016-05-09 14:32:52 +08:00
|
|
|
#include "rt3050.dtsi"
|
2013-08-01 22:31:15 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "IP2202", "ralink,rt3052-soc";
|
|
|
|
model = "Poray IP2202";
|
|
|
|
|
2013-09-18 05:45:44 +08:00
|
|
|
pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
|
|
|
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
2013-08-01 22:31:15 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
cfi@1f000000 {
|
|
|
|
compatible = "cfi-flash";
|
|
|
|
reg = <0x1f000000 0x800000>;
|
|
|
|
bank-width = <2>;
|
|
|
|
device-width = <2>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
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 0x7b0000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-11-25 16:33:42 +08:00
|
|
|
ethernet@10100000 {
|
2014-07-27 04:36:09 +08:00
|
|
|
mtd-mac-address = <&factory 0x28>;
|
2013-11-25 16:33:42 +08:00
|
|
|
};
|
|
|
|
|
2013-08-01 22:31:15 +08:00
|
|
|
esw@10110000 {
|
2015-12-17 17:25:57 +08:00
|
|
|
mediatek,portmap = <0x2f>;
|
2013-08-01 22:31:15 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-08-01 22:31:15 +08:00
|
|
|
run {
|
|
|
|
label = "ip2202:green:run";
|
|
|
|
gpios = <&gpio0 9 1>;
|
|
|
|
};
|
2015-08-17 13:57:18 +08:00
|
|
|
|
2013-08-01 22:31:15 +08:00
|
|
|
net {
|
|
|
|
label = "ip2202:amber:net";
|
|
|
|
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-08-01 22:31:15 +08:00
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
gpios = <&gpio0 10 1>;
|
|
|
|
linux,code = <0x198>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
otg@101c0000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|