Received: by 10.223.185.116 with SMTP id b49csp3367977wrg; Tue, 13 Feb 2018 01:15:45 -0800 (PST) X-Google-Smtp-Source: AH8x227bICaMGxy8yTgMXugHfQ+QsLCsX+CbO1eaNXRs9spusx7bdTyQpzpK+UY2Skeiq6+fKcJH X-Received: by 10.99.146.68 with SMTP id s4mr456189pgn.295.1518513345819; Tue, 13 Feb 2018 01:15:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518513345; cv=none; d=google.com; s=arc-20160816; b=HBJLqDCPNRECeljKlU85neby7v/QwjsffXjhfZTtEYPM50DusYS2lAtrKnlUV5zR1L dqTcSMkao4nR3oyhVUtQEl+zcI0kjhz0v/DmYo9bcB2Cevfo+SfBjQTW5jnWn5N1q/Ed YkHjfaPUoRTuNcWyzvOI6G7hRToGkTY5jK5fVGPQ0jk5kCTKF7IaGB2IC7z2OAqQLyW6 oMsIF29/nHpmd5vf4mzYKZkSuDwjNu1wnGrL5dwe063mByxI9DCGhb+e9cMJNgagMBBB JMNeWplZGnVz7aLOt99O+kG/CorCM72Olr9V4uWf9iQgPk804QkiZKUoxVrSzHod+Bmz /qeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=SxzJt8bxgi7RFecsa1BGXjkYgEBMvyXUQKe3S/yFMUY=; b=GeTTDLEsDiJlO6pud8+0g7B61ATDjdazN1rOOsv3YlbXa1OnzarGYCkSu07Fjoc7gZ kVlw0FKaHDbuqutPVeA6IRg3+qkskrvHDiY2PWWrzXfpdgpx7qu++qsikzZbcvC+An0U HijGBDorPvMvuDyF+J/q0KgYT2JaNVcfW0iFsmtmFddWWcjN+aJoCFYrksI/hvkTK2ap OUqGDG3/6mfK1+7gur3ueCVKAd9Ed2abPEmWaqxVkmJLGXybO017LfNxgQue01XY8rsM t4+EkHc/PIXKXCgFt0ifFN5wKcCNfhNIUxGgZDxRA8Jg8iAxv2gY6ZquZdaJcAj+neYK vseg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NW6Lthh4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si2258535pfg.288.2018.02.13.01.15.31; Tue, 13 Feb 2018 01:15:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NW6Lthh4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934549AbeBMJOW (ORCPT + 99 others); Tue, 13 Feb 2018 04:14:22 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:44264 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933494AbeBMJOQ (ORCPT ); Tue, 13 Feb 2018 04:14:16 -0500 Received: by mail-pg0-f68.google.com with SMTP id j9so8898424pgp.11; Tue, 13 Feb 2018 01:14:16 -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=SxzJt8bxgi7RFecsa1BGXjkYgEBMvyXUQKe3S/yFMUY=; b=NW6Lthh4O8M0EbcQXSvvZIVFJrGvARvTf962n+Jh0kEU+etwjA/tMC3tCwPmob+vBI 2EwoNw3YtA7wYIyD3hN0+0bc1BNihsF4LsbJRnhD97WknB1DOrobwKbY1+d5UmHwCnY9 P7g2oE6Jo27vCwe6yaMloZE9civN85eahGkQwzCoJT/9tOBIdk27O4r+bUnOj/9nzips CUi7W/EqLRAkY87KE57670ohYQ0wDfN4zEDVN5hqCrZ7bl+n5uJ1vnw3GCSdIglldk2r +VkQW6WzPQTggIgUic7w0JqScX79/iIfgrS6Vm4ZhSE4Rwba0gXgS5fSKNhALNbBZ0DZ s0hw== 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=SxzJt8bxgi7RFecsa1BGXjkYgEBMvyXUQKe3S/yFMUY=; b=nzxvobATC8HWbCkcy7+he+1C+RKLCfWCy+N6Y2lzHgqdXvv75XKwzr/4M7qzI04RXr r6eXTvU9BWzwK5Tcj+D0fAOGqRoV6jeWSVfO4H/f3y/THg9ekQo9XpSFeCqJpEExmgNT CfZgdW7bl42vjtS9MxxXwb+OX1DCYyznSkf8b2SMF5G3bXN0dxNkpPzwQckFIRty1e9G 7wwMPkRZBLe6EiDlvmB3EfYPYQs9NZLMQi2YjtMsnk8Ab4RxAzC5VAQc6kzp3TW1yJ4X 8cRBp1ZbeXcakF/oqDsFoN8tABN30/CvdxiXX3OVD+ymRrV0Z15WpViccBugig0LkbnF vjJw== X-Gm-Message-State: APf1xPBXj9P1DU8XosK13vOJlRU34+ueBHprk96XcZK1eNDbcjrxOJ0v uu7ST2tQ38teFtFFcRLxoBs= X-Received: by 10.98.160.80 with SMTP id r77mr558106pfe.231.1518513255481; Tue, 13 Feb 2018 01:14:15 -0800 (PST) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id o7sm23288007pgp.18.2018.02.13.01.14.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Feb 2018 01:14:14 -0800 (PST) From: Greentime Hu X-Google-Original-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, rdunlap@infradead.org, davem@davemloft.net, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com Cc: Rick Chen , green.hu@gmail.com Subject: [PATCH v7 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc Date: Tue, 13 Feb 2018 17:13:19 +0800 Message-Id: <6b5451c70123e06b47935720223da0792fcea3f8.1518505425.git.greentime@andestech.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 Acked-by: Arnd Bergmann --- .../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 000000000000..4c9ea5989e35 --- /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"; +}; -- 2.16.1