Received: by 10.192.165.156 with SMTP id m28csp1116071imm; Mon, 16 Apr 2018 14:29:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx48y1+YoweZFmCrKi2sV6ivlMaCOgsDxKkFptPtmxbcUFaxM0GGasAyBQCHW1qwLjHM+MOFu X-Received: by 10.101.87.201 with SMTP id q9mr14499615pgr.215.1523914177561; Mon, 16 Apr 2018 14:29:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523914177; cv=none; d=google.com; s=arc-20160816; b=wZFpOdTxFyJ/nmg6n9WNRnk//A+nFPF2A337mlCVwr9GEzzh6F8eo6GR27obX2J01v +sQCshBFjtytHfTeK+TovPF5aDHpY/9p+kg0CNPy1nWz7aE8T0bIHT8xrgyEyle/HfLn 5PzXnXxxk0wCJ8UwCvL3yxieWUtZ86RdDkyRlly68YDjt2fRVoR7mDmpLgz5Jtj/sMP3 ZW+JjoEWn1+1nptsVRCf+lrOQ3U39Ph8whQ+g3AXsfze0/FPgLIuAtCDvlYAGKToRyCw SC+EqSVxvaC/PpxQ/lxj6w6hvLn0Jm72upiCYbh3bmmd81daBlouyGHmSRWQ0Dd2rm+C GUdQ== 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:arc-authentication-results; bh=T4xdeoEYQ80F95dRAon1aJH93hWkTPzim01gPeyEbyU=; b=C5wyJZG4GP80j+ZP7tIbQFdNCM+m9il/uwe9RvB8iqruAG9rHLQ+faFw7nzPjHySn3 6vUq/UQv/m3VHqKMZJbOa2xnElGcwxXP6SB48oN4KubhrdnNCMtv4l/HLXoM9PWqMxaj pdEFj3z3QdGl0poCOSRUE2l/2EypbFWaWCoPMKq31ztGMr7LtkC68FDDSPokk4NHTW0J /3y0rUWPWEa0RTA4XnCtFFFhm1nWuJEK09DKu9No4RQLuogbDwAD1iveVN/NwVFrpnsD /ClJCs5q6d/i49wi8VufM6iih6MWeURCa8JT4AUAkpQO16bpkGrkCx/b+ckZoAiyf1oF el+A== 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 b8si4180466pff.136.2018.04.16.14.29.23; Mon, 16 Apr 2018 14:29:37 -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 S1752609AbeDPV2Q (ORCPT + 99 others); Mon, 16 Apr 2018 17:28:16 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:45604 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751107AbeDPV2O (ORCPT ); Mon, 16 Apr 2018 17:28:14 -0400 Received: by mail-ot0-f194.google.com with SMTP id w4-v6so112609ote.12; Mon, 16 Apr 2018 14:28:14 -0700 (PDT) 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=T4xdeoEYQ80F95dRAon1aJH93hWkTPzim01gPeyEbyU=; b=G8QVOcntiKbMlHjoGEHKA5eoq9HyFyFygDHfhqnMdbSdiiILn4S6KWTeSdt2Yc8OWB CZTuwPWe9etCuS8xMStuAo83xeiKU0Y82oyv84Elhdc2qpYJMlHaTccoNorkLBdfSIH/ ErLs9+aqWr5LmiHLKQc1fTCD6w8cWu6AyKD2sSfahxRlIz2ItmviJidnpb4QOb2hr2s4 aUXk/3PtlLeAsGHF5OOtgSM9dOexPuTj2BRpbCOtecmOpbEtli78GcrUEDU1+F730i58 Z5gKjCueJsjhbpneJOnkRaqhjZvbPT1knij3z+z0dRKfSqD8yUusbfNvdgcVooKcjYxY vKdQ== X-Gm-Message-State: ALQs6tCSse9WSdOa7Hcy1cUNGSdFDQji838yjkaN4CgAk4UfXSXDsXby 909RU9NQjSa58h/xn6js/A== X-Received: by 2002:a9d:3818:: with SMTP id i24-v6mr12096347otc.325.1523914093797; Mon, 16 Apr 2018 14:28:13 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id h1-v6sm8135574otg.21.2018.04.16.14.28.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Apr 2018 14:28:13 -0700 (PDT) Date: Mon, 16 Apr 2018 16:28:12 -0500 From: Rob Herring To: Jolly Shah Cc: ard.biesheuvel@linaro.org, mingo@kernel.org, gregkh@linuxfoundation.org, matt@codeblueprint.co.uk, sudeep.holla@arm.com, hkallweit1@gmail.com, keescook@chromium.org, dmitry.torokhov@gmail.com, mturquette@baylibre.com, sboyd@codeaurora.org, michal.simek@xilinx.com, mark.rutland@arm.com, linux-clk@vger.kernel.org, rajanv@xilinx.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jolly Shah Subject: Re: [PATCH v6 10/11] dt-bindings: clock: Add bindings for ZynqMP clock driver Message-ID: <20180416212812.abmxy23r5peiwbik@rob-hp-laptop> References: <1523389127-14243-1-git-send-email-jollys@xilinx.com> <1523389127-14243-11-git-send-email-jollys@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1523389127-14243-11-git-send-email-jollys@xilinx.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 12:38:46PM -0700, Jolly Shah wrote: > From: Rajan Vaja > > Add documentation to describe Xilinx ZynqMP clock driver > bindings. > > Signed-off-by: Rajan Vaja > Signed-off-by: Jolly Shah > --- > .../firmware/xilinx/xlnx,zynqmp-firmware.txt | 53 ++++++++++ > include/dt-bindings/clock/xlnx,zynqmp-clk.h | 116 +++++++++++++++++++++ > 2 files changed, 169 insertions(+) > create mode 100644 include/dt-bindings/clock/xlnx,zynqmp-clk.h One nit, otherwise: Reviewed-by: Rob Herring > > diff --git a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.txt b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.txt > index 1b431d9..ee8d0b0 100644 > --- a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.txt > +++ b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.txt > @@ -17,6 +17,53 @@ Required properties: > - "smc" : SMC #0, following the SMCCC > - "hvc" : HVC #0, following the SMCCC > > +-------------------------------------------------------------------------- > +Device Tree Clock bindings for the Zynq Ultrascale+ MPSoC controlled using > +Zynq MPSoC firmware interface > +-------------------------------------------------------------------------- > +The clock controller is a h/w block 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 clocks. > + > +See clock_bindings.txt for more information on the generic clock bindings. > + > +Required properties: > + - #clock-cells: Must be 1 > + - compatible: Must contain: "xlnx,zynqmp-clk" > + - clocks: List of clock specifiers which are external input > + clocks to the given clock controller. Please refer > + the next section to find the input clocks for a > + given controller. > + - clock-names: List of clock names which are exteral input clocks > + 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: > + - 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 = 00..77 > + - mio_clk_50_or_51 #for the mux clock to gem tsu from 50 or 51 > + > + > +Output clocks are registered based on clock information received > +from firmware. Output clocks indexes are mentioned in > +include/dt-bindings/clock/xlnx,zynqmp-clk.h. > + > ------- > Example > ------- > @@ -25,5 +72,11 @@ firmware { > zynqmp_firmware: zynqmp-firmware { > compatible = "xlnx,zynqmp-firmware"; > method = "smc"; > + clk: clk { clock-controller { > + #clock-cells = <1>; > + compatible = "xlnx,zynqmp-clk"; > + clocks = <&pss_ref_clk>, <&video_clk>, <&pss_alt_ref_clk>, <&aux_ref_clk>, <>_crx_ref_clk>; > + clock-names = "pss_ref_clk", "video_clk", "pss_alt_ref_clk","aux_ref_clk", "gt_crx_ref_clk"; > + }; > }; > };