From patchwork Fri Oct 18 21:39:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 13842447 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BA994D3F2A6 for ; Fri, 18 Oct 2024 21:43:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=IVJl8Rd9kpTPTUxTe6hMYSuP5+ch9uUsscwjPBp0t5s=; b=M3vbwwSH3RjsgDXIPx9Sw82sE2 /+sNIeTCBjRNI2mpPe+JmWseN/0HBOR0VmwotCS6HUWaqQvv+s6idCdllBVzvZRItfoBqE0NfZCpS hrKiNaC0MpZmiu4ccavHsSQnLvUc4q0S7cWDalMbMXpLzJ9oZD/bI5j+FUzkXI3sax4Pe/vhPmbZf Cc6t0GvJG2uOerv9BI/W2uGs/oDmR0oiJzu0eRlfchB+G3qfRRZWwvfzVy43DXWS3KLmXHw33MxIj Ld2blTG5wux0AvYCvEADUwPMuYtMWOu3c6HIpHEcqmEajlg5q6hSkDmV7ogL3IHF+09OtZVTOy0dZ m+ngyYJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1ukk-000000026Mv-34Xh; Fri, 18 Oct 2024 21:43:22 +0000 Received: from bali.collaboradmins.com ([2a01:4f8:201:9162::2]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1uhq-000000025lM-44vw; Fri, 18 Oct 2024 21:40:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1729287620; bh=shzTkSVeDAoYPdbpkz2nRxG6xjYT1Tvs40xs92JMLzM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HtDdSJYmu9zPXuzH7jfRr8/dPL6a9kKdttYn4Yjm/Dk/9FmkvbIYJOpXMfvgzAQGR DEgpnCTn9VpynTKE1YG7TmC+I4ty/EoX4OK12WdjxsyaHFuyGeNr8/7wJy9WgMyK9g 0VD7z/Fjpb06b1zSHV7YXW/vCRgedGpBI07p+AfXlG+APTuWPdugP6nlNCoM3BmJ9u +Cu7msuxhTzFaRCuR+F7XZrkCViaSjDkSB7oo4Wabf41bfeBlAH96iwF+Kq7q1DvmB KnMUKXrSPPoHOXrS42ArtN88CvwC2+DVqhNweLxoL+gts2ScAjF1iPCxs9XynlXpqB F1aJ6h3KW9Hjw== Received: from localhost (unknown [188.24.146.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id AFCA917E375C; Fri, 18 Oct 2024 23:40:20 +0200 (CEST) From: Cristian Ciocaltea Date: Sat, 19 Oct 2024 00:39:49 +0300 Subject: [PATCH 1/5] arm64: dts: rockchip: Add HDMI0 node to rk3588 MIME-Version: 1.0 Message-Id: <20241019-rk3588-hdmi0-dt-v1-1-bd8f299feacd@collabora.com> References: <20241019-rk3588-hdmi0-dt-v1-0-bd8f299feacd@collabora.com> In-Reply-To: <20241019-rk3588-hdmi0-dt-v1-0-bd8f299feacd@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sebastian Reichel , Luis de Arquer , Alexandre ARNOUD Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241018_144023_198784_F4AACBE5 X-CRM114-Status: UNSURE ( 9.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for the HDMI0 output port found on RK3588 SoC. Signed-off-by: Cristian Ciocaltea --- arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi index fc67585b64b7baa33d5a816517f20c4cb940b52d..a337f3fb8377e4a3a200d4d3a3773a237de2bd6e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi @@ -1370,6 +1370,47 @@ i2s9_8ch: i2s@fddfc000 { status = "disabled"; }; + hdmi0: hdmi@fde80000 { + compatible = "rockchip,rk3588-dw-hdmi-qp"; + reg = <0x0 0xfde80000 0x0 0x20000>; + clocks = <&cru PCLK_HDMITX0>, + <&cru CLK_HDMITX0_EARC>, + <&cru CLK_HDMITX0_REF>, + <&cru MCLK_I2S5_8CH_TX>, + <&cru CLK_HDMIHDP0>, + <&cru HCLK_VO1>; + clock-names = "pclk", "earc", "ref", "aud", "hdp", "hclk_vo1"; + interrupts = , + , + , + , + ; + interrupt-names = "avp", "cec", "earc", "main", "hpd"; + phys = <&hdptxphy_hdmi0>; + pinctrl-names = "default"; + pinctrl-0 = <&hdmim0_tx0_cec &hdmim0_tx0_hpd + &hdmim0_tx0_scl &hdmim0_tx0_sda>; + power-domains = <&power RK3588_PD_VO1>; + resets = <&cru SRST_HDMITX0_REF>, <&cru SRST_HDMIHDP0>; + reset-names = "ref", "hdp"; + rockchip,grf = <&sys_grf>; + rockchip,vo-grf = <&vo1_grf>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + hdmi0_in: port@0 { + reg = <0>; + }; + + hdmi0_out: port@1 { + reg = <1>; + }; + }; + }; + qos_gpu_m0: qos@fdf35000 { compatible = "rockchip,rk3588-qos", "syscon"; reg = <0x0 0xfdf35000 0x0 0x20>;