From patchwork Tue Oct 10 09:26:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 150616 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp66189vqb; Tue, 10 Oct 2023 02:28:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFNBKxN89+Gel9v7+/qJLZ5qcrnygqGOhvS4h4n9ew5Bf81dKXe2O2pro9CKEb6E0KX49jo X-Received: by 2002:a05:6a00:b92:b0:68e:2ef2:3379 with SMTP id g18-20020a056a000b9200b0068e2ef23379mr17921252pfj.15.1696930090996; Tue, 10 Oct 2023 02:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696930090; cv=none; d=google.com; s=arc-20160816; b=e+b4eXYfD460B6jB1P3qAivEz2jmrHoqYX5f5jjCKVtfDw/2BPRDAQGFJt2PACV/e7 cn6z4cwTBA78jgczQOH3g7vq1uHMHmFCw6y7g3DTde8+vT1D761daidlKe6gBWSwrDrl MxCxUF1OgzWUOOfspPNVHp8jheXQ5uD6Cwi67hTigCzmH776wWQcThyNAkgXQBAWxax5 RDEV7cddYGrdF146We/mc9Ok1lWGot+Ua9fm+wop9CBmHEfr8N7ZohYcadeOBIaQH/Cs cO1wQqy29Gq5NfPWa2fDc1iu6th9ZBKyPwO7tr+R4Eg/CLz4QNHagGABLDF/+Pr/OaTh qZhQ== 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=LGwi6pwBPmb3q1b5SsYBFF6kgsz6nBq4Iaro3vISNQ8=; fh=FQdyZ4F/kNEd/9JFdD8+4N1379M31Gcb+SoIyT933Yw=; b=Cre3kpUCuaw6RtxzhicpQa8AdPP26rwt8bxaba7AYbsSn4eh5/122a+kB2HlHR438C IymEHIIFZ+apbvWaNZu/K+JweRUz02Az+TfNeriZolqpNCMG6njY303OHvIqcQjqSOyq t7FVc8c6vWE77iY9TydNH+79Mnf3UP5xB2uqkDBX2JHaIZkkCCiweBI6t8EORbDGzQDC 4HTwggoErMPzlXoKtnJvacoe0Yanhd2D3MHSxU+IBxKU0PnsD0nZo92NF0L7B1Ukl5iz w997OBNyjoaYTsb0secddSdP2nIcHjz7xSL6vxQGWG5TZ6CF5Bfg8IdV1k3a3Tw2YtHQ cNVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UdhvynYw; 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 cw27-20020a056a00451b00b0068e47f1fc7esi9037907pfb.159.2023.10.10.02.28.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 02:28:10 -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=UdhvynYw; 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 7FDCD806AFE4; Tue, 10 Oct 2023 02:27:35 -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 S230151AbjJJJ1Z (ORCPT + 20 others); Tue, 10 Oct 2023 05:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230132AbjJJJ1X (ORCPT ); Tue, 10 Oct 2023 05:27:23 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41656CA; Tue, 10 Oct 2023 02:27:21 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39A9R4OD011185; Tue, 10 Oct 2023 04:27:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696930024; bh=LGwi6pwBPmb3q1b5SsYBFF6kgsz6nBq4Iaro3vISNQ8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=UdhvynYwjmS+Yyfg1PjGWlLK+rx3IOPtHdmXR4gi7O8Ww0zffZOWXf+zr+ogVOxwd cf56NTeXl9yJsX3PknZuOwrtIRj0/m9QParqAj/xvtciI85mUo6Lsz5cuZ14cfKRh2 s2CZP4SDcl4ubBVS/O6P5FzxOQhZISkKpThFEmsU= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39A9R43g020389 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 10 Oct 2023 04:27:04 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE114.ent.ti.com (10.64.6.35) 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 04:27:03 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE108.ent.ti.com (10.64.6.29) 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 04:27:03 -0500 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 39A9R2or079424; Tue, 10 Oct 2023 04:27:03 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , Subject: [PATCH 1/2] arm64: dts: ti: k3-j721s2-main: Add BCDMA instance for CSI2RX Date: Tue, 10 Oct 2023 14:56:59 +0530 Message-ID: <20231010092700.2089-2-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231010092700.2089-1-vaishnav.a@ti.com> References: <20231010092700.2089-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,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 02:27:35 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779360166770017991 X-GMAIL-MSGID: 1779360166770017991 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 --- 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..2a51a8d98c3c 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 09:27:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 150615 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp66023vqb; Tue, 10 Oct 2023 02:27:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPzvsGBGZjuYYNwNThyacrbps62VO1hlbBl9k2bRy71aNjkAtCIWvyFh6Cub+N/cwdakeK X-Received: by 2002:a17:90a:9a94:b0:274:a861:4391 with SMTP id e20-20020a17090a9a9400b00274a8614391mr13243311pjp.40.1696930067868; Tue, 10 Oct 2023 02:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696930067; cv=none; d=google.com; s=arc-20160816; b=zXYlF6WzJdFkrZw1m9Pi5sFj0BcDISt6oaX4XbOYUz5nBZ0Ps5nUn+SbEsu1mPpPH5 QTrw8zrRJXcVTpEM9oE24SXVq8vSVY9rDJTjdcHnSFIiWz/Xz93Rxa35+9d9P/Znf+q6 1HFUCgJq01pKDQflY2vwsuNNl4trjW/Tg0gj1rhqymG2+CEEpJdf24O+fohFS8yXmdi4 9kTw33aUztLN93cgUAgClQOUUVLL/oXh8FaipfQz7nwDUrKBi56m1eaq/uHnFjHDugm0 mFFeojL0V8byaS3F29TNxkslZzA4CQm4y2J0kzC5O1tpNrEItVESxgU+i6fMitByquPy Fq5w== 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=D2IGiPDYKpC0zOzjj5FGs/m5JW+z/i2Nu5bmrKfakq8=; fh=FQdyZ4F/kNEd/9JFdD8+4N1379M31Gcb+SoIyT933Yw=; b=Dl4kcncAK1Fm/2v2mkG4UzJR3xntL1VrOPw9hH1sJAeSQ5WeFN2Vb2vKCXeFBfZBaM DmzG2zjvhDD+Sf/1na4X0nmmi3ySB8wrnxRHnAFunSATrkJEQdH83T8kuwShtPScpQxJ Dgq0jIO5e7/CAW1FK/UifvsQRmxNats2LOo0LKe9i2F/yWlbz5lm3uXeD8kEcOjQnVrG Yw++yyU3+4NnJm7KyDCV7DF+ljm05VpT4nc4CLHiBDRWXWg7wqUci+77ors6+zwTA7M3 sv7ht1JKnfaDyQFVzmu/9wpVFFjFAnXBfr3Bgo2oeNaCQ2ZsXgNacnuiI+d9aJ/NabFq QFFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CMXjPxEE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id pg12-20020a17090b1e0c00b002741e78e66asi14308929pjb.153.2023.10.10.02.27.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 02:27:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CMXjPxEE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 7861C8023711; Tue, 10 Oct 2023 02:27:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230171AbjJJJ12 (ORCPT + 20 others); Tue, 10 Oct 2023 05:27:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbjJJJ1Y (ORCPT ); Tue, 10 Oct 2023 05:27:24 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF79694; Tue, 10 Oct 2023 02:27:22 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39A9R5tl107121; Tue, 10 Oct 2023 04:27:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696930025; bh=D2IGiPDYKpC0zOzjj5FGs/m5JW+z/i2Nu5bmrKfakq8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=CMXjPxEEip6I+SASk7Cyh0ShknYBPJf0owDpZtN6H8laJgdxbiuofelL15kqpuqSa IvgklUNZKernw8e+V5EmytyaeZU9/ps7PW7RibfsnqgAszmHjKTDAjSBg31Bo4B7XC w2PM6lTVYNutWHd8H3M5gTjx3wJ6b8IxQpXHq0SQ= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39A9R5u7096963 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 10 Oct 2023 04:27:05 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) 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; Tue, 10 Oct 2023 04:27:05 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE108.ent.ti.com (10.64.6.29) 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 04:27:05 -0500 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 39A9R4HT079451; Tue, 10 Oct 2023 04:27:05 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , Subject: [PATCH 2/2] arm64: dts: ti: k3-j784s4-main: Add BCDMA instance for CSI2RX Date: Tue, 10 Oct 2023 14:57:00 +0530 Message-ID: <20231010092700.2089-3-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231010092700.2089-1-vaishnav.a@ti.com> References: <20231010092700.2089-1-vaishnav.a@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Tue, 10 Oct 2023 02:27:44 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779360142717091919 X-GMAIL-MSGID: 1779360142717091919 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 --- 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..a772f563c1ed 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>;