Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1296219imm; Fri, 8 Jun 2018 13:31:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJazlCmqwM6Ji1KOyDSWzFKf0bvqU6dwcNfdL5zEXsHSASke/5lOVvt/1nWnCikacZIstbE X-Received: by 2002:a62:3dca:: with SMTP id x71-v6mr7492221pfj.134.1528489884865; Fri, 08 Jun 2018 13:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528489884; cv=none; d=google.com; s=arc-20160816; b=WQrRTEE+HfqRhVISu651+dXlnKnyjxhgKZZWyF53PmnbfRc/J8p0ZlsKCOan6YPdBl 3BsbXM8KO+cabz1LE2IGhE9D8s46xvJ/GwoSdaQJBfeoKefdn8GcMJAbF3KCWZHrB5vM FcZOaSe6ZazUo+E7ac8/tTrRDBpAc+oz4RsfMc1R/vay9TeopJxCAie/yN57rGKxrJnB qNi2prR4+ReGoAal9y1TZgAg+3mf0UvFAe+jERZG8df7c+wz9qVP1n5WSWxDaiMpggEB g0BNnQhXaJUekDKY6SgGsn30wIEYMGYkQuKwzeidOhgH/IbN578G4qfquJIPK31e4vH7 eAbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=wwQOtuXl4E4GgWhitlx0Pj0xixasp8LEMmt5iX5JPzI=; b=m8n/jnX2oY9bQezW5cs4o+aVpz5uPdqhn4ID2+m3eTAM1NQl5SX4rtJ8JtsFkTTMim 36Hf0afyNka1QZqZK4DhyCzcWPaYVWkqNQ90O0zzVT+mG+p50IwAy/ujyu7evLdwfdqI jkiv4kVtJBILhANcX9XPCB9yCLfaExjmmDQYYCNwQydTh/YViI8gEBZaXkcsF7M+Xgg0 p3Xz8iW54Qx2y02JYhJu7IoQKHpFUNf269DD3gdy2ZegNbp7AFaMjNyg4oAJRCv1lcaE cqZrskYQqr1FGtqiUXrhT1SzLCqueEQzjvNTkRHQJBXRyxTCUI2kAh1xqgLYemzj9yRa lhwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PY6xzadl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12-v6si16412412pgp.39.2018.06.08.13.31.10; Fri, 08 Jun 2018 13:31:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PY6xzadl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1753041AbeFHUaO (ORCPT + 99 others); Fri, 8 Jun 2018 16:30:14 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:38693 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752777AbeFHUaN (ORCPT ); Fri, 8 Jun 2018 16:30:13 -0400 Received: by mail-pf0-f194.google.com with SMTP id b74-v6so7180423pfl.5 for ; Fri, 08 Jun 2018 13:30:12 -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:user-agent; bh=wwQOtuXl4E4GgWhitlx0Pj0xixasp8LEMmt5iX5JPzI=; b=PY6xzadlpnHDh22W29cdykFU1anQ0Gj6ujKeqe/MeWV/+Kin+tXJUerKTGynNYtY/n 3fWsFn28xHNfeAjnQhlCeZipPWKKRofP5coLUpr/VAj1+ji4uajr3VWHAfIgC/TVy/iR 1qKfaYELbOaHoMEQ6tNOE4nQ3EDWdHqTqu3WI= 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:user-agent; bh=wwQOtuXl4E4GgWhitlx0Pj0xixasp8LEMmt5iX5JPzI=; b=RYe+JuvU6Q1nTRjbw22IM2woe/fyYJ8wQjj1HBMukxDYVITDmR3oEEneI/oFB+8kAd RkLBdQmJQCeKNueqEtaCm/5OI8vzzgYwDVUfWp0YclygqQvPZCGSyXjDz4854H0IJOSB h48iRJRklR6u9pEPhRS6rH5wtSleCRkB1tgM7SiXJJAfI4n9XuZtoAOWxFJZhpdrKNNC 901ToHq5l+RHYoCO0SIqF1x85vEIN04AT0hTAIgpc5DeyRpw49FND8F6r0j1UJuXoiwv o8b4XQ1+mfieKSOcC5KMuVgppC3L085pWco7KwJZBUmnkh4NX3wDGxz+jSpDPXiQiVku L60g== X-Gm-Message-State: APt69E1BUftmdQcxzFID7lS4zo2wH2H1latTXdPe7ZukMLAAyekF4QKN nRv6YsGE2Qgx7HgnSgDVrkf+7w== X-Received: by 2002:a63:7d4c:: with SMTP id m12-v6mr6412945pgn.201.1528489812596; Fri, 08 Jun 2018 13:30:12 -0700 (PDT) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id w3-v6sm7409811pfi.109.2018.06.08.13.30.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jun 2018 13:30:11 -0700 (PDT) Date: Fri, 8 Jun 2018 14:30:09 -0600 From: Mathieu Poirier To: Suzuki K Poulose Cc: linux-arm-kernel@lists.infradead.org, robh@kernel.org, frowand.list@gmail.com, mark.rutland@arm.com, sudeep.holla@arm.com, arm@kernel.org, linux-kernel@vger.kernel.org, matt.sealey@arm.com, john.horley@arm.com, charles.garcia-tobin@arm.com, coresight@lists.linaro.org, devicetree@vger.kernel.org, mike.leach@linaro.org Subject: Re: [PATCH 07/20] coresight: dts: Document usage of graph bindings Message-ID: <20180608203009.GF30587@xps15> References: <1528235011-30691-1-git-send-email-suzuki.poulose@arm.com> <1528235011-30691-8-git-send-email-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1528235011-30691-8-git-send-email-suzuki.poulose@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 05, 2018 at 10:43:18PM +0100, Suzuki K Poulose wrote: > Before we update the bindings, document the current graph bindings > and usage of additional properties. > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose Reviewed-by: Mathieu Poirier > --- > .../devicetree/bindings/arm/coresight.txt | 31 +++++++++++++++++++--- > 1 file changed, 27 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/arm/coresight.txt b/Documentation/devicetree/bindings/arm/coresight.txt > index 9aa30a1..ed6b555 100644 > --- a/Documentation/devicetree/bindings/arm/coresight.txt > +++ b/Documentation/devicetree/bindings/arm/coresight.txt > @@ -52,9 +52,7 @@ its hardware characteristcs. > clocks the core of that coresight component. The latter clock > is optional. > > - * port or ports: The representation of the component's port > - layout using the generic DT graph presentation found in > - "bindings/graph.txt". > + * port or ports: see "Graph bindings for Coresight" below. > > * Additional required properties for System Trace Macrocells (STM): > * reg: along with the physical base address and length of the register > @@ -71,7 +69,7 @@ its hardware characteristcs. > AMBA markee): > - "arm,coresight-replicator" > > - * port or ports: same as above. > + * port or ports: see "Graph bindings for Coresight" below. > > * Optional properties for ETM/PTMs: > > @@ -90,6 +88,31 @@ its hardware characteristcs. > * arm,scatter-gather: boolean. Indicates that the TMC-ETR can safely > use the SG mode on this system. > > +Graph bindings for Coresight > +------------------------------- > + > +Coresight components are interconnected to create a data path for the flow of > +trace data generated from the "sources" to their collection points "sink". > +Each coresight component must describe the "input" and "output" connections. > +The connections must be described via generic DT graph bindings as described > +by the "bindings/graph.txt", where each "port" along with an "endpoint" > +component represents a hardware port and the connection. > + > +Since it is possible to have multiple connections for any coresight component > +with a specific direction of data flow, each connection must define the > +following properties to uniquely identify the connection details. > + > + * Direction of the data flow w.r.t the component : > + Each input port must have the following property defined at the "endpoint" > + for the port. > + "slave-mode" > + > + * Hardware Port number at the component: > + - The hardware port number is assumed to be the address of the "port" > + component. > + > + > + > Example: > > 1. Sinks > -- > 2.7.4 >