riscv: dts: spacemit: Add separate dtsi with hdmi configuration 20/316920/2
authorMichal Wilczynski <m.wilczynski@samsung.com>
Wed, 28 Aug 2024 08:03:34 +0000 (10:03 +0200)
committerMichal Wilczynski <m.wilczynski@samsung.com>
Fri, 30 Aug 2024 16:07:23 +0000 (18:07 +0200)
In the vendor kernel there is a separate file with hdmi
configurations. Port it [1].

[1] - https://github.com/BPI-SINOVOIP/pi-linux.git

Change-Id: Idb4e768b943cd7103ef3768589c7a5269d990cc6
Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
arch/riscv/boot/dts/spacemit/k1-x-hdmi.dtsi [new file with mode: 0644]

diff --git a/arch/riscv/boot/dts/spacemit/k1-x-hdmi.dtsi b/arch/riscv/boot/dts/spacemit/k1-x-hdmi.dtsi
new file mode 100644 (file)
index 0000000..b52229a
--- /dev/null
@@ -0,0 +1,62 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/* Copyright (c) 2023 Spacemit, Inc */
+
+&soc {
+       display-subsystem-hdmi {
+               compatible = "spacemit,saturn-hdmi";
+               reg = <0 0xc0440000 0 0x2A000>;
+               ports = <&dpu_online2_hdmi>;
+               interconnects = <&dram_range1>;
+               interconnect-names = "dma-mem";
+       };
+
+       dpu_online2_hdmi: port@c0440000 {
+               compatible = "spacemit,dpu-online2";
+               interrupt-parent = <&plic>;
+               interrupts = <139>, <138>;
+               interrupt-names = "ONLINE_IRQ", "OFFLINE_IRQ";
+               interconnects = <&dram_range1>;
+               interconnect-names = "dma-mem";
+               clocks = <&ccu CLK_HDMI>;
+               clock-names = "hmclk";
+               resets = <&reset RESET_HDMI>;
+               reset-names= "hdmi_reset";
+               power-domains = <&power K1X_PMU_HDMI_PWR_DOMAIN>;
+               pipeline-id = <ONLINE2>;
+               ip = "spacemit-saturn";
+               type = <HDMI>;
+               clk,pm-runtime,no-sleep;
+               status = "disabled";
+
+               dpu_online2_hdmi_out: endpoint@0 {
+                       remote-endpoint = <&hdmi_in>;
+               };
+
+               dpu_offline0_hdmi_out: endpoint@1 {
+                       /* remote-endpoint = <&wb0_in>; */
+               };
+       };
+
+       hdmi: hdmi@C0400500 {
+               compatible = "spacemit,hdmi";
+               reg = <0 0xC0400500 0 0x200>;
+               interrupt-parent = <&plic>;
+               interrupts = <136>;
+               clocks = <&ccu CLK_HDMI>;
+               clock-names = "hmclk";
+               resets = <&reset RESET_HDMI>;
+               reset-names= "hdmi_reset";
+               power-domains = <&power K1X_PMU_HDMI_PWR_DOMAIN>;
+               clk,pm-runtime,no-sleep;
+               status = "disabled";
+
+               port {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       hdmi_in: endpoint@0 {
+                               reg = <0>;
+                               remote-endpoint = <&dpu_online2_hdmi_out>;
+                       };
+               };
+       };
+};