lede/target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi

128 lines
1.9 KiB
Plaintext
Raw Normal View History

2019-12-07 20:13:33 -08:00
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &ethernet;
2019-12-07 20:13:33 -08:00
};
leds {
compatible = "gpio-leds";
wlan {
label = "blue:wlan";
2019-12-07 20:13:33 -08:00
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
2019-12-07 20:13:33 -08:00
};
2019-12-07 20:13:33 -08:00
usb {
label = "blue:usb";
2019-12-07 20:13:33 -08:00
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
linux,default-trigger = "usbport";
};
2019-12-07 20:13:33 -08:00
led_power: power {
label = "blue:power";
2019-12-07 20:13:33 -08:00
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys";
2019-12-07 20:13:33 -08:00
reset {
label = "reset";
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
};
&gpio1 {
status = "okay";
};
&gpio3 {
status = "okay";
};
&spi0 {
status = "okay";
2020-07-02 23:30:56 +08:00
flash@0 {
compatible = "jedec,spi-nor";
2019-12-07 20:13:33 -08:00
reg = <0>;
spi-max-frequency = <80000000>;
2019-12-07 20:13:33 -08:00
m25p,fast-read;
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;
};
firmware: partition@50000 {
2019-12-07 20:13:33 -08:00
compatible = "denx,uimage";
label = "firmware";
/* reg property is set based on flash size in DTS files */
2019-12-07 20:13:33 -08:00
};
};
};
};
&state_default {
default {
groups = "i2c", "rgmii1", "wled";
2020-07-02 23:30:56 +08:00
function = "gpio";
2019-12-07 20:13:33 -08:00
};
};
&ethernet {
pinctrl-names = "default";
2021-07-13 00:37:50 +08:00
pinctrl-0 = <&ephy_pins>;
2020-07-02 23:30:56 +08:00
mtd-mac-address = <&factory 0x28>;
2020-07-02 23:30:56 +08:00
2019-12-07 20:13:33 -08:00
mediatek,portmap = "llllw";
};
&wmac {
2020-07-02 23:30:56 +08:00
ralink,mtd-eeprom = <&factory 0x0>;
2019-12-07 20:13:33 -08:00
};
&sdhci {
status = "okay";
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};