diff --git a/target/linux/realtek/dts/rtl8382_apresia_aplgs120gtss.dts b/target/linux/realtek/dts/rtl8382_apresia_aplgs120gtss.dts index de17958af19758..8b0767ca1040d0 100644 --- a/target/linux/realtek/dts/rtl8382_apresia_aplgs120gtss.dts +++ b/target/linux/realtek/dts/rtl8382_apresia_aplgs120gtss.dts @@ -48,6 +48,9 @@ compatible = "gpio-keys-polled"; poll-interval = <20>; + pinctrl-names = "default"; + pinctrl-0 = <&reset_key_debounce>; + reset { label = "reset"; gpios = <&gpio1 33 GPIO_ACTIVE_LOW>; @@ -61,13 +64,6 @@ open-source; }; - gpio1: rtl8231-gpio { - compatible = "realtek,rtl8231-gpio"; - #gpio-cells = <2>; - gpio-controller; - indirect-access-bus-id = <0>; - }; - i2c0: i2c-gpio-0 { compatible = "i2c-gpio"; sda-gpios = <&gpio1 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; @@ -134,12 +130,30 @@ }; }; -&gpio0 { - rtl8231_reset { - gpio-hog; - gpios = <1 GPIO_ACTIVE_HIGH>; - output-high; - line-name = "rtl8231-reset"; +&mdio_aux { + status = "okay"; + + reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + reset-delay-us = <1000>; + reset-post-delay-us = <10000>; + + gpio1: expander@0 { + compatible = "realtek,rtl8231"; + reg = <0>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&gpio1 0 0 37>; + + reset_key_debounce: reset-key-pins { + pins = "gpio33"; + input-debounce = <100000>; + }; + + led-controller { + compatible = "realtek,rtl8231-leds"; + status = "disabled"; + }; }; };