From patchwork Tue Oct 10 11:17:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 150685 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp118165vqb; Tue, 10 Oct 2023 04:17:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGoJ23Qt45jc2UG3ZWt6ppDjnS6erzN9wO/0M3QyrskYzld/PXz0dvzP4PqgjkZUn/6Vfay X-Received: by 2002:a05:6a00:2450:b0:693:4108:1eb7 with SMTP id d16-20020a056a00245000b0069341081eb7mr17149067pfj.30.1696936668121; Tue, 10 Oct 2023 04:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696936668; cv=none; d=google.com; s=arc-20160816; b=wP/gs0FLOIDjWWhFImMPw4pHaBiSTmNj0tM69nkaR7dSy24l9gd5eH9Kr2iZKchQU9 B/29X4X7eltVp8LcBSWmcDfkajUZaLpAMZj/zYgpiHsLHLmvFMGFDpFCSQHViJtDGY7Q KyOld0FX/YoYjMpOzs1nsvNepzQGba8D2yIyJFJaIN8Iq61EC7TRqYYWqrwQnEN+A32U hOXSIWktLyZGXgDpxnz/aeRVKIHSaw5zAEBbHntbSYLaCvGPm5d4cSG749Lp8xkI/0j+ zqG36JMNkfAJtF28WpH/MVBnt0NWb+yf5SUzGS1sjqyhC/2xdRX/GavqUh8ne2sz/et+ 9Dwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=f3goIoTrjrBs5EwnCS2UuiWS0+VYrJ80vuluOlzf2iI=; fh=mNEg1TJiJt67+tmVamrYVMC83hRkk26rh44UnDaFm/Y=; b=A3y8zVVKR+tc2kjsXhOx8liaflJhXPRJVHOaSU1cUZ7ctWvttLRQaNvf7/AgHuEFai ph1gBtyVNs5RYRLxsrayTxs1s9XaP2r2mHiQJyiRbcXXAWVKNjcmcvUtQxtwfRiN7sU7 ArPLt9WLu7W3G59gfMpSfGon1dJFfq1whUasXOYazs6EsPX/x59tsc6dEfK2pUSIB1Is OX3uIgZ26t0GgNbBXUBj8NNPxswtKYA+bPRlMmMkRJoIMJmQ/xkp9TXhlRizTKAAGdYi XKIEKMgxLKZQKZBehNl/dKbIIo+DR7rmOaG4DDaFYB+ubD1uJi8qR77U0/h83z+0bpJe 8MjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fvOiu16l; 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 o16-20020a056a0015d000b0069014511b25si9915630pfu.110.2023.10.10.04.17.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 04:17:48 -0700 (PDT) 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=fvOiu16l; 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 BF4F781444C2; Tue, 10 Oct 2023 04:17:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231303AbjJJLRn (ORCPT + 20 others); Tue, 10 Oct 2023 07:17:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231259AbjJJLRl (ORCPT ); Tue, 10 Oct 2023 07:17:41 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3084B7; Tue, 10 Oct 2023 04:17:38 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39ABHRFs045232; Tue, 10 Oct 2023 06:17:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696936647; bh=f3goIoTrjrBs5EwnCS2UuiWS0+VYrJ80vuluOlzf2iI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fvOiu16lWo6DB5aLM2925fc9F68tthWtrwy0+3/mhzF1H9LSHtBpwO27G+QTkazqT ieklVjSBG+0F3K0jrBxmzD5ef0UgUTl/laryHgYOGMa1LPAVboeuFzh2BIW3o4NyWH I58M2XzlcLwbglFWgmXIJFynQL0tC8M+1UKTGsmU= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39ABHRBH020246 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 10 Oct 2023 06:17:27 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 10 Oct 2023 06:17:26 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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; Tue, 10 Oct 2023 06:17:26 -0500 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 39ABHPoi042363; Tue, 10 Oct 2023 06:17:26 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 1/2] arm64: dts: ti: k3-j721s2-main: Add BCDMA instance for CSI2RX Date: Tue, 10 Oct 2023 16:47:22 +0530 Message-ID: <20231010111723.17524-2-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231010111723.17524-1-vaishnav.a@ti.com> References: <20231010111723.17524-1-vaishnav.a@ti.com> MIME-Version: 1.0 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,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, 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]); Tue, 10 Oct 2023 04:17:45 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779367063667798539 X-GMAIL-MSGID: 1779367063667798539 J721S2 has a dedicated BCDMA controller for the Camera Serial Interface. Events from the BCDMA controller instance are routed through the main UDMA interrupt aggregator as unmapped events. Add the node for the DMA controller and keep it disabled by default. See J721S2 Technical Reference Manual (SPRUJ28) for further details: http://www.ti.com/lit/pdf/spruj28 Signed-off-by: Vaishnav Achath Reviewed-by: Jayesh Choudhary --- V1->V2: * Fix indentation for the reg entries. arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index 6d32544c8881..d5d13d61ade3 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -807,6 +807,7 @@ ti,sci = <&sms>; ti,sci-dev-id = <265>; ti,interrupt-ranges = <0 0 256>; + ti,unmapped-event-sources = <&main_bcdma_csi>; }; secure_proxy_main: mailbox@32c00000 { @@ -1103,6 +1104,22 @@ ti,sci-rm-range-rflow = <0x00>; /* GP RFLOW */ }; + main_bcdma_csi: dma-controller@311a0000 { + compatible = "ti,j721s2-dmss-bcdma-csi"; + reg = <0x00 0x311a0000 0x00 0x100>, + <0x00 0x35d00000 0x00 0x20000>, + <0x00 0x35c00000 0x00 0x10000>, + <0x00 0x35e00000 0x00 0x80000>; + reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt"; + msi-parent = <&main_udmass_inta>; + #dma-cells = <3>; + ti,sci = <&sms>; + ti,sci-dev-id = <225>; + ti,sci-rm-range-rchan = <0x21>; + ti,sci-rm-range-tchan = <0x22>; + status = "disabled"; + }; + cpts@310d0000 { compatible = "ti,j721e-cpts"; reg = <0x0 0x310d0000 0x0 0x400>; From patchwork Tue Oct 10 11:17:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 150686 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp118209vqb; Tue, 10 Oct 2023 04:17:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGndZZYCZbdKbtK549MqsdyGvtZ7A7W/5yR/g9L85bjoOFGL8XRvKSyIZXvz9S5ENlHQ2bY X-Received: by 2002:a17:902:a409:b0:1c5:b1a6:8111 with SMTP id p9-20020a170902a40900b001c5b1a68111mr15638487plq.31.1696936674387; Tue, 10 Oct 2023 04:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696936674; cv=none; d=google.com; s=arc-20160816; b=UX51yTMbE8eEDLNafx//dqWiXmbLuaC/WqESLWmy4Y2uDsdVqCql2A4NsFpwPfXIfO BBiLGKmCbNejQhSzCEVrl0xYjqKsku68+eQ5PY5wjpxxoe+7at+9wEqX7MiPNVN5d43I e3loDiHcYDJwWtaVQDrZymP1SxX+Ij2G8dh0VNkgVhecKE4KlGLBMP9sxTCF/dDvQHtd PxEdfIMFBi+FN3k8vBtu7dvUK6uQrSy4bFoiBMp3jb8aLiJ/TrgbJcKBf3kxRUaFlVY6 8BpGd6BNt60U8YAgXV4yYGr8ikWnHB2unabPX2rtVinqv9293dyqXDh4m7vUWqpMUlty 2pPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=DSamjwKreojvNFwZjOJNxZiEHv66Bu1bp5SDsm+2lQw=; fh=mNEg1TJiJt67+tmVamrYVMC83hRkk26rh44UnDaFm/Y=; b=0dzHeD9Mkw+qtxgi1YBozc4tyqQc5kvpZKlkbf+uciHPuWhTXclLNxsa+1HqbOt+0w 0CfrN4AqxCMoC03j7HWcFr3DL73D/0fkYx4p4nnO66hfSu7Fc07qIviwlpxvdObrP5f5 SBsQYnD1dc4e56OcndfiJ/r8Tru/zmca8Hm0t/v/m0ymWwh6+6JCSGr+2UWeIn9v6JQb R76094eqUPLC3nzfxrS3CfaLnRxN4blf3dCTVstkoRA+FfAlxZYQIuhERTC2cq57Sg0A 3sRnm7YbePJuv64MK7wVSesMp0IJegxNagIec1CJCGmmuCOc3sqWdKfG5NAkujdM/jhj EenA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yiL+PXDA; 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 k9-20020a170902c40900b001bd9e2b4b46si11976406plk.601.2023.10.10.04.17.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 04:17:54 -0700 (PDT) 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=yiL+PXDA; 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 889B08153D14; Tue, 10 Oct 2023 04:17:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231315AbjJJLRs (ORCPT + 20 others); Tue, 10 Oct 2023 07:17:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231299AbjJJLRn (ORCPT ); Tue, 10 Oct 2023 07:17:43 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E918994; Tue, 10 Oct 2023 04:17:39 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39ABHSWe010309; Tue, 10 Oct 2023 06:17:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696936648; bh=DSamjwKreojvNFwZjOJNxZiEHv66Bu1bp5SDsm+2lQw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=yiL+PXDA4ruJ20wLsQWdxqQhf8mh4u7r/rXMobmTidMql2M9LaNsQi9zywqmli+/9 63Jdsws4YJQ9zZ574FEqMEaCOPZ4HodoO5CcEgGZCeLef+sxEF+dati9G4+4RGRwdC dNriC+ImEIg2Efr1fepf1b+hjNrnN6OH08YqYQo4= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39ABHSxq086174 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 10 Oct 2023 06:17:28 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 10 Oct 2023 06:17:28 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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 via Frontend Transport; Tue, 10 Oct 2023 06:17:28 -0500 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 39ABHRiX122855; Tue, 10 Oct 2023 06:17:27 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 2/2] arm64: dts: ti: k3-j784s4-main: Add BCDMA instance for CSI2RX Date: Tue, 10 Oct 2023 16:47:23 +0530 Message-ID: <20231010111723.17524-3-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231010111723.17524-1-vaishnav.a@ti.com> References: <20231010111723.17524-1-vaishnav.a@ti.com> MIME-Version: 1.0 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,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, 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]); Tue, 10 Oct 2023 04:17:53 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779367070566196801 X-GMAIL-MSGID: 1779367070566196801 J784S4 has a dedicated BCDMA controller for the Camera Serial Interface. Events from the BCDMA controller instance are routed through the main UDMA interrupt aggregator as unmapped events. Add the node for the DMA controller and keep it disabled by default. See J784S4 Technical Reference Manual (SPRUJ52) for further details: http://www.ti.com/lit/zip/spruj52 Signed-off-by: Vaishnav Achath Reviewed-by: Jayesh Choudhary --- V1->V2: * Fix indentation for the reg entries. arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi index efed2d683f63..3123413e2140 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi @@ -703,6 +703,7 @@ ti,sci = <&sms>; ti,sci-dev-id = <321>; ti,interrupt-ranges = <0 0 256>; + ti,unmapped-event-sources = <&main_bcdma_csi>; }; secure_proxy_main: mailbox@32c00000 { @@ -1000,6 +1001,22 @@ ti,sci-rm-range-rflow = <0x00>; /* GP RFLOW */ }; + main_bcdma_csi: dma-controller@311a0000 { + compatible = "ti,j721s2-dmss-bcdma-csi"; + reg = <0x00 0x311a0000 0x00 0x100>, + <0x00 0x35d00000 0x00 0x20000>, + <0x00 0x35c00000 0x00 0x10000>, + <0x00 0x35e00000 0x00 0x80000>; + reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt"; + msi-parent = <&main_udmass_inta>; + #dma-cells = <3>; + ti,sci = <&sms>; + ti,sci-dev-id = <281>; + ti,sci-rm-range-rchan = <0x21>; + ti,sci-rm-range-tchan = <0x22>; + status = "disabled"; + }; + cpts@310d0000 { compatible = "ti,j721e-cpts"; reg = <0x00 0x310d0000 0x00 0x400>;