Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3727492imm; Wed, 5 Sep 2018 05:10:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaiF0zCc1jjXlfE/6BVpZYiXsi1S6jw0olEU1dZBQCCvD6N3SGNMKYQ5ZMM5iNy7jQv14n4 X-Received: by 2002:a17:902:9a8a:: with SMTP id w10-v6mr37816745plp.14.1536149444258; Wed, 05 Sep 2018 05:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536149444; cv=none; d=google.com; s=arc-20160816; b=MFHZO3vm2JPRISmr+tq3YsOeEZSbnEFNiNgfHz1DFA6qfGPB0dK44DJAR4cREjczRs 4AmTgRlZP0+s1g+BV466gtzXrAcw3+ff1gepy5hgPoyBjZmrufqoXYR+VYQymJi3ngdU qacfFRSVOs8foPFgwbCaouQKNI/K7Xpy7dGlT3dp8Z5Do8I5lp1HCnwO4HrhiRL9EiDi 5as1YNyDHWljKQUAUokMrzbQz75Xgv423L4AfjmrueMmh+uYjbo62DQzj1TupYN+qvbH n5nwyJCyr5lIS2dx5IlrhbX2hFfQIS4B1cAuC5qOj27eOVrIM60kHBN6Idf9QI/r87XR ckWA== 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=pFAKcBqKnlozNQahp0E07GvtNG0AE8sgEqZBuEmj+oKcArkrex6Q1pVy0LRz7VnUFK 3/kmAM7KDPHGfEhlFaLvp55CPH2H4zDaGmVaqA1rdOvYKpqJV9PTisTnr99Kg9zTnrnb CPT9QVChov9+C1oT87EBDvo8hN1lDYsC9suXi2UqsAkds+xAzaj8LMDb9gbyrnNyblcX P3D5HFVfpFu+bmTLhOlwasPyp6gkHJxP74dEU5HymIKstDonW4oI1Lve/6AqHHyGXPUg LTdqTyDTX/wFx1+/ZrUKB+M24SDy+Q91JTywspHGUCe6cpsoya94iVSel8TMn/uSqp+6 zwqA== 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 n7-v6si1661701plp.363.2018.09.05.05.10.28; Wed, 05 Sep 2018 05:10:44 -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 S1728111AbeIEQjC (ORCPT + 99 others); Wed, 5 Sep 2018 12:39:02 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:42988 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727997AbeIEQjB (ORCPT ); Wed, 5 Sep 2018 12:39:01 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1305098|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e01l07440;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=12;RT=12;SR=0;TI=SMTPD_---.CmtAQao_1536149309; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CmtAQao_1536149309) by smtp.aliyun-inc.com(10.147.43.95); Wed, 05 Sep 2018 20:08:29 +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 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 V3 20/26] dt-bindings: timer: C-SKY Multi-processor timer Date: Wed, 5 Sep 2018 20:07:59 +0800 Message-Id: <18101ebf957fc8cdfa2cb931c539750e7def0969.1536138304.git.ren_guo@c-sky.com> X-Mailer: git-send-email 2.7.4 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 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