Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4589491imw; Tue, 19 Jul 2022 09:21:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uoyTNtdPHyIGN5N/6kiz7Qgo7eAezl040XESOEt8fwBzYhoonc4M53kXgNEICCctgP7oLQ X-Received: by 2002:a05:622a:1189:b0:31e:e273:5b17 with SMTP id m9-20020a05622a118900b0031ee2735b17mr13916819qtk.398.1658247692809; Tue, 19 Jul 2022 09:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658247692; cv=none; d=google.com; s=arc-20160816; b=abvBYKyQcHtbwhiV+hPXf2B6jz/JkkOhrmIMNSycJsUBomkdL2zzgoX08PFuWa8LkV 3G9Ynk8cFYtgSflGhoJ32IiqSf5PjLjWJf1aqcts9xtcoEQKFLbBuusW9PvoqSBhDdAj d4xFQS9PvkuEx+9Y1MECoXNRZls53m8ZfQhVp9JVCBzEckvl0HYg4YZchA+/DvOxZGYI s9IxCxsIWu+TljnKnx10o9KLBnIL+eDzIDk13bIlrjfgkkJsP5B0UUpyYUVWNKzUe19r Yuxk2v9XHypJ0CdMx5+GEbI/jc/j6039rvh1D+6wG1qDcvSM8htWhwdtCmEmKPhfSjiP ibew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=j99v33ldlK2FlKWV4TdK79PiQjRVPI8FTWxxa1tOtzg=; b=h/ibm+P+dBi3P5P2oG2CWW0O1otutijuHcaNYaTbcbWqsEwcQWe7p8472DXoRkrXDF YkGTrswnTyM248fOWOLY0lMDktrkztMPu3m2rKNhRrs/BUAPPEnMhHq2l9lA7h8Awkzl /eo943pwJSk1WtBggWj4cFqpNs1WO2A0kNhZQewOfFPh1uaJFwjp7RcLpC5/39zfQJHP WFf9n55N8W/zUIXRU0sisK5kGdpgy+BDODgHsboAghZJ8QRwzluSDkSJogaW2N0b0bMD 50KSNjZIG0D+Jjg9jUQSQLenmwbztZmfZ8id0S+jd7e9J7AJj2FegdVnEbxTPGgHnYOb Ux1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xyAHcPPk; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w15-20020a05620a444f00b006b57a17860esi8823293qkp.316.2022.07.19.09.21.18; Tue, 19 Jul 2022 09:21:32 -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=@linaro.org header.s=google header.b=xyAHcPPk; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232884AbiGSQRy (ORCPT + 99 others); Tue, 19 Jul 2022 12:17:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234628AbiGSQRw (ORCPT ); Tue, 19 Jul 2022 12:17:52 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8ABB4F681 for ; Tue, 19 Jul 2022 09:17:49 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id o18so13919864pgu.9 for ; Tue, 19 Jul 2022 09:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=j99v33ldlK2FlKWV4TdK79PiQjRVPI8FTWxxa1tOtzg=; b=xyAHcPPkHVBNE/JfV8PykfXY21OGJO3tYb8jOvOdDWvKZ3n6FFrvFYly2ZDsyG47aq LDQBdEnk2K9xm+YjB4uVZCbVDVu29dvWKW2IVRXnEiDaocXiyXdlDLMW6CXLIcz/kR81 nIDPKMWeMsTFjMSNMkLWDiTZTjJ3DSoEcakCVhvmMk0l5E0wQiCEkhHW8hlnI+jiVirF Lx1fvZoAUDWnzq8elL8JxetYAqHgAH0KmeajbeP97UWhhZjqeGWM/KtuX9UcbStGUlXh jEJVuSnIxIC7xB+ZC8a2XzNp/qRUdWGjoM19E5dj5SUjYXEOig0vb5TgH4ajeON2SD6q 8cQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=j99v33ldlK2FlKWV4TdK79PiQjRVPI8FTWxxa1tOtzg=; b=4Dfmw0lLeFUI3ezG0sb1Dyg8rDxGKfsImbQNZc2WVIXP6CoX/khz6F/Fsaby3hyg7Q ZEEKLqy1PGMsrWKxv6pH5MIcXg6Tso/zE7yg55C1UFxaaX7JLdqzuyhWMuzbW7J3VAMN klC5vG/EMxkNEfAJqqcYLt+2HIqYO8Lvzn1guNotkmhxXpvRXUiZmVk/hVdkrXMOVdJo WaRNd4FV6hCl681Lmx1CMupW/p4lRcyGysEdFQXpP/WmhTPog/UrA0DOtZgL9temIYoU I9A3GvCym6TwE979VtpnBYwVYF0Ur6deh1v46rmVi6mS+2kSq0TSByqbLjTS4JmDUY8c fbyA== X-Gm-Message-State: AJIora9uP/Ms552KfeuMWjzG5UYkfwblcCJ6H6zXukHRJsMCzpmFN8qt rdNCG+x6dA+5Y+XAii3j0W5OVADoUsK4Uw== X-Received: by 2002:a63:3fcc:0:b0:408:c856:dd6d with SMTP id m195-20020a633fcc000000b00408c856dd6dmr29959582pga.354.1658247469226; Tue, 19 Jul 2022 09:17:49 -0700 (PDT) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id g26-20020aa796ba000000b0052ab5a740aesm11675817pfk.162.2022.07.19.09.17.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 09:17:48 -0700 (PDT) Date: Tue, 19 Jul 2022 10:17:46 -0600 From: Mathieu Poirier To: Puranjay Mohan Cc: linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, krzysztof.kozlowski+dt@linaro.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, nm@ti.com, ssantosh@kernel.org, s-anna@ti.com, linux-arm-kernel@lists.infradead.org, rogerq@kernel.org, grygorii.strashko@ti.com, vigneshr@ti.com, kishon@ti.com, robh@kernel.org Subject: Re: [PATCH v5 1/6] dt-bindings: remoteproc: Add PRU consumer bindings Message-ID: <20220719161746.GC3393732@p14s> References: <20220607045650.4999-1-p-mohan@ti.com> <20220607045650.4999-2-p-mohan@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220607045650.4999-2-p-mohan@ti.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Tue, Jun 07, 2022 at 10:26:45AM +0530, Puranjay Mohan wrote: > From: Suman Anna > > Add a YAML binding document for PRU consumers. The binding includes > all the common properties that can be used by different PRU consumer > or application nodes and supported by the PRU remoteproc driver. > These are used to configure the PRU hardware for specific user > applications. > > The application nodes themselves should define their own bindings. > > Co-developed-by: Tero Kristo > Signed-off-by: Tero Kristo > Signed-off-by: Suman Anna > Co-developed-by: Grzegorz Jaszczyk > Signed-off-by: Grzegorz Jaszczyk > Signed-off-by: Puranjay Mohan > Reviewed-by: Rob Herring > --- > V3->V4: > * Addressed Rob's comments regarding max and min Items. > * removed the dependencies tag as it was redundant. > --- > .../bindings/remoteproc/ti,pru-consumer.yaml | 69 +++++++++++++++++++ > 1 file changed, 69 insertions(+) > create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,pru-consumer.yaml > > diff --git a/Documentation/devicetree/bindings/remoteproc/ti,pru-consumer.yaml b/Documentation/devicetree/bindings/remoteproc/ti,pru-consumer.yaml > new file mode 100644 > index 000000000000..df384b44259b > --- /dev/null > +++ b/Documentation/devicetree/bindings/remoteproc/ti,pru-consumer.yaml > @@ -0,0 +1,69 @@ > +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/remoteproc/ti,pru-consumer.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Common TI PRU Consumer Binding > + > +maintainers: > + - Suman Anna > + > +description: | > + A PRU application/consumer/user node typically uses one or more PRU device > + nodes to implement a PRU application/functionality. Each application/client > + node would need a reference to at least a PRU node, and optionally define > + some properties needed for hardware/firmware configuration. The below > + properties are a list of common properties supported by the PRU remoteproc > + infrastructure. > + > + The application nodes shall define their own bindings like regular platform > + devices, so below are in addition to each node's bindings. > + > +properties: > + ti,prus: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + description: phandles to the PRU, RTU or Tx_PRU nodes used > + minItems: 1 > + maxItems: 6 > + items: > + maxItems: 1 > + > + firmware-name: > + $ref: /schemas/types.yaml#/definitions/string-array > + minItems: 1 > + maxItems: 6 > + description: | > + firmwares for the PRU cores, the default firmware for the core from > + the PRU node will be used if not provided. The firmware names should > + correspond to the PRU cores listed in the 'ti,prus' property > + > + ti,pruss-gp-mux-sel: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 1 > + maxItems: 6 > + items: > + enum: [0, 1, 2, 3, 4] > + description: | > + array of values for the GP_MUX_SEL under PRUSS_GPCFG register for a PRU. > + This selects the internal muxing scheme for the PRU instance. Values > + should correspond to the PRU cores listed in the 'ti,prus' property. The > + GP_MUX_SEL setting is a per-slice setting (one setting for PRU0, RTU0, > + and Tx_PRU0 on K3 SoCs). Use the same value for all cores within the > + same slice in the associative array. If the array size is smaller than > + the size of 'ti,prus' property, the default out-of-reset value (0) for the > + PRU core is used. > + > +required: > + - ti,prus > + > +additionalProperties: true > + > +examples: > + - | > + /* PRU application node example */ > + pru-app { > + ti,prus = <&pru0>, <&pru1>; > + firmware-name = "pruss-app-fw0", "pruss-app-fw1"; > + ti,pruss-gp-mux-sel = <2>, <1>; > + }; It would be nice to have a full example in order to provide more context. I am done reviewing this set. Thanks, Mathieu > -- > 2.17.1 >