Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5465505imm; Wed, 12 Sep 2018 06:27:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbpbefYWbZiK41IoONksIN7u2PsU+TxCzqx/61MTSwjYlsp7frxr1TBnjGThqRXaxBkHmHL X-Received: by 2002:a63:fa0c:: with SMTP id y12-v6mr2347809pgh.177.1536758877872; Wed, 12 Sep 2018 06:27:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536758877; cv=none; d=google.com; s=arc-20160816; b=gYV0rErxycrBGIn6Epd7jnrmypKFYHfFoQa+xoHbDpDpRk7/h5bSaeaebq5JlgmUqT Ijjoe1BgGxYNgMGSQ5zHSwcg8f9uPcTL9yZYPk/TaBglPS9pAsWFT/qDpcbANjPdmkCB VH5e76KnDIfOyQJoTED7WnQN+z1mb2QIc/ThVFSPSUtWkGw14itCqwy7ouoh4Ng0vuwH poV2lDXfbwF21yP6A/jY/MqAWH0E2A1qyOOiXVdNCtFf3CDZrh1Dg0jbOkN7GMEevZyz N0Yt0jF7fgMnhy3VPdzqA0jvogwTw3p70KZobx954KE/dJcF0KreMYrnc73/F3XXXrr7 mwUw== 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=B9Qv3/NevoEhkh2UA4IWywIfj+osD2jwPQCH/jzLLuDWJkmQjI75RNTOZCp1/q4DWb +eYFo0zjcb/NIL0XhWgrlGD8loJS1OZ0h+xbemeXDhpC73s28GwM52meKp55qN1CCMpe cB4CFQJy3r2imMog+6/52JeXOJip52z2WfvGpYQP6nl2ByQiuf+I8N/uizoGU9bP0kKM Ft8+83DEQQilWpFgOtXgw69Mf3Wu4ngXoUsyLM0C5iIKLLD67B97GzmZ3tOwt3KvHYjQ NuRWRvTq8P2SQGjVGLMje1imF0StNvhCcrSf2hoGy0kkdF/tSEIS4aFUQivS4X5CveJ2 BAwA== 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 k3-v6si967515pld.6.2018.09.12.06.27.42; Wed, 12 Sep 2018 06:27:57 -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 S1728287AbeILSa3 (ORCPT + 99 others); Wed, 12 Sep 2018 14:30:29 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:42211 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728257AbeILSa2 (ORCPT ); Wed, 12 Sep 2018 14:30:28 -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=15;RT=15;SR=0;TI=SMTPD_---.CpvjkkP_1536758717; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CpvjkkP_1536758717) by smtp.aliyun-inc.com(10.147.44.145); Wed, 12 Sep 2018 21:25:18 +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 V3 20/27] dt-bindings: timer: C-SKY Multi-processor timer Date: Wed, 12 Sep 2018 21:24:54 +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 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