Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2657685pxb; Mon, 18 Apr 2022 05:44:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2X4EFKSVW2nCfxJXr4yqbg9wRlILTU93OGMh2t4hg/MLtBwNBGQlDE26HGzuugJsKE2O9 X-Received: by 2002:a17:907:728b:b0:6e8:c6fa:2ec7 with SMTP id dt11-20020a170907728b00b006e8c6fa2ec7mr9173477ejc.566.1650285861109; Mon, 18 Apr 2022 05:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650285861; cv=none; d=google.com; s=arc-20160816; b=jCNW1AFxT3oeuJLIrLTf20p9LKSOHwvs9tJ2opYgHF5l0XxFykaMmYFlTRxfX+a5hv WIiH8Roi6v4g/JpFLoDn5G+yEbtoExnl55zmcxN6d7NIHDw7e9kDUrP/C4uAF4xGHstu iidG68g/u46xWYZN71o2Eg1F7grkHJWJlTiqMKdhYzSW6K/2C/Csut747IfFkS6VXDY/ OONSaCv99DVWXjD4drAkuUGdHEvonN3uNghaGG8eDf4+MVUSb1ieCvDGXjEm64Ynw7vI WUAP72PEjIKGMD5MhhNZi1yuIjiC6YbS6SByPGY+M7E6LjhxmlYA+qu+XtgqOrzvfSwZ 8KbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=wCAObR3+LfGJ2/+LQ8UgdUib7pa4Mr+mx6gtlLNXw9Q=; b=N7a6qlxPh7JWTtTwsSK947eRw1zzxbGJTfWPbxzM3ZG4/KC/2Dk87xpWReKfAxDT5M JWzK5ibczpnP+XZBu93Tld1lIGdyPq46djDDQ40q0tL4scZeczB5ea572omDCg/wez99 NvRBOonNwNGv+ryzx3Beozs0oVOflMdIxGJG47cmaKZssIUqfRv48jeaIYuX3spXQRdR vNvLn9r1HXPuaxJekwwLIuxq1/GK1LUt8m5iIz2PvxF+K8JZX0rIjkdnMKdXI6XQjGOn r/DcgXJsv9ur7mZFa0LngASFLzLFXSipp8+eF7KrezTrOL+fWbKo29Ci3mlE74cZCv6H vgJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=avMr3cGh; 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 h15-20020a056402280f00b00423e1efca48si3207093ede.198.2022.04.18.05.43.57; Mon, 18 Apr 2022 05:44:21 -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=avMr3cGh; 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 S237114AbiDRKoM (ORCPT + 99 others); Mon, 18 Apr 2022 06:44:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232617AbiDRKoJ (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 49D3A15A1E; Mon, 18 Apr 2022 03:41:31 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 23IAfNZU006928; Mon, 18 Apr 2022 05:41:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1650278483; bh=wCAObR3+LfGJ2/+LQ8UgdUib7pa4Mr+mx6gtlLNXw9Q=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=avMr3cGhJ8A5dd9NvtNofyXJWaMkUzc46XKHzgebIKMX7COQMBh0vKzh08Tr1jQ2K 0gsZuyNQBJViGEimH0r5yUkkM0MMGWMO6iTw/crK3Yf8y6RPDpOSuC0KTrLYFkXTPf cjXl0qo1e7sVY1ZcIcvgNYGP7+wJ04u1byeAVcVs= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23IAfNF9019535 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 18 Apr 2022 05:41:23 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE104.ent.ti.com (10.64.6.25) 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:22 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE109.ent.ti.com (10.64.6.30) 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:22 -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 23IAfLcD115666; Mon, 18 Apr 2022 05:41:22 -0500 From: Puranjay Mohan To: CC: , , , , , , , , , , , , , Subject: [PATCH v3 1/5] dt-bindings: remoteproc: Add PRU consumer bindings Date: Mon, 18 Apr 2022 16:11:14 +0530 Message-ID: <20220418104118.12878-2-p-mohan@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220418104118.12878-1-p-mohan@ti.com> References: <20220418104118.12878-1-p-mohan@ti.com> 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 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 --- .../bindings/remoteproc/ti,pru-consumer.yaml | 70 +++++++++++++++++++ 1 file changed, 70 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..5b1f1cb2f098 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/ti,pru-consumer.yaml @@ -0,0 +1,70 @@ +# 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 + 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 + 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 + +dependencies: + firmware-name: [ 'ti,prus' ] + ti,pruss-gp-mux-sel: [ '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>; + }; -- 2.17.1