From patchwork Fri Dec 4 20:18:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grzegorz Jaszczyk X-Patchwork-Id: 337766 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp740081jai; Fri, 4 Dec 2020 12:20:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQ0KUrsL/x1LcCZNRzimPJNjVZj12SqCwhSD7mGKnG7aCKa781pQdd+pJF01rL98D1WREm X-Received: by 2002:a50:d5d5:: with SMTP id g21mr9547209edj.41.1607113208857; Fri, 04 Dec 2020 12:20:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607113208; cv=none; d=google.com; s=arc-20160816; b=y6/ZxGNJyl8Ko60jIgqbw57oaUIYufPxNCDB2lZEiIyuCUZtzahoxROYIy8427W4rU 7m8bIb4pODr+kiqk5zzomI/SpV3uTMLx1Bnus12l8YZVxNamjbzxp4rrvsc9VZ/uHLBR IY+4hhGFvteCHbest06sPOBlyWYBdQa4emcxvNS8fkEVsDg08N+QQPcZJagCaDQBY5bM c+faQe0BnEbPKIgzdyXNHzzalRKbT//BlMsyDDueMMHHkheRHr8kQKnw58em3qlEifqJ QVnk7w+bMQMmGPqBE9gcHez+XoFVIQN0wVbc1JcdrGbE0SJYQyiIQn5gx+8VCJlc2ZYF 6bcQ== 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=ZiqvOYZnVaPoXdhwyb61UvgWLIkGyPr+IhLVSfqE1SY=; b=h+Fn7pwj+L1JYUyoFZQaVEbWpWNtQWcEhvyCMaOX2tWer3hatL277cdcV3ZvGB8TKu ZsWSylTW5xtURRoHE0zxtTb1zyD/sVYm+9VHggin80dxR3hj/U0iTnKXg9ktn/blKLnU uxxK0UwMEGNEzRyZ2G1U3nTV7cdQqaaf67PtE4G0Om+owtVvPHo2yk3/NgY8aUZhrmZU wcqsXTb6tQ+KgI4GDFDtRNT60twWDkz7B3bQmjBmx5Dfks6uwWu76ZOTACTsJFO0bGfS 00c+5ificXT31kLHywAo9YyythI3OM4H/8A6mqbCwhf62YghsR61WjgnlBC1+Pw33Djp qDuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="fo/9yfBF"; 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 o2si2073501ejn.501.2020.12.04.12.20.08; Fri, 04 Dec 2020 12:20:08 -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="fo/9yfBF"; 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 S1728124AbgLDUS6 (ORCPT + 6 others); Fri, 4 Dec 2020 15:18:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728582AbgLDUS6 (ORCPT ); Fri, 4 Dec 2020 15:18:58 -0500 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E181C061A52 for ; Fri, 4 Dec 2020 12:18:18 -0800 (PST) Received: by mail-lj1-x241.google.com with SMTP id f24so7952374ljk.13 for ; Fri, 04 Dec 2020 12:18:17 -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=ZiqvOYZnVaPoXdhwyb61UvgWLIkGyPr+IhLVSfqE1SY=; b=fo/9yfBFQD7b9kT8+PNDIWdGD/64qLIJ9v0ZQ9bmbwA6DGaQJAiQ6Q8GUxUeeQA+3N 5y1V9d9kuSs6v/uXZD3cOkOfgY7w7gVnm4IDNn0OjcDkllAu0jbtVgfpcCbO793Rwt68 JzazfZSEHQOAuMOSYQ6vqdKiI2NMTD8/tASwvLft45loUV7A2p4IfM+sU6F2D14SroDO 1Cqgt76RC8m7R3C4iX+gXmEpj0t8hIKsVSNe646jOZZkfZ4UYRg+v709ad8e23Naq0l7 rk12iGjQ1JnZf8yioUfmR/wZ1r7sH7gLp9vnTwZdUx5VbLR86qQryp/FVSYe6Qvl4Pf2 qdvw== 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=ZiqvOYZnVaPoXdhwyb61UvgWLIkGyPr+IhLVSfqE1SY=; b=YxLyMVRGEL9uJxpUv1UgBd9xIET94oV9sxGAgGPjkzCTOW+prqrligGnP7mOQvD5Ug 5y30m0pcbCbC2ppytxaeRBi1doZ5hsK047UPGRZ5cyrRmNsfGQNhokxz0wmdZRbNxGOo /HV8iIkG3Ddcn2LJH1Hp6JttXFUF2RRVpX0/JlpLupQtGC9YB70y7r0Wcj56jM2QeZNi jEEmzbrEI+vfdU1/q08+DR1bmoHLEilBQZcMo4+q2ksl+oC52tXool9cOxlGsZkprHJE o+LZ7uMBc2V90aldFnrjNAZYsIapgoebwOeU2O4Ck1ozhF9NW+tvXgYI9UOsOkLp9QWL /IkA== X-Gm-Message-State: AOAM532pF3blXjJCW3FG9OH0wDnQuB+48E+K3rLujKPpCZrDit9TvwsP GGLXx6lXR1jx+mLToAOsQy6GqA== X-Received: by 2002:a2e:8e64:: with SMTP id t4mr1039685ljk.141.1607113096464; Fri, 04 Dec 2020 12:18:16 -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 w21sm2036918lff.280.2020.12.04.12.18.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Dec 2020 12:18:15 -0800 (PST) From: Grzegorz Jaszczyk To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, s-anna@ti.com Cc: grzegorz.jaszczyk@linaro.org, linux-remoteproc@vger.kernel.org, robh+dt@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 v3 0/6] Add a PRU remoteproc driver Date: Fri, 4 Dec 2020 21:18:01 +0100 Message-Id: <20201204201807.14716-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 amd 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 v3 version of the series. Please see the individual patches for exact changes in each patch, following are the main changes from v2[1]: - Add Reviewed-by: Mathieu Poirier for 4 patches after introducing minor fixes/improvements. - Adjust the patch title to latest remoteproc subsystem convention: s/remoteproc\/pru:/remoteproc:pru:/ as suggested by Suman. [1] https://patchwork.kernel.org/project/linux-arm-kernel/cover/20201119140850.12268-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 | 874 ++++++++++++++++++ drivers/remoteproc/pru_rproc.h | 46 + 5 files changed, 1147 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