From patchwork Fri Nov 17 09:28:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 166029 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp406000vqn; Fri, 17 Nov 2023 01:31:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbY5aByvNXAibFnXL6cAC5qbmgpYPDxNcIEIBrKotEV854mm1xMJzjf8sSqYWtATFXlyhe X-Received: by 2002:a05:6871:8802:b0:1ef:b949:3f5a with SMTP id te2-20020a056871880200b001efb9493f5amr19525513oab.4.1700213472030; Fri, 17 Nov 2023 01:31:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700213471; cv=none; d=google.com; s=arc-20160816; b=TUqnLyK/xR+R3mw5JNj+Kn5eD7yZO0irHtFCQpb44OZcMFAn0dppQWg8DRT8NEHWos HYJAQtVPfIBd9IJdmXlGM2rmlbxjuHDTSfywhUvoQmwKFbrtkVZ1nm4z2E1jOZBlLRLz F5SdGny+KcFbCyV3ahEEmk6LuClGdc0Ax6mi7DOJ0El4baUwGs0Q5WXvAEPhWQRRymZB 2sNWwT9zm6O9g6vZ5pha84nrJ87329tMoo1D7tyyzBdSCHlGHMQyrjoN7J0Bo3fK1P/d zateGafrw9MABaF+27cne5tQXUrcY7e07VGQJE3SzUvHYY72MtZFZTa63gv3g0zPAVCp RASg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=CE16wh9zl1KgMuVJ0r2u9v6WuIGMBSyHIrUg3kv13nk=; fh=gjf50MpIeI4y7DsLDR8KPyZZDZn0L+YVyMCrolRSpx0=; b=mSmaBL8dByVzrgk9TJq0+G1FROUYBnPyDWWqJTHxmjhXQgrPXDeIkcbKeXH3IRAISm QGzDigz0DPh3Pyg0K0dqCXLXYD3Nh2oN/YfWN5NhfuyjGGRy2cXFmflLcoN/DClPNfXl On7cY1hx8pFh/R5RKYLDJgtVawTY/3dtCLtkCxNHd2fZZ+ZPzoPrVI5+lA+EYtL9ygNW GoehSBm5QXAmTgPmlesmixtstx/v1UrU73s+NY2ccwCSQOzbdqL7HqcPGEcq2NduXc5s xBpClBxkg0juJEy1jl+drqgm5+TCFzmIOFcshOj6EUEftFfE4yduofIebFsdqClxFl2Z Q/MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YCgluMwU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id o4-20020a635d44000000b005bd42f65dc5si1443513pgm.285.2023.11.17.01.31.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 01:31:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YCgluMwU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8AE3D81D2B7E; Fri, 17 Nov 2023 01:31:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345829AbjKQJaa (ORCPT + 30 others); Fri, 17 Nov 2023 04:30:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345752AbjKQJaI (ORCPT ); Fri, 17 Nov 2023 04:30:08 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DD6CD72; Fri, 17 Nov 2023 01:30:03 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9TXMh058787; Fri, 17 Nov 2023 03:29:33 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1700213373; bh=CE16wh9zl1KgMuVJ0r2u9v6WuIGMBSyHIrUg3kv13nk=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=YCgluMwUd8suq94SZHXdXNR7vNQ+5lXaqR37nulSVvU0Z/HqIxnZBptLkpoFjpLip ohF1qQPIRY76Qa+1986xYm0KsVyZu5NkbaEwIvDXrsLVo2LN1Ls7iyFy+L4iqxPQLc 93pUwZLXfWbDXUnNAHjIhWMKO1kgZATguyFHTT64= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3AH9TX9r075646 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Nov 2023 03:29:33 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 17 Nov 2023 03:29:33 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 17 Nov 2023 03:29:33 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9TW11125272; Fri, 17 Nov 2023 03:29:33 -0600 From: Jai Luthra Date: Fri, 17 Nov 2023 14:58:09 +0530 Subject: [PATCH v2 1/9] arm64: defconfig: Enable AM62 CSI2RX MIME-Version: 1.0 Message-ID: <20231117-csi_dts-v2-1-bf4312194a6b@ti.com> References: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> In-Reply-To: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> To: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch , Matthias Schiffer , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1283; i=j-luthra@ti.com; h=from:subject:message-id; bh=rUb+tMOTZAb+lVYb64icNGmFWgAhMwWgJGOMQV1XTKI=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlVzJsuaA30WzP72QhttVUNkNtw3tMHNph8yWp/ rQA93smxKuJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZVcybAAKCRBD3pH5JJpx Rfr+D/sHMfFB4h7n0BFJsbJ+20P0uwCTUJ4L0GQ1Lwv7vp5ySZ5uRtVCkdNk5TOF0bDdqMybWYs I9VfMaizm8boY2h2mTIg//6YEOptYHMPPsTM0oC2VXNfZXudW4XBDwdX9+n23wAYStmi547KBCf yxUVRi0qPzw2As5iqf3H5Y12Twe59ZwVQfzhn9JHaoIe+0tiAUjyFK7r2vEStxgMnHsJotx0/WH VSHZVDiexIU8/ZQ9+r7emzjuaEI8mQZBl17JlAMfZIE/LWFsAdb3SRcjUukMPvnQUne1bzaZlg+ +Jpn5+rzO5mv62K+NxhYholRTK748nq211EKNO4+Yn32HqyjNglgHF9H8eoFN7Nu/fIpf6Jc7ob x7OkH3OCt0PmVtb8QDodK4JJD7suepZT/EEMGxNqs+Ogsa6sUcg5MNggTC/swAyOZqchb6Bhzq9 F267QewTmXQb9k+sRycbaRpqfPxW0i56FDnC737J05UszpVtfcIgU6twwDQwk9niqmSlJU9n9pe ZBJjff9kAjvMkhETKpEago6wYDETPh5y6IW96Zhc3oDC9Jy6F7e+YHB96nO5KQV+Aunz+UieoXw CMSMxssyLyfAeXQgJ5bjPv51QNSSzBPHrbQCIlhUa7eWFnYzPnfFgmXIl6X/+Fusnojv83XmxJI 3KBAdTtVrFBqJSw== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UPPERCASE_50_75,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 17 Nov 2023 01:31:01 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782803041868971009 X-GMAIL-MSGID: 1782803041868971009 AM62 and other K3 based SoCs use Cadence DPHY and CSI-RX bridge drivers, along with a DMA wrapper CSI IP for the camera pipeline. Tested-by: Martyn Welch Signed-off-by: Jai Luthra --- arch/arm64/configs/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index b60aa1f89343..aa2df39d072e 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -783,6 +783,7 @@ CONFIG_USB_VIDEO_CLASS=m CONFIG_V4L_PLATFORM_DRIVERS=y CONFIG_SDR_PLATFORM_DRIVERS=y CONFIG_V4L_MEM2MEM_DRIVERS=y +CONFIG_VIDEO_CADENCE_CSI2RX=m CONFIG_VIDEO_MEDIATEK_JPEG=m CONFIG_VIDEO_MEDIATEK_VCODEC=m CONFIG_VIDEO_IMX7_CSI=m @@ -804,6 +805,7 @@ CONFIG_VIDEO_SAMSUNG_EXYNOS_GSC=m CONFIG_VIDEO_SAMSUNG_S5P_JPEG=m CONFIG_VIDEO_SAMSUNG_S5P_MFC=m CONFIG_VIDEO_SUN6I_CSI=m +CONFIG_VIDEO_TI_J721E_CSI2RX=m CONFIG_VIDEO_HANTRO=m CONFIG_VIDEO_IMX219=m CONFIG_VIDEO_IMX412=m @@ -1421,6 +1423,7 @@ CONFIG_PHY_XGENE=y CONFIG_PHY_CAN_TRANSCEIVER=m CONFIG_PHY_SUN4I_USB=y CONFIG_PHY_CADENCE_TORRENT=m +CONFIG_PHY_CADENCE_DPHY_RX=m CONFIG_PHY_CADENCE_SIERRA=m CONFIG_PHY_MIXEL_MIPI_DPHY=m CONFIG_PHY_FSL_IMX8M_PCIE=y From patchwork Fri Nov 17 09:28:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 166028 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp405910vqn; Fri, 17 Nov 2023 01:31:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHAeLzHIbwdQMdgVn0HIEHxG+PAuq5vzxKvMjMkxbgC53iGyA9QOn1QVoglTrMcbWcg3Uhk X-Received: by 2002:a17:902:b907:b0:1cc:29b5:a2b7 with SMTP id bf7-20020a170902b90700b001cc29b5a2b7mr10653820plb.51.1700213463262; Fri, 17 Nov 2023 01:31:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700213463; cv=none; d=google.com; s=arc-20160816; b=MTjOpW2Tyd03RZNziIlEjJ7NYdXfHIELDkIkVyFfh+7vyT1yH6hxak9HdYQVP3+TCv MdOdR8SqjZ7wboGR2AHzDxUxlBBjLeuSPYNNjU5Ty7G3+O5OK8wjpIh4PTQuP5MWfwTV JmsyWgUv3xDfHbgol3U+jdLVsZB9LbMQ4utdWRg0ExN9dMWK7fVfSU+N6oyLV/BXn2fX vqszNYw4o50T0/aPUOj1OjzzTItfl0g22tzXzhx31dALl6/Vd9H6kGa0N43EQ0XAyQ7h MMFw0xlZc1Rxrn0tYTHmoqXIuiu8m5bKMV3QC7p6uhSrMiPfpm3QU/Zl+GnnvDZhEb4P tg+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Y2KXqIr6GkpmWHFBYq5JG+pjs0o2T4SLW2pvUSdpvKA=; fh=gjf50MpIeI4y7DsLDR8KPyZZDZn0L+YVyMCrolRSpx0=; b=CmteUdCtQDbBDpzso1kuxbQHchTQf6KP1ZmCJOVHgyFPMZSdR3voZhx3/OLLYkWTm5 0NE0b+F8dgWtLf3upvhJYyTCYe096gwX/hfI3ZL3GjZTQ/KLXoiILq91eSNkSrDL88g/ ejM3HDM9uSbHR0gpLkJ/Xc27ePQwz7jPktiF5uTLnH7XOEG9e/r8SwUkLd4dc772MrP9 5t4Ra/1f+m76c86HPTYEY2AK+pcMnkRg7vJTtfDcLaM4QRehGJQHoV5DZFATA+HiPQ6P 7Iu0041zZjMSloJVQ3wuYHcO71KQ96bv+9FxRM2ZqtKDVRngHicUfwIhyqJl6DVlcGWo 1JjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=R7ZzeWnO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y12-20020a17090322cc00b001c9fb2acff5si1498352plg.526.2023.11.17.01.31.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 01:31:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=R7ZzeWnO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 52FC480F7E47; Fri, 17 Nov 2023 01:30:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345799AbjKQJaP (ORCPT + 30 others); Fri, 17 Nov 2023 04:30:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345764AbjKQJaE (ORCPT ); Fri, 17 Nov 2023 04:30:04 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62C5FD6D; Fri, 17 Nov 2023 01:29:59 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9TZia071048; Fri, 17 Nov 2023 03:29:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1700213375; bh=Y2KXqIr6GkpmWHFBYq5JG+pjs0o2T4SLW2pvUSdpvKA=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=R7ZzeWnOoATd14IFmL4x2Ftv3pvlE3QvrZYhkHfCY/q53Uo1khJ7uy0GJcIJhsa1L 5UK+WuTTUReYfTaYApcVHAhIKeCx5+xAiPwRZkx1+e5Z9HF8/g6wYmw0IVzDd7O19v i8n7Zyut8x2as8WW8swVqTV1Z/V0Y3FSeOe+wPbo= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3AH9TZ5n023835 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Nov 2023 03:29:35 -0600 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 17 Nov 2023 03:29:35 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 17 Nov 2023 03:29:35 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9TYcj105746; Fri, 17 Nov 2023 03:29:34 -0600 From: Jai Luthra Date: Fri, 17 Nov 2023 14:58:10 +0530 Subject: [PATCH v2 2/9] arm64: dts: ti: Enable CSI-RX on AM62 MIME-Version: 1.0 Message-ID: <20231117-csi_dts-v2-2-bf4312194a6b@ti.com> References: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> In-Reply-To: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> To: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch , Matthias Schiffer , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2229; i=j-luthra@ti.com; h=from:subject:message-id; bh=kqPUeOQSnHjljHs1KFWbF01F+dO4ppTwew4BygHBqvc=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlVzJt0DfH+zXwBK4dGaeNu22y4EW7Hcqmn+gmn uO3GwA1PoGJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZVcybQAKCRBD3pH5JJpx RX5JEAChITq4bueV82r7M9nWdos1s520pHWw8IkIh2aX+QSlYnwbJOO/jCX0mykuEiVNUaOZhbZ DtXdgB/5xHeJHza5xaISlGjbsYfnMwRzkBSOvPWIqXvzpMn3UlwczPfeFKvM/hiz3oIZMx9ZKaI NmFRoCydgVBjMDEe4t2ibw0zGGNnAHCZpMaGnGRAnIaUsSCMjLgkQS0jAI5LCA1Mw/mny13XzNJ 3NQfXPhXI81VAf0ubD7mIWifxoJpXP4CoXnK2NXBWvIdbNT+tzgnm5MYvQ86m0B+Afr2GeWVnv/ aQILwGm46WLnjrQvWhacGhk1tP9U67K+RL8LhncmM38xzgnuhw2lYWQaFXOq3R1kE8ZMO7LSMnG f2IH4k+hkxRfDOGL0fmQ5ebaj3yRhJXxDWtdOrmGxzEll/5kdbTpoxnSKBWKqBiT9y8+g+M/I9u JYnPDuWdiYwKuLe3Di7T9BXfScjp8iT0K5agjnhV58MjCD9D/8bc3wnxUGDy6JRSur9leS/t8F/ quBcq8ZQPH1MNDg2OWoxRaBeG4AVpsEIwwTX0s4YA6L7xQXsa5tmSLb3SCQvyPVq8hJoVid+RTR 86yzqUx3Qo/0vbFdYnruJAvT7oj8/klo/oCgJVRBSNjrWH2tZFa3JdeI1UF5S9HaaB42Oa0VGuf qgDYmPhpEj8pvNw== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 17 Nov 2023 01:30:40 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782803032598460046 X-GMAIL-MSGID: 1782803032598460046 The CSI2RX subsystem can be used to capture video frames from CSI-2 cameras. Add nodes for the CSI core, SHIM layer, and the DPHY. Tested-by: Martyn Welch Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 62 ++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index e5c64c86d1d5..c0a95f6aff5e 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -965,4 +965,66 @@ mcasp2: audio-controller@2b20000 { power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>; status = "disabled"; }; + + ti_csi2rx0: ticsi2rx@30102000 { + compatible = "ti,j721e-csi2rx-shim"; + dmas = <&main_bcdma 0 0x4700 0>; + dma-names = "rx0"; + reg = <0x00 0x30102000 0x00 0x1000>; + power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + status = "disabled"; + + cdns_csi2rx0: csi-bridge@30101000 { + compatible = "ti,j721e-csi2rx", "cdns,csi2rx"; + reg = <0x00 0x30101000 0x00 0x1000>; + clocks = <&k3_clks 182 0>, <&k3_clks 182 3>, <&k3_clks 182 0>, + <&k3_clks 182 0>, <&k3_clks 182 4>, <&k3_clks 182 4>; + clock-names = "sys_clk", "p_clk", "pixel_if0_clk", + "pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk"; + phys = <&dphy0>; + phy-names = "dphy"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi0_port0: port@0 { + reg = <0>; + status = "disabled"; + }; + + csi0_port1: port@1 { + reg = <1>; + status = "disabled"; + }; + + csi0_port2: port@2 { + reg = <2>; + status = "disabled"; + }; + + csi0_port3: port@3 { + reg = <3>; + status = "disabled"; + }; + + csi0_port4: port@4 { + reg = <4>; + status = "disabled"; + }; + }; + }; + }; + + dphy0: phy@30110000 { + compatible = "cdns,dphy-rx"; + reg = <0x00 0x30110000 0x00 0x1100>; + #phy-cells = <0>; + power-domains = <&k3_pds 185 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + }; From patchwork Fri Nov 17 09:28:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 166030 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp406110vqn; Fri, 17 Nov 2023 01:31:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBSoUweZSbn4Jspf6sNIQuAUQ5f5u7AIBAcNfGK+f30PHPxiXxqBqUHuZANivboCtCPi0w X-Received: by 2002:a05:6a00:18a4:b0:6c4:b182:f3d9 with SMTP id x36-20020a056a0018a400b006c4b182f3d9mr20825181pfh.21.1700213485355; Fri, 17 Nov 2023 01:31:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700213485; cv=none; d=google.com; s=arc-20160816; b=RxHr7VVUhsBQIvzVLxA6ZRnEmS0y1z/8Tc5ceRU+c8PRb6lfjLVXsfFNV64tpls0io IBcYERVzXX406i3vOcHgh6qkf8h0uXM4XmxO+XwTJPnp51v/h564B4xUXtX3KFtaTTvb Vir9O/dNcCxJ0CC967JJdFzDMBUgn0EYvPr100V+2bu9a72vzf5een2c58foSzEpUL3n FjnQ7OageWe/zs0McjCdF9kmvAZdGVrjayhkKCY/23R1a1P3rf0G6fQ3HxH5Lplg7lMz YMg2zmAYljgAwkMkVbNE58zq9Kyu7G45NHVrLX1NVzO1JGT73GieBv24ivSeg88YDKSu bCJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=6ItgAaMkCxt60XJc1WHuFhFNITAxxpb0vOwKj0LoWdI=; fh=gjf50MpIeI4y7DsLDR8KPyZZDZn0L+YVyMCrolRSpx0=; b=R+1HTpefxUcT+3L7/5cnXxwX3Z1rAW263pk1mkwYJyPFGaKTLp3hLN1PqMnICfBgT6 tPwBIxPXejbYaReO0IkYZCY6Td6yVJZwpdSxCsxwu/lPu0su+nfnEKzY2sFkxFKro81I wE4P1mgeivThuBJgcFUZqdGn7WDCSJMNrAFiLEPDfFS7WhCL78DznA8Wb777CFlmUTM7 U2Le859SCXZsfWthdweN8yjgC0Ib8oD9jw7FytPzu1dgwl8VOL98UY2WN/QgT1iLc8D3 2dYCv+atCisDYR7KFQNgyk1uXuNZOgE6BNYqwEH0u1gKIndAJSWnUZjVuC1IEi5TU4+u j+3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UlW6ZzHt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id t21-20020a056a0021d500b006be264b2734si1600076pfj.29.2023.11.17.01.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 01:31:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UlW6ZzHt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 88E4D80A2202; Fri, 17 Nov 2023 01:30:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345738AbjKQJaT (ORCPT + 30 others); Fri, 17 Nov 2023 04:30:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345658AbjKQJaH (ORCPT ); Fri, 17 Nov 2023 04:30:07 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E8D1D4F; Fri, 17 Nov 2023 01:30:02 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9Ta7a083279; Fri, 17 Nov 2023 03:29:36 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1700213376; bh=6ItgAaMkCxt60XJc1WHuFhFNITAxxpb0vOwKj0LoWdI=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=UlW6ZzHthl4vI3IfNBBnCmBsOfXkfzH9hxPpGzYJWGvaYangZLSnIeidxcuVWDapG jAGYJtm6Y4W05A8NG0rrv3STtCpxCjQLqemH8r2pai0W7UzTIkc4BiQ/pox7PlIuG1 +UVwWAN/C1K1+2M959P+Eoe4BqTfmM3k7kei1edE= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3AH9TaVp075663 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Nov 2023 03:29:36 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 17 Nov 2023 03:29:36 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 17 Nov 2023 03:29:36 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9TZdu017766; Fri, 17 Nov 2023 03:29:36 -0600 From: Jai Luthra Date: Fri, 17 Nov 2023 14:58:11 +0530 Subject: [PATCH v2 3/9] arm64: dts: ti: Enable CSI-RX on AM62A MIME-Version: 1.0 Message-ID: <20231117-csi_dts-v2-3-bf4312194a6b@ti.com> References: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> In-Reply-To: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> To: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch , Matthias Schiffer , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=3544; i=j-luthra@ti.com; h=from:subject:message-id; bh=UdyZV1rZtSB6XPR1HDnodj8ZtnvMZqzU69UiUMbOr4Y=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlVzJuB8Xd1FOnpIN3Z9fQLJkAL1nuj9uftwgPX +g+NOPKpLKJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZVcybgAKCRBD3pH5JJpx RSOmD/4ySbeyXBSj9FilWTs2EyMaNB8TQjvxQvGfjjwMCSgt6AG3sH04O4uUnU446505NoA7mPK gAosanwA8my5cvm6R6O169MoB8BjN0AmMYOTMeMzIbnth4wpt4brjz8huChoIVqbfaqkBIIQLyx LeD+nU/t1PoSzTi1L9XYTFqlIxHbjnI43+QaaqOYjQ1oQPuGuU1bR6BGzcb0n4yTx40EpIQMxg5 b3y45gXB3+bHEcJV7WoW9wBKHw8/5i8vJDl8D/lrAwCmNTWrPWmJHLGXwpsFvB7+SCpHylGbikY BP8PsU6dHTF/JV6ixrW7jGw8Ifz6GkF+mYIsuhRuR8JPALVyDRtIpoHDV+ZeFbCnyNo/kTpL12A t/+mkirLyxvOX4EKfXaQgrMSltfjS2BgXHSbhD39en0c3VjAbeKcyDfXcW4VkIGYgFc30hwQU+d gPdwDmHvToYq5G6sWKesihnQIQbx4NLSPwYRjlVKqJk4rZfRjgrcvQ6JmYekDk7t+kCDkmrzSPQ QoniDoeF+xeBBf0NchnThZitK/BnStXyp91s6xpROCi9AtyA4edEo1VIPBK+GlSKHxLmeDm839g uRxFGZ87Tnmy/McDeJMOCPVrVow8KyUEwdU8NZ3QHc6lMer79L+qg6fCh7zr86p4qV9aL7lW8VH 9HsZDA68rvN4pEw== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 17 Nov 2023 01:30:51 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782803055558800912 X-GMAIL-MSGID: 1782803055558800912 Add nodes for Cadence DPHY, CSI2RX and TI's pixel-grabbing wrapper. AM62A uses a dedicated BCDMA instance for CSI-RX traffic, so enable that as well. Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 99 +++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi index 4ae7fdc5221b..ea70d78eb132 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -144,6 +144,44 @@ main_pktdma: dma-controller@485c0000 { }; }; + dmss_csi: bus@4e000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + dma-ranges; + ranges = <0x00 0x4e000000 0x00 0x4e000000 0x00 0x300000>; + + ti,sci-dev-id = <198>; + + inta_main_dmss_csi: interrupt-controller@4e0a0000 { + compatible = "ti,sci-inta"; + reg = <0x00 0x4e0a0000 0x00 0x8000>; + #interrupt-cells = <0>; + interrupt-controller; + interrupt-parent = <&gic500>; + msi-controller; + ti,sci = <&dmsc>; + ti,sci-dev-id = <200>; + ti,interrupt-ranges = <0 237 8>; + ti,unmapped-event-sources = <&main_bcdma_csi>; + power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>; + }; + + main_bcdma_csi: dma-controller@4e230000 { + compatible = "ti,am62a-dmss-bcdma-csirx"; + reg = <0x00 0x4e230000 0x00 0x100>, + <0x00 0x4e180000 0x00 0x8000>, + <0x00 0x4e100000 0x00 0x10000>; + reg-names = "gcfg", "rchanrt", "ringrt"; + msi-parent = <&inta_main_dmss_csi>; + #dma-cells = <3>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <199>; + ti,sci-rm-range-rchan = <0x21>; + power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>; + }; + }; + dmsc: system-controller@44043000 { compatible = "ti,k2g-sci"; reg = <0x00 0x44043000 0x00 0xfe0>; @@ -876,4 +914,65 @@ mcasp2: audio-controller@2b20000 { power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>; status = "disabled"; }; + + ti_csi2rx0: ticsi2rx@30102000 { + compatible = "ti,j721e-csi2rx-shim"; + dmas = <&main_bcdma_csi 0 0x5000 0>; + dma-names = "rx0"; + reg = <0x00 0x30102000 0x00 0x1000>; + power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + status = "disabled"; + + cdns_csi2rx0: csi-bridge@30101000 { + compatible = "ti,j721e-csi2rx", "cdns,csi2rx"; + reg = <0x00 0x30101000 0x00 0x1000>; + clocks = <&k3_clks 182 0>, <&k3_clks 182 3>, <&k3_clks 182 0>, + <&k3_clks 182 0>, <&k3_clks 182 4>, <&k3_clks 182 4>; + clock-names = "sys_clk", "p_clk", "pixel_if0_clk", + "pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk"; + phys = <&dphy0>; + phy-names = "dphy"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi0_port0: port@0 { + reg = <0>; + status = "disabled"; + }; + + csi0_port1: port@1 { + reg = <1>; + status = "disabled"; + }; + + csi0_port2: port@2 { + reg = <2>; + status = "disabled"; + }; + + csi0_port3: port@3 { + reg = <3>; + status = "disabled"; + }; + + csi0_port4: port@4 { + reg = <4>; + status = "disabled"; + }; + }; + }; + }; + + dphy0: phy@30110000 { + compatible = "cdns,dphy-rx"; + reg = <0x00 0x30110000 0x00 0x1100>; + #phy-cells = <0>; + power-domains = <&k3_pds 185 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; }; From patchwork Fri Nov 17 09:28:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 166031 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp406229vqn; Fri, 17 Nov 2023 01:31:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJ21YvOMmQH64Rh9gajpdzraLEms7yk2d+xkrGzCPERaopEL9Yv7UL1UQzKZ41952aAgkl X-Received: by 2002:a05:6870:a54d:b0:1ea:b1c:b859 with SMTP id p13-20020a056870a54d00b001ea0b1cb859mr22200586oal.35.1700213498664; Fri, 17 Nov 2023 01:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700213498; cv=none; d=google.com; s=arc-20160816; b=zvF2H00PHHokDo2l8GnuQRbb2NbH+JJKYDIffKHWDdcP9FQ2oIiToEwOMho8/s6dYw c6YRF4GfKfBjZZsKGDfDQsy3uNcl+DZJ1hX0O4lzo9DIMRGCPkxE4C6C0LmrE58tIPTp O720mz6UKubUP1LseZjKsVLI9F4BU0xhrWhG3b8xxFzyXJ3QknwwwLNFX+LCj3aeZ+h6 fQYq/Hzj415zjBEDb3lURd6tpRoSjcz2rhyuBuSi0wg+dkm81MffBu9O4kxAPYlVPa6/ cPwTuP5C7NMHf018wgvYmUL2NTafmIYpmkEhfI62eu+6XxDr/GyvUq2MmORbJoKGzEVf ydOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=zmcZXRnf/O3DHdDwB61wPRcAg+uD5m20ddO3L0EkAuE=; fh=gjf50MpIeI4y7DsLDR8KPyZZDZn0L+YVyMCrolRSpx0=; b=JauA4khxPK7o+cjNFoIdPKmFCznz5fnmYpVeAGFpL7XaSC7yjGHYX4E6A+tCi37NyL 4081NPb+DBJ5776cLwEDgyWxb81viy78p720ouelCFvD20BJZhil8oS/gfJuEuwpQpOZ OHb95+j+FDXnmAvg7bPYw804j1VL4/a+rQHRpVPyYt0wI0XyNSCJb3GOHxs27fyY4hKm isSOFMy23W51UawPAB/EqjBFAbffZciHAJ/j73eyIJn2rjs/lt3CZpnMV0P7ltT55ask z0X7warB76IXuYxOZ7sGByK5cYelASP8scDZtO4LN3epu8hnrgobqkc4lXyAhtK4AOXe /NvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ncT3qPkY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id d16-20020a63ed10000000b00578c64433d5si1452590pgi.877.2023.11.17.01.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 01:31:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ncT3qPkY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A4DE5806A11A; Fri, 17 Nov 2023 01:30:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345824AbjKQJa1 (ORCPT + 30 others); Fri, 17 Nov 2023 04:30:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345749AbjKQJaH (ORCPT ); Fri, 17 Nov 2023 04:30:07 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3005ED71; Fri, 17 Nov 2023 01:30:03 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9TcY0083286; Fri, 17 Nov 2023 03:29:38 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1700213378; bh=zmcZXRnf/O3DHdDwB61wPRcAg+uD5m20ddO3L0EkAuE=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=ncT3qPkYiKnZ5cENqAGidjDL32UYz7lCk8ehwEk83DAsUyi3I2VLlVLDLV2HU2+iE kNe+3BjROyoo22W0ZhVMKKvoDszfviScw2/t19eAIoaC2wyyzxwr2gkOivbkZoPqzu 6BWqTAzTqw4kZ3P6Wm7Xq+3xx14imvINxRr+i6Hg= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3AH9Tc6H014620 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Nov 2023 03:29:38 -0600 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 17 Nov 2023 03:29:38 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 17 Nov 2023 03:29:38 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9TbUW017776; Fri, 17 Nov 2023 03:29:37 -0600 From: Jai Luthra Date: Fri, 17 Nov 2023 14:58:12 +0530 Subject: [PATCH v2 4/9] arm64: dts: ti: k3-am625-beagleplay: Add overlays for OV5640 MIME-Version: 1.0 Message-ID: <20231117-csi_dts-v2-4-bf4312194a6b@ti.com> References: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> In-Reply-To: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> To: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch , Matthias Schiffer , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=5458; i=j-luthra@ti.com; h=from:subject:message-id; bh=LIC3GIHhXLdiNuoGc+jg9VpDQIUTmYS+YEWHfVAN6Rc=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlVzJvNLiVWucMa2ZUVO/AtYWDMBhGJC9qoluCV MuRRmKuhU+JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZVcybwAKCRBD3pH5JJpx RWUDEACH8TepHetL6WZE2rdj01b8z/iN4EfT3TBflZ66chhEwQP3XEXpcq+TKjIxFfmd8lzwXxX CzPUqCZeBag3+7yTfP4PIigXUXs+U/ULplcGM647G9oPGTxZJgCRwSYF5q48px1dy7iVxNxAvlq apJMHwS+pni5MNTfxdTONpb1VihQX2/rVN42OMiwdKLmVQO239aaNLyd75337duc7F6w347AMFj RU/ZkT09oGQy3knfJbSx86T69ypH8vw7/AK6i54FbKdLqN5yVNuqMUQJRT+6DfqJkEi6mXx5WvY Ru1uoM9HLlKNkjiYMtAxICN/ZO8HXbT1OpIktw6yJL5lXBcrlCkzeMmR0mpPQc5x27mllGI0Qh3 xz+ULBrNbMeVe3NTbvyncCidGJ3Wa7ocMrA559kliSousX2KYAvXAEBnfowbkk65m8Zh20StnPr th37uaVeM3muZu0C9d+ApJJv2GyfiORtn62572vDaCeouxQLkn1uMHxDaaAmEOrNvbB5UthWQs1 7kd/ifj80vSB13auNDiWxEpQXdPgEgayI32kE1BkU4j5sA+L2XXm2vKiZYdESJJUaNR/cIMlYi9 0v9pXVfdLik0V0ewS5TLrYByTpVsTbmcSErOfprYLqjTp5MXMTgNGanz1t2shsDyVQXPe4aByRW j3LjVOWt+YKfYiQ== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 01:30:31 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782803069594148660 X-GMAIL-MSGID: 1782803069594148660 Three different OV5640 modules are supported using the FFC connector on BeaglePlay: - Digilent PCam 5C - ALINX AN5641 - TEVI-OV5640-*-RPI The Digilent and ALINX modules supply a 12Mhz XCLK to the sensor, while the TEVI module supplies a 24Mhz XCLK, thus requiring a separate overlay. Signed-off-by: Jai Luthra Reviewed-by: Andrew Davis --- arch/arm64/boot/dts/ti/Makefile | 11 ++++ .../dts/ti/k3-am625-beagleplay-csi2-ov5640.dtso | 77 ++++++++++++++++++++++ .../ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtso | 77 ++++++++++++++++++++++ 3 files changed, 165 insertions(+) diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index 77a347f9f47d..c6c7825b4cb2 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -12,6 +12,8 @@ k3-am625-sk-hdmi-audio-dtbs := k3-am625-sk.dtb k3-am62x-sk-hdmi-audio.dtbo k3-am62-lp-sk-hdmi-audio-dtbs := k3-am62-lp-sk.dtb k3-am62x-sk-hdmi-audio.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-csi2-ov5640.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-csi2-tevi-ov5640.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am625-phyboard-lyra-rdk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-nonwifi-dahlia.dtb @@ -80,7 +82,16 @@ dtb-$(CONFIG_ARCH_K3) += k3-j721s2-evm.dtb dtb-$(CONFIG_ARCH_K3) += k3-am69-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm.dtb +# Build time test only, enabled by CONFIG_OF_ALL_DTBS +k3-am625-beagleplay-csi2-ov5640-dtbs := k3-am625-beagleplay.dtb \ + k3-am625-beagleplay-csi2-ov5640.dtbo +k3-am625-beagleplay-csi2-tevi-ov5640-dtbs := k3-am625-beagleplay.dtb \ + k3-am625-beagleplay-csi2-tevi-ov5640.dtbo +dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ + k3-am625-beagleplay-csi2-tevi-ov5640.dtb + # Enable support for device-tree overlays +DTC_FLAGS_k3-am625-beagleplay += -@ DTC_FLAGS_k3-am625-sk += -@ DTC_FLAGS_k3-am62-lp-sk += -@ DTC_FLAGS_k3-am6548-iot2050-advanced-m2 += -@ diff --git a/arch/arm64/boot/dts/ti/k3-am625-beagleplay-csi2-ov5640.dtso b/arch/arm64/boot/dts/ti/k3-am625-beagleplay-csi2-ov5640.dtso new file mode 100644 index 000000000000..5e80ca7033ba --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am625-beagleplay-csi2-ov5640.dtso @@ -0,0 +1,77 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * ALINX AN5641 & Digilent PCam 5C - OV5640 camera module + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +#include + +&{/} { + clk_ov5640_fixed: ov5640-xclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <12000000>; + }; +}; + +&main_gpio0 { + p11-hog { + /* P11 - CSI2_CAMERA_GPIO1 */ + gpio-hog; + gpios = <11 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "CSI2_CAMERA_GPIO1"; + }; +}; + +&wkup_i2c0 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + ov5640: camera@3c { + compatible = "ovti,ov5640"; + reg = <0x3c>; + + clocks = <&clk_ov5640_fixed>; + clock-names = "xclk"; + + port { + csi2_cam0: endpoint { + remote-endpoint = <&csi2rx0_in_sensor>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; +}; + +&cdns_csi2rx0 { + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi0_port0: port@0 { + reg = <0>; + status = "okay"; + + csi2rx0_in_sensor: endpoint { + remote-endpoint = <&csi2_cam0>; + bus-type = <4>; /* CSI2 DPHY. */ + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; +}; + +&dphy0 { + status = "okay"; +}; + +&ti_csi2rx0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtso b/arch/arm64/boot/dts/ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtso new file mode 100644 index 000000000000..5e1cbbc27c8f --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtso @@ -0,0 +1,77 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Technexion TEVI-OV5640-*-RPI - OV5640 camera module + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +#include + +&{/} { + clk_ov5640_fixed: ov5640-xclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + }; +}; + +&main_gpio0 { + p11-hog { + /* P11 - CSI2_CAMERA_GPIO1 */ + gpio-hog; + gpios = <11 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "CSI2_CAMERA_GPIO1"; + }; +}; + +&wkup_i2c0 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + ov5640: camera@3c { + compatible = "ovti,ov5640"; + reg = <0x3c>; + + clocks = <&clk_ov5640_fixed>; + clock-names = "xclk"; + + port { + csi2_cam0: endpoint { + remote-endpoint = <&csi2rx0_in_sensor>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; +}; + +&cdns_csi2rx0 { + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi0_port0: port@0 { + reg = <0>; + status = "okay"; + + csi2rx0_in_sensor: endpoint { + remote-endpoint = <&csi2_cam0>; + bus-type = <4>; /* CSI2 DPHY. */ + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; +}; + +&dphy0 { + status = "okay"; +}; + +&ti_csi2rx0 { + status = "okay"; +}; From patchwork Fri Nov 17 09:28:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 166034 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp406304vqn; Fri, 17 Nov 2023 01:31:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcar3YISy5LMYgUtoVzEy40Xa9ZSo/Eg+AwQXH6o1BWRkPbKfB/rriozIAV1zsck8Uh/kR X-Received: by 2002:a05:6830:13cb:b0:6c6:4843:2abb with SMTP id e11-20020a05683013cb00b006c648432abbmr11388650otq.12.1700213510174; Fri, 17 Nov 2023 01:31:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700213510; cv=none; d=google.com; s=arc-20160816; b=fkqMXlKMCAZFePhsp21hKYeoFWtYTxrdOtrRheLeUkwktcxWmaGouoYEAdaJEiWOIb BqoxDBQ66nWe1+qYfC8l4utIkd8G5lIAt0NAhawuH2WGNQVjwmrZ5VpMLy0dFXCvISM5 4R+Vf7geBFFGl2AxxiEzQeY1Sxls2n1m3dB5gXICb8G02/aP3R7aGcIjWSsIS3NJh3gs stFW3Zx8aJtI3j7DmnSxrUN7oMMwKfXs4HPXjneqpBZlG02UGIFagm/7a7o6FMmfnREH a/3nxj4B56OBdL9VENLz+YSW/C4Xn4hr8O0PbiptKZYUzHunYMTep001OIjjZZhdDAPy pqUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=nHfkSgbbam9tsZlg9KrpyEnoI2oaToGB9A+3LMjzCQA=; fh=gjf50MpIeI4y7DsLDR8KPyZZDZn0L+YVyMCrolRSpx0=; b=NqAhkn3mgcqTEBQJ4yFeWiXEqWIgwO4d+v5KdVZBIyzs2t9LefN/Paj8IHknowouCW OX7hv0B2dheRr0DhOubVRVvNOgiSbF1pg+C269JxXO5TouFF7f0jBnQMgiSuMLrEa4qI bGuSiw8SR++c0IrM2skaqGzCZZE6qVukRiJtS8sZI86go5Q4xTSAUOWMoQiSB5ynMrn3 hMv9FnQtNEzOQWIs4id5/kTxdocSr/oav9sj7C7AWykSh0F/FcpUSgBaOa787WpIxubZ o0jNxLtfFaaIPUYBOr9qQ2hwx1NdU2xPaexnY3kX39SOfl7NCNifAl3M+6FNiagzUYi3 ppAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nXXwS0hv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id a24-20020a656418000000b005b57aa8517bsi1599440pgv.91.2023.11.17.01.31.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 01:31:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nXXwS0hv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 38FEC80DCA7B; Fri, 17 Nov 2023 01:31:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345832AbjKQJad (ORCPT + 30 others); Fri, 17 Nov 2023 04:30:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345753AbjKQJaI (ORCPT ); Fri, 17 Nov 2023 04:30:08 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 420CFD75; Fri, 17 Nov 2023 01:30:03 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9Tdll058796; Fri, 17 Nov 2023 03:29:39 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1700213379; bh=nHfkSgbbam9tsZlg9KrpyEnoI2oaToGB9A+3LMjzCQA=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=nXXwS0hv4syd/ZfIHd0rAwJjQpZszl3LnlVQqD8SSn2tRaDrSNCdSdWJQofIK7iAV d4u0KWizmNBBjh1CIjh8MxVYhln9YPdOawlt1vdGW6IMYQhzsF28oSAlgNm0iw8cZQ 3j6uCDJcdlQzh9VGzYBEq5iY0EJvDMO10TPNiKdw= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3AH9TdjJ023858 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Nov 2023 03:29:39 -0600 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 17 Nov 2023 03:29:39 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 17 Nov 2023 03:29:39 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9Tc0o105788; Fri, 17 Nov 2023 03:29:39 -0600 From: Jai Luthra Date: Fri, 17 Nov 2023 14:58:13 +0530 Subject: [PATCH v2 5/9] arm64: dts: ti: k3-am62x-sk: Enable camera peripherals MIME-Version: 1.0 Message-ID: <20231117-csi_dts-v2-5-bf4312194a6b@ti.com> References: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> In-Reply-To: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> To: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch , Matthias Schiffer , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1148; i=j-luthra@ti.com; h=from:subject:message-id; bh=DWMd8DynE4oPJWbT7wW32YZODLtvs3BBy7dXHnEQO7M=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlVzJwMN9aaDkLxk93s/Y7CE61rBPS//0Yv8s3e f5Vzj3285uJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZVcycAAKCRBD3pH5JJpx RfMDD/9UveCssc6gFNkrfHKeZAeO58MI3paCrNEto7yxFWtICqnUkMkKtzH2QUZVKM2QMFK3qaM tp14RzXBaCdqYZkotffN0ujyEhv/PB3hzlSoWkk4/TfOuDmzU7xye+eZDz5A0DOeq5AKy9+H4xC V07+fQVahn9x15ntDFlTyGdsFz8CIuu2c2YA7JsOSSGyWLz4NiQPxvfHs6pyOnpwU8ezPND7Ym8 lFqKA9XTY3ZRo/lkcrT4X3eK9y7Wb6m8hpvsi8TNPy9neaEeWhF3LeY5Y27VYpJ23HZiKTLe9Y+ aZxNfUvSkZ1UhixpQ5mUzSqYzqBTUxdUPMrUtw82WI9Sq0uacKOHD9zdiidC7HyHTscaXSRkU2A uFb3MNxfoQUOP+5JogtWpf26GM8e7mdxvxgL/nzL0WL/92V4k2qc0G3dP9EtQOB/1GqPMiG4uYR NNC/yPFXVsBmK6vl2KFNyd/z0NEeJtDLYF/NWDPyDyFm5UGhjmj+0qhSgYpPWk+9OZrakgrPa5o O3djxHdqw+crkgxIdkoUQi0Xmd66uxi6PQJPgsIiRIalSIBcEawbNsY+gc8hcDeppXw5e4njBEk G917ZGLT28o0v9UBXNntLdMbpu1UGy1qewQeTdz/73WRCZTUG2y/vYnDsy6xGGh2JTBLPRXqPxL DH81Ky/fV9N6vdA== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 17 Nov 2023 01:31:44 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782803081596819860 X-GMAIL-MSGID: 1782803081596819860 CSI cameras are controlled using I2C, on SK-AM62 and derivative boards this is routed to I2C-2, so enable that bus. Also enable the nodes for CSI-RX and DPHY-RX IPs. Specific sensor connected to this bus will be described in the DT overlay for each sensor. Tested-by: Martyn Welch Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi index 19f57ead4ebd..21658f811307 100644 --- a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi @@ -399,6 +399,13 @@ sii9022_out: endpoint { }; }; +&main_i2c2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_i2c2_pins_default>; + clock-frequency = <400000>; +}; + &sdhci0 { bootph-all; status = "okay"; @@ -517,3 +524,11 @@ dpi1_out: endpoint { }; }; }; + +&ti_csi2rx0 { + status = "okay"; +}; + +&dphy0 { + status = "okay"; +}; From patchwork Fri Nov 17 09:28:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 166033 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp406295vqn; Fri, 17 Nov 2023 01:31:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXbrnFg74X56PI9Ung2fkwAcwxWLUTt8t/xkXLurihh6W4dMc2ePjIMrQnG+KUf2mueL+0 X-Received: by 2002:a17:903:1108:b0:1cc:50f6:7fc1 with SMTP id n8-20020a170903110800b001cc50f67fc1mr12825095plh.56.1700213509194; Fri, 17 Nov 2023 01:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700213509; cv=none; d=google.com; s=arc-20160816; b=0qy9ru9FUkSby1Z6DeWeehwp/dXgnXrRTzR5txfLp7TdLQqB3PrehQocJySWPT6X5i K/LAZ//laQUffQkZGRi/JLXOldvnTkaCDUX1H/Rut3tKipo+VmfTcOOhUTdlvuGtVJZ4 KrK2FdpXSq8bnD17L08r+D/nECm4kvoREp2np3pLOqYP5cSVXbk9qcj/owLTGxndnlfS pQ2HYX89AMlJEVcUS96oZmtLeCIf2nPe3PKkY0B0+pve/pHe31eS+SZs910CVuuPjCAB idWodkTAda8baxM7UlFmT4+VCYcaqnVilgNXKHvJSkGbPVrP5Qep5l0+xsgiC9mld/4q NGmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=6yu9FgSk5G531XV23fSb7BMi9z4z4ZTSbSGgn0oAhwQ=; fh=gjf50MpIeI4y7DsLDR8KPyZZDZn0L+YVyMCrolRSpx0=; b=pZw1i+EAI8QVOoNfc2KJp8ldpUMA0v+hn3JWJbCHh5SruZe4SMxhkMTtFKOHTPxY5x B+/g14lMtHvMANsEnyjIs3EUSGpPwBBJTtBEpQXzAA6EL8NTXJ0er4EwYOSZpCD5nGQc /X2KofsFQbeSAU7JXcamR+/PzRmbYxYejgelJnecA0SVW9S11XcbY5qQzLXt1ffwZrbs FyjZzzq9Ok/Z3GQGX+5ezzeUUtycwlWEP0AXmUS2+GBs4+aVfjiH2CokhkAW3I8ZsiYH DQBacJXP+MNiyFhsIG18tHH0jkp9VXB5iGD+4Ob0stThYDBjrLYQW6SZTtbpvH+aFOtv c0sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iGiyeiaj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x11-20020a170902b40b00b001cc16aa4981si1415718plr.39.2023.11.17.01.31.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 01:31:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iGiyeiaj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6A9538090FB4; Fri, 17 Nov 2023 01:30:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345753AbjKQJag (ORCPT + 30 others); Fri, 17 Nov 2023 04:30:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345756AbjKQJaI (ORCPT ); Fri, 17 Nov 2023 04:30:08 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFBAB10D5; Fri, 17 Nov 2023 01:30:03 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9Tfdi058802; Fri, 17 Nov 2023 03:29:41 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1700213381; bh=6yu9FgSk5G531XV23fSb7BMi9z4z4ZTSbSGgn0oAhwQ=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=iGiyeiajABe9pu0npjMLIAKm1OYIdmEHqawkkw3yeiWiE3c2QRAGqT8An7W/2RiLS 01XzPrZtwwod4mw0WFdU4YvQ/GIJnr7zpJQLN2awhkEDQdxScHePVfnYm9/7Efjfoh ORVOzbt0LizVXrntf/omJP1gCTtYEiCP3LHK6PC0= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3AH9Tfgb079505 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Nov 2023 03:29:41 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 17 Nov 2023 03:29:41 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 17 Nov 2023 03:29:41 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9Teom125344; Fri, 17 Nov 2023 03:29:40 -0600 From: Jai Luthra Date: Fri, 17 Nov 2023 14:58:14 +0530 Subject: [PATCH v2 6/9] arm64: dts: ti: k3-am62x: Add overlays for OV5640 MIME-Version: 1.0 Message-ID: <20231117-csi_dts-v2-6-bf4312194a6b@ti.com> References: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> In-Reply-To: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> To: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch , Matthias Schiffer , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=6127; i=j-luthra@ti.com; h=from:subject:message-id; bh=qununk8hdzdLtwkyZowaid7gFVw8TK/X3B+ByuZ/0ow=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlVzJw6cCnjOgzxwiql/NKu4ohliw9sbESD1x4p mUX7zzSbZ2JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZVcycAAKCRBD3pH5JJpx RQ8UD/0aipRRZnKwwwGOE17phrwhLN3xMLFE3UtI0+VTU+jjlhfVd/Ujc287duPjpkncYxp0b8M djd6DytVWZxi5gYK7Z+TdId5lG/9UU6tpko4CNjqGtiK7lkkV3O4PZFSgu7R3eL11wx13RxXBg8 lZWgokGOqiSkKJFAkhTgl1zUOR9K8T6tIxdS64dEPuC6bFH2dMsvTN76h6E1lcFgMYNzDwao8rc yw2jp7k2saDnbTsgmYN0tCTtr9RtIUi7T6v+mMViEzs3x/fenoNB0f53syuqz3VQokcFXiNViDB wzVg6pDDcDAkXkU+5fVsy9WID/uanOZm/3TL7cd9KnWSxKjSOUP8XYPxy1Y+wFLbkq1mnYm1PK9 kp1aTYSxL1nHJAS36rHjnPuOFk9ZvKASzGbjcEbFmgOFcH7uQimD4Ytkbd9KfSa1kcX6hjIsped En3MfOxqBRfkQozO7eUv/U9546/3b098Vua1f7N3JeIg5jbb/+UdNChKER4oZCi0uzE2SMsObCH bB9TgPeNQVm+/zRLR07VKyOcYxET0ragzEQovxinwjfmxOH3HEeSBQaCGbmDVe296dOGxIwsPEH CLmW1VFBwHUT6hyUw3FNivisqp2PN1YBePAUiXmrklq5zsyJ5SReVagfRqJpn+eBTDwagyepGQv TclHnGbukHwxCCQ== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 01:30:52 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782803080991677570 X-GMAIL-MSGID: 1782803080991677570 Three different OV5640 modules are supported using the 15-pin FFC connector on SK-AM62: - Digilent PCam 5C - ALINX AN5641 - TEVI-OV5640-*-RPI The Digilent and ALINX modules supply a 12Mhz XCLK to the sensor, while the TEVI module supplies a 24Mhz XCLK, thus requiring a separate overlay. These overlays can be used on other boards of the SK-AM62* family that have a 15/22-pin FFC connector, so we name the overlays with the prefix k3-am62x-. Tested-by: Martyn Welch Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/Makefile | 19 +++++- .../arm64/boot/dts/ti/k3-am62x-sk-csi2-ov5640.dtso | 74 ++++++++++++++++++++++ .../boot/dts/ti/k3-am62x-sk-csi2-tevi-ov5640.dtso | 74 ++++++++++++++++++++++ 3 files changed, 166 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index c6c7825b4cb2..f957b5f741ff 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -32,6 +32,10 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk.dtb # Boards with AM62Px SoC dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb +# Common overlays for SK-AM62* family of boards +dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-csi2-ov5640.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-csi2-tevi-ov5640.dtbo + # Boards with AM64x SoC dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-phyboard-electra-rdk.dtb @@ -87,13 +91,26 @@ k3-am625-beagleplay-csi2-ov5640-dtbs := k3-am625-beagleplay.dtb \ k3-am625-beagleplay-csi2-ov5640.dtbo k3-am625-beagleplay-csi2-tevi-ov5640-dtbs := k3-am625-beagleplay.dtb \ k3-am625-beagleplay-csi2-tevi-ov5640.dtbo +k3-am625-sk-csi2-ov5640-dtbs := k3-am625-sk.dtb \ + k3-am62x-sk-csi2-ov5640.dtbo +k3-am625-sk-csi2-tevi-ov5640-dtbs := k3-am625-sk.dtb \ + k3-am62x-sk-csi2-tevi-ov5640.dtbo +k3-am62a7-sk-csi2-ov5640-dtbs := k3-am62a7-sk.dtb \ + k3-am62x-sk-csi2-ov5640.dtbo +k3-am62a7-sk-csi2-tevi-ov5640-dtbs := k3-am62a7-sk.dtb \ + k3-am62x-sk-csi2-tevi-ov5640.dtbo dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ - k3-am625-beagleplay-csi2-tevi-ov5640.dtb + k3-am625-beagleplay-csi2-tevi-ov5640.dtb \ + k3-am625-sk-csi2-ov5640.dtb \ + k3-am625-sk-csi2-tevi-ov5640.dtb \ + k3-am62a7-sk-csi2-ov5640.dtb \ + k3-am62a7-sk-csi2-tevi-ov5640.dtb # Enable support for device-tree overlays DTC_FLAGS_k3-am625-beagleplay += -@ DTC_FLAGS_k3-am625-sk += -@ DTC_FLAGS_k3-am62-lp-sk += -@ +DTC_FLAGS_k3-am62a7-sk += -@ DTC_FLAGS_k3-am6548-iot2050-advanced-m2 += -@ DTC_FLAGS_k3-j721e-common-proc-board += -@ DTC_FLAGS_k3-j721s2-common-proc-board += -@ diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-ov5640.dtso b/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-ov5640.dtso new file mode 100644 index 000000000000..790340673094 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-ov5640.dtso @@ -0,0 +1,74 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * ALINX AN5641 & Digilent PCam 5C - OV5640 camera module + * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +#include + +&{/} { + clk_ov5640_fixed: ov5640-xclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <12000000>; + }; +}; + +&main_i2c2 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + i2c-switch@71 { + compatible = "nxp,pca9543"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x71>; + + /* CAM port */ + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + ov5640: camera@3c { + compatible = "ovti,ov5640"; + reg = <0x3c>; + + clocks = <&clk_ov5640_fixed>; + clock-names = "xclk"; + powerdown-gpios = <&exp1 13 GPIO_ACTIVE_LOW>; + + port { + csi2_cam0: endpoint { + remote-endpoint = <&csi2rx0_in_sensor>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; +}; + +&cdns_csi2rx0 { + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi0_port0: port@0 { + reg = <0>; + status = "okay"; + + csi2rx0_in_sensor: endpoint { + remote-endpoint = <&csi2_cam0>; + bus-type = <4>; /* CSI2 DPHY. */ + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-tevi-ov5640.dtso b/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-tevi-ov5640.dtso new file mode 100644 index 000000000000..d7772767f49d --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-tevi-ov5640.dtso @@ -0,0 +1,74 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Technexion TEVI-OV5640-*-RPI - OV5640 camera module + * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +#include + +&{/} { + clk_ov5640_fixed: ov5640-xclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + }; +}; + +&main_i2c2 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + i2c-switch@71 { + compatible = "nxp,pca9543"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x71>; + + /* CAM port */ + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + ov5640: camera@3c { + compatible = "ovti,ov5640"; + reg = <0x3c>; + + clocks = <&clk_ov5640_fixed>; + clock-names = "xclk"; + powerdown-gpios = <&exp1 13 GPIO_ACTIVE_LOW>; + + port { + csi2_cam0: endpoint { + remote-endpoint = <&csi2rx0_in_sensor>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; +}; + +&cdns_csi2rx0 { + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi0_port0: port@0 { + reg = <0>; + status = "okay"; + + csi2rx0_in_sensor: endpoint { + remote-endpoint = <&csi2_cam0>; + bus-type = <4>; /* CSI2 DPHY. */ + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; +}; From patchwork Fri Nov 17 09:28:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 166038 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp406817vqn; Fri, 17 Nov 2023 01:33:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5quHAPPycG5FWMwIP7HE8nFdB6+w5cDM6ETW92BSF9C7pw4rfUmDJwmGDnsj/7N7Rwm9F X-Received: by 2002:a17:902:ab1b:b0:1cc:29ef:df7d with SMTP id ik27-20020a170902ab1b00b001cc29efdf7dmr11349530plb.65.1700213580299; Fri, 17 Nov 2023 01:33:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700213580; cv=none; d=google.com; s=arc-20160816; b=NGUxkBalsGvVSqRNJIEHofhYTGddUyh/3lR+VvpFjIhyyrbV2FWm1OpRDDCwxovsmq e8N6bpknQxv9KjsAFVTKZqJUxHsDEr6l2PDkAij2/lI33sshu6jB0gCLhsR4lRNj06y6 CGKD+O9xmVUq8snsxREuC+b15ELICuMexTls3nu8FgasrKwn+JfFVc38eStuYhQUDdn0 ylw4GM82Hz0wZD3BdvjUR/Xkbql6vqE8BWO6+GjsY5jAKTBjjocqDS2567zKmAmG0MvA 8hDtN9wVBPcPEPE44DLgULTmCvpikSmjBWRMcENMTfh49Q+3/Qt4zGo770NIH7wX5+1G Og3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=PNUVApjVYaIGK9JiiY4OVOF3nsNslR6FLMX8Zywxucg=; fh=gjf50MpIeI4y7DsLDR8KPyZZDZn0L+YVyMCrolRSpx0=; b=zqN/YHAawoLROm4U1djywgTQgInIKTwrAhSpOT+Opt4F1veZucC4glJeFNL0HA8WKf /QSXjRrmQtsNC5jPZxpX1yQ1HIK+4lj2SROxQcdyODThKmeIzeK3t4a7AtaEUqQKY7Ya 3FCd956gzJBzDkz31yveEhJ5lRu1hsfPNaYCiUwUvi17DQ+3IJ+FfDwxugGVxuuIpPVG qFkdtpj0fs9jDCYtvWm9n/LYbiKnjNp3imb5YEER87bx26u9THkVcyypONf4XHtPX4Iz AVtMQnEUKHKUV7jBUPMhqDUz8I8yStVxj/iEsRD0D9lLD8MdlGg7DJv650lNm71sJ2fm YOCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZXBIwdFo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id p17-20020a170902e75100b001ccbfb42dc2si1546651plf.480.2023.11.17.01.33.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 01:33:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZXBIwdFo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C1D72807D699; Fri, 17 Nov 2023 01:32:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234623AbjKQJch (ORCPT + 30 others); Fri, 17 Nov 2023 04:32:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235751AbjKQJcW (ORCPT ); Fri, 17 Nov 2023 04:32:22 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 817B719AD; Fri, 17 Nov 2023 01:32:07 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9ThWD011200; Fri, 17 Nov 2023 03:29:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1700213383; bh=PNUVApjVYaIGK9JiiY4OVOF3nsNslR6FLMX8Zywxucg=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=ZXBIwdFoJtfgt3bhe36896aspiZcKbxNF/2yioin9d9YbkAfj/n+qoSC1GrCSiSuV eDOcOoKZ7s60XTeW5ZKi3PSplyYoe/J+HKBk0zCljaVO37NWL3XZTjIVk3xAqid3V0 xWc7NaOK+3o7t1AXN9ZTp2+DEl/2qroBNyp0bW6k= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3AH9TgpI075701 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Nov 2023 03:29:42 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 17 Nov 2023 03:29:43 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 17 Nov 2023 03:29:42 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9Tf01105823; Fri, 17 Nov 2023 03:29:42 -0600 From: Jai Luthra Date: Fri, 17 Nov 2023 14:58:15 +0530 Subject: [PATCH v2 7/9] arm64: dts: ti: k3-am62a7-sk: Enable camera peripherals MIME-Version: 1.0 Message-ID: <20231117-csi_dts-v2-7-bf4312194a6b@ti.com> References: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> In-Reply-To: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> To: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch , Matthias Schiffer , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1496; i=j-luthra@ti.com; h=from:subject:message-id; bh=gz9E1SzSNspg9BAAZhjLumqrDg19fknMHvxVHY3oO+E=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlVzJxBwKLMn4PTXxF7q/i3pD1JZIlfpJYCrLSU KkLwMG6/N6JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZVcycQAKCRBD3pH5JJpx RXQuEACZgAgcJj7Xx1yIuGYgCHEetyQeMhhYO4vooWB1PZ64Z4LNMZr/97MGgux1nr+jQAjAxtO v9MMJIjZmZLAlKBsJzPV1FE4tzNMuvGNIhKc9v1ioEiVfxsyErqO/0Fb6SHEYlQFjCBCHS4fD9K 1c5p8y0eDNSpXWWc8T1B/hKnkjglL/t/MwP4WXzOKxgtb/7zCpEUcPienBfK5X0scvSg8sKPSH5 BnwFtRuk0CvvwuNjAhDXW8sWUwCB3HCi7OpQzCH79MOHQvQyMXpCg26LmoqAS5HDb5f1qlH/dO1 uvqa81rDuv1N/+alx+6ZOgFgFfRo83Lx4GY8vOh+Ou8p3xEAHH4g1L85ySuQuKloV57vVQrAcYw LDZHvmOWpUhwqzlLfr1ux4Q0LTc3xVXCBdaiNEhP4RT3i8UKlAZZWfn95ZIN5FJvycpZsHFoZH6 a2lk4y4qbS3VccVMmzWBjhg1fjm1+dnjb97Q16X+aV111qId3sejpMhFBGf3Dpdsrv7GEX4pqDL Ew/EdCywLti8rO9WqcKAOngErLNUf2TAceE1Or7ACn4q6LWum2fMTxXHyqOw08C2WWY1uwNoi5G BUUvTmyQ3tfHyJVvM2Aapzy5CqpJtGMm/Ryp0rLwowWXwBTB53zyWFJQEC9cRFjUDfj8IzI1+B5 xafCA1tnTVhsUug== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 17 Nov 2023 01:32:54 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782803154706720676 X-GMAIL-MSGID: 1782803154706720676 Enable the nodes for CSI-RX, DPHY-RX and I2C-2 as it is used to control CSI based sensors. Also enable IO-EXP-2 as it controls the mux between different CSI-2 connectors. Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index 8f64ac2c7568..20ec07a5237c 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -434,6 +434,33 @@ tlv320aic3106: audio-codec@1b { DRVDD-supply = <&vcc_3v3_sys>; DVDD-supply = <&buck5>; }; + + exp2: gpio@23 { + compatible = "ti,tca6424"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + + gpio-line-names = "", "", + "", "", + "", "", + "", "", + "WL_LT_EN", "CSI_RSTz", + "", "", + "", "", + "", "", + "SPI0_FET_SEL", "SPI0_FET_OE", + "RGMII2_BRD_CONN_DET", "CSI_SEL2", + "CSI_EN", "AUTO_100M_1000M_CONFIG", + "CSI_VLDO_SEL", "SoC_WLAN_SDIO_RST"; + }; +}; + +&main_i2c2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_i2c2_pins_default>; + clock-frequency = <400000>; }; &sdhci1 { @@ -544,3 +571,11 @@ &mcasp1 { tx-num-evt = <32>; rx-num-evt = <32>; }; + +&ti_csi2rx0 { + status = "okay"; +}; + +&dphy0 { + status = "okay"; +}; From patchwork Fri Nov 17 09:28:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 166039 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp406916vqn; Fri, 17 Nov 2023 01:33:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDpD/CJ2N6IJ6OSp6Hr5nZSJGDIuQ0gilcSlyM/n/OmNY6YMrJ99bNO3x53bfgnuenKDtz X-Received: by 2002:a17:90b:4d11:b0:274:7db1:f50f with SMTP id mw17-20020a17090b4d1100b002747db1f50fmr6773260pjb.15.1700213594834; Fri, 17 Nov 2023 01:33:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700213594; cv=none; d=google.com; s=arc-20160816; b=BBajMHCl9vwYla+0lsflgWaQczGQa3xJAoLddoYK7c/oD9U84pJuOi9NlHr4M1ADUX ej1Ry+e5OmSF8vDRXF0fLle1VpaD2YHIh0QYVH12VdUx3L8x9YA2060Co88c5m8awcdV 01yDJXFayi1DSsfob/lsgjr6EmQYG3f3BToTZqKl+szd74pdScntKOdHU+gPaYspz8Jp C7KeVNfoebYEdr33MexSgDUqj/1qVwudJ43xANc6iWx19PsGJwGK52WRVhV+zdvenKBI alT2fRqn+ZgJ15mNgOZonb3fXwwbDS10CwHy9d1sYbVjx4aEz88zEFvg4mhs9sllKp3h o/yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=CdYehB85qz+VazHlhe5ZsKCvZa2lCLts/qjl19Qebi8=; fh=gjf50MpIeI4y7DsLDR8KPyZZDZn0L+YVyMCrolRSpx0=; b=eC3WihZWFvq0POWq7yLGK9Kw3vSBruCzEI+dYEwbcmP8giAWVCLK9EVOX4OV5hc8gr NNvaXt70JorP63M9+4YwvY31tzshbNHLHX4wWeMKafmHexKx2UXwMFAJEFVUvfZ7BM7Y iO5maUDwZ3RMqz0bLlOehHN4+px8XgRxSZHS1j3zOEqUC9/dgY40PhhdKiOqL5ROk3WG MxgiTCJHxpabP0xH6Sma/XCn/CsydhAo9uOQNffJolXQBTu0xWzJMTde8nOUuwxL8TtP yYk0fi0KoVLRXeeKI23SdGIevmAAH3RblUAQCSE/7zICT7X7g0XeFJ5VdGUZ2un7e0l9 1+Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ozmkj2Br; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id k8-20020a17090a9d8800b0028323d92bd7si1533499pjp.148.2023.11.17.01.33.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 01:33:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ozmkj2Br; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7E0C08283A2E; Fri, 17 Nov 2023 01:33:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345760AbjKQJcl (ORCPT + 30 others); Fri, 17 Nov 2023 04:32:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235750AbjKQJcW (ORCPT ); Fri, 17 Nov 2023 04:32:22 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C8FC19AC; Fri, 17 Nov 2023 01:32:07 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9Ti0Y011205; Fri, 17 Nov 2023 03:29:44 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1700213384; bh=CdYehB85qz+VazHlhe5ZsKCvZa2lCLts/qjl19Qebi8=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=ozmkj2BrNwRp3BlR3d8OzzECb9QhwL7a7FF9JaUPcfs2GCBtmyu1wcbSqpjvFYdoK 8SKgThVokTC+FS5SAQs4alElbj0GX7MzQofsKelSf0OuutQWcl+770+eg9ELY/LaP0 oMDdu87bToUqLBFiZv8vEQelE2Q2fOQ0LsyMzjHQ= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3AH9TiVU023889 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Nov 2023 03:29:44 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 17 Nov 2023 03:29:44 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 17 Nov 2023 03:29:44 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9ThBW000553; Fri, 17 Nov 2023 03:29:43 -0600 From: Jai Luthra Date: Fri, 17 Nov 2023 14:58:16 +0530 Subject: [PATCH v2 8/9] arm64: dts: ti: k3-am62x: Add overlay for IMX219 MIME-Version: 1.0 Message-ID: <20231117-csi_dts-v2-8-bf4312194a6b@ti.com> References: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> In-Reply-To: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> To: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch , Matthias Schiffer , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=3858; i=j-luthra@ti.com; h=from:subject:message-id; bh=iXVMzPUomin7Bo7+dqj4cRTRBovP3k+BJ2yUHJwzELc=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlVzJyj/zVVi0nZL0pDNKndVB8H3LriQbdMbMgH mMEp8HGc5+JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZVcycgAKCRBD3pH5JJpx RaOwEACIvwsVspNg8XpS2+nG8gAc+IFQVnURbNeqUUyAbEvmDAfxCxZxmxMbF9yscbku4DwRZG5 8KydHvim5Vl1EUgchCjJxYjIVqeCn1QKk42a1/3GQmY2Vp7FjXxNzSOc/649sxmZ4SSfRE/sKog jShwXH/LWypPWVhAL0b8AEQuTr+v+roAEcJsvEE5uhPQjdA7t4ltwHZ8nrA0lJvmil8wwe/79yr QeR3PDVTM5snNSEcY4SGKbCdYFF1SlRqc66Te9F5ETgF0DbWXn2iXcvJi+w/Wd94/v6qQNe4FDc 1RajbE9sdbH85xitwt3Zzq65vxVDu+AapArqqNIqBwOsTEDPR5de6WGzvwceK5OPnhNNFxaA5Am sNXW0cL7YmkwVjDkuYrLyC7XIAcZzlrrGodmdC8CRtrWr2On+Sk4iu1X89/SDrPiIBsZA8RnXBg ALz3hgCy5QfKGffaIrsxCnI/CQFs8oI+p+c6GyY9V/iotPkV0kuFRXvbsRiOFQT6IWtSDqoytmt VpbJ58dLR7LIvvobWFWhEBSain6gic4U3tVKiOYKs1mSeuo+3tvZwkrFgI8L2jADrU6dLWGF9Sl fa2ci8M4R4PWm4bOWDpYIksQU5dGXnvMmizw7XR9d1rVInnxnDPXO+vq7fq0m5sHoKsv/eUhERi 66sWuITtFY1VLVQ== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 17 Nov 2023 01:33:11 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782803170294286650 X-GMAIL-MSGID: 1782803170294286650 RPi v2 Camera (IMX219) is an 8MP camera that can be used with SK-AM62A through the 22-pin CSI-RX connector. Same overlay can be used across SK-AM62* boards that have a 15/22-pin FFC connector, so we name it with the k3-am62x- prefix. Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/Makefile | 7 ++ .../arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso | 76 ++++++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index f957b5f741ff..fd9166497c32 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -35,6 +35,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb # Common overlays for SK-AM62* family of boards dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-csi2-ov5640.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-csi2-tevi-ov5640.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-csi2-imx219.dtbo # Boards with AM64x SoC dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb @@ -91,18 +92,24 @@ k3-am625-beagleplay-csi2-ov5640-dtbs := k3-am625-beagleplay.dtb \ k3-am625-beagleplay-csi2-ov5640.dtbo k3-am625-beagleplay-csi2-tevi-ov5640-dtbs := k3-am625-beagleplay.dtb \ k3-am625-beagleplay-csi2-tevi-ov5640.dtbo +k3-am625-sk-csi2-imx219-dtbs := k3-am625-sk.dtb \ + k3-am62x-sk-csi2-imx219.dtbo k3-am625-sk-csi2-ov5640-dtbs := k3-am625-sk.dtb \ k3-am62x-sk-csi2-ov5640.dtbo k3-am625-sk-csi2-tevi-ov5640-dtbs := k3-am625-sk.dtb \ k3-am62x-sk-csi2-tevi-ov5640.dtbo +k3-am62a7-sk-csi2-imx219-dtbs := k3-am62a7-sk.dtb \ + k3-am62x-sk-csi2-imx219.dtbo k3-am62a7-sk-csi2-ov5640-dtbs := k3-am62a7-sk.dtb \ k3-am62x-sk-csi2-ov5640.dtbo k3-am62a7-sk-csi2-tevi-ov5640-dtbs := k3-am62a7-sk.dtb \ k3-am62x-sk-csi2-tevi-ov5640.dtbo dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ k3-am625-beagleplay-csi2-tevi-ov5640.dtb \ + k3-am625-sk-csi2-imx219.dtb \ k3-am625-sk-csi2-ov5640.dtb \ k3-am625-sk-csi2-tevi-ov5640.dtb \ + k3-am62a7-sk-csi2-imx219.dtb \ k3-am62a7-sk-csi2-ov5640.dtb \ k3-am62a7-sk-csi2-tevi-ov5640.dtb diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso b/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso new file mode 100644 index 000000000000..84d08bfda469 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso @@ -0,0 +1,76 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * IMX219 (RPi v2) Camera Module + * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +#include + +&{/} { + clk_imx219_fixed: imx219-xclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + }; +}; + +&main_i2c2 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + i2c-switch@71 { + compatible = "nxp,pca9543"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x71>; + + /* CAM port */ + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + ov5640: camera@10 { + compatible = "sony,imx219"; + reg = <0x10>; + + clocks = <&clk_imx219_fixed>; + clock-names = "xclk"; + + reset-gpios = <&exp1 13 GPIO_ACTIVE_HIGH>; + + port { + csi2_cam0: endpoint { + remote-endpoint = <&csi2rx0_in_sensor>; + link-frequencies = /bits/ 64 <456000000>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; +}; + +&cdns_csi2rx0 { + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi0_port0: port@0 { + reg = <0>; + status = "okay"; + + csi2rx0_in_sensor: endpoint { + remote-endpoint = <&csi2_cam0>; + bus-type = <4>; /* CSI2 DPHY. */ + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; +}; From patchwork Fri Nov 17 09:28:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 166032 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp406244vqn; Fri, 17 Nov 2023 01:31:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTV3ax6RHC9dwXTKyTG3ARJoQ05CltXKQvFEY69jYwZIyFH7Xsd6FjCK8cdO6P5yPps+TY X-Received: by 2002:a05:6a00:2f07:b0:6c3:7978:f82f with SMTP id fe7-20020a056a002f0700b006c37978f82fmr16674981pfb.9.1700213499440; Fri, 17 Nov 2023 01:31:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700213499; cv=none; d=google.com; s=arc-20160816; b=riiXk94xeT+YwuwTInW6nzCLIv6o/VcmgTBOSymvQ7OO8sXbECcsSiUYx2kQXpa9FW 87Nwwcr7B/BgJi/y+d9p8OEA6umQ6gwu9PWT2x0vRg/mMGIZDtr+N40yZV1WEwPA2MFk p+xkzBN+VaN4H6yIqh11j0MMp/1QCKR6A2C3tncWI8VWp5kCo7aOXfgcknb7EfquJmDL 801ztFZYItWLjRM/RVgFwDbaGoHznqHzCM03zprFUNJRCFVaQhg9W1wKsLBsA316xDrw 3dQhBqW70zDvM78II7aLCmE2m5K4fBFJeCTAdTIRmACqDpLrlK/E0fU+Nn57MNHBEiT8 wdbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Q9GfHFzHUPAETZ8jhp2saTZ+Xv19cmZBETN28QC0nhk=; fh=gjf50MpIeI4y7DsLDR8KPyZZDZn0L+YVyMCrolRSpx0=; b=thpIbWx6cNAxDVruUHxLL/37TI41Zw5YUqVMtXQUuUanb0idBEHKMWgIhFf8yuO23G 0NLKH+rbJCS4u6RtPdZnXcPGc1rNknEdQcUiiiknUzj8tdvPfI2v2SOP6l/trJGD4NIg atf2TZNas9BInkXKU8KWOeLaRt+YulQ3NMcqjoFFuvRrK29mQFLlh6cE1Jj5pfLHU6di yok2Gvw3qXwhYCCkyf3USH3B9Pk49MvxL0UyB3dRplhY5z7dJ3dipc08BPL3TyaCp7U/ LDiJ/T+awA1wwJftRKJ2JLpYx6ltr2igfid6VAcJN4A8GfiCYgLw3M0ylQAXV6nunn7R 5j+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DueZqLEg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id p24-20020a63e658000000b005855f67e491si1530164pgj.696.2023.11.17.01.31.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 01:31:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DueZqLEg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 23762806A12A; Fri, 17 Nov 2023 01:30:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345811AbjKQJaX (ORCPT + 30 others); Fri, 17 Nov 2023 04:30:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345746AbjKQJaH (ORCPT ); Fri, 17 Nov 2023 04:30:07 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BFF6A5; Fri, 17 Nov 2023 01:30:01 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9TkbO083307; Fri, 17 Nov 2023 03:29:46 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1700213386; bh=Q9GfHFzHUPAETZ8jhp2saTZ+Xv19cmZBETN28QC0nhk=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=DueZqLEgCNBVFR4+0LT16Okx7I01IUZLZNxMZkoUElU6X2/FZ7d37aJGCIpKAKmns xYfHeYtsQ4S799a3fDg27bQk+Nu1Qv8S5kv+kNpm/MHi86AXT+bi4iB505aBvdit+2 LdEnBHt02j8sHJzSA3rFFDQg/r1IrnA/4EhwYW5g= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3AH9TkKw075733 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Nov 2023 03:29:46 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 17 Nov 2023 03:29:45 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 17 Nov 2023 03:29:45 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3AH9TiUA125375; Fri, 17 Nov 2023 03:29:45 -0600 From: Jai Luthra Date: Fri, 17 Nov 2023 14:58:17 +0530 Subject: [PATCH v2 9/9] arm64: dts: ti: Use OF_ALL_DTBS for combined blobs MIME-Version: 1.0 Message-ID: <20231117-csi_dts-v2-9-bf4312194a6b@ti.com> References: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> In-Reply-To: <20231117-csi_dts-v2-0-bf4312194a6b@ti.com> To: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch , Matthias Schiffer , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=4271; i=j-luthra@ti.com; h=from:subject:message-id; bh=DBLMWQAFX1Tzf8/HJoNJY/8QVwt817bQEtms+t6sTDU=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlVzJz/b69g5C2ENQY14J4S+mzu7Q/jrwxIW26D Lv/RcDzTe6JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZVcycwAKCRBD3pH5JJpx RXyZD/0bjR4WXM1/lpvxy0Djnky4UNdy/xcYBT46rPWdAIkJEVeyAiQUX+G2y/looeUf6VUmh79 qnrHn5uHiJw1FZjdCQQYQbICs7TZBEco0bIWVnbDNL5Edqnm+iSaq+JUtxWX9nyc5nhqJMkRled 5inJSqrJwy5zJ4kybE8e9OcyK5Lf/2FQOUSi6kiuj/XR0PTG6rdZj6OMDEVUncVu/g57UF4Z6/l PPTFkPQNFWlTlOahZouKYG/djf+CO0vaRKgZ7o0CJB/DGma1nrnA/tyarhWxS0hq7n02qQUH7uX GKEr07AfXzGQNUtejjpxn63qEe5BIhKCA0oNBZhz5x8OTIho4et8QG/DI2M63aBBMinDxxLImNy c71+eVWtiTsp9UZ+FYDvJcL083lSipbaVEvxQ/UjOJK12h9L9nFW87vOPk8U/rGcQdRVzeMiHSj QPkkoMXeVcxWLFgzx0g8xQZtykUbpDBTNVVOcNaaZOVDXJOmCuicbZB3tZmmAZBlRTH5QeXWCoY w/nd6bL7WmdgcBy7LexC9yE1GH0ZFCsQ0r5l4MaZ+xwRMqxa350uIvvQkLhWdhIBQ7uHQVqOP8d PpIdPb0kcyn6OAbZH6KVFAK/MrHDGVO12D/nU5yojiYlTW2gU5Y4LEquUWR50C1xToHZCWlqgQV KK5ED6BTohOBB+A== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 01:30:33 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782803070547420557 X-GMAIL-MSGID: 1782803070547420557 Combined dtb builds are only useful for making sure that the overlay applies cleanly on the base dtb. So we move all such combined blobs under a `dtb- +=` section that is only built when OF_ALL_DTBS config is enabled. Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/Makefile | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index fd9166497c32..5ef49b02c71f 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -9,8 +9,6 @@ # alphabetically. # Boards with AM62x SoC -k3-am625-sk-hdmi-audio-dtbs := k3-am625-sk.dtb k3-am62x-sk-hdmi-audio.dtbo -k3-am62-lp-sk-hdmi-audio-dtbs := k3-am62-lp-sk.dtb k3-am62x-sk-hdmi-audio.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-csi2-ov5640.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-csi2-tevi-ov5640.dtbo @@ -23,8 +21,6 @@ dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-wifi-dahlia.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-wifi-dev.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-wifi-yavia.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk.dtb -dtb-$(CONFIG_ARCH_K3) += k3-am625-sk-hdmi-audio.dtb -dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk-hdmi-audio.dtb # Boards with AM62Ax SoC dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk.dtb @@ -36,20 +32,15 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-csi2-ov5640.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-csi2-tevi-ov5640.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-csi2-imx219.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-hdmi-audio.dtbo # Boards with AM64x SoC dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-phyboard-electra-rdk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-tqma64xxl-mbax4xxl.dtb - -k3-am642-tqma64xxl-mbax4xxl-sdcard-dtbs := \ - k3-am642-tqma64xxl-mbax4xxl.dtb k3-am64-tqma64xxl-mbax4xxl-sdcard.dtbo -k3-am642-tqma64xxl-mbax4xxl-wlan-dtbs := \ - k3-am642-tqma64xxl-mbax4xxl.dtb k3-am64-tqma64xxl-mbax4xxl-wlan.dtbo - -dtb-$(CONFIG_ARCH_K3) += k3-am642-tqma64xxl-mbax4xxl-sdcard.dtb -dtb-$(CONFIG_ARCH_K3) += k3-am642-tqma64xxl-mbax4xxl-wlan.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am64-tqma64xxl-mbax4xxl-sdcard.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am64-tqma64xxl-mbax4xxl-wlan.dtbo # Boards with AM65x SoC k3-am654-gp-evm-dtbs := k3-am654-base-board.dtb k3-am654-base-board-rocktech-rk101-panel.dtbo @@ -98,26 +89,36 @@ k3-am625-sk-csi2-ov5640-dtbs := k3-am625-sk.dtb \ k3-am62x-sk-csi2-ov5640.dtbo k3-am625-sk-csi2-tevi-ov5640-dtbs := k3-am625-sk.dtb \ k3-am62x-sk-csi2-tevi-ov5640.dtbo +k3-am625-sk-hdmi-audio-dtbs := k3-am625-sk.dtb k3-am62x-sk-hdmi-audio.dtbo +k3-am62-lp-sk-hdmi-audio-dtbs := k3-am62-lp-sk.dtb k3-am62x-sk-hdmi-audio.dtbo k3-am62a7-sk-csi2-imx219-dtbs := k3-am62a7-sk.dtb \ k3-am62x-sk-csi2-imx219.dtbo k3-am62a7-sk-csi2-ov5640-dtbs := k3-am62a7-sk.dtb \ k3-am62x-sk-csi2-ov5640.dtbo k3-am62a7-sk-csi2-tevi-ov5640-dtbs := k3-am62a7-sk.dtb \ k3-am62x-sk-csi2-tevi-ov5640.dtbo +k3-am642-tqma64xxl-mbax4xxl-sdcard-dtbs := \ + k3-am642-tqma64xxl-mbax4xxl.dtb k3-am64-tqma64xxl-mbax4xxl-sdcard.dtbo +k3-am642-tqma64xxl-mbax4xxl-wlan-dtbs := \ + k3-am642-tqma64xxl-mbax4xxl.dtb k3-am64-tqma64xxl-mbax4xxl-wlan.dtbo dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ k3-am625-beagleplay-csi2-tevi-ov5640.dtb \ k3-am625-sk-csi2-imx219.dtb \ k3-am625-sk-csi2-ov5640.dtb \ k3-am625-sk-csi2-tevi-ov5640.dtb \ + k3-am625-sk-hdmi-audio.dtb \ + k3-am62-lp-sk-hdmi-audio.dtb \ k3-am62a7-sk-csi2-imx219.dtb \ k3-am62a7-sk-csi2-ov5640.dtb \ - k3-am62a7-sk-csi2-tevi-ov5640.dtb + k3-am642-tqma64xxl-mbax4xxl-sdcard.dtb \ + k3-am642-tqma64xxl-mbax4xxl-wlan.dtb # Enable support for device-tree overlays DTC_FLAGS_k3-am625-beagleplay += -@ DTC_FLAGS_k3-am625-sk += -@ DTC_FLAGS_k3-am62-lp-sk += -@ DTC_FLAGS_k3-am62a7-sk += -@ +DTC_FLAGS_k3-am642-tqma64xxl-mbax4xxl += -@ DTC_FLAGS_k3-am6548-iot2050-advanced-m2 += -@ DTC_FLAGS_k3-j721e-common-proc-board += -@ DTC_FLAGS_k3-j721s2-common-proc-board += -@