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>; From patchwork Thu Dec 26 17:35:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13921409 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 73086E7718E for ; Thu, 26 Dec 2024 17:40:55 +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:References:In-Reply-To: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:List-Owner; bh=E9Hxi9sszYSp2cS3KRHvqcLvWwaE0E5fecrWh0T8tms=; b=0XCS0x0n6gjgj5fer0QhTpXGXI e8ueVfLN7zIxWKX0PzOA/Q+JC8BPraR8pkgx1JV7Id7OWzqpty9YrqQ3haeN/RrW0KuMRpE/HuExz HvgVjxuZiGgmsirNknJ3QogrP7BreAhNYfahKF7cu13biX3Je/oEWe2CSvLpUCZ8BcXKegDDfqe39 5TmM1M8dhL41s/dRlFkSAm0rrgGZfrdhhk5ZqRm2CAp2w1KoVbY80Px+rGIs9kG1Nbu0a3wZUL5gq wkqebg1VgxNNg1lOgXp/QQvRyOBOwJDmMs/O/5kg2Xr7U5wlsiWYdbSnRIpcyUsxnQ5XEgUgepumI eT3KRoOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tQrqk-0000000GA6f-1Jxp; Thu, 26 Dec 2024 17:40:42 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tQrm5-0000000G9WM-3Osy for linux-arm-kernel@lists.infradead.org; Thu, 26 Dec 2024 17:35:54 +0000 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2ee8e8e29f6so6573280a91.0 for ; Thu, 26 Dec 2024 09:35:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20230601.gappssmtp.com; s=20230601; t=1735234552; x=1735839352; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E9Hxi9sszYSp2cS3KRHvqcLvWwaE0E5fecrWh0T8tms=; b=VvkE275gwm4j9dyv2CNabbGiMxN+pYIiLo9rlKDeOawIbssQfpsZhKE0HU84iMoTVd 3s7TNl96hiVRiUygVa70YxDojqVcaTm6D+gNdlMfpP303MLwVXgds5izWbGYV9cKN+mc twcUqUzjmSArbiFgmkvBAmsSVhsLwXO7nDg9piGFoFmVfgkuoV3prph1JH+tvtnTl/bs 211kE98YVj+diojP/1dR7s71AK1qK9jcqYNOCt+Q52hpaqwMjpIhB4m1O9h0XYmY27E4 SiMDzfDhD4eTL6lS3RrzCY5m1EUGFo4THSXelxkxOStUV71qs2oLj4Xzxhh4FawddpN7 p7dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735234552; x=1735839352; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E9Hxi9sszYSp2cS3KRHvqcLvWwaE0E5fecrWh0T8tms=; b=WJYGgK5alQrkT4KN9nJrVGaC9SMdTxtoXyiHTCK2TbNBsC3EmW9tBwYhVJ8nAH3ID/ 5KzGTyK0R8Ebiyd0us/p9Bu+zGtX43WcWI4CE1lRo8JVLidumj4s/QA97CBgIB1Oj9zQ 62aJahB8Uf9SJNPgRWNP4luQPWgWgTrZ2pPfO2r/5Em6owExQhdl5gdZmHAMxGnnG+j2 nwsEkuPTZOKT3cSqV9js/zsFmuUUrJ4ihnwaI3N/J8kVsXb5oS+pQHWLGcmJeER0M8rb 5zzj2FuC+2VxmVeopfe8aeTGyao5PhhSJga0oxoadsPEDIaWyKslnrapIKEeSrX3PesW dfBg== X-Forwarded-Encrypted: i=1; AJvYcCWZYXQzQbMi2iD3is2Ihsom8BTzf8xvI1IPLcIYeG9Kpe52YejAfBSw8jG6EFrtoFc9/5N4w843Kk0kw/S8vUQ5@lists.infradead.org X-Gm-Message-State: AOJu0Yy7ZjSB0B+zfv08ntR9tUwoRslPHerLxtUnCVF/zW7vVoBrrQh6 FV21ucdZZ17UzRSUKJO7SvhKq9/yOuWoj7G5o45KAn+odccsCvvjLcsRLT52Kog= X-Gm-Gg: ASbGncubgxF9FWOsS6x1P8BZlRf3YuO7i/ft1hZjyOiz7n2REgzGQKJUMJPTmtkcMot NnwkVCzxodf+bz5HnvS2zbk2d9IcI+GRrGsowDXOw2ZURUP82grCJAenkdbmPepYcgjqVfCyVqo 0tSHBq8OYmqlZOkqCjTWfy5c/jo/qIgzueN5pdLGNzTI9ldCKaEAUofTV0t1ZGijDbjwg7lzC3q WhsoPCPGwWXf7ZdiyS0FChqPFQghnEu6ZRV95ccOzFCOuJGd33SS+9qrpyROaiMamf16wt4 X-Google-Smtp-Source: AGHT+IGR8b1qFS8O/216LzEHsL2snOtTt/JUhfXE7hEdBOQDqshwj0GgvqkF0MIY6yWqZ4cmqEhOag== X-Received: by 2002:a17:90b:514d:b0:2ee:889b:b11e with SMTP id 98e67ed59e1d1-2f452ec3775mr36227157a91.30.1735234552633; Thu, 26 Dec 2024 09:35:52 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2024 09:35:52 -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 2/2] arm64: dts: rockchip: Enable HDMI1 out for Edgeble-6TOPS Modules Date: Thu, 26 Dec 2024 23:05:30 +0530 Message-Id: <20241226173530.37037-2-jagan@edgeble.ai> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241226173530.37037-1-jagan@edgeble.ai> References: <20241226173530.37037-1-jagan@edgeble.ai> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241226_093553_850024_7EA76A4D X-CRM114-Status: GOOD ( 11.24 ) 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 Edgeble-6TOPS modules configure HDMI1 for HDMI Out from RK3588. Enable it on Edgeble-6TOPS IO Board dtsi. Signed-off-by: Jagan Teki --- .../dts/rockchip/rk3588-edgeble-neu6a-io.dtsi | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi index 7125790bbed2..4883b31ddeaf 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi @@ -4,12 +4,24 @@ */ #include +#include / { chosen { stdout-path = "serial2:1500000n8"; }; + hdmi1-con { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi1_con_in: endpoint { + remote-endpoint = <&hdmi1_out_con>; + }; + }; + }; + /* Unnamed gated oscillator: 100MHz,3.3V,3225 */ pcie30_port0_refclk: pcie30_port1_refclk: pcie-oscillator { compatible = "gated-fixed-clock"; @@ -81,6 +93,26 @@ &combphy2_psu { status = "okay"; }; +&hdmi1 { + status = "okay"; +}; + +&hdmi1_in { + hdmi1_in_vp0: endpoint { + remote-endpoint = <&vp0_out_hdmi1>; + }; +}; + +&hdmi1_out { + hdmi1_out_con: endpoint { + remote-endpoint = <&hdmi1_con_in>; + }; +}; + +&hdptxphy_hdmi1 { + status = "okay"; +}; + &i2c6 { status = "okay"; @@ -275,3 +307,18 @@ &usb_host1_ohci { &usb_host2_xhci { status = "okay"; }; + +&vop_mmu { + status = "okay"; +}; + +&vop { + status = "okay"; +}; + +&vp0 { + vp0_out_hdmi1: endpoint@ROCKCHIP_VOP2_EP_HDMI1 { + reg = ; + remote-endpoint = <&hdmi1_in_vp0>; + }; +};