Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp320656pxb; Wed, 20 Apr 2022 23:51:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwb8Qx33skmarJv1Jb0N9EYTkC8lcBwcx/8YofGi/zdcQyOmKBkqXZCrx6FjEBIR9MS8m4H X-Received: by 2002:a63:cc0b:0:b0:3a4:90c:ded4 with SMTP id x11-20020a63cc0b000000b003a4090cded4mr22555283pgf.260.1650523911117; Wed, 20 Apr 2022 23:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650523911; cv=none; d=google.com; s=arc-20160816; b=pgJLY/6wcD9xMUcGVzKqZndggAACWCuDdPz177QSdhyB8pxTluGKGJWFVW6Hyf16lM 9kE/S/953w5Q7EV/UEU6USuGXwC4+OBhQiBXyYXP1rlljubDJqKnM9syW9yWl/v3TEpL zMJuUzjSouO9HgJHyq1Xs47df8nJuOxzEdXelnK8Mcf0vK46Cp23YPry7nkqGOiriZ1K 9SEyj4ycuyxV3H13ryTLv0fXtmD/Gw9NG3WHTZ9mxCfbPhPfo/3dOuUGGwu4qVlZvKdX P5LOoDwC0WPhrEJ+t2XyyBhWgJ1yAETgeQoVPDYEg2c+kw+mBJEEwTA6OuX+Gj+bBtkw GmJg== 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=twRcUKp8v7op8MSVOoVBsNWtKAdPTkyCJ90cFCys154=; b=Zk/yCvK/hKcUwSmXji0UbQ7qDSZb7i6Y5P+I39pNn3moPMfxs72aSyaURr8pj/gtV2 mwg7T6bJGMpCjgtaI0pH7VVcHhZ+QKNDrvfwBoy/EwQ8Ma9N+E5HKvK/+dZMiM6W8rd5 OBVE2hsm2U1u5k6Gg+vz8l8NTb/9c5FsAJ7XJHEPOFSFaJadIyWXk0qiE84aVtkMP3oW hf+DOXIitjFEApf2Qdps3mXj6UdnRy1k0GcvLPlRTokYuKmEw9NwKk49jbY/JoufNT3l wgEK8mEt8ZXFLbdBOiXkf9nTIkijeGkJzFcAKCEifhjEj63IgFE3UZ0XRWI6z7JnqUlr gLNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fwegmw+D; 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 t11-20020a056a0021cb00b004fa3f687674si4215908pfj.256.2022.04.20.23.51.35; Wed, 20 Apr 2022 23:51:51 -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=fwegmw+D; 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 S237736AbiDRKoQ (ORCPT + 99 others); Mon, 18 Apr 2022 06:44:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232950AbiDRKoJ (ORCPT ); Mon, 18 Apr 2022 06:44:09 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49922BF64; Mon, 18 Apr 2022 03:41:31 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 23IAfKj6006901; Mon, 18 Apr 2022 05:41:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1650278480; bh=twRcUKp8v7op8MSVOoVBsNWtKAdPTkyCJ90cFCys154=; h=From:To:CC:Subject:Date; b=fwegmw+Dm0zhfgKfoMaFzsVAobvB7AO2Vq498jpnfq569rfC4KEhbBfCPnySnJCbb fiko5gz6bplca6ma/LEEVZZ+6cwcLqTDTI9Gcn3/H9agPF9Yih2pxCG8wNcAM2kQGo Xjlu1OiPy3Jx7V00Dxd+YbpfUR/5DeY2W4X4BJyM= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23IAfK8m057624 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 18 Apr 2022 05:41:20 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 18 Apr 2022 05:41:20 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE113.ent.ti.com (157.170.170.24) 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, 18 Apr 2022 05:41:20 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 23IAfJSw115642; Mon, 18 Apr 2022 05:41:19 -0500 From: Puranjay Mohan To: CC: , , , , , , , , , , , , , Subject: [PATCH v3 0/5] Introduce PRU remoteproc consumer API Date: Mon, 18 Apr 2022 16:11:13 +0530 Message-ID: <20220418104118.12878-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.0 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 v3 of the patch series [1]. The v2 had some minor comments which have been addressed here. I will be posting two more patch series which 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/20201216165239.2744-1-grzegorz.jaszczyk@linaro.org/ [2] https://patchwork.kernel.org/project/linux-remoteproc/cover/20220406094358.7895-1-p-mohan@ti.com/ Thanks, 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 (2): remoteproc: pru: Add APIs to get and put the PRU cores remoteproc: pru: Configure firmware based on client setup .../bindings/remoteproc/ti,pru-consumer.yaml | 70 ++++++ drivers/remoteproc/pru_rproc.c | 234 +++++++++++++++++- include/linux/pruss.h | 78 ++++++ 3 files changed, 377 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,pru-consumer.yaml create mode 100644 include/linux/pruss.h -- 2.17.1