Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5570478imm; Wed, 12 Sep 2018 07:57:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdajgoH4wIYkAiP6n0HxEm/TTyu/ze3aBCHGcaUOl4vGIrgnlqwwUJJl5pKotnX+9Gw4vdH0 X-Received: by 2002:a17:902:c6b:: with SMTP id 98-v6mr2718686pls.233.1536764222396; Wed, 12 Sep 2018 07:57:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536764222; cv=none; d=google.com; s=arc-20160816; b=bIlErJh1w0EHXTW+7H6aLGSkV4GP49sTzljQxQga79BxBZKq2wPCquWwTGrK5Uj0l3 GkdGt/mV+aD7gS/LzU2o++f1gE4lxSx4zMykxT8NHGBu/gVYrLLeI6pXdLJoX4Mu6tsB sYfaSQIn5wYj7Ehe+oEgSsSs7h+Ecp+5OHqAYhm9cA2ZF5nt+qyZZ8KvS0LInSfsLvbp FcvnGc47S7geJjQEyEwNlT1PqowZ1AySrj1dFSYEjaDAhQdC0jYqC8z1xeDFBYTL9t0r jxo7xti+zYsLfux/b3zE1Q5YdKTPayumiUPN7Hp0Pr4XKaazho6ZH9yz/r0zVwxmoYWr B3UQ== 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; bh=0JPJ8sg1U16Zjpi9tBMDyzTnqtDaPtaXb7CCyOdzOQo=; b=kdjz7z/ZDHYiAxHUa/DgbkTEIXrGjZ6Bdz/bYr5YU4P33Rmoyzkw8n3fOYfo0NWR4Y vEQLj9b/uPuc0rcj3KEcxqwiJgMqdS9/Gow7EGaFuvWqLQsHbdaug2gEx0L9MjtirP4X XEGUOBO+gs10MJsPYZF+DUJxAiTcuybDS+qgWyF9We9YY29s1mTXw8TNX3mrz2A8CgLW bJ9k2MGtsAwgT99T/0nQQxkSQ84pbeMnhuUwPca7HdbkNlmyMZ+EZFI7U0RNINYSEp2y jb9H7m9S+bgV8J+a1WViQg0JvG2qKOZOxvhvgFEt2hdabdtF7AUSjlkCimK+bfMtKy4O W8VQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14-v6si1225581plr.510.2018.09.12.07.56.43; Wed, 12 Sep 2018 07:57:02 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728565AbeILT7i (ORCPT + 99 others); Wed, 12 Sep 2018 15:59:38 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:39440 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727992AbeILT6a (ORCPT ); Wed, 12 Sep 2018 15:58:30 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1322832|-1;CH=blue;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03271;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=15;RT=15;SR=0;TI=SMTPD_---.CpxA9jF_1536764002; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CpxA9jF_1536764002) by smtp.aliyun-inc.com(10.147.42.241); Wed, 12 Sep 2018 22:53:22 +0800 From: Guo Ren To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, daniel.lezcano@linaro.org, jason@lakedaemon.net, arnd@arndb.de, devicetree@vger.kernel.org, andrea.parri@amarulasolutions.com, peterz@infradead.org Cc: c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, thomas.petazzoni@bootlin.com, wbx@uclibc-ng.org, ren_guo@c-sky.com, green.hu@gmail.com Subject: [PATCH V4 20/27] dt-bindings: timer: C-SKY Multi-processor timer Date: Wed, 12 Sep 2018 22:52:02 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: <93e8b592e429c156ad4d4ca5d85ef48fd0ab8b70.1536758961.git.ren_guo@c-sky.com> References: <93e8b592e429c156ad4d4ca5d85ef48fd0ab8b70.1536758961.git.ren_guo@c-sky.com> In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Guo Ren --- .../devicetree/bindings/timer/csky,mptimer.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,mptimer.txt diff --git a/Documentation/devicetree/bindings/timer/csky,mptimer.txt b/Documentation/devicetree/bindings/timer/csky,mptimer.txt new file mode 100644 index 0000000..0d7369f --- /dev/null +++ b/Documentation/devicetree/bindings/timer/csky,mptimer.txt @@ -0,0 +1,46 @@ +============================ +C-SKY Multi-processors Timer +============================ + +C-SKY multi-processors timer is designed for C-SKY SMP system and the +regs is accessed by cpu co-processor 4 registers with mtcr/mfcr. + + - PTIM_CTLR "cr<0, 14>" Control reg to start reset timer. + - PTIM_TSR "cr<1, 14>" Interrupt cleanup status reg. + - PTIM_CCVR "cr<3, 14>" Current counter value reg. + - PTIM_LVR "cr<6, 14>" Window value reg to triger next event. + +============================== +timer node bindings definition +============================== + + Description: Describes SMP timer + + PROPERTIES + + - compatible + Usage: required + Value type: + Definition: must be "csky,mptimer" + - clocks + Usage: required + Value type: + Definition: must be input clk node + - interrupt + Usage: required + Value type: + Definition: must be timer irq num defined by soc + - interrupt-parent: + Usage: required + Value type: + Definition: must be interrupt controller node + +Examples: +--------- + + timer: timer { + compatible = "csky,mptimer"; + clocks = <&dummy_apb_clk>; + interrupts = <16>; + interrupt-parent = <&intc>; + }; -- 2.7.4