Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3131963imm; Mon, 24 Sep 2018 16:44:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV62RFCvgGT3UAGoTtIrGFMA0DNwqptLdXxtinHxpwrig0/HqBsi0FksqYhGD66MQG5CKPArv X-Received: by 2002:a62:4255:: with SMTP id p82-v6mr901659pfa.238.1537832674934; Mon, 24 Sep 2018 16:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537832674; cv=none; d=google.com; s=arc-20160816; b=ZjGDnR2YQ0C7sUhyahskNNtFYraNEQA3xAJEzpXjm/1BoXpSRGmrWox/QsEh3v3DmN 6LrbeMq8lomcoeSHqu9z7wYNtPeu77qCqdEIbCV8fWrSKYS6XjtLoJOnq+PvRc2NCSDM E0WwgQKH8eAtInIrkTuFp1G953S+4PP0D93cyOHyGQLiyxzM+0mfG/T2o2IIh4/5Hf9p xahTCa2KisqbQ0XE6BToCDz4xQMnM61MPBOPK7plegyUBYIPAsxCXeotNrXRmMFYDPSD ttwj4uz+ROx9r1EwGt5wNBpHQaOv966tAZ1AUvV32x6Ep07qPSvqMAZCC7gx2Q7IAfru TAXQ== 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=UYBcEj2buBvr0l8iEfSL0jo5/wQVFzrwHri/sk1kdHY=; b=k80OPpYhHM/vZouskKang7ZDyOpOMtaCvXoynBpuHNJ018Q2urgAKW6fC+PTB8fuYi BWl0hSjhpbJyN99t7Z88eSzzee05Eg+8IfBCubO33rT7gw/2l+wLbBXQpp0bLj8kMXbk YaTQeQTFCN0twPn4gKFnfkoftaVRQVZHzGGhfVzhSg/0f/SMVxS5f0ePYZluCPbvlXat evly20JzRXm3ilmLzjOYQDJYxlc3jJ6GBWoWnfau99nAQU3J8q51gEi+Y8UUwRgIgyo7 HkeGGqau/qKQTJ8bSgaI46FH3FDs+nYHb58q/krtSODd+5+gJ6nKKqU3U4l9yzP8kFlj 4daA== 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 d38-v6si648288pla.422.2018.09.24.16.44.19; Mon, 24 Sep 2018 16:44:34 -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 S1728282AbeIYFse (ORCPT + 99 others); Tue, 25 Sep 2018 01:48:34 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:43993 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728075AbeIYFse (ORCPT ); Tue, 25 Sep 2018 01:48:34 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1317377|-1;CH=blue;FP=17163135837722719521|1|1|14|0|-1|-1|-1;HT=e01l07440;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=19;RT=19;SR=0;TI=SMTPD_---.CvM8obQ_1537832620; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CvM8obQ_1537832620) by smtp.aliyun-inc.com(10.147.42.253); Tue, 25 Sep 2018 07:43:40 +0800 From: Guo Ren To: akpm@linux-foundation.org, arnd@arndb.de, daniel.lezcano@linaro.org, davem@davemloft.net, gregkh@linuxfoundation.org, jason@lakedaemon.net, marc.zyngier@arm.com, mark.rutland@arm.com, mchehab+samsung@kernel.org, peterz@infradead.org, robh@kernel.org, robh+dt@kernel.org, tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, devicetree@vger.kernel.org, green.hu@gmail.com, palmer@sifive.com, Guo Ren Subject: [PATCH V5 25/30] dt-bindings: timer: C-SKY Multi-processor timer Date: Tue, 25 Sep 2018 07:39:28 +0800 Message-Id: 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 - Dt-bingdings doc for C-SKY SMP system setting. 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