From: Marek Vasut <[email protected]>

The Renesas DSC Display Stream Compression is a bridge embedded in the
Renesas R-Car V4H SoC. The bridge is placed between DU and DSI1 units.
Describe the bridge in DT and enable it on Retronix Sparrow Hawk board
to keep DSI1 operational on this board.

Signed-off-by: Marek Vasut <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
---
 arch/arm64/boot/dts/renesas/r8a779g0.dtsi          | 31 +++++++++++++++++++++-
 .../boot/dts/renesas/r8a779g3-sparrow-hawk.dts     |  5 ++++
 2 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi 
b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
index 82a7278836e5..52a6176f9fd0 100644
--- a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
@@ -2298,6 +2298,35 @@ du_out_dsi0: endpoint {
                                port@1 {
                                        reg = <1>;
                                        du_out_dsi1: endpoint {
+                                               remote-endpoint = 
<&dsc_in_dsi1>;
+                                       };
+                               };
+                       };
+               };
+
+               dsc: dsc@feb8d000 {
+                       compatible = "renesas,r8a779g0-dsc";
+                       reg = <0 0xfeb8d000 0 0x400>;
+                       interrupts = <GIC_SPI 559 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&cpg CPG_MOD 2819>;
+                       power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
+                       resets = <&cpg 2819>;
+                       status = "disabled";
+
+                       ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               port@0 {
+                                       reg = <0>;
+                                       dsc_in_dsi1: endpoint {
+                                               remote-endpoint = 
<&du_out_dsi1>;
+                                       };
+                               };
+
+                               port@1 {
+                                       reg = <1>;
+                                       dsc_out_dsi1: endpoint {
                                                remote-endpoint = <&dsi1_in>;
                                        };
                                };
@@ -2534,7 +2563,7 @@ ports {
                                port@0 {
                                        reg = <0>;
                                        dsi1_in: endpoint {
-                                               remote-endpoint = 
<&du_out_dsi1>;
+                                               remote-endpoint = 
<&dsc_out_dsi1>;
                                        };
                                };
 
diff --git a/arch/arm64/boot/dts/renesas/r8a779g3-sparrow-hawk.dts 
b/arch/arm64/boot/dts/renesas/r8a779g3-sparrow-hawk.dts
index 812b133cf29e..f418998c6b05 100644
--- a/arch/arm64/boot/dts/renesas/r8a779g3-sparrow-hawk.dts
+++ b/arch/arm64/boot/dts/renesas/r8a779g3-sparrow-hawk.dts
@@ -288,6 +288,11 @@ channel4 {
        };
 };
 
+/* Page 27 / DSI to Display */
+&dsc {
+       status = "okay";
+};
+
 /* Page 27 / DSI to Display */
 &dsi1 {
        status = "okay";

-- 
2.43.0

Reply via email to