Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp145417imm; Thu, 27 Sep 2018 17:55:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV616GafJTkZbXbhYJj+7K+/NnCd6EYl7jinAPbcQ1UF5FNjzszVl9ev37xhZYcMjKt8gXzyR X-Received: by 2002:a17:902:b90b:: with SMTP id bf11-v6mr13737346plb.52.1538096120624; Thu, 27 Sep 2018 17:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538096120; cv=none; d=google.com; s=arc-20160816; b=HjOjyxn00cgoYfJ/IQPoDPcbo6yJENOXfe3XihFZaRyzsFyXe21D2j9MXiaXFf3Fyh jMi5LUYIYv0siBGVqNvGKONxuhk2sSRP9VM9Lp6ncVIW7kWd7UjgBaORg8ZRlr6b98rw MqKrcxt2VEicKbyOdOOqFOqNFRHPBFMQauDKsNpeS9qIvh7Ulo+HkP8wH2McjD/xZu1D tkqyroBnI8mZzMfzwe+3uDrc6Pxkru0zq9uCwPUEczMMgDb0jBmktRcu0It32CE2wyys Ot3JiORCumjtTIj/hItdyHXDJhZs1madzgR4XcjcULDEBYtKRwt+NgNsUH4C66cCKYTl WKOA== 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=Hi1yElv4I80K+hHN3a/Q8k5xc4AFrCqkRVLSz358PB9FJ3YwB7g1JEkaLLiqs23pvV t2bc/FOF4Ej/LxhyUXcYaRx4o36pJSydEMzrTC40jCFPgd3y+2D2kygnDPYHFSxTtUll F2fLOBJXLHTiph5zACC1Pii7Qhb1KLDdzAOsSiNkwQtsdDAdBbm/4NnkjBvSjQuiTs2J FZGItTki7l8x4Fmf37srV5oA6+x4JVP1x2jh7FJdMXAVt1Ey9+6lCvmuPbpY/X9F1nJJ WPNuCwXBtv685H2fngjshksGveabD5BZejg1Aba69BX+jdngxZMLdi+AhAUgrUjRAGz5 OI/g== 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 u10-v6si3359399pls.89.2018.09.27.17.55.05; Thu, 27 Sep 2018 17:55:20 -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 S1728972AbeI1HOY (ORCPT + 99 others); Fri, 28 Sep 2018 03:14:24 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:38785 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728871AbeI1HN5 (ORCPT ); Fri, 28 Sep 2018 03:13:57 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1301756|-1;CH=blue;FP=17163135837689165057|1|1|12|0|-1|-1|-1;HT=e02c03307;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=18;RT=18;SR=0;TI=SMTPD_---.CwkgmnD_1538095939; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CwkgmnD_1538095939) by smtp.aliyun-inc.com(10.147.40.44); Fri, 28 Sep 2018 08:52:20 +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, Guo Ren Subject: [PATCH V6 25/33] dt-bindings: timer: C-SKY Multi-processor timer Date: Fri, 28 Sep 2018 08:51:22 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: <62098e7d0a7fbdd09f44d7e23333dad258a01bd2.1538058840.git.ren_guo@c-sky.com> References: <62098e7d0a7fbdd09f44d7e23333dad258a01bd2.1538058840.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 - 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