Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2749236imm; Sun, 16 Sep 2018 02:14:53 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZRtSxDVTpFr78xgro9W50f9HWky9rbZZympmwnSvurhdTdYLge/n3VJJzPkdHW8sbXf7be X-Received: by 2002:a63:6485:: with SMTP id y127-v6mr18751999pgb.393.1537089293206; Sun, 16 Sep 2018 02:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537089293; cv=none; d=google.com; s=arc-20160816; b=dZmKzIqB7vxXhtkO+Tbi6QTDO/K5NNcEFO5dq50Xl/GUFvrsiinRX3/GuBfPMIW+ly ey6YRFdsd6rntZhc0lwL+6odI8r5ZJrQYJZspiPgmVjHVrXhkmOW6XtyDafhTqH8xEMw xWtp+jqUFoAZ1TKpzu7QcFSCw04rVIKme3ytoO4cHDO1rGOBVO+RH7jzbWSwqGN1FaMH f3WVERg3Xwu2RiROH0T8AC7wJdPgbR6y1I7QgMThC7gKfDo0dVngTuXpM/Wt3LbxF4ci Mj3/PyCjQHpBjw2Zzo3H3lPh1vZjqN4IJLps+kTCJdMiDD23j4f/Is4fBrUNretAMKoj hwZw== 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=QeCsAwXIBU6sDLdCP3fKMsEp5qciSikNfzsNQ6dW9s0=; b=P0M7G26gtgLlJBCDx4tTVYTzy+LlFpOAmD3z9fsteM6Pv6JwarGBx4UvN701SwYks8 6ub1IavAEZUeFGi+ulw5c3guVDuEJF3xXG+zhokpx1ux3GMvA15gidrn3JXi/JV4hFIW +juXqIQEMgE2faCmthpggVU8kdlxC81zyP4CTsFQ++y+VHW0PWTnnBtOPcQancs27ed8 KMH36wOt6TnVWoifyO9gk0qihUI2n4K0h2VJMiB/Z4DGZsd+4zPGGePWP49lKS5Sx4Cf CG288A9InO3Je5snrCuBCJ4z0c8j8Kbm00rDFrJOA7ve/0Az2GT+cJhCWMH6jw0+Ez4s zMwQ== 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 c12-v6si12497870plz.456.2018.09.16.02.14.13; Sun, 16 Sep 2018 02:14:53 -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 S1727857AbeIPOgY (ORCPT + 99 others); Sun, 16 Sep 2018 10:36:24 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:34828 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727314AbeIPOgY (ORCPT ); Sun, 16 Sep 2018 10:36:24 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1365155|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03296;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.CrTMdkS_1537089242; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CrTMdkS_1537089242) by smtp.aliyun-inc.com(10.147.40.200); Sun, 16 Sep 2018 17:14:02 +0800 From: Guo Ren To: tglx@linutronix.de, daniel.lezcano@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Guo Ren Subject: [PATCH V5 2/2] dt-bindings: timer: C-SKY Multi-processor timer Date: Sun, 16 Sep 2018 17:13:58 +0800 Message-Id: <25c2f8b500de638952fa677a983781e3e7e6be73.1537089130.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..1e7e31d --- /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 + - interrupts + 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