Received: by 10.213.65.68 with SMTP id h4csp131670imn; Thu, 15 Mar 2018 20:12:51 -0700 (PDT) X-Google-Smtp-Source: AG47ELt/aTLSB1w3gatfGK3pVQRJb0w33eT6sKWLeNIZcnK2AOkVY3Q0lqVnU+knJugGneBkqjnu X-Received: by 2002:a17:902:10c:: with SMTP id 12-v6mr263690plb.405.1521169971250; Thu, 15 Mar 2018 20:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521169971; cv=none; d=google.com; s=arc-20160816; b=gd7nPFfUmE2CgNSHJDX0a5e2oyUr0UuwbFpbMM4HoAiZjEHZl3UlJZrIw0HKmUCtv8 04921iZZFffnDgeodyzVfHcSMulN14f5pBER/MCk0GnSG1L8bfNEC9CUszcllVMjS9i/ /JOS/FTekVTJPam8rmsgiSFMIartOrncJA9iRGsDPIFz6l+kEOv7MPSf33Vwbq0A5Hsc 1Dwqa6XWmHicZNgmIgPrFDgtkU913V2W5Vmfs5OzZ2g6O3jok3nBCPoG7wlfedt5j80g +jmUEmKjOTMGjCQxP2OzgmWj381xsxM/7QCpInI4v0LBX6FzR1MEMhbzPgRCbu14BvDs SuwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=s4a4UewiUiJGZ3uyMP7YSVPIbhzzEVvNq4z0cNgmhn8=; b=tkpuYVRRiPX5tKVsaXtv5t6lEQ/aPqphJMweXgkzrpjbHC2sjm36VMjz7esdhJYkn/ sQUtOKN+AXtGTCMA0CSgL/aQUmS0ok7Qt58JArouK/TkK8F+OOgM9FCsW5KF+miwiRDu EitkVNb1BNq5PeDLZOrBg4TS6KG5z7W9IoxzUnYklAqsNRNLyw0nzhVUOEB+MI15zM4p zGlRCimevWY8AIe42eWCGuEKzrb+GL2AEv1AHJBEpR4vUT4tQbnb9ZcTG2eTsBQlCyRx FAw6jr9RqBkJtKEft2M9ksTz0UleP8GySwOeYZQ1XFVm12r9Fd5CiI7Ij11fqNzvHQbC w/HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=I+CtIoAA; 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 f9si4302603pgo.403.2018.03.15.20.12.35; Thu, 15 Mar 2018 20:12:51 -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=fail header.i=@lechnology.com header.s=default header.b=I+CtIoAA; 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 S932994AbeCPCxc (ORCPT + 99 others); Thu, 15 Mar 2018 22:53:32 -0400 Received: from vern.gendns.com ([206.190.152.46]:55308 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932973AbeCPCx2 (ORCPT ); Thu, 15 Mar 2018 22:53:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=s4a4UewiUiJGZ3uyMP7YSVPIbhzzEVvNq4z0cNgmhn8=; b=I+CtIoAAVe6aH5A3onTClwVfB Nyf2eHeRCbKNhR08bTwNM7y1HG8c0aniYYJItb7vN+i5kOCSllHkfwxYAWplMyrpTg8GWSvCHDaYk GnO4qEE3tSAoxx/LLPElL+40dRBJQ66n0gfjdVp/6jjQVQ1cVGc4YCV/w5DozyDa0cu9iD1dKdkDg Dda4+MH/7/wzTaKdV4jK7uITeRRXLpOeKebfpuiSpKpxTIJFSl7l+8C1uW89QWPTZ3sBBQ6+AfQDo XKHnBuDIXm6oCzFx8QWFBeE8TFTQ9OFO9mCNsgMIW8Vy8yavPiOc1tUkClpceCpo5hIK/FO+f6Gow fG+rHCypg==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:44986 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1ewfSm-002UlD-L0; Thu, 15 Mar 2018 22:51:25 -0400 From: David Lechner To: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Bartosz Golaszewski , Adam Ford , linux-kernel@vger.kernel.org, David Lechner Subject: [PATCH v8 01/42] dt-bindings: clock: Add new bindings for TI Davinci PLL clocks Date: Thu, 15 Mar 2018 21:52:17 -0500 Message-Id: <1521168778-27236-2-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521168778-27236-1-git-send-email-david@lechnology.com> References: <1521168778-27236-1-git-send-email-david@lechnology.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds a new binding for the PLL IP blocks in the mach-davinci family of processors. Currently, only da850 has device tree support but these bindings can also work for other SoCs in this family just by adding new compatible strings. Note: Although these PLL controllers are very similar to the TI Keystone SoCs, we are not re-using those bindings. The Keystone bindings use a legacy one-node-per-clock binding. Furthermore, the mach-davinici SoCs have a slightly different PLL register layout and a number of quirks that can't be handled by the existing bindings, so the keystone bindings could not be used as-is anyway. Signed-off-by: David Lechner Reviewed-by: Rob Herring --- v8 changes: - None v7 changes: - None (there was some debate about having child nodes, but the consensus was that this is "good enough" as it is) v6 changes: - Added clock-names property - Added ti,clkmode-square-wave property - Added pllout child node - Added obsclk child node - Expanded examples .../devicetree/bindings/clock/ti/davinci/pll.txt | 96 ++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/ti/davinci/pll.txt diff --git a/Documentation/devicetree/bindings/clock/ti/davinci/pll.txt b/Documentation/devicetree/bindings/clock/ti/davinci/pll.txt new file mode 100644 index 0000000..36998e1 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/ti/davinci/pll.txt @@ -0,0 +1,96 @@ +Binding for TI DaVinci PLL Controllers + +The PLL provides clocks to most of the components on the SoC. In addition +to the PLL itself, this controller also contains bypasses, gates, dividers, +an multiplexers for various clock signals. + +Required properties: +- compatible: shall be one of: + - "ti,da850-pll0" for PLL0 on DA850/OMAP-L138/AM18XX + - "ti,da850-pll1" for PLL1 on DA850/OMAP-L138/AM18XX +- reg: physical base address and size of the controller's register area. +- clocks: phandles corresponding to the clock names +- clock-names: names of the clock sources - depends on compatible string + - for "ti,da850-pll0", shall be "clksrc", "extclksrc" + - for "ti,da850-pll1", shall be "clksrc" + +Optional properties: +- ti,clkmode-square-wave: Indicates that the the board is supplying a square + wave input on the OSCIN pin instead of using a crystal oscillator. + This property is only valid when compatible = "ti,da850-pll0". + + +Optional child nodes: + +pllout + Describes the main PLL clock output (before POSTDIV). The node name must + be "pllout". + + Required properties: + - #clock-cells: shall be 0 + +sysclk + Describes the PLLDIVn divider clocks that provide the SYSCLKn clock + domains. The node name must be "sysclk". Consumers of this node should + use "n" in "SYSCLKn" as the index parameter for the clock cell. + + Required properties: + - #clock-cells: shall be 1 + +auxclk + Describes the AUXCLK output of the PLL. The node name must be "auxclk". + This child node is only valid when compatible = "ti,da850-pll0". + + Required properties: + - #clock-cells: shall be 0 + +obsclk + Describes the OBSCLK output of the PLL. The node name must be "obsclk". + + Required properties: + - #clock-cells: shall be 0 + + +Examples: + + pll0: clock-controller@11000 { + compatible = "ti,da850-pll0"; + reg = <0x11000 0x1000>; + clocks = <&ref_clk>, <&pll1_sysclk 3>; + clock-names = "clksrc", "extclksrc"; + ti,clkmode-square-wave; + + pll0_pllout: pllout { + #clock-cells = <0>; + }; + + pll0_sysclk: sysclk { + #clock-cells = <1>; + }; + + pll0_auxclk: auxclk { + #clock-cells = <0>; + }; + + pll0_obsclk: obsclk { + #clock-cells = <0>; + }; + }; + + pll1: clock-controller@21a000 { + compatible = "ti,da850-pll1"; + reg = <0x21a000 0x1000>; + clocks = <&ref_clk>; + clock-names = "clksrc"; + + pll0_sysclk: sysclk { + #clock-cells = <1>; + }; + + pll0_obsclk: obsclk { + #clock-cells = <0>; + }; + }; + +Also see: +- Documentation/devicetree/bindings/clock/clock-bindings.txt -- 2.7.4