From patchwork Thu Jan 19 00:29:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 9525023 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D21C2601B7 for ; Thu, 19 Jan 2017 00:31:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD7A628577 for ; Thu, 19 Jan 2017 00:31:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1941285AA; Thu, 19 Jan 2017 00:31:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 41F5928577 for ; Thu, 19 Jan 2017 00:31:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cU0dg-0001hq-UX; Thu, 19 Jan 2017 00:31:40 +0000 Received: from smtp-out-so.shaw.ca ([64.59.136.139]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cU0dW-00017i-L4 for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2017 00:31:33 +0000 Received: from triton.mmayer.net ([70.71.160.251]) by shaw.ca with SMTP id U0d7c5fxxrvfEU0d8cXhOC; Wed, 18 Jan 2017 17:31:09 -0700 X-Authority-Analysis: v=2.2 cv=UeUhcOaN c=1 sm=1 tr=0 a=6xzog4CasRozao6qlzTIAw==:117 a=6xzog4CasRozao6qlzTIAw==:17 a=IgFoBzBjUZAA:10 a=Q-fNiiVtAAAA:8 a=VwQbUJbxAAAA:8 a=tqJNm0CS2kuPa2V678gA:9 a=Fp8MccfUoT0GBdDC_Lng:22 a=AjGcO6oz07-iQ99wixmX:22 Received: by triton.mmayer.net (Postfix, from userid 501) id 15E34312E192; Wed, 18 Jan 2017 16:31:05 -0800 (PST) From: Markus Mayer To: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Viresh Kumar , "Rafael J . Wysocki" , Arnd Bergmann Subject: [PATCH v5 1/2] dt-bindings: brcm: clocks: add binding for brcmstb-cpu-clk-div Date: Wed, 18 Jan 2017 16:29:32 -0800 Message-Id: <20170119002933.7529-2-code@mmayer.net> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170119002933.7529-1-code@mmayer.net> References: <20170119002933.7529-1-code@mmayer.net> X-CMAE-Envelope: MS4wfHVMeF5wAVEyNeWp6hZUXBRLnU5pPApA1UYbvfZYTuFI+F/LTQvEsQvrGhzRcB11KoDMowSWI8Uvv8C/TaBJYAn6E3QYuWND443MWNUxAQzw19D/fiwZ IsF+1xwaB7PZIB3AHMSZLjc53SX6P/gkgRwdYHLcqZzMuQea1nOLS6MoUHvo0xnus6j/Ok/B/yaYFudibDLiqXxZjz3wuhj8NxStZcXUiPP9W0N+sBAiVnaG 75tPjqLjloZ1EIuLJz1xIPgMPKouLzOZwBtNvl7Egw+qqstlYs6NazzYp1gKZtNxmWEEpoRHRVjZCueLGsCWXC4te90Jg7VwALeftoolF7V9TE8ZPiLI4nOi 2LpJywQ8X+dAUjL81Lt4UIod73VEH6s9xM5CCWzYE6+YPVZrbWBJ7qFLQJdpeOUGlaMotMDutTJqC3zT5bn/XdasG4oCLDcduV4w7f960UBJoQSUgQqUxSdc /hAMXPwZQG11gy98Z+QRru9A+CQSEgBr1lEBnb6yg1JzznyfgKjmqjXJRj5HZBnKeAr3waCkElhsOu7LuRyySDUpLBIbSVGK2f+l6Zo6FSxoTlECkF5cDrfz 2Qo0Rvw8tyvXXI9PUWiPxGjpAs3/5tFy/J4s/sK9upuS7DydEldR5hzJv4HlPax2GR0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170118_163130_778692_62090941 X-CRM114-Status: GOOD ( 12.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Device Tree List , Power Management List , Linux Kernel Mailing List , Broadcom Kernel List , Markus Mayer , Linux Clock List , ARM Kernel List MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Mayer Add binding document for brcm,brcmstb-cpu-clk-div. Signed-off-by: Markus Mayer --- .../bindings/clock/brcm,brcmstb-cpu-clk-div.txt | 27 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/brcm,brcmstb-cpu-clk-div.txt diff --git a/Documentation/devicetree/bindings/clock/brcm,brcmstb-cpu-clk-div.txt b/Documentation/devicetree/bindings/clock/brcm,brcmstb-cpu-clk-div.txt new file mode 100644 index 0000000..c4acb53 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/brcm,brcmstb-cpu-clk-div.txt @@ -0,0 +1,27 @@ +The CPU divider node serves as the sole clock for the CPU complex. It supports +power-of-2 clock division, with a divider of "1" as the default highest-speed +setting. + +Required properties: +- compatible: shall be "brcm,brcmstb-cpu-clk-div" +- reg: address and width of the divider configuration register +- #clock-cells: shall be set to 0 +- clocks: phandle of clock provider which provides the source clock + (this would typically be a "fixed-clock" type PLL) +- div-table: list of (raw_value,divider) ordered pairs that correspond to the + allowed clock divider settings +- div-shift-width: least-significant bit position and width of divider value + +Optional properties: +- clock-names: the clock may be named + +Example: + cpuclkdiv: cpu-clk-div@f03e257c { + compatible = "brcm,brcmstb-cpu-clk-div"; + reg = <0xf03e257c 0x4>; + div-table = <0x00 1>; + div-shift-width = <0 5>; + #clock-cells = <0>; + clocks = <&cpupll>; + clock-names = "cpupll"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index cfff2c9..690761d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2786,6 +2786,7 @@ M: bcm-kernel-feedback-list@broadcom.com L: linux-pm@vger.kernel.org S: Maintained F: Documentation/devicetree/bindings/cpufreq/brcm,stb-avs-cpu-freq.txt +F: Documentation/devicetree/bindings/clock/brcm,brcmstb-cpu-clk-div.txt F: drivers/cpufreq/brcmstb* BROADCOM SPECIFIC AMBA DRIVER (BCMA)