Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3992614rdb; Thu, 14 Sep 2023 08:40:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHYlvivhoC5fwKTYdwbqAU0do5ApRF93ZDiO/KSZMzlrjE96JpKsiLtj72QUuIWnzUPhCsB X-Received: by 2002:a05:6a20:938a:b0:14d:7b6:cf3b with SMTP id x10-20020a056a20938a00b0014d07b6cf3bmr3271093pzh.6.1694706038573; Thu, 14 Sep 2023 08:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694706038; cv=none; d=google.com; s=arc-20160816; b=cuekeLrk7+G/hvx5YiHuhfbw1u995egMnVuck1BD/yhSQqJPWT7UKi2uBdCjDboLq2 pwMzDFwyoOFbor0zsxoR+6r/oEtQ48Dwr0S4nOdqjo2yNvXwY8XuFdQm5nvOSE6jULBf Nixp9j/mTvEtaO7KKw/yOZU4gPPoUWExrTEiBR2KC07JRul12DoG7GSECLx08do9eOWQ gczY5C8QdsFHvfsROo3jLCzV+EBcrC+WjT7GoQkK43xDpAYajZMOECCZHFeHugbRNB9P dHkwVbmTTtByat/e6b6j71K5K3fmj24sQGRX6cZYYMWVKVQq6dXnuEi7fVvZKysbSfVR 9hxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=39sDD38zSUY9m63+APychfFlWTfIYzE7S7OqUJMYnuo=; fh=MiNWN1/ze8TsR6PnX0og8z2++O5rbKC7HFDBGW4xACI=; b=JxH1Bu6J3ixezEV1XUu4l41bFZ4mxoSksDvQEsqSX8KAMMRiKAitOsAdB3tzpMJP1P 6Ni5lsN8x0/GF0EXxSDJxl0QcsV6Bnpkjxmtv1HgiL+sdByzW75SMCGxK3Tu1PgQHJNM INUzedOOS+WRmT/ObNnyLZrKtowb1ExBWHfU2RHIQhKcafIpJUuOpFSoHUiLS+4yE145 /qu6ntQm5jDBRJGhnmkR/keQQmX8PVokENZAwWKpsaQxHSUzC4hwhl5oacAdLl6YcpP/ rzy0CaOU2YtYajMhAF3scq1diGhITs9SKh+T5YEw+S6TLCEDkuq/nDjDseAnobqZ3nxA XVWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dUCL3TIU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id b67-20020a633446000000b00564d6ad2746si1751248pga.452.2023.09.14.08.40.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 08:40:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dUCL3TIU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id ED65881A9EDE; Thu, 14 Sep 2023 08:35:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241142AbjINPfw (ORCPT + 99 others); Thu, 14 Sep 2023 11:35:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241084AbjINPft (ORCPT ); Thu, 14 Sep 2023 11:35:49 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28507DD; Thu, 14 Sep 2023 08:35:45 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C441CC433CB; Thu, 14 Sep 2023 15:35:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694705744; bh=Ju8fenjXTyd/K+wHzVsjLNClOY80IHgJMtcyvBlfjmk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dUCL3TIUh4znuHOvv58BnZG9NZoo+y3KSjsU77qVUNwBJDcPwy47AFaZwdxb0SjUv EOcZksxwPymqdWyc5+kwa2OyUDb+hM7/fLNaFZ97nAJ+k7iY95b45bdssg1GyOspdp 0OFvSjt8xXSsqo5OYPxSu0v0k7XFmkGmClUzEG8h+xj/ezjutC6Z3ixUO+EQM+E2VQ yU1pn8ifJmqL22OVygU48SumXZZC9oWymv9lP0wjHO9mS5nhmU0HxfP35eL/yaTJqE njf2iZcXj5BHd4ND4cPlQsEd2Ycywdpd/Omci7F2RHgC2SZkTiPmGdx/0wj/R4htxx vYD7BDRhERZ7w== Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-501bef6e0d3so1854932e87.1; Thu, 14 Sep 2023 08:35:44 -0700 (PDT) X-Gm-Message-State: AOJu0YzCAf1mw7JeAuU7PR7z2zI7Dw8/2vGoLu6OtgRYChgMGToWhepu +oFXLxheGLxn1BW9IKmFobqdh2qvOfJBIMKsVA== X-Received: by 2002:a05:6512:110c:b0:502:9fce:b6cc with SMTP id l12-20020a056512110c00b005029fceb6ccmr5749162lfg.11.1694705742911; Thu, 14 Sep 2023 08:35:42 -0700 (PDT) MIME-Version: 1.0 References: <20230913111644.29889-1-hnagalla@ti.com> <20230913111644.29889-2-hnagalla@ti.com> In-Reply-To: <20230913111644.29889-2-hnagalla@ti.com> From: Rob Herring Date: Thu, 14 Sep 2023 10:35:30 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 1/4] dt-bindings: remoteproc: k3-m4f: Add K3 AM64x SoCs To: Hari Nagalla Cc: andersson@kernel.org, mathieu.poirier@linaro.org, p.zabel@pengutronix.de, martyn.welch@collabora.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 14 Sep 2023 08:35:54 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email On Wed, Sep 13, 2023 at 6:17=E2=80=AFAM Hari Nagalla wrot= e: > > K3 AM64x SoC has a Cortex M4F subsystem in the MCU voltage domain. > The remote processor's life cycle management and IPC mechanisms are > similar across the R5F and M4F cores from remote processor driver > point of view. However, there are subtle differences in image loading > and starting the M4F subsystems. > > The YAML binding document provides the various node properties to be > configured by the consumers of the M4F subsystem. > > Signed-off-by: Martyn Welch > Signed-off-by: Hari Nagalla > --- > Changes since v1: > - Spelling corrections > - Corrected to pass DT checks > > Changes since v2: > - Missed spelling correction to commit message > > Changes since v3: > - Removed unnecessary descriptions and used generic memory region names > - Made mboxes and memory-region optional > - Removed unrelated items from examples > > Changes since v4: > - Rebased to the latest kernel-next tree > - Added optional sram memory region for m4f device node > > Changes since v5: > - None > > .../bindings/remoteproc/ti,k3-m4f-rproc.yaml | 136 ++++++++++++++++++ > 1 file changed, 136 insertions(+) > create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,k3-m4= f-rproc.yaml > > diff --git a/Documentation/devicetree/bindings/remoteproc/ti,k3-m4f-rproc= .yaml b/Documentation/devicetree/bindings/remoteproc/ti,k3-m4f-rproc.yaml > new file mode 100644 > index 000000000000..21b7f14d9dc4 > --- /dev/null > +++ b/Documentation/devicetree/bindings/remoteproc/ti,k3-m4f-rproc.yaml > @@ -0,0 +1,136 @@ > +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/remoteproc/ti,k3-m4f-rproc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: TI K3 M4F processor subsystems > + > +maintainers: > + - Hari Nagalla > + - Mathieu Poirier > + > +description: | > + Some K3 family SoCs have Arm Cortex M4F cores. AM64x is a SoC in K3 > + family with a M4F core. Typically safety oriented applications may use > + the M4F core in isolation without an IPC. Where as some industrial and > + home automation applications, may use the M4F core as a remote process= or > + with IPC communications. > + > +$ref: /schemas/arm/keystone/ti,k3-sci-common.yaml# > + > +properties: > + > + compatible: > + enum: > + - ti,am64-m4fss > + > + power-domains: > + maxItems: 1 > + > + "#address-cells": > + const: 2 > + > + "#size-cells": > + const: 2 > + > + reg: > + items: > + - description: IRAM internal memory region > + - description: DRAM internal memory region > + > + reg-names: > + items: > + - const: iram > + - const: dram > + > + resets: > + maxItems: 1 > + > + firmware-name: > + $ref: /schemas/types.yaml#/definitions/string > + description: Name of firmware to load for the M4F core > + > + mboxes: > + description: | > + Mailbox specifier denoting the sub-mailbox, to be used for communi= cation > + with the remote processor. This property should match with the > + sub-mailbox node used in the firmware image. > + maxItems: 2 > + > + memory-region: > + description: | > + phandle to the reserved memory nodes to be associated with the > + remoteproc device. The reserved memory nodes should be carveout no= des, > + and should be defined with a "no-map" property as per the bindings= in > + Documentation/devicetree/bindings/reserved-memory/reserved-memory.= yaml > + Optional memory regions available for firmware specific purposes. > + maxItems: 8 > + items: > + - description: regions used for DMA allocations like vrings, vring= buffers > + and memory dedicated to firmware's specific purpose= s. > + additionalItems: true > + > + sram: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + minItems: 1 > + maxItems: 4 > + items: > + maxItems: 4 You are saying there are 1-4 entries and each entry is 4 cells. What's in the 4 cells? From the description and example, looks like you only have 1 cell (a phandle) so maxItems should be 1. Your example should fail, but I'm not sure why it doesn't. Rob