Received: by 10.192.165.148 with SMTP id m20csp4453552imm; Tue, 8 May 2018 08:41:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoRj9Sccx6t3QJXJVEpdamMu6+ETOQ6ZIpKTB4osNLmBte3kevVGN0G21pdniR1z9mo2Lfg X-Received: by 2002:a17:902:5a5:: with SMTP id f34-v6mr41487915plf.288.1525794086618; Tue, 08 May 2018 08:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525794086; cv=none; d=google.com; s=arc-20160816; b=qAgCiqhC1jkCszgpcxwqIfANONNMfAUeRQFZ9iD0S40WceeOKWZ7TLVDhgBiUN9ALv WGbmmkRuW6klZRxXl9meP7ZljKjsYuL1fbQzTAv0g7JWqSBopmQZCdDUqdTcFCj6CrI5 t+GmDsp5AnU1zkU0KdpYRzS+p6IAfkBj3c0JqjO4x0mullSo2nGav7LlGKt1oNpiPFVK VjYVUFjRwcaxcQy7QDxOolNTglzRcIpwzyTC1JgTCJYFb+A/lNKyXKOkB/TJnJOHBwxF 5hZ+pQa5MZ9jBc7zeQcq2uizkGuNN8h4YkeG0vjrV2RE2PDj02e4nDzTbbzfzm3l8FTe DIdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=1e5oY0ZWsaa4P6wuUN3yZvFCOm6RpMHdttvShPgSVuI=; b=KZsJkrkfyGmSzfhWneFEB3JpeDWUzn/S1VqvkjGFmOMFhEHNTbo19a4SIhtl46riOD P6i/x4MEp+GS+sBL0/u1L5F50PsuBWJm9wvdNxvHWyb6+vjOWFW6j/byHf3XXm5l0M3B DwmecwRj6TJBNupes0c+0q1AaLX/D5x+ENOgPlTEBGwkPhHbeMxbKyfEEintzb7tRh22 9wmFHe5pySidrlfXEPr01z9UHSFOIIyKpeLp8IfzQeyYmv82Q3Ur+zoVcJ9+dgPucNwh YxO5wLcwH3FbHxyOQ3+f0z9H3k5vbU/Z2l8Hn/as4X9anJdznJbJ+t2Uh6fRd2sj6YKZ jqcA== 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 186si24121376pfe.49.2018.05.08.08.41.11; Tue, 08 May 2018 08:41:26 -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 S1755336AbeEHPkX (ORCPT + 99 others); Tue, 8 May 2018 11:40:23 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:60188 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752591AbeEHPkW (ORCPT ); Tue, 8 May 2018 11:40:22 -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 2BF3180D; Tue, 8 May 2018 08:40:22 -0700 (PDT) Received: from [10.1.206.73] (en101.cambridge.arm.com [10.1.206.73]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E54433F58C; Tue, 8 May 2018 08:40:19 -0700 (PDT) Subject: Re: [PATCH v2 05/27] dts: bindings: Document device tree binding for CATU To: Mathieu Poirier , Rob Herring Cc: linux-arm-kernel , linux-kernel@vger.kernel.org, Mike Leach , Robert Walker , Mark Rutland , Will Deacon , Robin Murphy , Sudeep Holla , Frank Rowand , John Horley , devicetree@vger.kernel.org, Mathieu Poirier References: <1525165857-11096-1-git-send-email-suzuki.poulose@arm.com> <1525165857-11096-6-git-send-email-suzuki.poulose@arm.com> <20180501131057.GA15706@rob-hp-laptop> From: Suzuki K Poulose Message-ID: <8725a726-0733-b0bc-fcf8-4e22399c0e22@arm.com> Date: Tue, 8 May 2018 16:40:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rob, Mathieu, On 03/05/18 18:42, Mathieu Poirier wrote: > On 1 May 2018 at 07:10, Rob Herring wrote: >> On Tue, May 01, 2018 at 10:10:35AM +0100, Suzuki K Poulose wrote: >>> Document CATU device-tree bindings. CATU augments the TMC-ETR >>> by providing an improved Scatter Gather mechanism for streaming >>> trace data to non-contiguous system RAM pages. >>> >>> Cc: devicetree@vger.kernel.org >>> Cc: frowand.list@gmail.com >>> Cc: Rob Herring >>> Cc: Mark Rutland >>> Cc: Mathieu Poirier >>> Signed-off-by: Suzuki K Poulose >>> --- >>> .../devicetree/bindings/arm/coresight.txt | 52 ++++++++++++++++++++++ >>> 1 file changed, 52 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/arm/coresight.txt b/Documentation/devicetree/bindings/arm/coresight.txt >>> index 15ac8e8..cdd84d0 100644 >>> --- a/Documentation/devicetree/bindings/arm/coresight.txt >>> +++ b/Documentation/devicetree/bindings/arm/coresight.txt >>> @@ -39,6 +39,8 @@ its hardware characteristcs. >>> >>> - System Trace Macrocell: >>> "arm,coresight-stm", "arm,primecell"; [1] >>> + - Coresight Address Translation Unit (CATU) >>> + "arm, coresight-catu", "arm,primecell"; >> >> spurious space ^ Thanks for spotting, will fix it. >> >>> >>> * reg: physical base address and length of the register >>> set(s) of the component. >>> @@ -86,6 +88,9 @@ its hardware characteristcs. >>> * arm,buffer-size: size of contiguous buffer space for TMC ETR >>> (embedded trace router) >>> >>> +* Optional property for CATU : >>> + * interrupts : Exactly one SPI may be listed for reporting the address >>> + error >> >> Somewhere you need to define the ports for the CATU. The ports are defined common to all the coresight components. Would you like it to be added just for the CATU ? >> >>> >>> Example: >>> >>> @@ -118,6 +123,35 @@ Example: >>> }; >>> }; >>> >>> + etr@20070000 { >>> + compatible = "arm,coresight-tmc", "arm,primecell"; >>> + reg = <0 0x20070000 0 0x1000>; >>> + >>> + /* input port */ >>> + port@0 { >>> + reg = <0>; >>> + etr_in_port: endpoint { >>> + slave-mode; >>> + remote-endpoint = <&replicator2_out_port0>; >>> + }; >>> + }; >>> + >>> + /* CATU link represented by output port */ >>> + port@1 { >>> + reg = <0>; >> >> While common in the Coresight bindings, having unit-address and reg not >> match is an error. Mathieu and I discussed this a bit as dtc now warns >> on these. >> >> Either reg should be 1 here, or 'ports' needs to be split into input and >> output ports. My preference would be the former, but Mathieu objected to >> this not reflecting the the h/w numbering. > > Suzuki, as we discuss this is related to your work on revamping CS > bindings for ACPI. Until that gets done and to move forward with this > set I suggest you abide to Rob's request. Ok, I can change it to <1>, as we don't expect any other output port for an ETR. Thanks Suzuki