diff options
author | Michal Wilczynski <m.wilczynski@samsung.com> | 2024-08-28 10:03:34 +0200 |
---|---|---|
committer | Michal Wilczynski <m.wilczynski@samsung.com> | 2024-08-30 18:07:23 +0200 |
commit | e7359489a0f30e40e1398233480b26281718b667 (patch) | |
tree | cb24da32566086b5c29eee727e7dfd5ff0472916 | |
parent | 359ef2dc6d7b039a9de5b3652bf737638bf86092 (diff) | |
download | linux-riscv-e7359489a0f30e40e1398233480b26281718b667.tar.gz linux-riscv-e7359489a0f30e40e1398233480b26281718b667.tar.bz2 linux-riscv-e7359489a0f30e40e1398233480b26281718b667.zip |
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 <m.wilczynski@samsung.com>
-rw-r--r-- | arch/riscv/boot/dts/spacemit/k1-x-hdmi.dtsi | 62 |
1 files changed, 62 insertions, 0 deletions
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 = <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>; + }; + }; + }; +}; |