2016-05-09 09:32:52 +03:00
|
|
|
#include "mt7620a.dtsi"
|
2015-11-24 18:29:02 +00:00
|
|
|
|
2017-07-29 10:14:07 +08:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2016-11-11 22:43:08 +01:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
2015-11-24 18:29:02 +00:00
|
|
|
/ {
|
2018-07-16 16:27:22 +08:00
|
|
|
aliases {
|
2018-08-28 06:54:27 +02:00
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
2021-05-05 19:48:01 +08:00
|
|
|
label-mac-device = ðernet;
|
2018-07-16 16:27:22 +08:00
|
|
|
};
|
|
|
|
|
2018-12-30 12:42:53 +01:00
|
|
|
leds {
|
2015-11-24 18:29:02 +00:00
|
|
|
compatible = "gpio-leds";
|
2019-09-20 14:03:02 +02:00
|
|
|
|
2021-04-04 11:55:41 +08:00
|
|
|
wlan {
|
|
|
|
label = "blue:wlan";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
|
2021-04-04 11:55:41 +08:00
|
|
|
linux,default-trigger = "phy0tpt";
|
2015-11-24 18:29:02 +00:00
|
|
|
};
|
2019-09-20 14:03:02 +02:00
|
|
|
|
2015-11-24 18:29:02 +00:00
|
|
|
usb {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "blue:usb";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
2018-08-13 17:14:08 +02:00
|
|
|
trigger-sources = <&ohci_port1>, <&ehci_port1>;
|
|
|
|
linux,default-trigger = "usbport";
|
2015-11-24 18:29:02 +00:00
|
|
|
};
|
2019-09-20 14:03:02 +02:00
|
|
|
|
2018-07-16 16:27:22 +08:00
|
|
|
led_power: power {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "blue:power";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
|
2015-11-24 18:29:02 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 12:17:25 +01:00
|
|
|
keys {
|
2019-09-20 14:03:02 +02:00
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
2015-11-24 18:29:02 +00:00
|
|
|
reset {
|
|
|
|
label = "reset";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
2016-11-11 22:43:08 +01:00
|
|
|
linux,code = <KEY_RESTART>;
|
2015-11-24 18:29:02 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-05-10 13:41:46 +03:00
|
|
|
|
|
|
|
&gpio1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio3 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
2020-05-07 23:15:27 +09:00
|
|
|
flash@0 {
|
2021-02-02 16:10:32 +08:00
|
|
|
compatible = "jedec,spi-nor";
|
2016-05-14 19:22:08 +02:00
|
|
|
reg = <0>;
|
2021-03-21 22:43:59 +08:00
|
|
|
spi-max-frequency = <80000000>;
|
2019-01-13 14:25:05 +08:00
|
|
|
m25p,fast-read;
|
2016-05-10 13:41:46 +03:00
|
|
|
|
2018-08-01 21:32:34 +01: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;
|
|
|
|
};
|
|
|
|
|
2021-05-16 21:21:09 +08:00
|
|
|
firmware: partition@50000 {
|
2018-11-28 12:28:35 +09:00
|
|
|
compatible = "denx,uimage";
|
2018-08-01 21:32:34 +01:00
|
|
|
label = "firmware";
|
2021-05-16 21:21:09 +08:00
|
|
|
/* reg property is set based on flash size in DTS files */
|
2018-08-01 21:32:34 +01:00
|
|
|
};
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-22 21:26:01 +01:00
|
|
|
&state_default {
|
|
|
|
default {
|
2021-04-04 11:55:41 +08:00
|
|
|
groups = "i2c", "rgmii1", "wled";
|
2020-04-12 20:58:29 +08:00
|
|
|
function = "gpio";
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
pinctrl-names = "default";
|
2020-05-14 15:41:31 +02:00
|
|
|
|
2021-05-05 19:48:01 +08:00
|
|
|
mtd-mac-address = <&factory 0x28>;
|
2020-05-14 15:41:31 +02:00
|
|
|
|
2016-05-10 13:41:46 +03:00
|
|
|
mediatek,portmap = "llllw";
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
2020-05-07 22:13:27 +09:00
|
|
|
ralink,mtd-eeprom = <&factory 0x0>;
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
&sdhci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|