From patchwork Fri Dec 1 05:09: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: 172248 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp889377vqy; Thu, 30 Nov 2023 21:10:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1XSrhDLyAvebreU2O+9j4JmVjAijmJVTQ3/XezjrUHnsK9LbiIqM5V5Pnz1ScLTcobl1z X-Received: by 2002:a92:902:0:b0:35d:37e8:7f97 with SMTP id y2-20020a920902000000b0035d37e87f97mr5235440ilg.25.1701407413918; Thu, 30 Nov 2023 21:10:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701407413; cv=none; d=google.com; s=arc-20160816; b=FHJogg+rQ4Y0pIVf8Rg4f3EMgnnRvDd1soWBkkK6Ni7d4MeBJsIP4lUX2tqBgQU9GI 4iL0UIGWKe+NzZ8xAef/raKr2J9H1WwFN1H01yVyFDfEYndXpj4Biv8iubJ9qVuZhV/F ceT8AoueJ2MTCIEzxl5Tg0ORAHDkNFJz65Y1Qn6yUrw39O/XYjS8tSmbXc832FNEIHcQ y2Vnc47LwL2hOjEwhCz0wo9x/RiGZfdnNcQ0v74/gIxRh34/AJrAHod1Bb5isFtKC6IR 95yG2X5onHaLUhn8J3dA16TPo/RFCogQHtGcJH7lQrjKbqLQuUq50kAuPjlAawZAFEB0 vxdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Y2KXqIr6GkpmWHFBYq5JG+pjs0o2T4SLW2pvUSdpvKA=; fh=4kSr5OJ7shtrhcKsjRyWBmAMqPnbCfW6aNJsT9zxNW0=; b=gshv15hYIbLhKeeELC2BW6pi8E3FIXzrxdMkm8dXynqAguie3PYy/3Y7CfDQd63BKS PfmsRoEQH8LBnV7K496uhrUWtLHi3Bnem3lfcW8pp16W6ssVXjKKPWp9kKP7D7kaZARL D+hsK8oDPcYjWINYi1dPsvAZZ0FONI69qWmbxX9cONsnOFk2TCD9pcJSqbIUOOz3KQqu j3FecJCx6LmQcg0sXNrqg7lygv1AsNjQgo1LDxTJqTUmujh737MWqGHcwlZq4WDU9mTz 3u8G59DcAGaAs14KrdLSZddcvTd0OryAOAGvyDJ2l7K08DaQUpCqmEbEPWia3Tc1ClzL Yz9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XMVpgTUp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id z21-20020a630a55000000b005bdbe64cc26si2691356pgk.535.2023.11.30.21.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 21:10:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XMVpgTUp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id B2AF58326680; Thu, 30 Nov 2023 21:10:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232446AbjLAFJ7 (ORCPT + 99 others); Fri, 1 Dec 2023 00:09:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377343AbjLAFJx (ORCPT ); Fri, 1 Dec 2023 00:09:53 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 124BD10FD; Thu, 30 Nov 2023 21:09:59 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3B159j6X049907; Thu, 30 Nov 2023 23:09:45 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1701407385; bh=Y2KXqIr6GkpmWHFBYq5JG+pjs0o2T4SLW2pvUSdpvKA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=XMVpgTUpD7X8Xas0UpIPQDpn9bG7JO5exXfDT3r8mP38raWhirlP8HUelb+x2Fi8Q AJJmKR/HHBtaujXmwCjpazlTMWCusoNelJMZBLCbPr9qABQb6thE/konIqXF8sElmP K5BJAGn7UidVTrRgVy/lsojbPGxOE+zefGvopzas= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3B159jeN031236 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 30 Nov 2023 23:09:45 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 30 Nov 2023 23:09:45 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) 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; Thu, 30 Nov 2023 23:09:45 -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 3B159iAV076144; Thu, 30 Nov 2023 23:09:45 -0600 From: Jai Luthra To: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Jai Luthra , , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch , Matthias Schiffer Subject: [PATCH RESEND v3 2/9] arm64: dts: ti: Enable CSI-RX on AM62 Date: Fri, 1 Dec 2023 10:39:17 +0530 Message-ID: <20231201-csi_dts-v3-2-9f06f31080fe@ti.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231201-csi_dts-v3-0-9f06f31080fe@ti.com> References: <20231201-csi_dts-v3-0-9f06f31080fe@ti.com> MIME-Version: 1.0 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/ZANAwAIAUPekfkkmnFFAcsmYgBlaWXobbb3eBUCOchNjKqjU+x+v60BvFj8r1KC7 42piP8URWaJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZWll6AAKCRBD3pH5JJpx RXKVD/93C1IWwBRxmp9hpxBxNxhDqh3CWflOlnOVa5flisBL0QgKvdGPTE8klr/frvyrhG61SPC /zmaCzeabF5LdkSyqLZdGozKMyKNZ5YK7FYHWZE2lbUZNxU0kQToSkBLkbP4hMLv9BjbqYiIaH4 uEd+wxz8yM2iGisyCnIlXZW3ZvlCK2aZGOdHx2YduQ271kja6Qw7KPEGK/2r8VYpQfwL1L6pR6n GNWdBBX9YVSOUc/IVey9OkfxORuQFhITPi9jUJrMOv7M7VGVxw6RtXUppHA5hKarjZYel/0nqZG ldPi0RBlQdKfvVN5gd65U8M0cT4w1oW7noLyo/Fm810pBky4t6agLBIRok0/pluOTa90aM6pIll Z6YxS+3TkDGeLD4Obo4JLXMVTzFb4Uihs/sBPKtSXJfaGX8AuL9w2/y9iJogJRNEyUcJLkQCcgN 39W2ZawOXAp+y6yO2pF7msrHd3Zdj08KhAyUGPiZyb0NNRAsLsuuSPRqWs5dp8Y//uaPpbCJ1no ketLdffRw3rZ9GVbTXq+A6NdB/3abiH05nlGeAhJALxHqfHPjaxJva4xNhk25II8fmKkI/rf4s9 4MEDnhXSuyYvpFlhXveY9dVE5aec+w9txrAdwhwHFu9sAwcdJZasW3TMuk9t1pk/Q73BNfUXG3Q tnyuNLy//VzhZng== 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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 30 Nov 2023 21:10:09 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784054980770718428 X-GMAIL-MSGID: 1784054980770718428 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"; + }; + };