From e7359489a0f30e40e1398233480b26281718b667 Mon Sep 17 00:00:00 2001 From: Michal Wilczynski Date: Wed, 28 Aug 2024 10:03:34 +0200 Subject: riscv: dts: spacemit: Add separate dtsi with hdmi configuration 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 --- arch/riscv/boot/dts/spacemit/k1-x-hdmi.dtsi | 62 +++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 arch/riscv/boot/dts/spacemit/k1-x-hdmi.dtsi 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 index 000000000000..b52229a6a2e5 --- /dev/null +++ b/arch/riscv/boot/dts/spacemit/k1-x-hdmi.dtsi @@ -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 = ; + ip = "spacemit-saturn"; + type = ; + 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>; + }; + }; + }; +}; -- cgit v1.2.3