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: 11958673 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C0AAC433FE for ; Tue, 8 Dec 2020 14:12:09 +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 DFF3123A77 for ; Tue, 8 Dec 2020 14:12:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DFF3123A77 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.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=cwv4Ghm4XcL2DacxqBfyd9fC3wuUrtUtkP5Sqlm7BjQ=; b=F6pT0ZWHa9Te1w97XTpoyb55H4 65BkxFeDnURZdfnwgTgb/xDGLHHZoYrtw1QWDbi6U7bMRknzulit2hQnAd0Cnb07gHDHWDWUqsij2 7C3PtOA5vZxwSgOxp2yNARNcp2KZqNQt8riloBz391I77MvTSpXBkaXUR/IUpdzrvwvtUaiWjJIgE kGSJdTynr5GnC/IYdKJgRPEEdUQ3BQkqM4jCd25oN0rHrC24w6cPZlXIsaOryArmVICbgCzxWH9r4 gOBoJ5H55Ghofr7GcSP2nc+dceMUegf67sp530M85pPFrD8dcmufmk6rpwSnLsf6OKYwCHKdotrTT T1syCTzg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmdhV-0003X9-If; Tue, 08 Dec 2020 14:10:45 +0000 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmdhS-0003Vm-2l for linux-arm-kernel@lists.infradead.org; Tue, 08 Dec 2020 14:10:43 +0000 Received: by mail-lj1-x242.google.com with SMTP id x23so12568488lji.7 for ; Tue, 08 Dec 2020 06:10:39 -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=gP5P8tRqZ1HyaHjNz9aagQ/K+vdkF71BmenlUJON85Mn/bT12fxiItwxEwXWi8W+Bm z4vKnGolaeQH5Ik5x9+zmgaPWscbqCrIguJFK0IViz9VVr7hxQSNxcfiP2k78oafv9iW A1dk1uThUZQq/2RWEZUU53iH9qNzLzrAyauc0NFgPDqmlsTl3Zrm8JcROLdhfnJx61tX cmro7F6jQs0dhtCOI7gHnDUGU3JUBmip93ntKWNPPMz+qWhYyqgvNzBG66+6bbCI/Fl5 ljRs3JJ76UNPwvksHHp61nmWC3vZvPEAyG3ItbkzispVRoe7yXHsSWD7pGEaUkM/4eJF U4Xg== X-Gm-Message-State: AOAM533ni0otk75lNxunrA0Eyhr6yT3SkZfcJtPxkAvWWQI8XyMT271B N3nE6qA2wz4m0y4ES1mbEFCNug== X-Google-Smtp-Source: ABdhPJyLdeJgtkZKcSWMf0zSXx3pEMIkIpWCoLsUYgkmE1e4osmpomPb6wXMomDuRkBAdpb/9nnnqA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201208_091042_182223_0E0C36B3 X-CRM114-Status: GOOD ( 15.07 ) 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: devicetree@vger.kernel.org, grzegorz.jaszczyk@linaro.org, praneeth@ti.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, lee.jones@linaro.org, linux-arm-kernel@lists.infradead.org, rogerq@ti.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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