Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp49650imm; Tue, 5 Jun 2018 14:50:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ78eukNbT8IB54Bdu6K5IIeVomM2i1jfoiwxoA+m1IaUvRWehyx+Rqse+hqiujsBDU+ibC X-Received: by 2002:a17:902:bb0d:: with SMTP id l13-v6mr358216pls.115.1528235442822; Tue, 05 Jun 2018 14:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528235442; cv=none; d=google.com; s=arc-20160816; b=iYisYExGKk/Mkytp/sNQeK82pNd02rN0OA1mXyDEHET2JKsNsci/VxOCDT4507rQy2 a+Q+EhN56mj4tT3Ip4Bh9pHzqBMTgmZNDk+8OT/mjcaM4lPr8ciPOWKZZF0cUJboVf8L 1Wi4Cw/WHb0ZirXbre0CwVgFpIYnKImJQc4jpI6wpjQBGST5ixwh6YvrZWI0rEPM/biZ 5GPypcWAK5mfW/NVKGuI6/8JpdEIpA5O2HY2ro/gDSBuEO6P5c3msCr5dS0IFPm3GmHj Ri7DB+TPpgO5efg24qKaoom/jigv6hGealwSE6Rrm1AI8S3BDS6X4SYir3QTyQAJnhGH hMPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=fKHH7hRC+i3W5crBcbgJAQCqH/WcDx5soW9t/IaOFmQ=; b=q2u21k8LfN10osKwegUMxFmh6XJH0921UZencjT8zjwdITDuzZUShY4Shr4quSUW1u 4wck9zFr/rPR5PzD5jqNf90moC261rpaiOS+5GifuBSyr13xGsC7y5lCzXN+GGJLHQWL 3Q+kGgq42S5PM5+P21A/70rCEVDwBqBxIzw0WHJzsR6QAjuOQm2Sw3xRTICf19TrZCW5 gZh9+imJS1NAEVsbZIwk9GE8TmMjXERejwGyk4G5pSvVJV7Bnl3rZ6Kg5b3P2d4W0oi+ PVZ9aygCqih3OXoWFfVH9U8+oIG5lKPltQOmR5ZuczEhKvsTImWYzsWEkJ8ci8vwu9gG 1AwA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2-v6si37627719plo.577.2018.06.05.14.50.28; Tue, 05 Jun 2018 14:50:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752776AbeFEVpG (ORCPT + 99 others); Tue, 5 Jun 2018 17:45:06 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:34500 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751780AbeFEVpE (ORCPT ); Tue, 5 Jun 2018 17:45:04 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CF08680D; Tue, 5 Jun 2018 14:45:03 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.206.73]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 54F0E3F59D; Tue, 5 Jun 2018 14:45:01 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: mathieu.poirier@linaro.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, Suzuki K Poulose Subject: [PATCH 07/20] coresight: dts: Document usage of graph bindings Date: Tue, 5 Jun 2018 22:43:18 +0100 Message-Id: <1528235011-30691-8-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528235011-30691-1-git-send-email-suzuki.poulose@arm.com> References: <1528235011-30691-1-git-send-email-suzuki.poulose@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Before we update the bindings, document the current graph bindings and usage of additional properties. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../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