Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7491756pxb; Thu, 18 Feb 2021 11:27:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMghojem26hg6VbXWFnLjqprFc18viXbwcDLybMG3/FUgKy6EHc/a6FIoo1iao8n9d0C1i X-Received: by 2002:a17:906:4a0a:: with SMTP id w10mr5563129eju.551.1613676446458; Thu, 18 Feb 2021 11:27:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613676446; cv=none; d=google.com; s=arc-20160816; b=duNJAP8oMVMhKb9TKrfAgP7BG6FcxLbffPndLGsMh1lpQKX/I1GJFjx2sfyLUIZbIU CTBP079FCimEkylTOKeK3JBPF2YchnKLe8IAvwMktLmLfL532+m1N/nsNPN8rPso8P2Z sfoHgDgIBuIji9ToWEh4lzjTr+nm6rVIwFO6BwRC+EEQPaOYs95FuxNFJU26hSlGkCUI h/BDyjQqRm8SRfCwuP55IEP9PGLewMqGUFJWO5bpNXkBmfqQjvdKzbigbp8hsryfqE0s CnUB+ucIx2OJEGUoOZwe/8hH374GdM32bxz+nexh5X1/4EoCXck3rQQ9QM4rO7PNHSry TAXw== 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; bh=Fj+E6ZYsKNOutdOovZVamZYGG7ykgokFczWsXUFVYwU=; b=T5dj47kTa+z82t2s8M1VSuLtbfCtY8qRP5oZz2qtegERAG790vAqhsIIyNOl7YpACB F/GzBQWDKTAWSIYdsWURIHFFqiL+D+I9AyzwFNQqBAeSXaZot8v26zxre8OG+pb7wsrW +VBye13i45Arb6cGx6ml6fS2wAO/WMqddfBCgmQNVID5FKuhN8P+Mcx1f/OIIAYgFA+k edqLSZPsNJacprTUdcOo/HciR2Wgv7uleqRU5o6k/SvC+BLUxCQ/wQLiAHba8tQTdOjf 3yMoNVFsNdVVeJZKr0hHFj8WCJcwFK3pS0ITrFu1rUPVsj/s/Eko/m3vLxYNNB23Fs0+ nyZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si4942411ejo.415.2021.02.18.11.27.01; Thu, 18 Feb 2021 11:27:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230091AbhBRT0X (ORCPT + 99 others); Thu, 18 Feb 2021 14:26:23 -0500 Received: from mail-ot1-f48.google.com ([209.85.210.48]:45367 "EHLO mail-ot1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231713AbhBRSeW (ORCPT ); Thu, 18 Feb 2021 13:34:22 -0500 Received: by mail-ot1-f48.google.com with SMTP id v16so2734330ote.12; Thu, 18 Feb 2021 10:34:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Fj+E6ZYsKNOutdOovZVamZYGG7ykgokFczWsXUFVYwU=; b=Ntz3WGOlp+8becDHcOXf4Ib9cbj+H4hPhwBM8r2lgQzsCgS6RjLFYCRRNBEnglk5uA G8sD6l+eDY32GJBlcOFos98YitCCdFqZDC0I8kTNCp1PSwWu3fqOfQdxmmvM7lriI5ry E+Yg9AlBWkXhSmAynI7UWf3WCF/HIrjmzFdeDv+dk+f1+IJj6YzvVpM2+MqjCTyJbZ9J g9g6CEBH6/mTD6E3c2+bpD0dur2j9NaoWrKugEB9AA/BHYT94gwvZfAq2/TBmC/xXRMs ZQIVnkO6lizTICInweobI3BX2XNJKLqp5fZpFUUECxAne/WEk+/5liPqzAsUvxv5cGZS l8Ig== X-Gm-Message-State: AOAM530CkLn1p4VIZX6wrcDygqn2eP+1xbTlq5y0sSbM3bu5pjnraGbO ewkqpmioxWWjJbqzb8h4jg== X-Received: by 2002:a05:6830:4129:: with SMTP id w41mr4036327ott.332.1613673217418; Thu, 18 Feb 2021 10:33:37 -0800 (PST) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id a10sm1339470oie.39.2021.02.18.10.33.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 10:33:36 -0800 (PST) Received: (nullmailer pid 929727 invoked by uid 1000); Thu, 18 Feb 2021 18:33:35 -0000 Date: Thu, 18 Feb 2021 12:33:35 -0600 From: Rob Herring To: Suzuki K Poulose Cc: Anshuman Khandual , devicetree@vger.kernel.org, mathieu.poirier@linaro.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, lcherian@marvell.com, mike.leach@linaro.org Subject: Re: [PATCH V3 06/14] dts: bindings: Document device tree bindings for ETE Message-ID: <20210218183335.GA915713@robh.at.kernel.org> References: <1611737738-1493-1-git-send-email-anshuman.khandual@arm.com> <1611737738-1493-7-git-send-email-anshuman.khandual@arm.com> <20210209190031.GA4102836@robh.at.kernel.org> <4d0e6b88-72c2-be23-f43a-3f541f9ebb86@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4d0e6b88-72c2-be23-f43a-3f541f9ebb86@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 12:33:44PM +0000, Suzuki K Poulose wrote: > Hi Rob > > On 2/9/21 7:00 PM, Rob Herring wrote: > > On Wed, Jan 27, 2021 at 02:25:30PM +0530, Anshuman Khandual wrote: > > > From: Suzuki K Poulose > > > > > > Document the device tree bindings for Embedded Trace Extensions. > > > ETE can be connected to legacy coresight components and thus > > > could optionally contain a connection graph as described by > > > the CoreSight bindings. > > > > > > Cc: devicetree@vger.kernel.org > > > Cc: Mathieu Poirier > > > Cc: Mike Leach > > > Cc: Rob Herring > > > Signed-off-by: Suzuki K Poulose > > > Signed-off-by: Anshuman Khandual > > > --- > > > Changes in V3: > > > > > > - Fixed all DT yaml semantics problems > > > > > > Documentation/devicetree/bindings/arm/ete.yaml | 74 ++++++++++++++++++++++++++ > > > 1 file changed, 74 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/arm/ete.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/arm/ete.yaml b/Documentation/devicetree/bindings/arm/ete.yaml > > > new file mode 100644 > > > index 0000000..edc1fe2 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/arm/ete.yaml > > > @@ -0,0 +1,74 @@ > > > +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause > > > +# Copyright 2021, Arm Ltd > > > +%YAML 1.2 > > > +--- > > > +$id: "http://devicetree.org/schemas/arm/ete.yaml#" > > > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > > > + > > > +title: ARM Embedded Trace Extensions > > > + > > > +maintainers: > > > + - Suzuki K Poulose > > > + - Mathieu Poirier > > > + > > > +description: | > > > + Arm Embedded Trace Extension(ETE) is a per CPU trace component that > > > + allows tracing the CPU execution. It overlaps with the CoreSight ETMv4 > > > + architecture and has extended support for future architecture changes. > > > + The trace generated by the ETE could be stored via legacy CoreSight > > > + components (e.g, TMC-ETR) or other means (e.g, using a per CPU buffer > > > + Arm Trace Buffer Extension (TRBE)). Since the ETE can be connected to > > > + legacy CoreSight components, a node must be listed per instance, along > > > + with any optional connection graph as per the coresight bindings. > > > + See bindings/arm/coresight.txt. > > > + > > > +properties: > > > + $nodename: > > > + pattern: "^ete([0-9a-f]+)$" > > > + compatible: > > > + items: > > > + - const: arm,embedded-trace-extension > > > + > > > + cpu: > > > > We've already established 'cpus' for this purpose. > > > > Please see : https://lkml.kernel.org/r/9417218b-6eda-373b-a2cb-869089ffc7cd@arm.com > for my response in the previous version to this and the one with out-ports. Okay, fair enough. > > > > + description: | > > > + Handle to the cpu this ETE is bound to. > > > + $ref: /schemas/types.yaml#/definitions/phandle > > > + > > > + out-ports: > > > + type: object > > > > Replace with: $ref: /schemas/graph.yaml#/properties/ports > > So, just to confirm again : > The CoreSight graph bindings expect the input ports and output ports > grouped under in-ports{} and out-ports{} respectively to avoid having > to specify the direction of the ports in the individual "port" nodes. > i.e > > in-ports { > > property: ports > OR > property: port > > required: > OneOf: > ports > port No, 'ports' as a child of in-ports is not correct. There should only be 'port(@[0-9a-f]+)?' nodes. That's why you need the above $ref added. The $ref doesn't define the node name is 'ports', but what a 'ports' or 'foo-ports' contains. > } > > out-ports { > > # same as above > } > > So thats why I added out-ports as a new object, where the ports/port > could be a child node. > > Ideally the definition of out-ports /in-ports should go to a common schema > for CoreSight bindings, when we move to Yaml for the existing bindings, > which will follow in a separate series, later. Yes, maybe, but I'm not sure something common is going to help here. You'll still have to describe what each 'port' node does in each device specific binding. Rob