mediatek: fixes gpio for netcore n60 pro

This commit is contained in:
libriunk 2025-02-21 23:10:08 +08:00
parent 0146ee1968
commit 461364a4f4
2 changed files with 32 additions and 21 deletions

View File

@ -13,10 +13,10 @@
aliases { aliases {
serial0 = &uart0; serial0 = &uart0;
label-mac-device = &gmac0; label-mac-device = &gmac0;
led-boot = &led_status_red; led-boot = &led_power;
led-failsafe = &led_status_red; led-failsafe = &led_power;
led-running = &led_status_blue; led-running = &led_power;
led-upgrade = &led_status_blue; led-upgrade = &led_power;
}; };
chosen { chosen {
@ -46,17 +46,27 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
led_status_red: status_red { led_power: power {
label = "red:status"; label = "blue:power";
gpios = <&pio 29 GPIO_ACTIVE_LOW>; gpios = <&pio 29 GPIO_ACTIVE_LOW>;
}; };
led_status_blue: status_blue { usb {
label = "blue:status"; label = "blue:usb";
gpios = <&pio 30 GPIO_ACTIVE_LOW>;
};
wps {
label = "blue:wps";
gpios = <&pio 31 GPIO_ACTIVE_LOW>;
};
wan {
label = "blue:wan";
gpios = <&pio 32 GPIO_ACTIVE_LOW>; gpios = <&pio 32 GPIO_ACTIVE_LOW>;
}; };
}; };
reg_3p3v: regulator-3p3v { reg_3p3v: regulator-3p3v {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
regulator-name = "fixed-3.3V"; regulator-name = "fixed-3.3V";
@ -122,13 +132,11 @@
phy5: phy@5 { phy5: phy@5 {
compatible = "ethernet-phy-ieee802.3-c45"; compatible = "ethernet-phy-ieee802.3-c45";
reg = <5>; reg = <5>;
mxl,led-config = <0x0 0x0 0x0 0x3f0>;
}; };
phy6: phy@6 { phy6: phy@6 {
compatible = "ethernet-phy-ieee802.3-c45"; compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>; reg = <6>;
mxl,led-config = <0x0 0x0 0x0 0x3f0>;
}; };
switch: switch@0 { switch: switch@0 {
@ -275,6 +283,12 @@
}; };
}; };
&ssusb {
vusb33-supply = <&reg_3p3v>;
vbus-supply = <&reg_5v>;
status = "okay";
};
&trng { &trng {
status = "okay"; status = "okay";
}; };
@ -283,6 +297,10 @@
status = "okay"; status = "okay";
}; };
&usb_phy {
status = "okay";
};
&watchdog { &watchdog {
status = "okay"; status = "okay";
}; };
@ -308,13 +326,3 @@
reg = <0x1fef26 0x6>; reg = <0x1fef26 0x6>;
}; };
}; };
&ssusb {
vusb33-supply = <&reg_3p3v>;
vbus-supply = <&reg_5v>;
status = "okay";
};
&usb_phy {
status = "okay";
};

View File

@ -45,6 +45,9 @@ nokia,ea0326gmp)
ucidef_set_led_netdev "lan" "LAN" "green:lan" "br-lan" ucidef_set_led_netdev "lan" "LAN" "green:lan" "br-lan"
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1" ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
;; ;;
netcore,n60-pro)
ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1" "link tx rx"
;;
openembed,som7981) openembed,som7981)
ucidef_set_led_netdev "lanact" "LANACT" "amber:lan" "eth1" "rx tx" ucidef_set_led_netdev "lanact" "LANACT" "amber:lan" "eth1" "rx tx"
ucidef_set_led_netdev "lanlink" "LANLINK" "green:lan" "eth1" "link" ucidef_set_led_netdev "lanlink" "LANLINK" "green:lan" "eth1" "link"