mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-09-09 22:39:40 +00:00
In order to be able to define the external GPIO controller on an
emulated MDIO bus, move the controller definition outside of the main
GS1900 include for RTL838x-based devices.
Additionally, a new DTSI is provided defining the RTL8231 on the
emulated MDIO bus.
Signed-off-by: Sander Vanheule <sander@svanheule.net>
(cherry picked from commit a6a77896f4
)
32 lines
539 B
Plaintext
32 lines
539 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
&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 = <0x0>;
|
|
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
gpio-ranges = <&gpio1 0 0 37>;
|
|
|
|
poe_enable {
|
|
gpio-hog;
|
|
gpios = <13 GPIO_ACTIVE_HIGH>;
|
|
output-high;
|
|
};
|
|
|
|
led-controller {
|
|
compatible = "realtek,rtl8231-leds";
|
|
status = "disabled";
|
|
};
|
|
};
|
|
};
|