From patchwork Mon Jun 17 03:05:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13699925 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 300D4C27C77 for ; Mon, 17 Jun 2024 03:06: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:MIME-Version:Content-Type: Content-Transfer-Encoding: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=yFwsyf1hkdKdaz4QTwfikc0ykmFvd1jglofoX+YanY8=; b=JLy9AyGqUqwUBdZrokACRRt1TZ ukvjVHVTYPSgkqIFPyQSSz3NDlxLKXCtjbymShpHK72SQBOlCdyBCgtBEEGyIlhOdoNkUYWnM6iUl F0+QvztbDenL+K0XwPQHm+rewNNQ+X5HE7d/IUPGEFKlw8749qE4ZblWV2Eddx7bXLfVEDcaG9zst 8+W/g252JIsWw3zlqVIXxUF2TlBwc0P9v3+DPsPw+/Jk2IpWWAuQpf8tmCaI/GCaZJ6wOEeGpxyKM 9ZYtdNdpLHGWuCtkGYfVLyoglrHTxFl/aAf61tl5ocBbclc3yjiEAt88Y12iDdXyKa6ZHCd1s27hz bvjY/62g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hg-00000008xWb-32eZ; Mon, 17 Jun 2024 03:06:44 +0000 Received: from mail-sgaapc01on20703.outbound.protection.outlook.com ([2a01:111:f400:feab::703] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hS-00000008xKg-1lZ7; Mon, 17 Jun 2024 03:06:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lzY6kM8jBePuFEuP1nFaM4fM5YhrvYeJ+fQUEKXt5RjT/rL1BFBnnafvwTM+S1eslqvVZB1wX9QiffFA8NMJCy/vOqrbTD1PVJ01OtZ5w/AzAGbx3Pso6nyqzdn11icURyxTTGPTowOkv+OWy7CxHfDYkpGm9egoIVXopV7lSZsWAg9fMnZcPpx+G4ngP2zc4QIL+kRr1hxaLX474ATI5Qihb0w1v0L/+/s0oQ2bY9NC5Jnf4E8T5cZjRXojZEFWsWHPueVntnKwXfxSl4iixBSwjPVUXBBHW6fs69xK8ocdq+XiS7pe7vL1SFBXu8hGuFiMRWCE5uZp4+ZZ0cRXjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yFwsyf1hkdKdaz4QTwfikc0ykmFvd1jglofoX+YanY8=; b=OStR+R3V+UH/nEbAP/dZK3QGKC6Byb+PThkArjj7VHZj9tP7U7dd3zC6cFSilHP7/m2NHSjVA2Sr8ZZYn+Qs5bwTSP+g+lEZqoVii3L16gIAl9vU5+Jn1aYMf7Fn2UXX0PeLDgBKMuUxOduRYjp5SuEEwY9tRwdNFqZeodDocJfrN7NWiHL4tFemaxhqTGCSAakC7mxVFeftGd4TwG+7Muf0Apa6Qnk3TvUkfnOG0uvKcUNahehoGfu5sBy28KfGN3wRuBN+gGeYBRIp6RssbvC6l+MQYfhe7ebCf78RFvKRUCsajl/ubk9xB2hN0itk4lMQsY7ykuJD/YoWjXrEyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by KL1PR03MB8001.apcprd03.prod.outlook.com (2603:1096:820:fc::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Mon, 17 Jun 2024 03:06:27 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7677.029; Mon, 17 Jun 2024 03:06:27 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: nick@khadas.com, efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jacobe Zang Subject: [PATCH v1 3/5] arm64: dts: rockchip: Add HDMI & VOP2 to Khadas Edge 2 Date: Mon, 17 Jun 2024 11:05:35 +0800 Message-Id: <20240617030537.3112356-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617030537.3112356-1-jacobe.zang@wesion.com> References: <20240617030537.3112356-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB8001:EE_ X-MS-Office365-Filtering-Correlation-Id: 562502ed-8a45-4f8f-81be-08dc8e7a7a57 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|7416011|376011|52116011|1800799021|38350700011; X-Microsoft-Antispam-Message-Info: 2ixMqbSdlV0ashFyjtm2j5mWzBvYRqJBz2lANZ7+V1HPF9ZzMKw6tnkfmslfquHEUhB5UWtCB5znXgFqrrg8iSlNeS2hiXBpavKF0YnQbOwpvfntCopc4ZxuMdue/Qcy6cSxOrROf+NzTlIfldfdn9q+IH5aAAugrGDoXSysIj3L1U9Yvf1Y0wFMMVY09/dDA2eQmav02z2jho6LuQHE/BC05Itph/ybtsv1J5miGrFpozmMwkOvMLd8hJIXUF7zZzpETYcucce47mZaEmsEO0nFDngOvkZd5xJl1bmCuDlev7DvPy6cPU/G+4SCDgCIJfNEZlZTgyy6n/SG3VYCbe/b7BIefxjlLR8lVBj662rXhRXVwq3s6FsY+MClXlJ4XQc9ChCq6/0ZeBO6AxdzxMUm2uwKkn30A/qrDbp+jeey/hKGEEPzZ5lfMYfK81VAJf3Voh6KkTg3J5V27Nly+/mRtvUSepetES7Mbp8dSOf/zkHQpSUIgMULwqMyZUrqwGyS6PEEe2dtE/7HlVIkruKp067iouRh0jFw/LXbPRcTu2c1iBGMWl6Hmk7eToWr5qc+uKQ/TRfYbxgxsfBq8cnzeb6pA/k3cTgelpvF4LNKd6ISxTxoPP6ZwV2+g4+J4Q/vN7Q2cOLiFGms2DY7P0UsHpmm0qlXNX0JP2Jwt/GHsNDDp/EU3OLg/wlTOS6Y3T5Px06crC72MJcn35b4krvoUpW+DOr7NxdgqodjbbC3Mcga36pFBvjZH5hpEFRdE33Bk54ZskkBd7vfhxLbTWKeawRsd4mupbO0Chv9wsKSC3Zarnr/HoB3UsmjE5/2rQRKDevY+/6Rhef4/yCTd6zFfiAshxOHzY6y539D/QY+A/3tPQaGx3aR3zmYVmZg8XKndJiJrX3qOFJWm0uTpJzp/sNz39lIKtlem/caB5ip2t/wPvH7vl+u1qazLlYPvOpilcbIHq0NFjXeL3Y6lPh12MgxW6J3eIdX40SCOUpKisWUatNO7CouQlc/gwC8bGBkICHcmeG1oIJDvgAl822MK2t7EZNhO+/pLe2MOgyX9nByTB4NyCwCBSDuHQs1Ckfc7MlmnXnfxRstILvZL//7VoX6ZRqOgxC2wVg+C25EXIo9yhHlu0aBGIno9cmqkGVSE0FKidypx5AbrSRVQiYDqVrxtaDRkUnFaT0Nnj8zyPUmUoZiXIjHQLQ3YUK8pDXglLztpKKYD+ldP4r/l7z0JBKdkAI/fkJ7u9zWvct4RtG21X2cA/0I+WEqOCH90R2PpAxfjYOvQ2o4lBxH2BPo6rAUXzEO/8ULNkrs6PDvMzHtT7od9enk286cM30YG1earH0AJrrThhrE2B29bOg0YsVBdoWX8BFINXjCQR8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(366013)(7416011)(376011)(52116011)(1800799021)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: v4OE4p9p0Zsd9N+2Nt9D7vyJz4SavJ46caW2IuKONrg+XNpNRwh8Xr3WLafDvGenu1AlsS0KKpjKKoL7lt8vdGtRV0L0OIT4f32qhzBfn3icJOu3MB1YuV5J6200Hi6dxBs1EIQQ/XX4CZeYiQ2aw5ayGNiOKTeqgsFqISdnu7+JP4VC3F08SYY/YYuv793596ISeNK2dkFp44DdyRayaZpfC+6lBLT0TFfO/wnHElFmPJX7XRYOozxgbJftpbatbANGvM29wW0x2UE2CQrzTybB5PxiBPb8Xq0mlUHSBF/B6PtLP4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OGU1cDgmR7ymoV8f+xXf3ShaT/zQvzTnLbLRjq4jxd510aRD4wRWfATutKvXbrGfFAp7reivQiT979By7+oWA0MRMZ4RNX7/mEJViJRH0p6VSbep0sVWGyjLCyzeUn6vFero5MEgXyr7YTvsYtyv3+G5EuT1dqJ7zv+/DPnREfh6CJOYXSGsszmByw1S+JsKvDt1XRr5YtFvr9kankevY1EoA10IJpssZex179w== X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 562502ed-8a45-4f8f-81be-08dc8e7a7a57 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 03:06:27.0719 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: C8k4Mv+LT5IIlUvVSpy8s5xdfoYNdEQ/NA+DGj1Vw8jvX0r+OtEOQWoT2BUDn2IjiJdCmxfUNIRxBV1EtEe/tA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB8001 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240616_200630_557928_F24E0A02 X-CRM114-Status: UNSURE ( 8.59 ) 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 the HDMI, VP, VOP nodes which HDMI function needs. Signed-off-by: Jacobe Zang --- .../dts/rockchip/rk3588s-khadas-edge2.dts | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index 3570578d225b9..f8bedc5e05fbf 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -7,6 +7,7 @@ #include #include #include +#include #include "rk3588s.dtsi" / { @@ -827,6 +828,7 @@ usbdp_phy0_dp_altmode_mux: endpoint@1 { }; &usb_host0_xhci { + dr-mode = "otg"; usb-role-switch; status = "okay"; @@ -851,3 +853,37 @@ &usb_host1_ohci { &usb_host2_xhci { status = "okay"; }; + +&hdmi0 { + status = "okay"; +}; + +&hdptxphy_hdmi0 { + status = "okay"; +}; + +&display_subsystem { + clocks = <&hdptxphy_hdmi0>; + clock-names = "hdmi0_phy_pll"; +}; + +&vop_mmu { + status = "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint = <&vp0_out_hdmi0>; + }; +}; + +&vop { + status = "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg = ; + remote-endpoint = <&hdmi0_in_vp0>; + }; +};