2016-05-09 06:32:52 +00:00
|
|
|
#include "mt7620a.dtsi"
|
2014-08-03 11:13:52 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200";
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <20>;
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
gpios = <&gpio0 11 1>;
|
|
|
|
linux,code = <0x198>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2014-08-03 11:13:52 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&gpio0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio3 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
m25p80@0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "jedec,spi-nor";
|
2016-05-14 17:22:08 +00:00
|
|
|
reg = <0>;
|
2016-05-10 10:41:46 +00:00
|
|
|
linux,modalias = "m25p80", "w25q128";
|
|
|
|
spi-max-frequency = <10000000>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x0 0x30000>;
|
|
|
|
read-only;
|
2014-08-03 11:13:52 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
partition@30000 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x30000 0x10000>;
|
|
|
|
read-only;
|
2014-08-03 11:13:52 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
factory: partition@40000 {
|
|
|
|
label = "factory";
|
|
|
|
reg = <0x40000 0x10000>;
|
|
|
|
read-only;
|
2014-08-03 11:13:52 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
partition@50000 {
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x50000 0xfb0000>;
|
2014-08-03 11:13:52 +00:00
|
|
|
};
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
2014-08-03 11:13:52 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-08-03 11:13:52 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-08-03 11:13:52 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
2015-02-09 12:15:00 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
pcie-bridge {
|
|
|
|
mt76@0,0 {
|
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
device_type = "pci";
|
|
|
|
mediatek,mtd-eeprom = <&factory 0x8000>;
|
|
|
|
mediatek,2ghz = <0>;
|
2015-02-09 12:15:00 +00:00
|
|
|
};
|
2014-08-03 11:13:52 +00:00
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
2014-08-03 11:13:52 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&wmac {
|
|
|
|
ralink,mtd-eeprom = <&factory 0>;
|
|
|
|
};
|
2014-08-03 11:13:52 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&pinctrl {
|
2016-05-18 20:02:52 +00:00
|
|
|
state_default: pinctrl0 {
|
2016-05-10 10:41:46 +00:00
|
|
|
gpio {
|
|
|
|
ralink,group = "uartf", "wled", "nd_sd";
|
|
|
|
ralink,function = "gpio";
|
2014-08-03 11:13:52 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
pa {
|
|
|
|
ralink,group = "pa";
|
|
|
|
ralink,function = "pa";
|
2014-08-03 11:13:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|