mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-04 17:36:12 +02:00
realtek: gs1900-48: add RTL8231 resets
Add reset-gpios for both RTL8231 expanders and hog the PHY reset line on expander@3. Signed-off-by: Klaus Rubenstein <klaus.rubenstein@gmail.com> Tested-by: Sander Vanheule <sander@svanheule.net> Signed-off-by: Sander Vanheule <sander@svanheule.net>
This commit is contained in:
parent
aa1b83d5ca
commit
4f637a09b8
@ -98,6 +98,7 @@
|
||||
port_leds: expander@0 {
|
||||
compatible = "realtek,rtl8231";
|
||||
reg = <0>;
|
||||
reset-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
|
||||
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
@ -179,6 +180,7 @@
|
||||
gpio1: expander@3 {
|
||||
compatible = "realtek,rtl8231";
|
||||
reg = <3>;
|
||||
reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
||||
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
@ -188,6 +190,14 @@
|
||||
compatible = "realtek,rtl8231-leds";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
/* PHY reset (active low), no driver support, keep deasserted */
|
||||
phy-reset {
|
||||
gpio-hog;
|
||||
gpios = <6 GPIO_ACTIVE_LOW>;
|
||||
output-low;
|
||||
line-name = "phy-reset";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user