Received: by 10.223.185.116 with SMTP id b49csp5599869wrg; Wed, 7 Mar 2018 14:48:42 -0800 (PST) X-Google-Smtp-Source: AG47ELsXQfT2wEWyBcpkFPgPcNWAW9IVgHaGKDGgyN8a3/h6PeQcDxwZ++1vPctYf+Msh+DybG3q X-Received: by 2002:a17:902:4025:: with SMTP id b34-v6mr21918716pld.359.1520462922369; Wed, 07 Mar 2018 14:48:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520462922; cv=none; d=google.com; s=arc-20160816; b=sUluxRRW1uenFuPKDSVmVXBff31CrWbaN81HkGSHhIHv9JZesynNf7pcBgvQ7t01MZ MKWrxI4I9lu5IMTk6vY3q48wlQbGwrnYewYSznLNxVNKiz92aIPyM5oDe9YuE7sA0eT+ EWk147MuqRwLjU5iuhzwzOiTyhi7VLflTA+3U7r7u1OCCHNfUfKkO9MAM/WN9VZfZxHo ctAVMas+t2B3xfi2JG941PQIva6ZH/SPTPKZuMcJMZ3TV9D1/DywwvQF/0S0shQYPOZu ktYIMLEhldxM93ytZ4k89aWWml7HhkMo6mTNxLFRy/iaNfgZRQHbtwV10N6mTicmMGz7 qHHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=pCLe5y8T2wxsHb5UGuWtIV+E4OLxVCkLyb2+VcG1XXk=; b=Vv0dM8iu2vwEA6ex7Zv3mybKjFA3Ze3+37uydJq1L5C7dmcOV6Ysfc0ZUmoaKl82H6 pIvtUtyDAK/vx2fD72hEcNCcIaKwZZHQmHzir+9c6sb3HMXhPSfW2qu4tB6kTOpK8Xo4 4HeNpalj15LjgjILQAACrxlq2oFKTfzPNrFIjmUa2IQI/FagjxRpGJX5O672F2E/aPAQ f0bz66mCYtttg6T9rLuiY6suQFqHuoyZGSlkEaETO8W5DMNLfomWbxEPGOaDQgaK56zY urHH1VOrUo8ktYIuf+DokiyEH/OBwarpZ9ge9rIL+yWio01FV8zRSVlzY8zGNIpHt7qh eeLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=Ydka87jD; 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 u3-v6si13554254plz.494.2018.03.07.14.48.27; Wed, 07 Mar 2018 14:48:42 -0800 (PST) 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=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=Ydka87jD; 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 S934289AbeCGWrR (ORCPT + 99 others); Wed, 7 Mar 2018 17:47:17 -0500 Received: from mail-co1nam03on0086.outbound.protection.outlook.com ([104.47.40.86]:24478 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933533AbeCGWrP (ORCPT ); Wed, 7 Mar 2018 17:47:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pCLe5y8T2wxsHb5UGuWtIV+E4OLxVCkLyb2+VcG1XXk=; b=Ydka87jDpSrSuMCZGRBjEwFP6nQIbE8kjNx/W9wdu4gszNE8wFi+v3yfy5FZp8n99Asx+kBaGxXV91aRvPhAQp0UQQvHt9uIkshsoNWaeTzLvMdif3l4SHLUIAhY+48COw9b03m0ys+r/TgnXWijWfrbCbBuD8BFMdsMcONbQpE= Received: from DM2PR0201MB0767.namprd02.prod.outlook.com (10.160.95.13) by DM2PR0201MB0782.namprd02.prod.outlook.com (10.160.95.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 7 Mar 2018 22:47:11 +0000 Received: from DM2PR0201MB0767.namprd02.prod.outlook.com ([fe80::91cd:1490:321b:1ebd]) by DM2PR0201MB0767.namprd02.prod.outlook.com ([fe80::91cd:1490:321b:1ebd%13]) with mapi id 15.20.0567.012; Wed, 7 Mar 2018 22:47:08 +0000 From: Jolly Shah To: Rob Herring CC: "mturquette@baylibre.com" , "sboyd@codeaurora.org" , "michal.simek@xilinx.com" , "mark.rutland@arm.com" , "linux-clk@vger.kernel.org" , "devicetree@vger.kernel.org" , Shubhrajyoti Datta , "linux-kernel@vger.kernel.org" , Rajan Vaja , "linux-arm-kernel@lists.infradead.org" Subject: RE: [PATCH 2/3] dt-bindings: clock: Add bindings for ZynqMP clock driver Thread-Topic: [PATCH 2/3] dt-bindings: clock: Add bindings for ZynqMP clock driver Thread-Index: AQHTsONzi5kT5xZmx0aJGWwSpBvQuKPCd+2AgALw7dA= Date: Wed, 7 Mar 2018 22:47:08 +0000 Message-ID: References: <1519856861-31384-1-git-send-email-jollys@xilinx.com> <1519856861-31384-3-git-send-email-jollys@xilinx.com> <20180306014549.6t3ae5adzc3cpi5v@rob-hp-laptop> In-Reply-To: <20180306014549.6t3ae5adzc3cpi5v@rob-hp-laptop> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=JOLLYS@xilinx.com; x-originating-ip: [149.199.62.254] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM2PR0201MB0782;7:yt218QlVbqaTHCCTgS1g0k/9BB4RVyfewUHdBVr2skOLURjUf0GIPhEInd48OXNN4e6hcvP0fdcjcxUmJq8YrXhVROjXce0wddS+UR9vG367loS0Avr33ybYpAv3vxlR63mVTT1Tj82x9CGJEi17y8HRxrxRWQiuhM9Z7s9s5NeFixUtn7PHNC98XWOlC6evUWfZ8Mn2gUCtw5ms83FgwgqkQ/UCzdjSFFA1N2H0QkfOS73aNvG9WlAxtaP7aupb x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(346002)(376002)(396003)(366004)(39860400002)(39380400002)(13464003)(199004)(189003)(102836004)(81156014)(74316002)(81166006)(3660700001)(68736007)(8676002)(26005)(105586002)(7696005)(8936002)(186003)(33656002)(14454004)(99286004)(7736002)(3846002)(76176011)(6116002)(106356001)(4326008)(59450400001)(5250100002)(2900100001)(86362001)(2906002)(25786009)(6246003)(53936002)(316002)(53546011)(54906003)(305945005)(6506007)(97736004)(3280700002)(478600001)(1720100001)(5660300001)(6916009)(229853002)(6436002)(55016002)(66066001)(966005)(72206003)(9686003)(6306002)(2950100002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR0201MB0782;H:DM2PR0201MB0767.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 56f0ca87-90b6-4ae0-be05-08d5847d5bb4 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DM2PR0201MB0782; x-ms-traffictypediagnostic: DM2PR0201MB0782: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(9452136761055)(258649278758335)(192813158149592); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231220)(944501244)(52105095)(93006095)(93001095)(6055026)(6041288)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM2PR0201MB0782;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0201MB0782; x-forefront-prvs: 0604AFA86B received-spf: None (protection.outlook.com: xilinx.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: UwOZyCtXLHiCmVhifHLMpKzGvvIZWXgL0cKlvqmxaMvb0OL+ycm0jVXgZJdwBQ8AyFsfH0LamAGoMYAwL/XAiSb0ceJHI/mRNYwtMH4iL08UzHjfijmUzOcYS3/b8pSL/Hn1sEIyNMNp1CbRZHLoV6EQjLSTIWeS+R08c7/tMReztPj4f1yPVWExDOTpuzq1hyDx+0yvcDZ6j13S35xSUsdoXnDRNc50uH6T2OpnCpNz9IjtbL4wfC4vOnu8RtBawVDZdfEkCFWLA9GCNwr6mL2ssPKrIatxTlJV3QQqcEl/+q6Sdywf5+Rv+hcs32gZaF4VUUNGURffxsICwko3XA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-Network-Message-Id: 56f0ca87-90b6-4ae0-be05-08d5847d5bb4 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2018 22:47:08.4174 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0201MB0782 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, > -----Original Message----- > From: Rob Herring [mailto:robh@kernel.org] > Sent: Monday, March 05, 2018 5:46 PM > To: Jolly Shah > Cc: mturquette@baylibre.com; sboyd@codeaurora.org; > michal.simek@xilinx.com; mark.rutland@arm.com; linux-clk@vger.kernel.org; > devicetree@vger.kernel.org; Shubhrajyoti Datta ; lin= ux- > kernel@vger.kernel.org; Jolly Shah ; Rajan Vaja > ; linux-arm-kernel@lists.infradead.org > Subject: Re: [PATCH 2/3] dt-bindings: clock: Add bindings for ZynqMP cloc= k > driver >=20 > On Wed, Feb 28, 2018 at 02:27:40PM -0800, Jolly Shah wrote: > > Add documentation to describe Xilinx ZynqMP clock driver bindings. > > > > Signed-off-by: Jolly Shah > > Signed-off-by: Rajan Vaja > > Signed-off-by: Shubhrajyoti Datta > > --- > > .../devicetree/bindings/clock/xlnx,zynqmp-clk.txt | 163 > > +++++++++++++++++++++ > > 1 file changed, 163 insertions(+) > > create mode 100644 > > Documentation/devicetree/bindings/clock/xlnx,zynqmp-clk.txt > > > > diff --git > > a/Documentation/devicetree/bindings/clock/xlnx,zynqmp-clk.txt > > b/Documentation/devicetree/bindings/clock/xlnx,zynqmp-clk.txt > > new file mode 100644 > > index 0000000..d590330 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/clock/xlnx,zynqmp-clk.txt > > @@ -0,0 +1,163 @@ > > +Device Tree Clock bindings for the Zynq Ultrascale+ MPSoC > > + > > +The Zynq Ultrascale+ MPSoC has several different clk providers, each > > +with there own bindings. > > +The purpose of this document is to document their usage. > > + > > +See clock_bindings.txt for more information on the generic clock bindi= ngs. > > + > > +=3D=3D Clock Controller =3D=3D > > +The clock controller is a logical abstraction of Zynq Ultrascale+ > > +MPSoC clock tree. It reads required input clock frequencies from the > > +devicetree and acts as clock provider for all clock consumers of PS cl= ocks. >=20 > Umm, the clock controller should correspond to a h/w block, not a "logica= l > abstraction of the clock tree". >=20 Will correct description in next version. > > + > > +Required properties: > > + - #clock-cells : Must be 1 > > + - compatible : "xlnx,zynqmp-clk" > > + - clocks : list of clock specifiers which are external input clocks t= o the > > + given clock controller. Please refer the next section to find > > + the input clocks for a given controller. > > + - clock-names : list of names of clocks which are exteral input clock= s to the > > + given clock controller. Please refer to the clock bindings > > + for more details > > + > > +Input clocks for zynqmp Ultrascale+ clock controller: > > +The Zynq UltraScale+ MPSoC has one primary and four alternative > > +reference clock inputs. > > +These required clock inputs are the > > + - pss_ref_clk (PS reference clock) > > + - video_clk (reference clock for video system ) > > + - pss_alt_ref_clk (alternative PS reference clock) > > + - aux_ref_clk > > + - gt_crx_ref_clk (transceiver reference clock) > > + > > +The following strings are optional parameters to the 'clock-names' > > +property in order to provide an optional (E)MIO clock source. > > + - swdt0_ext_clk > > + - swdt1_ext_clk > > + - gem0_emio_clk > > + - gem1_emio_clk > > + - gem2_emio_clk > > + - gem3_emio_clk > > + - mio_clk_XX # with XX =3D 00..77 > > + - mio_clk_50_or_51 #for the mux clock to gem tsu from 50 or 51 > > + > > + > > +Output clocks for zynqmp Ultrascale+ clock controller: > > +Output clocks are registered based on clock information received from > firmware. > > +Output clock indexes are mentioned below: > > + > > +Clock ID: Output clock name: > > +------------------------------------- >=20 > These go in header definition, not here. Sure. Will move them. >=20 > > +0 iopll > > +1 rpll > > +2 apll > > +3 dpll > > +4 vpll > > +5 iopll_to_fpd > > +6 rpll_to_fpd > > +7 apll_to_lpd > > +8 dpll_to_lpd > > +9 vpll_to_lpd > > +10 acpu > > +11 acpu_half > > +12 dbf_fpd > > +13 dbf_lpd > > +14 dbg_trace > > +15 dbg_tstmp > > +16 dp_video_ref > > +17 dp_audio_ref > > +18 dp_stc_ref > > +19 gdma_ref > > +20 dpdma_ref > > +21 ddr_ref > > +22 sata_ref > > +23 pcie_ref > > +24 gpu_ref > > +25 gpu_pp0_ref > > +26 gpu_pp1_ref > > +27 topsw_main > > +28 topsw_lsbus > > +29 gtgref0_ref > > +30 lpd_switch > > +31 lpd_lsbus > > +32 usb0_bus_ref > > +33 usb1_bus_ref > > +34 usb3_dual_ref > > +35 usb0 > > +36 usb1 > > +37 cpu_r5 > > +38 cpu_r5_core > > +39 csu_spb > > +40 csu_pll > > +41 pcap > > +42 iou_switch > > +43 gem_tsu_ref > > +44 gem_tsu > > +45 gem0_ref > > +46 gem1_ref > > +47 gem2_ref > > +48 gem3_ref > > +49 gem0_tx > > +50 gem1_tx > > +51 gem2_tx > > +52 gem3_tx > > +53 qspi_ref > > +54 sdio0_ref > > +55 sdio1_ref > > +56 uart0_ref > > +57 uart1_ref > > +58 spi0_ref > > +59 spi1_ref > > +60 nand_ref > > +61 i2c0_ref > > +62 i2c1_ref > > +63 can0_ref > > +64 can1_ref > > +65 can0 > > +66 can1 > > +67 dll_ref > > +68 adma_ref > > +69 timestamp_ref > > +70 ams_ref > > +71 pl0_ref > > +72 pl1_ref > > +73 pl2_ref > > +74 pl3_ref > > +75 wdt > > +76 iopll_int > > +77 iopll_pre_src > > +78 iopll_half > > +79 iopll_int_mux > > +80 iopll_post_src > > +81 rpll_int > > +82 rpll_pre_src > > +83 rpll_half > > +84 rpll_int_mux > > +85 rpll_post_src > > +86 apll_int > > +87 apll_pre_src > > +88 apll_half > > +89 apll_int_mux > > +90 apll_post_src > > +91 dpll_int > > +92 dpll_pre_src > > +93 dpll_half > > +94 dpll_int_mux > > +95 dpll_post_src > > +96 vpll_int > > +97 vpll_pre_src > > +98 vpll_half > > +99 vpll_int_mux > > +100 vpll_post_src > > +101 can0_mio > > +102 can1_mio > > + > > +Example: > > + > > +clk: clk { > > + #clock-cells =3D <1>; > > + compatible =3D "xlnx,zynqmp-clk"; >=20 > How do you control the clocks? Clocks are controlled by a dedicated platform management controller. Above = clock ids are used to identify clocks between master and PMU. >=20 > > + clocks =3D <&pss_ref_clk>, <&video_clk>, <&pss_alt_ref_clk>, > <&aux_ref_clk>, <>_crx_ref_clk>; > > + clock-names =3D "pss_ref_clk", "video_clk", > "pss_alt_ref_clk","aux_ref_clk", "gt_crx_ref_clk" > > +}; > > -- > > 2.7.4 > > > > > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel