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: 9525027 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 EA7A4601B7 for ; Thu, 19 Jan 2017 00:32:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5F7228577 for ; Thu, 19 Jan 2017 00:32:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C8D02285C6; Thu, 19 Jan 2017 00:32:38 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5761228577 for ; Thu, 19 Jan 2017 00:32:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751421AbdASAch (ORCPT ); Wed, 18 Jan 2017 19:32:37 -0500 Received: from smtp-out-so.shaw.ca ([64.59.136.137]:50972 "EHLO smtp-out-so.shaw.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751418AbdASAcg (ORCPT ); Wed, 18 Jan 2017 19:32:36 -0500 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 Cc: Markus Mayer , Broadcom Kernel List , Linux Clock List , Power Management List , Device Tree List , ARM Kernel List , Linux Kernel Mailing List 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= Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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)