From patchwork Wed Nov 15 09:51: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: 165252 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp2430747vqg; Wed, 15 Nov 2023 01:53:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IH89Q34J2VmHBN049FBBhf34rbHokx6RsBbRedNQOY5XyaogGqaZAuwZ/N4EAXs7TtzJ5U1 X-Received: by 2002:a05:6808:28a:b0:3ac:aae1:6d64 with SMTP id z10-20020a056808028a00b003acaae16d64mr13555254oic.2.1700042022341; Wed, 15 Nov 2023 01:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700042022; cv=none; d=google.com; s=arc-20160816; b=vlYXo4cxW0vHxT/rqEpLPgWB7dkOFjmcJfomWV6cJCM7X8Ko3Eo5qyEshyMEmao1xe dwpa4ainIij5RKpQW+WjEEcWOzLUbR1n3n4s/vTQrgEIf9QrAdJ+AqvW0U8Er+ydUmGd bwIYEOpM2xc4uhBAtYeI0ReiSz71s7h4N6IbcSDfN1KpvoW4RBpvQekEgE4LTgT+kKXI +c55P1Cwx+Xvyx3YNoGK3B4RqVjwbwUeCflszy3rq5kks59ZXnH1S3qgxRt1bvBym9dH 919UyJxECzF/g9ECrnLrGXVO0KONavG+uHAO0Q/dwInnxIV1rKE1EI95v2oG0sX97B8G qS+w== 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=kxbQ/hRc7Q4aD40Sxi+FHzPEYPOdcxP2qr3BfgtMY7o=; fh=/DmXmFEf5H4yMoXETWO4dsv/SeAJhpaj5Ol0ioZpBwo=; b=ZKFMAk7N9T3WJpNcJyYQd4V7FfsbtAcFiKuI4OChzwPfB2s/NT0oH/gARB3KCzcKp5 Ch6/hh2+am0QEzh3kxm5dHbux5ebIdPvEEVbkzCFRSwkhc6f7nF9yL08vQ53+ngmYOpc J+u0ElfqfoH0e0+gVVy35dz4wSdgUdEC4E7pcy48LRvK/tU78Ao1lyK/bIINoXfGHpiN jUdkg9k+tPQ3B2pB5tQwJA6spQ/QWcYjj7rbEPdrGJUCePwRPVDUKXR2wjyEanaNsgkn XYQZ4IJH/xYBUklkBPGcolsf8ybCH0iBHhSVSLbHshqBfyQy+Kf2qeHa4zJF7EtdNcnt 8uUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Y80Q7x2B; 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 g23-20020a63fa57000000b005b9b68add85si10066805pgk.254.2023.11.15.01.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 01:53:42 -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=Y80Q7x2B; 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 3F6D28030A3F; Wed, 15 Nov 2023 01:53:39 -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 S234835AbjKOJwd (ORCPT + 28 others); Wed, 15 Nov 2023 04:52:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234823AbjKOJw2 (ORCPT ); Wed, 15 Nov 2023 04:52:28 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A851120; Wed, 15 Nov 2023 01:52:24 -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 3AF9qA0Z027067; Wed, 15 Nov 2023 03:52:10 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1700041930; bh=kxbQ/hRc7Q4aD40Sxi+FHzPEYPOdcxP2qr3BfgtMY7o=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=Y80Q7x2BWuu1Cpz9/3aEpcuUvVeo3yw+v2WsMFxDO1Xph5XUmd6XJJ2chrSDHEVxf A8F0kJWV8OVA42kQiQKJHl5gaWk7l48zsuadZU8VlscKbiFtUrui1Q7nJ1Ji1Xtjdo yqhPP11ufykWDVywSOwsG63LOhQreEoAJEF4RDPQ= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3AF9qAmn109170 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 15 Nov 2023 03:52:10 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) 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; Wed, 15 Nov 2023 03:52:10 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) 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; Wed, 15 Nov 2023 03:52:10 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3AF9q9hf009700; Wed, 15 Nov 2023 03:52:10 -0600 From: Jai Luthra Date: Wed, 15 Nov 2023 15:21:10 +0530 Subject: [PATCH 2/8] arm64: dts: ti: Enable CSI-RX on AM62 MIME-Version: 1.0 Message-ID: <20231115-csi_dts-v1-2-99fc535b2bde@ti.com> References: <20231115-csi_dts-v1-0-99fc535b2bde@ti.com> In-Reply-To: <20231115-csi_dts-v1-0-99fc535b2bde@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 , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2175; i=j-luthra@ti.com; h=from:subject:message-id; bh=Ygo3DMdffwbzu3W24FhQXSDCuiW/4zp9AmLaS/aTiyk=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlVJS5K58USh8mBD3DC3jzqtI6iwmtg6IcPoD/W 2rgL9AGiLeJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZVSUuQAKCRBD3pH5JJpx RaqmD/9rxFCqMJtUlFUV/4S/uzP/3qTmJag8aliPz2OXZivPWQ7uLxDniA+osdaRrlg32f8cSAd YJeWfANcBTRFi6qxAcuYA7ln+yklxL+sVq1ubsm7kqFXop2R+gDcEB2zLEsT28+R0tPH+z0QmsO pn8HqRb/1sjuwUYZJEhaaASAghwUmwQ9ACS0KKXq9aWcRl9rgAwZwF7leF47Pg+USvjc5Dt9AE2 ZhXeB2MOe4hd2NOy7Od+Q/T0OpRKPWWvw6mzWWAfozIWGrx8W1bONRWuvD5iAV0wDbEpPPIf0rm aU7IOmGZFy54Obr6vcTkSz+AH/CgzsxrtD6S9Uvl5F8PpXCjus+kvYAeWEho2SNf4OCWVw0CnkW Wwug4wIgG4yn/j2j2/vg2FjiI2JYd8o7lwA7MNlUBfOUAx+OdT5IgTG+EfMrYe8XlLq6cw0yFXf nTmRR6RP/rfzrTz4/AQmjlbQhswktVP8QuWTPEJt95RBbgLIxqKNlMmEqVaNKQB402sCQGjrZBi 7IsSCqh/8TkYQeMaaGCJPlMhi7QkM+yFBQNrO/UZ/aGc+dPNSAzoPW7nR9k40CTrakcGofbflrs KpfXWD0uSB0uTw5R/ppHPI/3U3sU+KKDZCYYY5OEWLiD35TddRJEkIDReUJngoRiLofMyXucQQh g5rjSKKa2JsbdhQ== 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=-1.0 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 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]); Wed, 15 Nov 2023 01:53:39 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782623263404703794 X-GMAIL-MSGID: 1782623263404703794 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. 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"; + }; + };