From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7A8AC43334 for ; Mon, 27 Jun 2022 21:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4eUH29+fWQpkn2L6BRHC5JRZ8bkkh8ygoyMJzipzUEE=; b=4yzJvlIzsNHBLt xCo5wBCJ3g0itmJ9I9jEnsQExQ/DA9gNY05w6iD43+f+oIZqh0+PJ8qT2n3IlVFyyp2Gvoveo3BxX AKV3OyRnG2UNE8gWy/ZvXi07Ku6R+DCZ2KikuE5vK1ToPF0j3l202KSsYPGkKp37cORKxzXZ9Latn r3/LMB9m8xnzqHcnUiK8rWz5EvqmC7dwR+XHmFfGKvPnoYuS6z0GFb/mJ3dE4AbAGGa+omY9JEYlZ YaBvUpfZ8MEF+oPsOJvGT0oh4ojumqwVRBQyWqEKYD8I4bNz0Pa0+/2mfHNBSV6QCyPfi/oCNpJ4D MvTkw5pbxYn8cXLz4TkQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5whZ-002xu5-8c; Mon, 27 Jun 2022 21:55:25 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5whU-002xs6-PP for linux-arm-kernel@lists.infradead.org; Mon, 27 Jun 2022 21:55:23 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C6F881758; Mon, 27 Jun 2022 14:55:18 -0700 (PDT) Received: from [10.57.85.164] (unknown [10.57.85.164]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 57D733F66F; Mon, 27 Jun 2022 14:55:17 -0700 (PDT) Message-ID: <2cb087fe-21d8-7513-4e55-b836d7086a1c@arm.com> Date: Mon, 27 Jun 2022 22:55:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v2 2/3] dt-bindings: arm: Convert CoreSight bindings to DT schema To: Rob Herring Cc: Mathieu Poirier , Mike Leach , Leo Yan , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20220603011933.3277315-1-robh@kernel.org> <20220603011933.3277315-3-robh@kernel.org> <01e9e2a0-df0a-3b31-f819-d68c6eb0f01d@arm.com> <20220627201115.GA2870653-robh@kernel.org> From: Suzuki K Poulose In-Reply-To: <20220627201115.GA2870653-robh@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220627_145520_958358_6277E2CF X-CRM114-Status: GOOD ( 21.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 27/06/2022 21:11, Rob Herring wrote: > On Mon, Jun 20, 2022 at 06:17:20PM +0100, Suzuki K Poulose wrote: >> Hi Rob >> >> A big Thank You for the effort ! A minor comment below. >> >> On 03/06/2022 02:19, Rob Herring wrote: >>> Each CoreSight component has slightly different requirements and >>> nothing applies to every component, so each CoreSight component has its >>> own schema document. >>> >>> Signed-off-by: Rob Herring >>> -- >>> v2: >>> - Add missing arm,coresight-dynamic-replicator.yaml and >>> arm,coresight-static-funnel.yaml >>> - Update MAINTAINERS >>> - Fix coresight.txt references >>> - Fix double blank line >>> --- >>> .../bindings/arm/arm,coresight-catu.yaml | 101 +++++ >>> .../bindings/arm/arm,coresight-cti.yaml | 3 +- >>> .../arm/arm,coresight-dynamic-funnel.yaml | 126 ++++++ >>> .../arm/arm,coresight-dynamic-replicator.yaml | 126 ++++++ >>> .../bindings/arm/arm,coresight-etb10.yaml | 92 ++++ >>> .../bindings/arm/arm,coresight-etm.yaml | 156 +++++++ >>> .../arm/arm,coresight-static-funnel.yaml | 89 ++++ >>> .../arm/arm,coresight-static-replicator.yaml | 90 ++++ >>> .../bindings/arm/arm,coresight-stm.yaml | 101 +++++ >>> .../bindings/arm/arm,coresight-tmc.yaml | 131 ++++++ >>> .../bindings/arm/arm,coresight-tpiu.yaml | 91 ++++ >>> .../arm/arm,embedded-trace-extension.yaml | 1 - >>> .../devicetree/bindings/arm/coresight.txt | 402 ------------------ >>> Documentation/trace/coresight/coresight.rst | 2 +- >>> MAINTAINERS | 3 +- >>> 15 files changed, 1106 insertions(+), 408 deletions(-) >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-catu.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-dynamic-funnel.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-dynamic-replicator.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-etb10.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-static-funnel.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-stm.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-tpiu.yaml >>> delete mode 100644 Documentation/devicetree/bindings/arm/coresight.txt >>> >> >> ... >> >>> diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml >>> new file mode 100644 >>> index 000000000000..e0377ce48537 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml >>> @@ -0,0 +1,156 @@ >>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/arm/arm,coresight-etm.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Arm CoreSight Embedded Trace MacroCell >>> + >>> +maintainers: >>> + - Mathieu Poirier >>> + - Mike Leach >>> + - Leo Yan >>> + - Suzuki K Poulose >>> + >>> +description: | >>> + CoreSight components are compliant with the ARM CoreSight architecture >>> + specification and can be connected in various topologies to suit a particular >>> + SoCs tracing needs. These trace components can generally be classified as >>> + sinks, links and sources. Trace data produced by one or more sources flows >>> + through the intermediate links connecting the source to the currently selected >>> + sink. >>> + >>> + The Embedded Trace Macrocell (ETM) is a real-time trace module providing >>> + instruction and data tracing of a processor. >>> + >>> +select: >>> + properties: >>> + compatible: >>> + contains: >>> + enum: >>> + - arm,coresight-etm3x >>> + - arm,coresight-etm4x >>> + - arm,coresight-etm4x-sysreg >>> + required: >>> + - compatible >>> + >>> +allOf: >>> + - if: >>> + not: >>> + properties: >>> + compatible: >>> + contains: >>> + const: arm,coresight-etm4x-sysreg >>> + then: >>> + $ref: /schemas/arm/primecell.yaml# >>> + required: >>> + - reg > > > ^^^^ > >>> + >>> +properties: >>> + compatible: >>> + oneOf: >>> + - description: >>> + Embedded Trace Macrocell with memory mapped access. >>> + items: >>> + - enum: >>> + - arm,coresight-etm3x >>> + - arm,coresight-etm4x >>> + - const: arm,primecell >>> + - description: >>> + Embedded Trace Macrocell (version 4.x), with system register access only >>> + const: arm,coresight-etm4x-sysreg >>> + >>> + reg: >>> + maxItems: 1 >> >> The register field is mandatory for everything, except >> arm,coresight-etm4x-sysreg. Is there a way to enforce that >> selectively for the others ? > > Yes, that's what it is doing up above that I flagged. > Thanks for the claritification. ... >>> diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-stm.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-stm.yaml >>> new file mode 100644 >>> index 000000000000..905008faa012 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/arm/arm,coresight-stm.yaml >>> @@ -0,0 +1,101 @@ >>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/arm/arm,coresight-stm.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Arm CoreSight System Trace MacroCell >>> + >>> +maintainers: >>> + - Mathieu Poirier >>> + - Mike Leach >>> + - Leo Yan >>> + - Suzuki K Poulose >>> + >>> +description: | >>> + CoreSight components are compliant with the ARM CoreSight architecture >>> + specification and can be connected in various topologies to suit a particular >>> + SoCs tracing needs. These trace components can generally be classified as >>> + sinks, links and sources. Trace data produced by one or more sources flows >>> + through the intermediate links connecting the source to the currently selected >>> + sink. >>> + >>> + The STM is a trace source that is integrated into a CoreSight system, designed >>> + primarily for high-bandwidth trace of instrumentation embedded into software. >>> + This instrumentation is made up of memory-mapped writes to the STM Advanced >>> + eXtensible Interface (AXI) slave, which carry information about the behavior >>> + of the software. >>> + >>> +select: >>> + properties: >>> + compatible: >>> + contains: >>> + const: arm,coresight-stm >>> + required: >>> + - compatible >>> + >>> +allOf: >>> + - $ref: /schemas/arm/primecell.yaml# >>> + >>> +properties: >>> + compatible: >>> + items: >>> + - const: arm,coresight-stm >>> + - const: arm,primecell >>> + >>> + reg: >>> + maxItems: 2 >> >> stm-stimulus-base is mandatory for stm. So I believe, we should add >> >> minItems: 2 >> above ? > > That's the default if not explicit. Ok. So, with the above explanation, ( with gratitude ) Reviewed-by: Suzuki K Poulose _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E024C43334 for ; Mon, 27 Jun 2022 22:04:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242471AbiF0WC3 (ORCPT ); Mon, 27 Jun 2022 18:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241710AbiF0V4V (ORCPT ); Mon, 27 Jun 2022 17:56:21 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D927F18E33; Mon, 27 Jun 2022 14:55:18 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C6F881758; Mon, 27 Jun 2022 14:55:18 -0700 (PDT) Received: from [10.57.85.164] (unknown [10.57.85.164]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 57D733F66F; Mon, 27 Jun 2022 14:55:17 -0700 (PDT) Message-ID: <2cb087fe-21d8-7513-4e55-b836d7086a1c@arm.com> Date: Mon, 27 Jun 2022 22:55:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v2 2/3] dt-bindings: arm: Convert CoreSight bindings to DT schema To: Rob Herring Cc: Mathieu Poirier , Mike Leach , Leo Yan , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20220603011933.3277315-1-robh@kernel.org> <20220603011933.3277315-3-robh@kernel.org> <01e9e2a0-df0a-3b31-f819-d68c6eb0f01d@arm.com> <20220627201115.GA2870653-robh@kernel.org> From: Suzuki K Poulose In-Reply-To: <20220627201115.GA2870653-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/06/2022 21:11, Rob Herring wrote: > On Mon, Jun 20, 2022 at 06:17:20PM +0100, Suzuki K Poulose wrote: >> Hi Rob >> >> A big Thank You for the effort ! A minor comment below. >> >> On 03/06/2022 02:19, Rob Herring wrote: >>> Each CoreSight component has slightly different requirements and >>> nothing applies to every component, so each CoreSight component has its >>> own schema document. >>> >>> Signed-off-by: Rob Herring >>> -- >>> v2: >>> - Add missing arm,coresight-dynamic-replicator.yaml and >>> arm,coresight-static-funnel.yaml >>> - Update MAINTAINERS >>> - Fix coresight.txt references >>> - Fix double blank line >>> --- >>> .../bindings/arm/arm,coresight-catu.yaml | 101 +++++ >>> .../bindings/arm/arm,coresight-cti.yaml | 3 +- >>> .../arm/arm,coresight-dynamic-funnel.yaml | 126 ++++++ >>> .../arm/arm,coresight-dynamic-replicator.yaml | 126 ++++++ >>> .../bindings/arm/arm,coresight-etb10.yaml | 92 ++++ >>> .../bindings/arm/arm,coresight-etm.yaml | 156 +++++++ >>> .../arm/arm,coresight-static-funnel.yaml | 89 ++++ >>> .../arm/arm,coresight-static-replicator.yaml | 90 ++++ >>> .../bindings/arm/arm,coresight-stm.yaml | 101 +++++ >>> .../bindings/arm/arm,coresight-tmc.yaml | 131 ++++++ >>> .../bindings/arm/arm,coresight-tpiu.yaml | 91 ++++ >>> .../arm/arm,embedded-trace-extension.yaml | 1 - >>> .../devicetree/bindings/arm/coresight.txt | 402 ------------------ >>> Documentation/trace/coresight/coresight.rst | 2 +- >>> MAINTAINERS | 3 +- >>> 15 files changed, 1106 insertions(+), 408 deletions(-) >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-catu.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-dynamic-funnel.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-dynamic-replicator.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-etb10.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-static-funnel.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-stm.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml >>> create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-tpiu.yaml >>> delete mode 100644 Documentation/devicetree/bindings/arm/coresight.txt >>> >> >> ... >> >>> diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml >>> new file mode 100644 >>> index 000000000000..e0377ce48537 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml >>> @@ -0,0 +1,156 @@ >>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/arm/arm,coresight-etm.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Arm CoreSight Embedded Trace MacroCell >>> + >>> +maintainers: >>> + - Mathieu Poirier >>> + - Mike Leach >>> + - Leo Yan >>> + - Suzuki K Poulose >>> + >>> +description: | >>> + CoreSight components are compliant with the ARM CoreSight architecture >>> + specification and can be connected in various topologies to suit a particular >>> + SoCs tracing needs. These trace components can generally be classified as >>> + sinks, links and sources. Trace data produced by one or more sources flows >>> + through the intermediate links connecting the source to the currently selected >>> + sink. >>> + >>> + The Embedded Trace Macrocell (ETM) is a real-time trace module providing >>> + instruction and data tracing of a processor. >>> + >>> +select: >>> + properties: >>> + compatible: >>> + contains: >>> + enum: >>> + - arm,coresight-etm3x >>> + - arm,coresight-etm4x >>> + - arm,coresight-etm4x-sysreg >>> + required: >>> + - compatible >>> + >>> +allOf: >>> + - if: >>> + not: >>> + properties: >>> + compatible: >>> + contains: >>> + const: arm,coresight-etm4x-sysreg >>> + then: >>> + $ref: /schemas/arm/primecell.yaml# >>> + required: >>> + - reg > > > ^^^^ > >>> + >>> +properties: >>> + compatible: >>> + oneOf: >>> + - description: >>> + Embedded Trace Macrocell with memory mapped access. >>> + items: >>> + - enum: >>> + - arm,coresight-etm3x >>> + - arm,coresight-etm4x >>> + - const: arm,primecell >>> + - description: >>> + Embedded Trace Macrocell (version 4.x), with system register access only >>> + const: arm,coresight-etm4x-sysreg >>> + >>> + reg: >>> + maxItems: 1 >> >> The register field is mandatory for everything, except >> arm,coresight-etm4x-sysreg. Is there a way to enforce that >> selectively for the others ? > > Yes, that's what it is doing up above that I flagged. > Thanks for the claritification. ... >>> diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-stm.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-stm.yaml >>> new file mode 100644 >>> index 000000000000..905008faa012 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/arm/arm,coresight-stm.yaml >>> @@ -0,0 +1,101 @@ >>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/arm/arm,coresight-stm.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Arm CoreSight System Trace MacroCell >>> + >>> +maintainers: >>> + - Mathieu Poirier >>> + - Mike Leach >>> + - Leo Yan >>> + - Suzuki K Poulose >>> + >>> +description: | >>> + CoreSight components are compliant with the ARM CoreSight architecture >>> + specification and can be connected in various topologies to suit a particular >>> + SoCs tracing needs. These trace components can generally be classified as >>> + sinks, links and sources. Trace data produced by one or more sources flows >>> + through the intermediate links connecting the source to the currently selected >>> + sink. >>> + >>> + The STM is a trace source that is integrated into a CoreSight system, designed >>> + primarily for high-bandwidth trace of instrumentation embedded into software. >>> + This instrumentation is made up of memory-mapped writes to the STM Advanced >>> + eXtensible Interface (AXI) slave, which carry information about the behavior >>> + of the software. >>> + >>> +select: >>> + properties: >>> + compatible: >>> + contains: >>> + const: arm,coresight-stm >>> + required: >>> + - compatible >>> + >>> +allOf: >>> + - $ref: /schemas/arm/primecell.yaml# >>> + >>> +properties: >>> + compatible: >>> + items: >>> + - const: arm,coresight-stm >>> + - const: arm,primecell >>> + >>> + reg: >>> + maxItems: 2 >> >> stm-stimulus-base is mandatory for stm. So I believe, we should add >> >> minItems: 2 >> above ? > > That's the default if not explicit. Ok. So, with the above explanation, ( with gratitude ) Reviewed-by: Suzuki K Poulose