From patchwork Thu Dec 26 17:35:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13921408 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 22634E7718F for ; Thu, 26 Dec 2024 17:39:42 +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:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=X1dTeAMm/wW0dtPQtk6JGdAaI2aq0m9euZXSH3QbeHI=; b=2uegsBAXBjXVkDT7EL4xYyXmRI ggSxvZluvgIEamBmCwdYuRIcrGoWStJBs9JyQVo1M9XJgvZDEIN+ZMk2TRiSeG1BnspK1vQyXL9Zc xdd/vLn7kyYA6+dg6279hRuDnPMVpTDDYt+Yfyts4zmIQccw6XZxNLoldM4iIyiQxSdJypCQgGzdW YE26eFCwkI6l5HVbMpHbAQvq2iW6VIW1gRdxWgdrdu5QiktZAZ9cb2vXH2DY6XAPC8bsyzQOx4FUo Dau1iLoGfx/XVAvARCpEj0mV4g4ltrPONmfcW/C6AMZncOsQ5gV/mGYoLa/u7Q5WVjdiEHF7ZDlOX sd2aVSiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tQrpc-0000000G9xR-0whR; Thu, 26 Dec 2024 17:39:32 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tQrlx-0000000G9V2-2LS5 for linux-arm-kernel@lists.infradead.org; Thu, 26 Dec 2024 17:35:46 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-21636268e43so6859285ad.2 for ; Thu, 26 Dec 2024 09:35:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20230601.gappssmtp.com; s=20230601; t=1735234545; x=1735839345; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=X1dTeAMm/wW0dtPQtk6JGdAaI2aq0m9euZXSH3QbeHI=; b=VoqX5NDekfrLZNVxCVaIOojAYqS66iiLk0cSf3w6oap1nk4xSaiC/bNyHwtOi0583Q Wd+LMkOpjO8ry7P9fCgqCRge9NxFfjmKYiPnBm6qQE6q2WvgUy5hz0bgqRPWg+wZV42P Vfeex3Nl6vzRanesqTZyiZ30K0YshzFibcWllsgQDm0hcxY9qZjbvvfJ7jwBLOdZEnA2 t70K2fXsoB8r/uZfCpuY/dea8OCutm17xzaJ7uPLyR3o8EN0uhMNV50ghafWOlkV1hqJ WvxbTIX774iwJVkMztSyu0TLV1Yuaij+EU0P26T7xPMyDiyuW9Hf2ZS+N3linjWBPBH2 bcBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735234545; x=1735839345; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=X1dTeAMm/wW0dtPQtk6JGdAaI2aq0m9euZXSH3QbeHI=; b=KgcgOogKjS/+luAiN1hixVXje9nAqs2j9ZE1aMh23p0JSmE5l1uIAV9/XC/D3tfaEC ZkLE0LFPVHd/s3SU+Cn8EXAhjMQFzzGIrNV5HzYpcZh8vofUCB4r3hOYpjbPKgYHRMOx bV6mGnci5/34BkQxJOSXzyt2PYU4N1OtoOXr1E3PEDcNG180lV6nFkdfVAGjl2+QqwLg hSX12Xa0bOWzhov0CQf7ByKQYvNzNd0iGiLvKlGDZYQeJ7X3DaQnYA9Rq8DyLXOl4fgU G4YBawyzmzp84oOkh1GoZU4m4QqHt226N95Z/LpWAcqyPOAWwyPF58vQTbmtuGgjGfYa gjVA== X-Forwarded-Encrypted: i=1; AJvYcCXepC8Ra6y4s6eObeYdIKKXCSF7b6OB5cwQMV+v7MZerKW90IqNtsvFQ5qVdJiI+BLmUZ/yTdnN0csbqyirA/qZ@lists.infradead.org X-Gm-Message-State: AOJu0YyBoLv1sNyYTZWayuyTJkKcTSLTIY2NkaHP31p0c0S8bqcrp6ok WLPJG/HcQwgHKzy//v/r2Ezgni0uhPBWizWzmFl4BkurhDeZ7FkhbIi+jKCvNrU= X-Gm-Gg: ASbGnctOQoi5qG467YzVkntbJxqcHpAP8kRsJML+Rt35jF7pdbUaMulekvLEd6pk6jS 6Cjy1UqxV7RWKFqGMKdonWUg0IOZotVKMjkyvSS4w0XDk5jMvjbZhquyWPGXVLKR5PiJUNguh1x a2olcubEC8aWnYqpOZi6sh5F4vABzpzCU4DjiWoz7c6hsa6toQIzyiqEG0/00bXX0Ve7xY4Zsov z0LCEf33XLuBgK0JElQbQXKr/lkzVURJDqPu+FCf9KCPT9NcgKMb6QQNgF3CCybc3AlFzf6 X-Google-Smtp-Source: AGHT+IEIRjkv8xpdBRFHNmeOGEm+9+EQ5icIZIC9cV5XUaKkB1G4eZT7R8atLlQBaeefj8JDRZndLQ== X-Received: by 2002:a17:902:ef12:b0:216:52a5:dd41 with SMTP id d9443c01a7336-219e6ec13bcmr374141345ad.31.1735234544922; Thu, 26 Dec 2024 09:35:44 -0800 (PST) Received: from tops-ThinkPad-E14-Gen-5.. ([2405:201:c00a:a918:ba33:f9a0:ac68:19f]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f4477c8461sm14281147a91.13.2024.12.26.09.35.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2024 09:35:44 -0800 (PST) From: Jagan Teki To: Heiko Stuebner , linux-rockchip@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jagan Teki Subject: [PATCH 1/2] arm64: dts: rockchip: Add HDMI1 node to rk3588 Date: Thu, 26 Dec 2024 23:05:29 +0530 Message-Id: <20241226173530.37037-1-jagan@edgeble.ai> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241226_093545_606223_7C173E64 X-CRM114-Status: GOOD ( 11.48 ) 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 HDMI1 Output is available RK3588 (not for RK3588S). Add support for it. Signed-off-by: Jagan Teki --- Note: As of 1080p display is working .../arm64/boot/dts/rockchip/rk3588-extra.dtsi | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-extra.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-extra.dtsi index ead151941e84..66bf5e780382 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-extra.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-extra.dtsi @@ -67,6 +67,11 @@ u2phy1_otg: otg-port { }; }; + hdptxphy1_grf: syscon@fd5e4000 { + compatible = "rockchip,rk3588-hdptxphy-grf", "syscon"; + reg = <0x0 0xfd5e4000 0x0 0x100>; + }; + i2s8_8ch: i2s@fddc8000 { compatible = "rockchip,rk3588-i2s-tdm"; reg = <0x0 0xfddc8000 0x0 0x1000>; @@ -135,6 +140,47 @@ i2s10_8ch: i2s@fde00000 { status = "disabled"; }; + hdmi1: hdmi@fdea0000 { + compatible = "rockchip,rk3588-dw-hdmi-qp"; + reg = <0x0 0xfdea0000 0x0 0x20000>; + clocks = <&cru PCLK_HDMITX1>, + <&cru CLK_HDMITX1_EARC>, + <&cru CLK_HDMITX1_REF>, + <&cru MCLK_I2S6_8CH_TX>, + <&cru CLK_HDMIHDP1>, + <&cru HCLK_VO1>; + clock-names = "pclk", "earc", "ref", "aud", "hdp", "hclk_vo1"; + interrupts = , + , + , + , + ; + interrupt-names = "avp", "cec", "earc", "main", "hpd"; + phys = <&hdptxphy_hdmi1>; + pinctrl-names = "default"; + pinctrl-0 = <&hdmim2_tx1_cec &hdmim0_tx1_hpd + &hdmim1_tx1_scl &hdmim1_tx1_sda>; + power-domains = <&power RK3588_PD_VO1>; + resets = <&cru SRST_HDMITX1_REF>, <&cru SRST_HDMIHDP1>; + reset-names = "ref", "hdp"; + rockchip,grf = <&sys_grf>; + rockchip,vo-grf = <&vo1_grf>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + hdmi1_in: port@0 { + reg = <0>; + }; + + hdmi1_out: port@1 { + reg = <1>; + }; + }; + }; + pcie3x4: pcie@fe150000 { compatible = "rockchip,rk3588-pcie", "rockchip,rk3568-pcie"; #address-cells = <3>; @@ -400,6 +446,22 @@ sata-port@0 { }; }; + hdptxphy_hdmi1: phy@fed70000 { + compatible = "rockchip,rk3588-hdptx-phy"; + reg = <0x0 0xfed70000 0x0 0x2000>; + clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>, <&cru PCLK_HDPTX1>; + clock-names = "ref", "apb"; + #phy-cells = <0>; + resets = <&cru SRST_HDPTX1>, <&cru SRST_P_HDPTX1>, + <&cru SRST_HDPTX1_INIT>, <&cru SRST_HDPTX1_CMN>, + <&cru SRST_HDPTX1_LANE>, <&cru SRST_HDPTX1_ROPLL>, + <&cru SRST_HDPTX1_LCPLL>; + reset-names = "phy", "apb", "init", "cmn", "lane", "ropll", + "lcpll"; + rockchip,grf = <&hdptxphy1_grf>; + status = "disabled"; + }; + usbdp_phy1: phy@fed90000 { compatible = "rockchip,rk3588-usbdp-phy"; reg = <0x0 0xfed90000 0x0 0x10000>;