]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: renesas: sparrow-hawk: Add overlay for Olimex MIPI-HDMI adapter
authorScott Murray <scott.murray@konsulko.com>
Fri, 20 Mar 2026 02:52:57 +0000 (03:52 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 25 Mar 2026 17:40:50 +0000 (18:40 +0100)
Add a DT overlay to bind the Olimex MIPI-HDMI dual-lane DSI-to-HDMI adapter
on the Retronix R-Car V4H Sparrow Hawk board.

Current device link is at https://www.olimex.com/Products/IoT/ESP32-P4/MIPI-HDMI/open-source-hardware

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260320025328.509003-1-marek.vasut+renesas@mailbox.org
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/Makefile
arch/arm64/boot/dts/renesas/r8a779g3-sparrow-hawk-olimex-dsi-hdmi.dtso [new file with mode: 0644]

index bca532eb67b44cbc223076576baf239c70f80d3f..65df431adeb6bbe940c41acd4fde7403bc6055a3 100644 (file)
@@ -114,6 +114,9 @@ dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g3-sparrow-hawk-fan-argon40.dtb
 dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g3-sparrow-hawk-fan-pwm.dtbo
 r8a779g3-sparrow-hawk-fan-pwm-dtbs := r8a779g3-sparrow-hawk.dtb r8a779g3-sparrow-hawk-fan-pwm.dtbo
 dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g3-sparrow-hawk-fan-pwm.dtb
+dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g3-sparrow-hawk-olimex-dsi-hdmi.dtbo
+r8a779g3-sparrow-hawk-olimex-dsi-hdmi-dtbs := r8a779g3-sparrow-hawk.dtb r8a779g3-sparrow-hawk-olimex-dsi-hdmi.dtbo
+dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g3-sparrow-hawk-olimex-dsi-hdmi.dtb
 dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g3-sparrow-hawk-rpi-display-2-5in.dtbo
 r8a779g3-sparrow-hawk-rpi-display-2-5in-dtbs := r8a779g3-sparrow-hawk.dtb r8a779g3-sparrow-hawk-rpi-display-2-5in.dtbo
 dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g3-sparrow-hawk-rpi-display-2-5in.dtb
diff --git a/arch/arm64/boot/dts/renesas/r8a779g3-sparrow-hawk-olimex-dsi-hdmi.dtso b/arch/arm64/boot/dts/renesas/r8a779g3-sparrow-hawk-olimex-dsi-hdmi.dtso
new file mode 100644 (file)
index 0000000..40cc5ee
--- /dev/null
@@ -0,0 +1,92 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * Device Tree Overlay for Olimex MIPI-HDMI adapter connected to J4:DSI
+ * on R-Car V4H ES3.0 Sparrow Hawk board
+ *
+ * Copyright (C) 2026 Scott Murray <scott.murray@konsulko.com>
+ */
+
+/dts-v1/;
+/plugin/;
+
+&{/} {
+       hdmi-connector {
+               compatible = "hdmi-connector";
+               label = "HDMI1";
+               type = "a";
+               ddc-i2c-bus = <&i2c0_mux3>;
+
+               port {
+                       hdmi_connector_in: endpoint {
+                               remote-endpoint = <&lt8912b_out>;
+                       };
+               };
+       };
+
+       reg_vr1: regulator-vr1 {
+               compatible = "regulator-fixed";
+               regulator-name = "VR1-1.8V";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               regulator-boot-on;
+               regulator-always-on;
+               vin-supply = <&reg_3p3v>;
+       };
+};
+
+&i2c0_mux3 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+
+       hdmi-bridge@48 {
+               compatible = "lontium,lt8912b";
+               reg = <0x48>;
+               vcchdmipll-supply = <&reg_vr1>;
+               vcchdmitx-supply = <&reg_vr1>;
+               vcclvdspll-supply = <&reg_vr1>;
+               vcclvdstx-supply = <&reg_vr1>;
+               vccmipirx-supply = <&reg_vr1>;
+               vccsysclk-supply = <&reg_vr1>;
+               vdd-supply = <&reg_vr1>;
+
+               ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       port@0 {
+                               reg = <0>;
+
+                               hdmi_out_in: endpoint {
+                                       data-lanes = <1 2>;
+                                       remote-endpoint = <&dsi0_out>;
+                               };
+                       };
+
+                       port@1 {
+                               reg = <1>;
+
+                               lt8912b_out: endpoint {
+                                       remote-endpoint = <&hdmi_connector_in>;
+                               };
+                       };
+               };
+       };
+};
+
+&dsi0 {
+       status = "okay";
+
+       ports {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               port@1 {
+                       reg = <1>;
+
+                       dsi0_out: endpoint {
+                               remote-endpoint = <&hdmi_out_in>;
+                               data-lanes = <1 2>;
+                       };
+               };
+       };
+};