From patchwork Mon Nov 11 16:50:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianfeng Liu X-Patchwork-Id: 13870966 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 C3AF7D3ABD0 for ; Mon, 11 Nov 2024 16:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RRci4cfpoNZCdQXBkJqQ+rpX1JlilfKH9Fn6EAdvUk0=; b=TUquekJPwhwR4H 2Xhdhjxt0kSqfviEcL7qSIm78Um0rETof/KkwFoqDxMz0XMuz7KrezN4h0MFXqjjK2NCm4/BpqNdz 9RAsCV2u0Z1OjxvVTNQtrMTTFmt7/oEDjAkHDNkbFPLkl2T41En4q1sDFknuOi0B6nVbhBECohK4r CSVTElVxpQ45j0TyFS/XWUEv0X03JLt5fofQPAgVab6f1iC8VG0kkplQjgvLHVhdwAq7VIQZx789X S50cJYHWklozALkTtkxxfmSqStBiZAL+4RfhNgCxaTTCzoL6ivNrGl2n5eYEEfkLiWbgeQGlFdwnW RWp6oSwZKMQJ0Q108MLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tAXeW-00000000dQw-0qdh; Mon, 11 Nov 2024 16:52:36 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tAXcm-00000000dAJ-1ZOX; Mon, 11 Nov 2024 16:50:49 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-71e4c2e36d5so128275b3a.2; Mon, 11 Nov 2024 08:50:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731343845; x=1731948645; 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=RuwG52/VBZoIAELJNnOz0xD1tNHC8lVIM/18UIXkAKA=; b=IA4hVpBZ2itKYSfxCc41fxQmTcbsfUe9+TQjoQpSgnwb+9oXAX8B+j4/xwPYy7OwqU DIucnFhmt3Q8ATm791e3/Wr8p2PIH6fFV6cIoHjNo70El4lfpdmQGvnfaBRgufGjSClL G6MU0uFtstyy1z6iSafr2+QHOc8epsAXtytKlWqEMKw3BQMBIIdtEhQwBIdZ6F4scBrV Li/TDNA52q1d1P8xOdF8Tmk+CBIS4qAWVJVFC1Pkk4oKJMjKyZ2ibh/rCBlbrGeKZCSF gYzmP2ieU0RpSQk0kslbJ2duFN9oszDmwHufvGSAGsvFg/gYD69F1ztXY04GYEyE5c6d Vmjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731343845; x=1731948645; 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=RuwG52/VBZoIAELJNnOz0xD1tNHC8lVIM/18UIXkAKA=; b=LHdcVG1Ck0n7H7Hap+LDz8ZthpjegnfVSo3fWW1E8cF3ka50RyD4x3NijinNJo5XGb Jj9zW8SRFvuVwiKrSl+eGKAB3pSY7F31dJ6eY2GfVPq1dA2XNGci6VHl+3flvqHLiIme tTaGZ22Oi9bJv5ubdKXIHyLr/2HbBFER8Btj2D0q1eYCNYvlgs69jXVgC91jCRL6R70e 967b9Dbj3exqsERekQP9pPyAb4tFz15H0CuXBAbJfoatIKw2/efdVQAHC6ZqLofUB5c2 peiV6u4iH58mWbVSkjweOF/pX4SxVw6qG/kN8vFUxpQRRRSprT+CJ+I64e0ZJca6UZ04 lm0A== X-Forwarded-Encrypted: i=1; AJvYcCWr5dchVSz5nP9XcaZV5IirhJU+rwS9TCOqRSrLU0hmyfmoCtQdlXB9rZ6dIrC747pL0fTJwOVZKPGy8ZDrKtaG@lists.infradead.org X-Gm-Message-State: AOJu0YwL249JUByGeSfXtZeRWlLOBeXQTV1zX+cjG3IagizM4omldVBU xqADjNoEphN56cyEwGc1lRBh3uYv4LdM8AlaOEV3W7o2nYh9L60l1a9H8Hrk X-Google-Smtp-Source: AGHT+IE47aehOo9+5XJxP7J3fFZt4ohbuOovj+8Ybp+54UpV5R+tuCYOcLUSE+OW5HQpnHd5TS+I5Q== X-Received: by 2002:a05:6a00:1828:b0:71e:66ed:7bd4 with SMTP id d2e1a72fcca58-72413263f12mr7087915b3a.1.1731343845448; Mon, 11 Nov 2024 08:50:45 -0800 (PST) Received: from rock-5b.. ([221.220.134.31]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72407a19dd8sm9401955b3a.157.2024.11.11.08.50.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 08:50:44 -0800 (PST) From: Jianfeng Liu To: linux-rockchip@lists.infradead.org Cc: Jianfeng Liu , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Rob Herring , Stephen Rothwell , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: rockchip: Enable HDMI0 on armsom-sige7 Date: Tue, 12 Nov 2024 00:50:03 +0800 Message-ID: <20241111165026.60805-2-liujianfeng1994@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241111165026.60805-1-liujianfeng1994@gmail.com> References: <20241111165026.60805-1-liujianfeng1994@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241111_085048_436714_1F21324A X-CRM114-Status: GOOD ( 10.90 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add the necessary DT changes to enable HDMI0 on ArmSoM Sige7. Signed-off-by: Jianfeng Liu --- .../boot/dts/rockchip/rk3588-armsom-sige7.dts | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-armsom-sige7.dts b/arch/arm64/boot/dts/rockchip/rk3588-armsom-sige7.dts index 08f09053a06..b3e9ffe5234 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-armsom-sige7.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-armsom-sige7.dts @@ -4,6 +4,7 @@ #include #include +#include #include "rk3588.dtsi" / { @@ -33,6 +34,17 @@ analog-sound { "Headphone", "Headphones"; }; + hdmi0-con { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi0_con_in: endpoint { + remote-endpoint = <&hdmi0_out_con>; + }; + }; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -164,6 +176,26 @@ &gpu { status = "okay"; }; +&hdmi0 { + status = "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint = <&vp0_out_hdmi0>; + }; +}; + +&hdmi0_out { + hdmi0_out_con: endpoint { + remote-endpoint = <&hdmi0_con_in>; + }; +}; + +&hdptxphy_hdmi0 { + status = "okay"; +}; + &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0m2_xfer>; @@ -723,3 +755,18 @@ &usb_host1_xhci { dr_mode = "host"; status = "okay"; }; + +&vop_mmu { + status = "okay"; +}; + +&vop { + status = "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg = ; + remote-endpoint = <&hdmi0_in_vp0>; + }; +}; From patchwork Mon Nov 11 16:50:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianfeng Liu X-Patchwork-Id: 13870976 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 BF47CD3ABCE for ; Mon, 11 Nov 2024 16:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RcMh3zBA0W4ZofPkbcM9GsES2tCsjVyybiR5e4cwDe0=; b=m4k41M2+IaFlOR Y8J9qsWq/WUnaXJ9+zTe9ZBFZIcekRBM+vdQwPdX3UtL0FXJF1EVt76erAo6twOy8Mgkeg7+KYlBt PbooV289bGA5AHPBMFEXgbWhCTLDrqliv7w+nyRZO4zkpgEz/Q0URxArzGidyuMRFtNUdmbVEi50Q wkIUh8wG8rfqeX9T2jREQus1xYNB5TsxkgcZzm72emGs15ZAGE//78PUOx2nSbXYKq1k+zplojGNc bhRZkHxZT1vv8KGXAbJXcfalEJzciORq/vkcwPMh49quvhvfaj7kJIOK4rdBUVb8Vx2LvS2paLwuM heOPft88Zgwb163aiC+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tAXgG-00000000dgj-3JKC; Mon, 11 Nov 2024 16:54:24 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tAXct-00000000dCQ-10bC; Mon, 11 Nov 2024 16:50:56 +0000 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-71e67102283so98698b3a.1; Mon, 11 Nov 2024 08:50:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731343849; x=1731948649; 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=gfIh7QFf8oEaQfYkdv6ZpaO6sL/ncFNHIot8BWk/VIc=; b=cuGaDI8bpIB/jz5nasDFaG+06Z1XTYIDCz84CFqIol52HxgDtC4Cn4k1Qo2dCjG7Pl DNg4aVhl28bmuipEs8Twly/jWAwvAJR6IDyqrhArjA5uqM5B7V+oHc9fHoPdbIuOT/jr R+FYHWBC/uiuQh4lrhYPmy3XjJ3kuuD/EvoUzHn+ZE+bCqRXp6Em3aF07s0FsQWFc0vq SZnlbKrV49wsKtwlZiBJJW9H4UjS68zWVRGRWDt4i4eD+ItxinIOii4Y6zlFPqD7ya+H iJZx1chNIyY3walh4djeafq2AokUPAcVcu1kjq1MVjYdGrIdxbeU8HH9K6TtBL+zmTRb 2xzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731343849; x=1731948649; 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=gfIh7QFf8oEaQfYkdv6ZpaO6sL/ncFNHIot8BWk/VIc=; b=t9b9uQZRm1q8uwPWKzFWI5BOZDGoqj0M2xYpi8bG18Nu3l82deZ36G2hHnGtEFMuc4 2Z+G77NfpSoNy2zEA2Ze4DDci9dUE4TaDt/UxYSP+g+B57wzS+LZ83beJ7Uht8cRaGX4 ja0NvNa5wsGABCj52nq8MZVfxvmYOIE23GAjsvqirD4KXWtzqNdHxT/XdWgqtdy8FTvf BbIHXpx0/zWmSbrQIVPuL6zx+t2p9sAJW9OzABZQPssrlimgamfkbmWhaEiI5Z8cipok vIs66xiflj4+L3z7V9X84ZfEs30FKfzj5W07K0ggATnJAhlHguWAx8/cth4F/Gt9zJ9+ 8JvA== X-Forwarded-Encrypted: i=1; AJvYcCUAsdRaIAZ4uxnZhD7KyWvobtpAc6po+MVBRFlolmkla6hBsL6OpGaQhQ2CEZ+jYaBwNfcoWgxe6szkiWlsi7So@lists.infradead.org X-Gm-Message-State: AOJu0YxInzoYDqiVZSczTsknrkUCZrThJbXzmsKXofKq6QDIbb8eKcgy Efs3O05nYuhas7fpiNh48wM6lTeZpfDN1a1ZKpv0mgDwOVxQWcCwsFk09zO2 X-Google-Smtp-Source: AGHT+IHfynhJtyo2TYb9cgYePvmyNGNyO/FFedYkfCOY6PP3kqTXtwUZx7toT125k2vM6Ak06pC67g== X-Received: by 2002:a05:6a00:4614:b0:71e:5e9a:2db with SMTP id d2e1a72fcca58-7241338307amr7053453b3a.6.1731343849040; Mon, 11 Nov 2024 08:50:49 -0800 (PST) Received: from rock-5b.. ([221.220.134.31]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72407a19dd8sm9401955b3a.157.2024.11.11.08.50.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 08:50:48 -0800 (PST) From: Jianfeng Liu To: linux-rockchip@lists.infradead.org Cc: Jianfeng Liu , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Rob Herring , Stephen Rothwell , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: rockchip: Enable HDMI0 on armsom-w3 Date: Tue, 12 Nov 2024 00:50:04 +0800 Message-ID: <20241111165026.60805-3-liujianfeng1994@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241111165026.60805-1-liujianfeng1994@gmail.com> References: <20241111165026.60805-1-liujianfeng1994@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241111_085055_306616_EE61B72E X-CRM114-Status: GOOD ( 11.22 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add the necessary DT changes to enable HDMI0 on ArmSoM W3. Signed-off-by: Jianfeng Liu --- .../boot/dts/rockchip/rk3588-armsom-w3.dts | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-armsom-w3.dts b/arch/arm64/boot/dts/rockchip/rk3588-armsom-w3.dts index 779cd1b1798..5b5a18c8edf 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-armsom-w3.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-armsom-w3.dts @@ -4,6 +4,7 @@ #include #include +#include #include "rk3588-armsom-lm7.dtsi" / { @@ -32,6 +33,17 @@ analog-sound { pinctrl-0 = <&hp_detect>; }; + hdmi0-con { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi0_con_in: endpoint { + remote-endpoint = <&hdmi0_out_con>; + }; + }; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -138,6 +150,26 @@ &combphy2_psu { status = "okay"; }; +&hdmi0 { + status = "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint = <&vp0_out_hdmi0>; + }; +}; + +&hdmi0_out { + hdmi0_out_con: endpoint { + remote-endpoint = <&hdmi0_con_in>; + }; +}; + +&hdptxphy_hdmi0 { + status = "okay"; +}; + &i2c6 { status = "okay"; @@ -406,3 +438,18 @@ &usb_host1_xhci { &usb_host2_xhci { status = "okay"; }; + +&vop_mmu { + status = "okay"; +}; + +&vop { + status = "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg = ; + remote-endpoint = <&hdmi0_in_vp0>; + }; +};