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>
port_leds: expander@0 {
compatible = "realtek,rtl8231";
reg = <0>;
+ reset-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
gpio-controller;
#gpio-cells = <2>;
gpio1: expander@3 {
compatible = "realtek,rtl8231";
reg = <3>;
+ reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
gpio-controller;
#gpio-cells = <2>;
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";
+ };
};
};