Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753314AbeAJWuT (ORCPT + 1 other); Wed, 10 Jan 2018 17:50:19 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:37666 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752579AbeAJWsv (ORCPT ); Wed, 10 Jan 2018 17:48:51 -0500 From: Paul Cercueil To: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Thomas Gleixner , Jason Cooper , Marc Zyngier , Daniel Lezcano , Lee Jones Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH v3 4/9] doc: dt-bindings: Add doc for the Ingenic TCU clocks driver Date: Wed, 10 Jan 2018 23:48:33 +0100 Message-Id: <20180110224838.16711-4-paul@crapouillou.net> In-Reply-To: <20180110224838.16711-1-paul@crapouillou.net> References: <20180101143344.2099-1-paul@crapouillou.net> <20180110224838.16711-1-paul@crapouillou.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Add documentation about how to properly use the Ingenic TCU (Timer/Counter Unit) clocks driver from devicetree. Signed-off-by: Paul Cercueil --- .../bindings/clock/ingenic,tcu-clocks.txt | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/ingenic,tcu-clocks.txt v3: New patch in this series diff --git a/Documentation/devicetree/bindings/clock/ingenic,tcu-clocks.txt b/Documentation/devicetree/bindings/clock/ingenic,tcu-clocks.txt new file mode 100644 index 000000000000..90bb30e07b86 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/ingenic,tcu-clocks.txt @@ -0,0 +1,36 @@ +Ingenic SoC TCU binding + +The TCU is the Timer/Counter Unit present in all Ingenic SoCs. It features 8 +channels, each one having its own clock, that can be started and stopped, +reparented, and reclocked. + +Required properties: +- compatible : One of: + * ingenic,jz4740-tcu-clocks, + * ingenic,jz4770-tcu-clocks, + * ingenic,jz4780-tcu-clocks. +- clocks : List of phandle & clock specifiers for clocks external to the TCU. + The "pclk", "rtc" and "ext" clocks should be provided. +- clock-names : List of name strings for the external clocks. +- #clock-cells: Should be 1. + Clock consumers specify this argument to identify a clock. The valid values + may be found in . + +Example: + +/ { + mfd@10002000 { + compatible = "ingenic,tcu", "simple-mfd", "syscon"; + reg = <0x10002000 0x1000>; + + tcu_clk: clocks { + compatible = "ingenic,jz4740-tcu-clocks"; + reg = <0x10002010 0xFF0>; + + clocks = <&ext>, <&rtc>, <&pclk>; + clock-names = "ext", "rtc", "pclk"; + + #clock-cells = <1>; + }; + }; +}; -- 2.11.0