From patchwork Tue Dec 8 14:09:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grzegorz Jaszczyk X-Patchwork-Id: 339738 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3722646jai; Tue, 8 Dec 2020 06:12:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhbGn20Fg2TrMzf6LayhSzVqZ6mkcLRxYVWjF9tvBlwEp+waiT8jo6zuAmpxR6nVEUgMBv X-Received: by 2002:aa7:de0f:: with SMTP id h15mr13113333edv.110.1607436772594; Tue, 08 Dec 2020 06:12:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607436772; cv=none; d=google.com; s=arc-20160816; b=Nwnq6qOKOLdz9TAwwwZXQPi0lyy8Od9232MoD63HRY2Ad96hJBmIFmK8d9fivyWwol JoyHsAxc75UsKPwQ2G9YwvBYy0aSm8/d9CTMU+2YNtUIAGZMAC61BjYQLN0jPs13KK47 8OrMa3Q2MFyVCsIklNxnS21+285lBOWLe7YTezvKtGd2J+olUmZwh67o7IJxfCcLVC9f RflRulqmB2MaYn8URTDCEmwA9G5x4YQkBmG7GfRIZpkALU5s85u0nl4JqJoBx/NEdWNM ngxCJuYEBzCTuBIQ8gDc0MCWiiHoBJ9pjJTeqf6PMKW/b9RZIBxbk+Sqz6KOHtt2XFPd awPQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=WG9wP54MrSEA3r8eccjMo3MMPcrQmj+RNEk7HB0q6IQ=; b=Ke2S23xpTTukPl2fu6sExfhPKYlO8JaO0zxVXwpW0PnbPCac7ysNvEtAbNOlRihLn9 vqlpPGj2hjfG/yRQWH+JFYHQ54jtnsD6OgQDCaBE9zDJlmbpdRwuRfWHTldUZpY+b8pT H/mCIOYkvAQyloZl21Nk264TvUOjXkXTaAU+TygtceQSdIA+IRfv8U83LFELG73IOppY rKDRZQW9ud1izdbk32d3Am1vLiKkeE5LRv8fdzGlrnwjjEJGWPy9HPDwHUoazE9udFq9 kIV/VDyxQVFhs5TXCEN26aaWGCLXM/7oNNLpBE3gUm69/pDE10DYD00Zdyq7d4ssEk7w B0ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tLSv5kqE; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si5275960eju.331.2020.12.08.06.12.51; Tue, 08 Dec 2020 06:12:52 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tLSv5kqE; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729543AbgLHOL0 (ORCPT + 6 others); Tue, 8 Dec 2020 09:11:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729139AbgLHOL0 (ORCPT ); Tue, 8 Dec 2020 09:11:26 -0500 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F3D5C06179C for ; Tue, 8 Dec 2020 06:10:40 -0800 (PST) Received: by mail-lj1-x243.google.com with SMTP id y22so4747036ljn.9 for ; Tue, 08 Dec 2020 06:10:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WG9wP54MrSEA3r8eccjMo3MMPcrQmj+RNEk7HB0q6IQ=; b=tLSv5kqER7QrODTRcifV8nGuQ11SV83y9ngu95JJG1ccgBn7uOzsiNH/gRKrLoWrRv TEBWSfZ4QKCf48OwWD0BefaBs6ImB3yLobss+Rw3PXHLQLK825uCoWEvmMw2cDb7rbpt DqlDCVLGCXG2lBs/IPs4Ma8WtYast15jvLRFh0i5iETgZOKnvym0MGi+4xzCBY6V3gQ2 iyBmye15tC2+vlGmSymOs7hrGdpoFtcJi4JnyYU0n9Q5+/E6/tLYvsmcqQUwAFyIAYTt /5GKTV9EWdpadvOXoDEB7baIqGWdt4GVCxjnYv9G8euvEbUCWArSYSf5y+OaFVVFFSRG nbfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WG9wP54MrSEA3r8eccjMo3MMPcrQmj+RNEk7HB0q6IQ=; b=NqVqgiTvC5JaobpV4GHPDaZSWnMmAk9Hl2XpG03gugQhdo8UAMejnVZLU/BzKlDTpJ nIJPkDwiZmYnCURQQJzIJyx9lVl9LuVp0pzxZlbY0KVmBDZzd4tCLrSDvq5lDEmCc+BD DNsUABz44kOUVGbiHKBYxa5udDfR2nfDy4b0MqNhe2EtLyyElPciMSDQRsGhVhX1bSoT 621Br1R182KWhIbmE677fwxtSEGF1vmUO18WN+J8T8IApC/ABU923CEDkfjE0pyy2dnk 3Y0VdjTG0E3LuPaVz/MKx3q44QzfHqLc9zp2daobSZycvNECcFEmZx+T2T0FGBbfR7kG nAiw== X-Gm-Message-State: AOAM532VvQbX6W7dhWuQpKG9C1j2S+jhVs6tq8C+0TZ4nJS9Uaz6FvjB S08qsg7HAC9YO4fhkLneQIidYQ== X-Received: by 2002:a2e:9bd5:: with SMTP id w21mr416170ljj.432.1607436638447; Tue, 08 Dec 2020 06:10:38 -0800 (PST) Received: from gilgamesh.semihalf.com (193-106-246-138.noc.fibertech.net.pl. [193.106.246.138]) by smtp.gmail.com with ESMTPSA id h23sm417017ljh.115.2020.12.08.06.10.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Dec 2020 06:10:37 -0800 (PST) From: Grzegorz Jaszczyk To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, robh+dt@kernel.org, s-anna@ti.com Cc: grzegorz.jaszczyk@linaro.org, linux-remoteproc@vger.kernel.org, lee.jones@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, praneeth@ti.com, rogerq@ti.com Subject: [PATCH v4 0/6] Add a PRU remoteproc driver Date: Tue, 8 Dec 2020 15:09:56 +0100 Message-Id: <20201208141002.17777-1-grzegorz.jaszczyk@linaro.org> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi All, The Programmable Real-Time Unit and Industrial Communication Subsystem (PRU-ICSS or simply PRUSS) on various TI SoCs consists of dual 32-bit RISC cores (Programmable Real-Time Units, or PRUs) for program execution. The K3 AM65x and J721E SoCs have the next generation of the PRU-ICSS IP, commonly called ICSSG. The ICSSG IP on AM65x SoCs has two PRU cores, two auxiliary custom PRU cores called Real Time Units (RTUs). The K3 AM65x SR2.0 and J721E SoCs have a revised version of the ICSSG IP, and include two additional custom auxiliary PRU cores called Transmit PRUs (Tx_PRUs). This series contains the PRUSS remoteproc driver together with relevant dt-binding. This is the 3rd foundation component for PRUSS subsystem, the previous two were already merged and can be found under: 1) drivers/soc/ti/pruss.c Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml 2) drivers/irqchip/irq-pruss-intc.c Documentation/devicetree/bindings/interrupt-controller/ti,pruss-intc.yaml The following is a v4 version of the series. There is only one change from v3 [1]: - Use sizeof(unsigned int) instead of sizeof(int) for kcalloc in pru_handle_intrmap() in patch #3. [1] https://patchwork.kernel.org/project/linux-arm-kernel/cover/20201204201807.14716-1-grzegorz.jaszczyk@linaro.org/ Best regards, Grzegorz Grzegorz Jaszczyk (1): remoteproc: pru: Add support for PRU specific interrupt configuration Suman Anna (5): dt-bindings: remoteproc: Add binding doc for PRU cores in the PRU-ICSS remoteproc: pru: Add a PRU remoteproc driver remoteproc: pru: Add pru-specific debugfs support remoteproc: pru: Add support for various PRU cores on K3 AM65x SoCs remoteproc: pru: Add support for various PRU cores on K3 J721E SoCs .../bindings/remoteproc/ti,pru-rproc.yaml | 214 +++++ drivers/remoteproc/Kconfig | 12 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/pru_rproc.c | 875 ++++++++++++++++++ drivers/remoteproc/pru_rproc.h | 46 + 5 files changed, 1148 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml create mode 100644 drivers/remoteproc/pru_rproc.c create mode 100644 drivers/remoteproc/pru_rproc.h -- 2.29.0