Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752057AbbG1Wxx (ORCPT ); Tue, 28 Jul 2015 18:53:53 -0400 Received: from mail-bn1on0058.outbound.protection.outlook.com ([157.56.110.58]:27360 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751246AbbG1Wxu (ORCPT ); Tue, 28 Jul 2015 18:53:50 -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; Date: Tue, 28 Jul 2015 15:53:37 -0700 From: =?utf-8?B?U8O2cmVu?= Brinkmann To: Moritz Fischer CC: , , , , , Kumar Gala , Michal Simek , , , linux-arm-kernel , Subject: Re: [RFCv2 1/3] docs: dts: Added documentation for Xilinx Zynq Reset Controller bindings. Message-ID: <20150728225337.GF2650@xsjsorenbubuntu> References: <1437783682-13632-1-git-send-email-moritz.fischer@ettus.com> <1437783682-13632-2-git-send-email-moritz.fischer@ettus.com> <20150728025833.GQ2650@xsjsorenbubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21708.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD022;1:m6UQwt1blZLphoCnAlKv+9+o3rsgHyzHrO3tD7VKERFrhzj1UkAM/ZVFaC/Et/cBAv5a339tcqmZQiCcgWmXNNcKjr0SsMw0NYV3iJf2077I/liZ1Al72+tM1S2Jly314uv1V40Odvbg+A7Z70RrJfS4vzDy2RAltqecOkCxJn81CeFd2PUxF/oPDMtUcSe4NkGn28DACTKrwL9T7CpRrs7SKY6qzZVjf46cpNWzhn78+Eqm6LyntqqNhSDFbeYb/e996VVqjm4ynfp0QvTJVFPZ8xkK+327ka/2BIQL9GtXxbeeX22tRSWgrjVnXFCj X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(24454002)(189002)(199003)(377424004)(377454003)(164054003)(4001350100001)(50986999)(62966003)(36386004)(189998001)(77156002)(83506001)(33656002)(77096005)(33716001)(2950100001)(50466002)(47776003)(110136002)(5001960100002)(46102003)(86362001)(93886004)(106466001)(54356999)(92566002)(63266004)(76506005)(57986006)(6806004)(19580395003)(23676002)(19580405001)(85182001)(87936001)(76176999)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2FFO11HUB035;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11HUB035;2:qs2devS1+qWON1ng+JHVRN23Zd+gmtbY4B6QJZ1/iBNUlfftgT8XiWPRe4XLXgzdJL+WzaaCxmpfu6BQdzde7jO333/JsYjm2h7dUUZYH1wFOJJSORptm3M313+uQducPFi8UVUCyqhXJQUw4ASRNEw0rgQRF4NQpd0iVET56K0=;3:Ptr3zLpQyCiJhOi3bE4tJ85DVPelamFNdQhlE6TGsewCll6AjGgtcl5GnARA9o7uEHo4bY2h4eWIYz91JQkj6/Y85n+L9ZswLm4n62lTBTHtkwoZKK86qYvn8mU2Wwex5nH1xakXzM0SA68BRtmziiREp6JntcpYNLtqoKpY8D1C48i+6kH6zZg8yh+UVR8No1Ptl/UnRLzjvkmY9QmVMrk4B9t2X5W8rZz2Fh/RdnU=;25:OA8IxMQVxfOgSVnb/jLfWbj4gSOgB51qkWa/0moo1XhAEepjqI3QY+P3tVZ+EA6tdOn5XTag6lxsb1pvGQ2xg/EfpohwJRwOTn17fStE6ShP7iujRxEvSXqpvpAffMOrSWEV+Qbz+BQydcbOeQmpNMlYPvCtI5q/WDf/Jzg0zjXcfkzc0qBbfuTjefjk/knw9XTy3Bp1X2boqOSpic8x7EtrSX74tr7SMCq9TSMrfJtftFayAfjSMsLQFSQZU13VxAL/xEkROx8MvLSQ7trAFQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2FFO11HUB035; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11HUB035;20:Un1TZ0p2Np+uRVEQNMJBuxUl82vcQxil3mgZ0mmvn8lIctU4P4TPFki7Q3CJEwHTqhXmYiNE5ZYImzvyYL1Wd1W1q/m6cmwHuhajkmBCc8wtd1BGQOZxa3qfh6iCYUlCucMwTKlC9QIBSyw/6zaxfyVXjW/jg/ZDmA8DnXYMWmrQCWGzDKNsQjNKVp4hjtOOUhRaF6auxb2sIUj/o6rZEYUAIQlNa/0OOA87PXyciiqtLo72381JO/3LsoUaWBf1myrm5AM3wyE4Qi+G2xJHWtWkFffck6kN6UxXwRTi7HuoTAdRG8hUoOHOhxGz/txQ3dTAvB4ARqULDDxfvTuCdpsxj6Bw7PCRN5yxKRt36aqy7SqkBUuwRgJXuHt7laokCIyZpaX3K8s9ypu413zlzuQDr9Qs3pzI98J2NiFZM70cKImfX4qzEfchz9PkmX2beXNdGMznQNgZxu6RYhskrSSDIUGL2xdB5MWgDRhm91ShbQqRFZo0O3wBMFun1MZ/;4:J0HKI6ZQYJwgdV9XVgmMdu3dpRfYACrIhGeWf636l4iXwYzYMI69MhLf5FrEmIfZ4S0pst3FzXjWJlOAjZ9yuh5w3rT1POaQEvZjS/hSD4KQOrjklxbbsKI60A+f0fIHiBMJsy3QRt+I2Efiyzx4QDk3tuBWG8gcM/u8DV4IZvwIAosZrGj5mODTSl9CFjz5W54BkaHTbr4/1/0k9MF6iYLQKo9UlwxRE+x/rB6+du62cJ14GVNwiM/Im2RatYqRh2Y0xuqBW7EjrzuQciXkiLSD9WfT+g6fyMmTyZiwZNc= BY2FFO11HUB035: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BY2FFO11HUB035;BCL:0;PCL:0;RULEID:;SRVR:BY2FFO11HUB035; X-Forefront-PRVS: 06515DA04B X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTJGRk8xMUhVQjAzNTsyMzo3SW0zUSs4NjNuOWdMYktCcEkwc2hEZlY2?= =?utf-8?B?Mk9MQ3krTXIrRCtxb3FGUjBpMGhqNGcxSm54MENpbVExcjFFMGUyRnBuNDBG?= =?utf-8?B?Y2hNdUloYmNld1FkUmhjTGp5VjZ3SGFWTndQS1h6elVFQThpRkRqM05wK1dT?= =?utf-8?B?aU9JUEdpRm90eGdNMWNmNCtqUG9Zb0xrOEt6cXNLQW9aeWo4Uk1PVEZKdTdj?= =?utf-8?B?eWlDK3g0YjZ4SWh5bTNMK0E4bEh1amxHUkYvNzlHSEFraGdXYnBSS3R2SFVB?= =?utf-8?B?cVFMd0tKejY0NU43Q3RTbVhmN01lMEdLZnJtQkhIRHE1VkJPVUl5RFNUUzd1?= =?utf-8?B?eXRHVGVoUld6TWpJV1hWZTl3cVlUTjFCWTFxMnZIcnYrSmh4Ry9CblRkM21Z?= =?utf-8?B?SXlONkV1V2lTRzRJMTRvQXdXNHJEWXZQMFpkbE03WjJPb3p1emtoZXBHUG5D?= =?utf-8?B?T1E4QU1GaU81bzhmNmJQNFpGSnlTZ3VKQkJBNHgybjdNdE9qQldqcWdpVmUz?= =?utf-8?B?YlNLb3djMXJpVWtSczlDaW9iYWlwVXF3Mk9xTGJsRzBDKzZMcDJLSUI5VWdq?= =?utf-8?B?aHpOL01lY3VKenVZYVJXNm5lUVd6SE9VbWl6QzZYRHZYdVVCSUk5TkgzUk55?= =?utf-8?B?SDhEdHRGVTZCeUk2ZkZsdU9nV2tjYm8rOU04ZEl5OWtjNlB2NVpYMm9CTWxP?= =?utf-8?B?UGl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LUq7YI0A==;24:uDnb42QN70Lm2d6mxSEY69LV+IwAPvT8n0/k3wUO7vWZFU2bkG8lOTBpl/9Xs5Q2irEc+ypim+QWeG3p85icmW16EfJGOFCyO83swAc5DDQ= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2015 22:53:48.6732 (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: BY2FFO11HUB035 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3409 Lines: 106 On Mon, 2015-07-27 at 09:52PM -0700, Moritz Fischer wrote: > Hi Sören, > > thanks for your feedback. > > On Mon, Jul 27, 2015 at 7:58 PM, Sören Brinkmann > wrote: > > Hi Moritz, > > > > On Fri, 2015-07-24 at 05:21PM -0700, Moritz Fischer wrote: > >> Signed-off-by: Moritz Fischer > >> --- > >> Documentation/devicetree/bindings/reset/zynq-reset-pl.txt | 13 +++++++++++++ > >> 1 file changed, 13 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/reset/zynq-reset-pl.txt > >> > >> diff --git a/Documentation/devicetree/bindings/reset/zynq-reset-pl.txt b/Documentation/devicetree/bindings/reset/zynq-reset-pl.txt > >> new file mode 100644 > >> index 0000000..ac4499e > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/reset/zynq-reset-pl.txt > >> @@ -0,0 +1,13 @@ > >> +Xilinx Zynq PL Reset Manager > >> + > >> +Required properties: > >> +- compatible: "xlnx,zynq-reset-pl" > >> +- syscon <&slcr>; > >> +- #reset-cells: 1 > >> + > >> +Example: > >> + rstc: rstc@240 { > >> + #reset-cells = <1>; > >> + compatible = "xlnx,zynq-reset-pl"; > >> + syscon = <&slcr>; > >> + }; > > > > I think you also have to add the outputs and make them part of the > > binding. Otherwise you'd have to read the implementation to find > > out what device should be hooked up to which output of the reset-controller. > > Is something like this what you had in mind? I had that prepared for > the next round of patches: > > Reset outputs: > 0 : soft reset > 32 : ddr reset > 64 : topsw reset > 96 : dmac reset > 128: usb0 reset > 129: usb1 reset > 160: gem0 reset > 161: gem1 reset > 164: gem0 rx reset > 165: gem1 rx reset > 166: gem0 ref reset > 167: gem1 ref reset > 192: sdio0 reset > 193: sdio1 reset > 196: sdio0 ref reset > 197: sdio1 ref reset > 224: spi0 reset > 225: spi1 reset > 226: spi0 ref reset > 227: spi1 ref reset > 256: can0 reset > 257: can1 reset > 258: can0 ref reset > 259: can1 ref reset > 288: i2c0 reset > 289: i2c1 reset > 320: uart0 reset > 321: uart1 reset > 322: uart0 ref reset > 323: uart1 ref reset > 352: gpio reset > 384: lqspi reset > 385: qspi ref reset > 416: smc reset > 417: smc ref reset > 448: ocm reset > 512: fpga0 out reset > 513: fpga1 out reset > 514: fpga2 out reset > 515: fpga3 out reset > 544: a9 reset 0 > 545: a9 reset 1 > 552: peri reset Basically, yes. I guess the gaps are due to directly mapping this number to bank and bit instead of doing some more complex mapping in between? I'm not sure whether I like this :) I guess if a number is off the driver would still toggle the addressed bit? I'm not sure, is it worth to do some explicit mapping from logical outputs to a physical reset? It seems it would be a little safer since it would be easy to check that the addressed reset is valid and there wouldn't be any reserved/invalid bits be toggled. Also, it would make the outputs in here a continuous series of numbers without these gaps. Not sure though whether it's worth the additional complexity in the implementation. Thanks, Sören -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/