Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3629690rwi; Wed, 12 Oct 2022 04:57:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/kX37kqjzo1SSKc2ltf9u2JPzIaOKsFbG3uQvqFrSPLkBgpSW0UD3R5tPd8Hvw9ATWPaZ X-Received: by 2002:a17:906:cc58:b0:78d:d47e:19f2 with SMTP id mm24-20020a170906cc5800b0078dd47e19f2mr6692547ejb.388.1665575853215; Wed, 12 Oct 2022 04:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665575853; cv=none; d=google.com; s=arc-20160816; b=uZprA2BwEE635LX4HdEIeCCQKPrGP7qeQrJjJohhGICQS9RydvX3tiIR7AoNVo/f/R 3H4VavbvUEPaSokyAvejTEBTtdkt7lY4/mhNgSDXIRx7JCcTYTD/iDmr9ErCwYSRbDzR TzZo7Qie+z54P9cAMAOPtHP+SkAuEoJ3/mwQ604sZDeuvb9FR93TdZGP1t2bSK9qAzp1 KfU5My7lkjZkRHFvKGimF4FDcGJIE7ITWPCQ7NigztjO/MNVOZBsSSZ1CPTJU48yIXOG Xy71zDx66yOo3KpUmG573Gi31OT18HS4zwwNBgF3zKj4klwVKkE6JAI9dN2QCGMcoetU Pu7A== 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=l48llKYZYe74oLUc7OyITAV50Gzss+1C8eZgngjr5kU=; b=c+MCnHuItaTmx77MxrG/Hk3+N/Bt2Ls12+TMVeMNEDzKBrJMeDIzscdGJAlnBP8Rys dzMbg/BH3W46UwUwdiLbIUQFpLMqgPfsempuVFxn561hH5wzcloRL96aug3CYqNgrqCi tJz0ZSoyF6WOfCMhGEKsNLlPf6oUX7jo3ho3BSzRzgtfp0FDaM3uTyTk478JO4FpuJhu eUfx633LSjlpa9oK717UmRDWwau0zxlz2Omuq8gzNlW9lojUpEkVeyiCTrSdrhUcpCxw ONUGidrlKNr5MK6GTPdIK7dCx5Dk9UJ8UtWcnzOrDvB2UKfL+qT7/FPOW394lGimLiiL wlXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bN9rgMq8; 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 mp22-20020a1709071b1600b00787ad97302asi19170872ejc.863.2022.10.12.04.57.07; Wed, 12 Oct 2022 04:57:33 -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=bN9rgMq8; 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 S229686AbiJLLo4 (ORCPT + 99 others); Wed, 12 Oct 2022 07:44:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbiJLLow (ORCPT ); Wed, 12 Oct 2022 07:44:52 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5597FDF17; Wed, 12 Oct 2022 04:44:47 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29CBiZQc068539; Wed, 12 Oct 2022 06:44:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1665575075; bh=l48llKYZYe74oLUc7OyITAV50Gzss+1C8eZgngjr5kU=; h=From:To:CC:Subject:Date; b=bN9rgMq8rXUYxmdUjpKdhI9Kdr6MZUgJ5L5CcsXxDE2mO9EaHqgrSeNXvj0X0JPyn MibwrrwlBXRajzd5CPGfhmu6X4kBb26iHQAdp/009SH9JdFIXCeIDrZiOtHaU9thYI Xv8WG2t+IOJx5831QLxHeaR6TnLIdOzvMqGltfaQ= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29CBiZ6E029140 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 12 Oct 2022 06:44:35 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) 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.2507.6; Wed, 12 Oct 2022 06:44:35 -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.2507.6 via Frontend Transport; Wed, 12 Oct 2022 06:44:35 -0500 Received: from lelv0854.itg.ti.com (lelv0854.itg.ti.com [10.181.64.140]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29CBiZG7106248; Wed, 12 Oct 2022 06:44:35 -0500 Received: from localhost (a0501179-pc.dhcp.ti.com [10.24.69.114]) by lelv0854.itg.ti.com (8.14.7/8.14.7) with ESMTP id 29CBiXTx017346; Wed, 12 Oct 2022 06:44:34 -0500 From: MD Danish Anwar To: Bjorn Andersson , Mathieu Poirier , Krzysztof Kozlowski CC: Suman Anna , Roger Quadros , , , , , , , , MD Danish Anwar Subject: [PATCH v6 0/6] Introduce PRU remoteproc consumer API Date: Wed, 12 Oct 2022 17:14:24 +0530 Message-ID: <20221012114429.2341215-1-danishanwar@ti.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 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 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 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. This is the v6 of the patch series [1]. This version of the patchset addresses the comments made on v5 [5] of the series. Two more patch series have been posted ([2] and [3]) that depends on this series, one has been posted to the soc/ti/ tree and another to the networking tree. All the 3 series including this one, has been sent as RFC [4] to get comments and to explain the dependencies. Changes from v5 to v6 : *) Added rproc_get_by_phandle() in pru_rproc_get() *) Provided background of Ctable in the commit messege. *) Removed patch "" [6] (6th Patch of the previous version of this series) as it has dependency on series [2], thus creating a cyclic dependency. The patch [6] will be sent along with the next version of series [2]. [1] https://patchwork.kernel.org/project/linux-remoteproc/cover/20220603121520.13730-1-p-mohan@ti.com/ [2] https://lore.kernel.org/all/20220418123004.9332-1-p-mohan@ti.com/ [3] https://lore.kernel.org/all/20220531095108.21757-1-p-mohan@ti.com/ [4] https://patchwork.kernel.org/project/linux-remoteproc/cover/20220406094358.7895-1-p-mohan@ti.com/ [5] https://lore.kernel.org/all/20220607045650.4999-1-p-mohan@ti.com/ [6] https://lore.kernel.org/all/20220607045650.4999-7-p-mohan@ti.com/ Thanks and Regards, Md Danish Anwar 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 | 132 ++++++++++ drivers/remoteproc/pru_rproc.c | 237 +++++++++++++++++- include/linux/pruss.h | 78 ++++++ 3 files changed, 442 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,pru-consumer.yaml create mode 100644 include/linux/pruss.h -- 2.25.1