2016-05-09 06:32:52 +00:00
|
|
|
#include "mt7620a.dtsi"
|
2013-06-23 15:50:49 +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>
|
|
|
|
|
2013-06-23 15:50:49 +00:00
|
|
|
/ {
|
2019-07-03 21:22:02 +00:00
|
|
|
compatible = "ralink,mt7620a-evb", "ralink,mt7620a-soc";
|
2013-06-23 15:50:49 +00:00
|
|
|
model = "Ralink MT7620a + MT7610e evaluation board";
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2016-05-10 10:41:46 +00:00
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
s2 {
|
|
|
|
label = "S2";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <BTN_0>;
|
2013-06-23 15:50:49 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
s3 {
|
|
|
|
label = "S3";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <BTN_1>;
|
2013-09-17 21:45:44 +00:00
|
|
|
};
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
2013-09-17 21:45:44 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
2013-10-08 21:10:15 +00:00
|
|
|
|
2020-05-07 14:15:27 +00:00
|
|
|
flash@0 {
|
2016-05-10 10:41:46 +00:00
|
|
|
compatible = "jedec,spi-nor";
|
2016-05-14 17:22:08 +00:00
|
|
|
reg = <0>;
|
2016-05-10 10:41:46 +00:00
|
|
|
spi-max-frequency = <10000000>;
|
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#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 {
|
2018-11-28 03:28:35 +00:00
|
|
|
compatible = "denx,uimage";
|
2018-08-01 20:32:34 +00:00
|
|
|
label = "firmware";
|
|
|
|
reg = <0x50000 0x7b0000>;
|
|
|
|
};
|
2013-06-23 15:50:49 +00:00
|
|
|
};
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
2013-06-23 15:50:49 +00:00
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "i2c", "uartf";
|
|
|
|
function = "gpio";
|
2013-06-23 15:50:49 +00:00
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
|
2020-05-14 13:41:31 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
mediatek,portmap = "llllw";
|
2013-06-23 15:50:49 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
port@4 {
|
2013-06-23 15:50:49 +00:00
|
|
|
status = "okay";
|
2016-05-10 10:41:46 +00:00
|
|
|
phy-mode = "rgmii";
|
|
|
|
phy-handle = <&phy4>;
|
2013-06-23 15:50:49 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
port@5 {
|
2013-06-23 15:50:49 +00:00
|
|
|
status = "okay";
|
2016-05-10 10:41:46 +00:00
|
|
|
phy-mode = "rgmii";
|
|
|
|
phy-handle = <&phy5>;
|
2013-06-23 15:50:49 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
mdio-bus {
|
|
|
|
status = "okay";
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
phy4: ethernet-phy@4 {
|
|
|
|
reg = <4>;
|
|
|
|
phy-mode = "rgmii";
|
2013-06-23 15:50:49 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
phy5: ethernet-phy@5 {
|
|
|
|
reg = <5>;
|
|
|
|
phy-mode = "rgmii";
|
2013-06-23 15:50:49 +00:00
|
|
|
};
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
2014-08-25 16:31:13 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&gsw {
|
2021-03-31 20:09:37 +00:00
|
|
|
mediatek,port4-gmac;
|
2021-04-03 18:42:51 +00:00
|
|
|
mediatek,ephy-base = /bits/ 8 <8>;
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
2014-08-25 16:31:13 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
&sdhci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
2013-06-23 15:50:49 +00:00
|
|
|
};
|