Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4448737imm; Mon, 14 May 2018 07:43:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoLpm7Gb2Fv3STJIm+P9oCIx3DxLb9iH25zadKdPpb4C9gYPZ98HBXQKBEtTQNllA9fb1V8 X-Received: by 2002:a17:902:b78a:: with SMTP id e10-v6mr10429134pls.260.1526309023105; Mon, 14 May 2018 07:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526309023; cv=none; d=google.com; s=arc-20160816; b=hTHzCxGbiWeGYTTDTQm1sK2MHUuqa5tdb/xis/5e1c7evxMPAm78TlXDo/HyZZ9kJe ok5Q70xcLdCvNJYG4eZOilq5wllHCataTRJeUa/NiaXEzVN+x4qwXSEXqq5bigwmK3MH vnF0iD7fGiyO82NF50NHM5TDhIkJanY22ru+CajPo5C3TajJ1saQOcshMyubaQ3cnCyg 8KnrRnHbE6hyqaPKWUrNo0WxpEzIEJjr2Xzy4cBEWMkPFIH+LoOdr57I+T4FsbgpMNGl ZAPOod1K7ucQ+J7qNvo60GLw4lrhdCtokkI6gyCpzuwpnlVh4arfRJCSSeEDv1nj4Hqr JpzQ== 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=arlnE5GK1jk+wtzXjZrgHWMuJAPBd96e8U8/qTgjfLw=; b=SnKd4cfSv8TuitQFLNNgjILZdo1xtHniaAbYMbjYlqFhn5FR9JONWITnwV3nAjDhAF lv6k3onmqiWj74zPa+G11dbTmUz3uMvn4VlNjMEUEPsyXglZ55NtstIwG3KbmHXSUhFP OqBUYhrx+nRh7re4VnivyyAA7k2cYOJpCQ0um1ouPbchudheQfMcEaZb6FOqfzP6jeBY R7FERuAWWN/DgpWE6C4hzDB6mZ7V1v5pnpeP3jRc9AFAnY/HK42/tij6zagCueO2t2oR K5CJ3G7g8ECDddd7LU6IcLSTMpICN91D1Rgf/0UeAp8TyS6Ryiedi0NPzScAoPuTuGxw l/FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H+7NqzV5; 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 h131-v6si9193014pfc.206.2018.05.14.07.43.26; Mon, 14 May 2018 07:43:43 -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=H+7NqzV5; 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 S932310AbeENOmd (ORCPT + 99 others); Mon, 14 May 2018 10:42:33 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:45434 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752407AbeENOmb (ORCPT ); Mon, 14 May 2018 10:42:31 -0400 Received: by mail-pg0-f67.google.com with SMTP id w3-v6so5577267pgv.12 for ; Mon, 14 May 2018 07:42:31 -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=arlnE5GK1jk+wtzXjZrgHWMuJAPBd96e8U8/qTgjfLw=; b=H+7NqzV5BJl3oxRuoJiMa2jfb0bydgj+dq1byY+N+wJ72tHhmAoKUx0/uwlFoF1upD rDEb/ZjDqCbFonqYqtJuwxusdIXMFhiHuVGPCd9RacYcEP+cXDfxsxitNSww8TqIaBoi pl2peyLxMRdcEQ9Qa1xwAtMtjLST9B5lq+gc4= 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=arlnE5GK1jk+wtzXjZrgHWMuJAPBd96e8U8/qTgjfLw=; b=Nm/47qofa5UByxYbxklKKoA+RM86tocevDC378Nb9lQeSBXnDKs+yfAyAYUDDh2wFF pDoicxVwOYqUCTxm4F8nW7bYKo/lQ5gqGP35AiSwvsPjr/cV7AiSIkl8Uf4T1Z9fnxs8 xwZ/k5SKijQoAOlvjKtHttrtMCmBtfcs6zhTMrwIobgL6XlO+TTmiasBzI9ArI4iqMyl y331VtzrfUxj5HCVR9TR9aEiyunyI2KaBIJLdJZ6vjnCVPl81VrFJug8wHGGL9Wyhjt7 s6Lg1dz8loqYb7Cghm1rwpSmk0u/C2a1pEkSyCxjK0pm4ew2dPm38P57ft1g5rGVSK/i 9GIA== X-Gm-Message-State: ALKqPwdsCdOacpa5VWY+jl/vCmJTRx+kXzOIQEsvWm+S3KvO5sFVpgBx 3xj9T4KC3747IQQXLTDcDjULFw== X-Received: by 2002:a63:8c55:: with SMTP id q21-v6mr8959028pgn.314.1526308950695; Mon, 14 May 2018 07:42:30 -0700 (PDT) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id w19-v6sm13517699pgv.59.2018.05.14.07.42.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 May 2018 07:42:29 -0700 (PDT) Date: Mon, 14 May 2018 08:42:27 -0600 From: Mathieu Poirier To: Rob Herring Cc: Suzuki K Poulose , 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 Subject: Re: [PATCH v2 05/27] dts: bindings: Document device tree binding for CATU Message-ID: <20180514144227.GA23293@xps15> 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> <8725a726-0733-b0bc-fcf8-4e22399c0e22@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Fri, May 11, 2018 at 11:05:56AM -0500, Rob Herring wrote: > On Tue, May 8, 2018 at 10:40 AM, Suzuki K Poulose > wrote: > > > > > > 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 ? > > Yeah, that's probably how we got into this problem with the port > numbering in the first place. > > > >>>> 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. > > Better let Mathieu confirm he's okay with the first option because he > wasn't okay with changing the port reg when we discussed. But maybe > that was just on existing things like TPIU. I'm good with this one as it is a new component and doesn't change anything that people could be relying on. > > Rob