From patchwork Tue Jul 21 22:36:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 11676833 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 00A34618 for ; Tue, 21 Jul 2020 22:37:53 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CB0CD2073A for ; Tue, 21 Jul 2020 22:37:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="e1h28LD8"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ti.com header.i=@ti.com header.b="C3Lu1WiJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB0CD2073A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Re+zRminBLzxWgc1MMHKYGCfK8j8FUFHmcl6hjsebAs=; b=e1h28LD8qux9ziIbJe8+jspImp 1NJGBzg5TALssv3kvYp5eqjd/tRKv69tXdG1y0TMRHRRqCy+785Azpl4oiMrKA1br8/tezJp8kf+l x8bmPI9yQk8Vq6dnDqzzOR7tRpr2QYuT0VrdP7FxlGVPFiCA/L8szghtIB3V3yjI2RvvuHH+rIB2f t3rGnigZhjR/vzfVpeDACFmvXdK/RfqQRXBDsoGUdHxibfmFS0oFd6FgqH2VmdblNFqElFI6S6I3Y 26nD1YiTdcCb8AQ5UlEZA6oUkFBQdd4b7kQVBpewMm+fkAAadiq+SGXO8A+TIIqXccoShINyo6ylj +XsKgLSQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jy0s7-0001uH-OM; Tue, 21 Jul 2020 22:36:27 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jy0s4-0001sk-4d for linux-arm-kernel@lists.infradead.org; Tue, 21 Jul 2020 22:36:25 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06LMaLNG108088; Tue, 21 Jul 2020 17:36:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1595370981; bh=3Sb6PrHGQGYKFrEVdSA8GaYuEwf+vL4h5BIJE8Zpo6k=; h=From:To:CC:Subject:Date; b=C3Lu1WiJ0sSay5h9zOT1yMJmfHMYoMNXmyoeU9WQcFiVBoJ55Fp8VLR56viwCNRtt JVtC0nvljbmVgTEA57WgoTWyfzXy18MRCILBh4HWFPux8f7RN70qzsqzq40SJ73Ur1 AdNyCJ77Ot3zJaZyqCSU40lf8T9Tt7Ldd78WJr6c= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06LMaL51023668; Tue, 21 Jul 2020 17:36:21 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) 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.1979.3; Tue, 21 Jul 2020 17:36:21 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 21 Jul 2020 17:36:21 -0500 Received: from fllv0103.dal.design.ti.com (fllv0103.dal.design.ti.com [10.247.120.73]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06LMaLRo013887; Tue, 21 Jul 2020 17:36:21 -0500 Received: from localhost ([10.250.34.248]) by fllv0103.dal.design.ti.com (8.14.7/8.14.7) with ESMTP id 06LMaL2D080793; Tue, 21 Jul 2020 17:36:21 -0500 From: Suman Anna To: Bjorn Andersson , Rob Herring , Mathieu Poirier Subject: [PATCH v5 0/6] TI K3 DSP remoteproc driver for C66x DSPs Date: Tue, 21 Jul 2020 17:36:11 -0500 Message-ID: <20200721223617.20312-1-s-anna@ti.com> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200721_183624_331337_43938AC1 X-CRM114-Status: GOOD ( 11.80 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [198.47.19.141 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [198.47.19.141 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nishanth Menon , devicetree@vger.kernel.org, Lokesh Vutla , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hi All, The following is v5 of the K3 DSP remoteproc driver supporting the C66x DSPs on the TI K3 J721E SoCs. The patches apply cleanly both on v5.8-rc1 as well as on latest HEAD of rproc-next branch. The C71x v3 still applies cleanly on top of this series. The main changes are on the bindings. The previously added common ti,k3-sci-rproc.yaml remoteproc binding (v4 patch#3) is replaced by an equivalent generic ti,k3-sci-common.yaml binding (patch #1) that can scale to other TI SCI controller nodes. As such, I have relocated the file to Documentation/devicetree/bindings/arm/keystone folder instead of the remoteproc folder. Driver patches are unchanged. Please see the v4 cover-letter and individual patches for further delta differences. v4: https://patchwork.kernel.org/cover/11671459/ v3: https://patchwork.kernel.org/cover/11602331/ v2: https://patchwork.kernel.org/cover/11561787/ v1: https://patchwork.kernel.org/cover/11458573/ C71x v3: https://patchwork.kernel.org/cover/11602345/ regards Suman Suman Anna (6): dt-bindings: arm: keystone: Add common TI SCI bindings remoteproc: Introduce rproc_of_parse_firmware() helper remoteproc: k3: Add TI-SCI processor control helper functions dt-bindings: remoteproc: Add bindings for C66x DSPs on TI K3 SoCs remoteproc: k3-dsp: Add a remoteproc driver of K3 C66x DSPs remoteproc: k3-dsp: Add support for L2RAM loading on C66x DSPs .../arm/keystone/ti,k3-sci-common.yaml | 44 + .../bindings/remoteproc/ti,k3-dsp-rproc.yaml | 142 ++++ MAINTAINERS | 1 + drivers/remoteproc/Kconfig | 13 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/remoteproc_core.c | 23 + drivers/remoteproc/remoteproc_internal.h | 2 + drivers/remoteproc/ti_k3_dsp_remoteproc.c | 771 ++++++++++++++++++ drivers/remoteproc/ti_sci_proc.h | 104 +++ 9 files changed, 1101 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/keystone/ti,k3-sci-common.yaml create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml create mode 100644 drivers/remoteproc/ti_k3_dsp_remoteproc.c create mode 100644 drivers/remoteproc/ti_sci_proc.h