Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752456AbcJCNa5 (ORCPT ); Mon, 3 Oct 2016 09:30:57 -0400 Received: from mail-cys01nam02on0048.outbound.protection.outlook.com ([104.47.37.48]:43744 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751260AbcJCNar (ORCPT ); Mon, 3 Oct 2016 09:30:47 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Date: Mon, 3 Oct 2016 06:30:19 -0700 From: =?utf-8?B?U8O2cmVu?= Brinkmann To: Muhammad Abdul WAHAB CC: Rob Herring , Mark Rutland , Russell King , Michal Simek , , , Subject: Re: [PATCH] Adding Support for Coresight Components on Zynq 7000. Message-ID: <20161003133019.GF7630@xsjsorenbubuntu> References: <20160929143411.GE16583@xsjsorenbubuntu> <920cac6c-e56a-60d5-4882-22892058346d@supelec.fr> <20160930165325.GA7630@xsjsorenbubuntu> <5b56a00a-ac69-b15d-1155-bab53ed766f3@supelec.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5b56a00a-ac69-b15d-1155-bab53ed766f3@supelec.fr> User-Agent: Mutt/1.5.24 (2015-08-30) X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-22612.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(199003)(45984002)(189002)(377424004)(24454002)(86362001)(6666003)(586003)(7846002)(85202003)(106466001)(19580395003)(47776003)(57986006)(63266004)(87936001)(305945005)(33716001)(76506005)(356003)(15975445007)(50466002)(77096005)(85182001)(4326007)(2906002)(1076002)(93886004)(83506001)(189998001)(6916009)(2950100002)(92566002)(23676002)(4001350100001)(8936002)(9786002)(9686002)(33656002)(110136003)(8676002)(626004)(50986999)(54356999)(76176999)(81156014)(2870700001)(36386004)(81166006)(5660300001)(18370500001)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0201MB1578;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;PTR:unknown-60-83.xilinx.com;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT051;1:XiQ97KXX+5Xh6fB/dav0tQEsz13Ph5mwaNI3Fj8kasGzn0lU43qIuW3miIDrvEf+yYG9eYvzpczajXiJm2SM3Y4dwr7eAM9Qq8HHcY7VqQuViJPykh9iK8goWDuuCXBLs3soxhgsQDftyw77hH/XCoA4BgvRO0YlzzzGr941q7ZZXm2VaeZoNPuVufeI2Mzgp4+vnBYkWFe2DlYZ6s6JDGOAVQTRNG9tdb2gexPtTSkik1eI4FmqVX+qDR4jHeu5QdH5foe6EHwndIm1+z1hrPFckO/WU+lbaj6lhMK6/VY8CNX51ykOoi2mO9VHoxBTn1dn3Qb+7xtTZ8zcRIjw5/3FNVsupjAaX0bMKMLvv5GgYb0IDXYWLX+WRCZzHhrIGobMqOorUnqT/2+bE7ImrK+RtInNk6HGaTN8+SMOEMlSciKELwSSWHkLQNXx554+RxmGLV88bD88KkPG2UbcxpY3l8FVde1K3t3XX/gkkVP2p0wAbqIPRC8+UacvnE1261cjsNkUku34EFNRLCd7iu+ihWEQ0hE69BAKLic3Q7FSMtyszFi1Xnxi8d19672c5ZyTzZgGTb8askhZStfGMxC80XRkIMLT5zEzZ0Bt+HZP++pDGUL/b2K/pOQ8jY/N X-MS-Office365-Filtering-Correlation-Id: 97347612-d588-43ea-746f-08d3eb917a77 X-Microsoft-Exchange-Diagnostics: 1;CY1PR0201MB1578;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66Nycr9LcCHegwm37VBHlWDy34FBbA8Rgx9uR/ZaZVZF6Byx/0Ai6EMTN6Auh4EUE4A9YBxjAHPLQIqAV9I78RKZAUpMN7SHU66ww9RBaJAYAHgXJpKRO7xvCx5HeCR1knuLnf2UDvt7vsX1saUOTjd6boetb+3VbCBCSCIxio+h4UD9e79W0cE/9da2dWmzJnTWLlZQ+a+fAFFIkRXw7gmsyLv5lhZBSTd5Rey9Ea6GeYyr6mkrfXZh9del3Vk;20:Le5plUd9nPb3qYxP2i9Aw8Kr3Wj1XgNnjeKzpeR/HLge/lykdMcKbpDPfoC4ItUIIQN6BZNHQyFB76q9C4PgobAAa8NvcoNUSqby3wB2d1czaoGu1uYC71hq9Z4hQBDmfv84q1nlB5vHiRTzzIOfdyu+VxqumS4x4yX+lJ8HmccZhwEW7QsbP2nt394oRKKZpvc5Z/8zx3rraqr4R8DhAXRZmtaKyuk+InJUcYii+dbCrbMjBwfpCVBYmclP3sRI6oIYRAcki+sWBUvcWKS98K0pnF1oamRNvsaYLRcIV/RqW8aBsLy3p63+PVcHULSBYjRPFvDDMSV/GTXs9afyz4bN00QS/IS1Y4lfwn5PKGV1M/GJoYNnxRMN1tDdmxUoLWL55dKUDCniv3zznTVuiZnW/S5D9nG4nWEb3nipB4NWWf6Hs8K9LGdXN5LY6qdD2aM8lwu4P0RFv9Y1NswyB8IufabbExAs9lbtmF0+JWLlGOOWwKlmNtqN5V3V8/sD X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(70909801108024)(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(13023025)(13018025)(13024025)(13017025)(13015025)(8121501046)(5005006)(3002001)(10201501046)(6055026);SRVR:CY1PR0201MB1578;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0201MB1578; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0201MB1578;4:wncxmUfoFOAXpM4HnDGfr2rpd8GmlAcXMYb+98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RkftjDL0af7GTW0Ie7l+M9eKecBvVmfOdOLFyoROTu5Z52yKTEtW2sVS4dAgQERaTZtW2K1wNZqacEo10A2irTE8zMPzxCoGhs75lPa0ieoQ2FczI=;24:gchfOnqL/dC4XaeFnnjMBVd5brWXnX6L9aXXy9I5OIKYMZ7XyA53FkkVbBsm9JwWPujTRWZEzWwsQfIVma4xOOY+7ojDQwc3eDdqNJPa2jE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR0201MB1578;7:wib8BxEC5bc/bAPBfBcfabMgFYx9yYhOWHiYF8wcoKVIOyr7ckbKEPILscJq3N+1O85GHlmfT8iCjVGsNaRDiO5R1Wfwh7g4QH/Zek/rihZMvhKcurzlX12xiGyFa7fFDBHBMZ3A6K2mbqFwi3cCRUypd6ICNNq+GKBBqgs60Pt/7xf6fU2pZh5r7HrkLpUihCLSFKGTYYfOFEqjOBt6MM5rutVKPgCi+LNEPN6YRkTFrirBFr6dOqsch8F86ZB60Jpcea2HmsIiONt+e8eB3ZUtEt7Ut9N+YQnvITruRBpi3jMZ0l+4sKhq1hFUynYoaBXFDXckaeucuTNJ8gEeKA== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2016 13:30:41.9461 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0201MB1578 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2671 Lines: 60 Hi Muhammad, On Mon, 2016-10-03 at 14:56:16 +0200, Muhammad Abdul WAHAB wrote: > Hi Sören, > > > I tried to refresh my Zynq knowledge a bit. The clkc provides the > > dbg_trc clock, and that is the clock you need (not fclk). I couldn't > > find it in the binding (I guess I messed that up), but apparently, > > you can provide a 'trace_emio_clk' as input to the clkc node in the > > Zynq DT. Then, with the muxes correctly configured (FSBL should do > > that if you select the EMIO trace clock in Vivado), the dbg_trc > > output of the clkc should be that EMIO clock. And the dbg_trc output > > of the clkc is what should be consumed by the tpiu node. Though, as > > I see it the binding/driver for the TPIU do not support that. > > > > I.e. > > In the clkc description you'd have to add 'trace_emio_clk' to the > > clock-names property together with a matching reference in the 'clocks' > > property. As this change would be specific to local setups, this is not > > really appropriate for upstream. > > > > Then, for the trace clock, ideally the TPIU would consume and enable it > > as needed. > > Thank you very much for this. I will have a look into it. > Below is the patch without TPIU, is it possible to submit it ? I will submit > the TPIU part very soon once I manage to get it working. Sounds good. AFAICT, the change below should be OK. Probably some stylistic changes to make it blend in with the rest of the DT (e.g. use lower case characters in the address parts of the node name). > > > Unfortunately, this is not how it works. The DT bindings are not a > > recommendation. The DT description must follow the binding, otherwise > > drivers will not work correctly, or best case, just ignore what you put > > there. > > Thanks. The idea of including TPIU part was to get feedback as I am far from > being an expert on DT. > > > As I don't see this in the coresight binding, I doubt that it has any > > effect or should be here. > > That's what I was thinking also. I will re-look into TPIU part and send it > soon. Besides, if I want to ask you a question regarding TPIU or DT, can I > contact you alone or should I keep sending it to all the CS/DT maintainers ? I'd say that depends on what it is about. If it is about DT and the TPIU Linux driver, I'd say, keep it on list and probably even include the authors of that driver (the folks the get_maintainers script is identifying for that driver). If it's specific to Zynq, the Xilinx forums can be quite helpful as there are a lot of people familiar with the device (https://forums.xilinx.com/t5/Embedded-Linux/bd-p/ELINUX). But when in doubt, feel free to reach out to me directly. Sören