From patchwork Tue Nov 28 02:29:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rick Chen X-Patchwork-Id: 841954 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; 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="j4lC4Wfo"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3ym8Bb5Vkwz9sNx for ; Tue, 28 Nov 2017 14:23:19 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 539A1C21DF7; Tue, 28 Nov 2017 03:21:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 63E74C21E14; Tue, 28 Nov 2017 03:18:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B6283C21D79; Tue, 28 Nov 2017 02:54:10 +0000 (UTC) Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by lists.denx.de (Postfix) with ESMTPS id 2712AC21D78 for ; Tue, 28 Nov 2017 02:54:10 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id s10so9769567plj.5 for ; Mon, 27 Nov 2017 18:54:10 -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; bh=cv5GiNEzm+PCY3hpsC2bUWEH1CXVrLXOeBkN51GtStM=; b=j4lC4WfoKDJ4+ekp0PIdHZcbvMXm4lUTmcBShYn3QlRYGqkIDW4EwkHAyuA3SNKOp0 AMylZj6GuTU4MLk5Ysm1rEM/VBHzxfZgnsbPxsYH3x+ND2SsyLwmhMWMJG6jKt2/WCiN FcvelJUirfBK8tUL9v8ahKrk3LE946HlVDgxdenyoZPclNc6fApNlHxeRyURklhezeyr T6H9ivU6nLfoRDzEOoTbaMOJV2l8sBowyyEK0GQhVEGlO3cOVv8+3qyziGQJJjuvAm3q EFuXmVWcprM9Ibf8kJfAo+yxP4KJqheU/amK/16gpajx1t2VKaRXfjG8jgSyfX2MLc/+ urTQ== 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; bh=cv5GiNEzm+PCY3hpsC2bUWEH1CXVrLXOeBkN51GtStM=; b=SEljF+Nj0mwa/8VrGP07s4dRyLuHNc6qJiwfJOIvWv7iwEkorQ2finBYfAST6QEY4f ku4YN6snxTqGcJSiLzvfmCzDDIH9hta6hCDKo/G19efasKeYo74ea6oRlc+Df/bvSc/y HonA+eqqxaXjsnY3WKIc4q/qfGBRLoaq63rVKWMN90YxDr8F8EkhAzYVycjgFhFB/HAn pTFfllOMFD+dOVAo0Vwy8mYupkGpR6YO1/j6iAn6/V+nS+/ZaqIYHaAfE1FpVPSN/jg3 RiOXzd8ewPjIFLnyG2zsLfPCpm8yDgyPH6Ul3Pg2xOTBXFnLYNhc4Eacf5YRrioDhQDM Ua8g== X-Gm-Message-State: AJaThX5XYG+FzDxvUeg38nXNQT7A0amzhWxTjSVb5jr+nQ6ZJMWAQr/g YDtULRjw6SQbUpEfhhlH3fUrQA== X-Google-Smtp-Source: AGs4zMbVWNOPyHe8hBAj3QvSqBfMq7ZnHsYSa/i7MdRzs0MN2mm4h/5GEqBJOYE+7onjU4lLsBq7Mw== X-Received: by 10.159.196.151 with SMTP id c23mr32538910plo.29.1511837648718; Mon, 27 Nov 2017 18:54:08 -0800 (PST) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id d81sm24329254pfj.163.2017.11.27.18.54.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Nov 2017 18:54:08 -0800 (PST) From: Rick Chen To: u-boot@lists.denx.de, wd@denx.de, sjg@chromium.org Date: Tue, 28 Nov 2017 10:29:23 +0800 Message-Id: <1511836163-17728-5-git-send-email-rickchen36@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1511836163-17728-1-git-send-email-rickchen36@gmail.com> References: <1511836163-17728-1-git-send-email-rickchen36@gmail.com> X-Mailman-Approved-At: Tue, 28 Nov 2017 03:18:33 +0000 Subject: [U-Boot] [PATCH v3 4/4] dt-bindings: timer: Add andestech atcpit100 timer X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: rick Signed-off-by: Rick Chen Reviewed-by: Simon Glass --- doc/device-tree-bindings/timer/atcpit100_timer.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 doc/device-tree-bindings/timer/atcpit100_timer.txt diff --git a/doc/device-tree-bindings/timer/atcpit100_timer.txt b/doc/device-tree-bindings/timer/atcpit100_timer.txt new file mode 100644 index 0000000..620814e --- /dev/null +++ b/doc/device-tree-bindings/timer/atcpit100_timer.txt @@ -0,0 +1,31 @@ +Andestech ATCPIT100 timer +------------------------------------------------------------------ +ATCPIT100 is a generic IP block from Andes Technology, embedded in +Andestech AE3XX, AE250 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 +- clock-frequency : The rate in HZ in input of the Andestech ATCPIT100 timer + +Examples: + +timer0: timer@f0400000 { + compatible = "andestech,atcpit100"; + reg = <0xf0400000 0x1000>; + interrupts = <2 4>; + clock-frequency = <30000000>; +}: