From patchwork Wed Jan 10 22:48:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 858612 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=crapouillou.net header.i=@crapouillou.net header.b="hBc/NJCv"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zH42s2sw1z9s7g for ; Thu, 11 Jan 2018 09:49:57 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752808AbeAJWs6 (ORCPT ); Wed, 10 Jan 2018 17:48:58 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:38012 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751975AbeAJWsz (ORCPT ); Wed, 10 Jan 2018 17:48:55 -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 5/9] doc: dt-bindings: Add doc for the Ingenic TCU timers driver Date: Wed, 10 Jan 2018 23:48:34 +0100 Message-Id: <20180110224838.16711-5-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> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1515624533; bh=UwIryb+rXeaXG3emeY4FWx6UMj5d6taL8dfXTxVDhe8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=hBc/NJCvAiaJxvQwgSataDECVPRDbOOe1eNqAckMQ1NTu+48xBPQp0SIGPckzSaP2pgm+1DEVqIh1VG9RGfT5pZ2hd8INXri4MPEL68crEIInx4ruOiRex2xAAkDKDM++Evwb9MsrMvmziC4wqn5sIp6fpu3cV6hlcaFL7sBNq0= Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add documentation about how to properly use the Ingenic TCU (Timer/Counter Unit) timers driver from devicetree. Signed-off-by: Paul Cercueil --- .../devicetree/bindings/timer/ingenic,tcu.txt | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/ingenic,tcu.txt v3: New patch in this series diff --git a/Documentation/devicetree/bindings/timer/ingenic,tcu.txt b/Documentation/devicetree/bindings/timer/ingenic,tcu.txt new file mode 100644 index 000000000000..dd76877efb8b --- /dev/null +++ b/Documentation/devicetree/bindings/timer/ingenic,tcu.txt @@ -0,0 +1,35 @@ +Ingenic JZ47xx SoCs Timer/Counter Unit driver +--------------------------------------------- + +Required properties: + +- compatible : should be "ingenic,-tcu". Valid strings are: + * ingenic,jz4740-tcu + * ingenic,jz4770-tcu + * ingenic,jz4780-tcu +- interrupt-parent : phandle of the TCU interrupt controller. +- interrupts : Specifies the interrupts the controller is connected to. +- clocks : List of phandle & clock specifiers for the TCU clocks. +- clock-names : List of name strings for the TCU clocks. + +Example: + +/ { + mfd@10002000 { + compatible = "ingenic,tcu", "simple-mfd", "syscon"; + reg = <0x10002000 0x1000>; + + tcu_timer: timer { + compatible = "ingenic,jz4740-tcu"; + reg = <0x10002010 0xFF0>; + + clocks = <&tcu 0>, <&tcu 1>, <&tcu 2>, <&tcu 3>, + <&tcu 4>, <&tcu 5>, <&tcu 6>, <&tcu 7>; + clock-names = "timer0", "timer1", "timer2", "timer3", + "timer4", "timer5", "timer6", "timer7"; + + interrupt-parent = <&tcu>; + interrupts = <0 1 2 3 4 5 6 7>; + }; + }; +};