Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1799053iof; Tue, 7 Jun 2022 11:32:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcbr2ixs7Y+LqQCEWvYHBbof2tRaXN+c68QbDwjKUWWvSD70lX0u1mzFx49KO34VBIz/zP X-Received: by 2002:a17:906:7c0c:b0:6f9:1fc:ebf3 with SMTP id t12-20020a1709067c0c00b006f901fcebf3mr2873175ejo.403.1654626312722; Tue, 07 Jun 2022 11:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654626312; cv=none; d=google.com; s=arc-20160816; b=wWbl7eBc4Bl/vmlYvmOmLu36ZbuXKufiVyEaaMwOd+5Yq9ucFzt7ewvf9y2W+7HVfx i10yHdwf+0arU/QZkgRE+2JSsKl3yOMQ3u+A/kfA5caVOaS+kFDKytnjr45kPN6001TX MDEiO2KVxqNWtNxCK6JQWFrBNiGROzyhz9kU97N48FIreeF7VT3AJmg+OIaSFL1Bcfst CeNchhpSh83vp5GNsrFQiE66iqJzpz+xUTc/Z9Dc6cIvbFyszw7tm0o+lx13lHZsM3Vy yjzwLZk9OzdNICmaCI9rEzl0hiGOtRtAq4SZXR6zKD0M1IB8aV9TFuOXWFfcFwssE4iJ wbKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=9vJgbNjL4gRLemPxOIvLcNcWlAjcet2En4x3IBbxTQg=; b=QE9q/aXee/C5Iw8srv7hsOoz5UnLBqtNkCRg/mGPLJGcp2grKysWN25FqSZDlp0ol6 P5Ml+yHGbRBm/7KOFFyNWDX3qCfe+4DyCfoO4wi2cx8YCiTmPQZDnd7phNqo7ue+niIl kGPXola0F+Hn5iHEpq3gkdtwYHwFYroMGWpV++/+PO7g+eNIfKj/PIOfAC/Rdr6iKnlH Fhdk30Q5FEKj2vNwX/TTn2X1aJldKgDNmaw88YPLZ1nEaF7a9bWYcsZLE0PGrdsYeTrA KN9bxK0V6Ij2c7L1EvuRKhj9ts7ILm1y25ziI56EQz5AoYdxUV9M3I1d4QxBK8aMAHS6 ygsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=q5CE0eLf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv21-20020a17090760d500b00711d89b830asi940271ejc.819.2022.06.07.11.24.37; Tue, 07 Jun 2022 11:25:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=q5CE0eLf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236686AbiFGE5Q (ORCPT + 99 others); Tue, 7 Jun 2022 00:57:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236664AbiFGE5H (ORCPT ); Tue, 7 Jun 2022 00:57:07 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8077D4A17; Mon, 6 Jun 2022 21:57:04 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2574urq5026447; Mon, 6 Jun 2022 23:56:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1654577813; bh=9vJgbNjL4gRLemPxOIvLcNcWlAjcet2En4x3IBbxTQg=; h=From:To:CC:Subject:Date; b=q5CE0eLfR8+1ZKWo9wHfnCbBvKMCPPT/nIocUcPxdi6s2cPR6EBH82NLV+aI0c9AG kmRcG6D8PENJx6unsEJWAbIWelARm8r3OZOr5gwNcrVULhhxOM4gzjgFe8xFZ474Ub UOVu3Jxyrx4zXVdffzDcENHxsKY7FWPDZbBFxicM= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2574urrV029089 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 6 Jun 2022 23:56:53 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 6 Jun 2022 23:56:52 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Mon, 6 Jun 2022 23:56:52 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2574upsF111528; Mon, 6 Jun 2022 23:56:52 -0500 From: Puranjay Mohan To: CC: , , , , , , , , , , , , , , Subject: [PATCH v5 0/6] Introduce PRU remoteproc consumer API Date: Tue, 7 Jun 2022 10:26:44 +0530 Message-ID: <20220607045650.4999-1-p-mohan@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 This is the v5 of the patch series [1]. The 6th patch in the series was added in v4 and it had some checkpatch.pl errors which are removed here. I have posted two more patch series that depend on this series, one to the soc tree and another to the networking tree. I had sent all the 3 series, including this one as RFC [2] to get comments and to explain the dependencies. 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. There are 3 foundation components for PRUSS subsystem: the PRUSS platform driver, the PRUSS INTC driver and the PRUSS remoteproc driver. All 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 3) drivers/remoteproc/pru_rproc.c Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml The programmable nature of the PRUs provide flexibility to implement custom peripheral interfaces, fast real-time responses, or specialized data handling. Example of a PRU consumer drivers will be: - Software UART over PRUSS - PRU-ICSS Ethernet EMAC In order to make usage of common PRU resources and allow the consumer drivers to configure the PRU hardware for specific usage the PRU API is introduced. [1] https://patchwork.kernel.org/project/linux-remoteproc/cover/20220603121520.13730-1-p-mohan@ti.com/ [2] https://patchwork.kernel.org/project/linux-remoteproc/cover/20220406094358.7895-1-p-mohan@ti.com/ Thanks and Regards, Puranjay Mohan Roger Quadros (1): remoteproc: pru: Add pru_rproc_set_ctable() function Suman Anna (2): dt-bindings: remoteproc: Add PRU consumer bindings remoteproc: pru: Make sysfs entries read-only for PRU client driven boots Tero Kristo (3): remoteproc: pru: Add APIs to get and put the PRU cores remoteproc: pru: Configure firmware based on client setup remoteproc: pru: add support for configuring GPMUX based on client setup .../bindings/remoteproc/ti,pru-consumer.yaml | 69 +++++ drivers/remoteproc/pru_rproc.c | 254 +++++++++++++++++- include/linux/pruss.h | 78 ++++++ 3 files changed, 396 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,pru-consumer.yaml create mode 100644 include/linux/pruss.h -- 2.17.1