From 4b31717fb031e6b99f476e79b5e8b3d6a8b0b9ff Mon Sep 17 00:00:00 2001 From: Sander Vanheule Date: Sun, 20 Feb 2022 16:25:42 +0100 Subject: realtek: move RTL8231 definitions to board files The RTL8231 is an external chip, and not part of the SoC. That means it is more appropriate to define it in the board specific (base) files, instead of the DT include for the SoC itself. Moving the RTL8231 definition also ensures that boards with no GPIO expander, or an alternative one, don't have a useless gpio1 node label defined. Tested on a Netgear GS110TPPv1. Signed-off-by: Sander Vanheule --- target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts') diff --git a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts index a0f377c4f4..3321887c9a 100644 --- a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts +++ b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210-10p.dts @@ -44,6 +44,13 @@ linux,code = ; };*/ }; + + gpio1: rtl8231-gpio { + compatible = "realtek,rtl8231-gpio"; + #gpio-cells = <2>; + gpio-controller; + indirect-access-bus-id = <0>; + }; }; -- cgit v1.2.3