From patchwork Mon Dec 18 06:46:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greentime Hu X-Patchwork-Id: 849834 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" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cThv5pK1"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3z0XNf3HnNz9t2M for ; Mon, 18 Dec 2017 18:14:58 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932745AbdLRHOj (ORCPT ); Mon, 18 Dec 2017 02:14:39 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:40176 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933044AbdLRHOb (ORCPT ); Mon, 18 Dec 2017 02:14:31 -0500 Received: by mail-pf0-f196.google.com with SMTP id v26so9337546pfl.7; Sun, 17 Dec 2017 23:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=YgO3sYXhkoLHpSXORUlyRt9rWtd4GsnvGO4vQgE5vMI=; b=cThv5pK19bNdbSkDxPgWfbVj7y43Opj5TcEHkCEbJ1HPqoxoo7RqQPKArd4n19+GjR K4vJ5KdPf9IAteDXU+JlVZrjm31ijTcs/to3xkvWEqOky1sG1n4krKhATJUVUeTkPUAJ /yR0zWD1WMsBUqVKGL0xYR+d7cQpqVRjCamrcCMo1KDsPUbuijUXCfvH2uKo3MP9K32k LJAVlUCQkCHjmoA00H2LS6qAtflQs4uwbEN1izETavVLz2Ckid0s3zI6R6b/4F+4hRep fJJnJFad31tJC5VDnob7rkAgw9+Si7jlCgRGN3wMKFhlyWwyi7/f1N0chvML3iH/d+/K Du1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=YgO3sYXhkoLHpSXORUlyRt9rWtd4GsnvGO4vQgE5vMI=; b=W8qWqGin4XqH8l4X/z1CVOiKFX1U76U01J3iVQvIvU51iY+syfUSDRMYu9pNR8rs2Q Hsx7JrqN8+Lhc7Q+UgjU0BCNupIUsbBBmUC0bvz0FlOzSYzDKJ5B2wVd3ExXOGBhwcmX crAzX0wygXncLIFTwTo/Q9NxYh3RwlI5mOnCkGyb5e8VfmJSvTU2FGFJ/q4dYD9NShv6 qr3qzundlAdLrOXojBY0agYjCAmVWRMEzDREkufn+B0c9hePXfuC0Lb7MBxNBh0dz6oQ twTljr4hOgzrHAImz7zdKvl+KGPs6Y304BKL70e4+mo6Mvf6Tc6V9CIm7CmkTpY4xXmw ZgIA== X-Gm-Message-State: AKGB3mK6IEf+XcpIOVreXRE9GapUWv/KqnOZpH906AtbYZhGneXpNwG8 6DUOdD1Nvb4UyDNeWtWF2qv3g/qW X-Google-Smtp-Source: ACJfBouvV0TIt63zZc2ltbBBGebEzKPDY4yh4MWmIs6kHPFhqU13/0/PbXXhw3Gq1RmpwfNP2tDtJg== X-Received: by 10.99.139.66 with SMTP id j63mr5088409pge.247.1513581270429; Sun, 17 Dec 2017 23:14:30 -0800 (PST) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id q24sm24013551pfk.168.2017.12.17.23.14.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Dec 2017 23:14:29 -0800 (PST) From: Greentime Hu To: greentime@andestech.com, linux-kernel@vger.kernel.org, arnd@arndb.de, linux-arch@vger.kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, robh+dt@kernel.org, netdev@vger.kernel.org, deanbo422@gmail.com, devicetree@vger.kernel.org, viro@zeniv.linux.org.uk, dhowells@redhat.com, will.deacon@arm.com, daniel.lezcano@linaro.org, linux-serial@vger.kernel.org, geert.uytterhoeven@gmail.com, linus.walleij@linaro.org, mark.rutland@arm.com, greg@kroah.com, ren_guo@c-sky.com, pombredanne@nexb.com Cc: Rick Chen , green.hu@gmail.com Subject: [PATCH v4 36/36] dt-bindings: timer: Add andestech atcpit100 timer binding doc Date: Mon, 18 Dec 2017 14:46:48 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Rick Chen Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu Acked-by: Rob Herring --- .../bindings/timer/andestech,atcpit100-timer.txt | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/andestech,atcpit100-timer.txt diff --git a/Documentation/devicetree/bindings/timer/andestech,atcpit100-timer.txt b/Documentation/devicetree/bindings/timer/andestech,atcpit100-timer.txt new file mode 100644 index 0000000..4c9ea59 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/andestech,atcpit100-timer.txt @@ -0,0 +1,33 @@ +Andestech ATCPIT100 timer +------------------------------------------------------------------ +ATCPIT100 is a generic IP block from Andes Technology, embedded in +Andestech AE3XX platforms and other designs. + +This timer is a set of compact multi-function timers, which can be +used as pulse width modulators (PWM) as well as simple timers. + +It supports up to 4 PIT channels. Each PIT channel is a +multi-function timer and provide the following usage scenarios: +One 32-bit timer +Two 16-bit timers +Four 8-bit timers +One 16-bit PWM +One 16-bit timer and one 8-bit PWM +Two 8-bit timer and one 8-bit PWM + +Required properties: +- compatible : Should be "andestech,atcpit100" +- reg : Address and length of the register set +- interrupts : Reference to the timer interrupt +- clocks : a clock to provide the tick rate for "andestech,atcpit100" +- clock-names : should be "PCLK" for the peripheral clock source. + +Examples: + +timer0: timer@f0400000 { + compatible = "andestech,atcpit100"; + reg = <0xf0400000 0x1000>; + interrupts = <2>; + clocks = <&apb>; + clock-names = "PCLK"; +};