Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1580603imm; Wed, 19 Sep 2018 22:42:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZBg6dO/O1UZtnHqMaE2Yq2beLy36Nek+zlstD4C7CDYfKwhFxgGNGK+Zb3PvlFmL4tlfSP X-Received: by 2002:a63:91:: with SMTP id 139-v6mr35406198pga.389.1537422149662; Wed, 19 Sep 2018 22:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537422149; cv=none; d=google.com; s=arc-20160816; b=Hp55WEPdL5GwD719T1qijM0zHpOW5J39S7Ao+Zb96sjnEZYvSqjEyXmnLfFdNw/nmc m46jHgshu2e9fhg9wBgJ7ZnZKymy9XoYjDaBeyRVqhC8HZCXIziqkdntKjon162GzNoe Nu8xu+ovDsRu9ZT0DJ1DV973jtkxHCChnn45uBAfh3ZCDQcS7woP6fTObfWfGJOgcfQ2 LUIdOmHCnEnyZNIIO5cOOVluFQbSlijb45fgU7R+tXGqWG+bbZ1y9N6LkYJyBcHMBIZO Y1oaFsHRTFYtUytM1ncI6IXIchFWYLsqzgsNiwHVQcLS5UrtPasFGaqiLJhJdIBMSWdq ajwg== 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=R5QZlHzyBkrt7AlbJZcNpegO7KhiO++CYqDsPdUoLC94ZF/dqVtLq8BQ6FgW9hnwKs oqSxki3o9Hnq6+7gVDKSY313UBPE97aIVND5LCxYsME07GKrpIJM/QeSiFnM7gSByUuQ CXBoos7bkRrKD96L1WkVUhUWvJ8EM5h0C2KlPqD3u4xjhxrTzmhrPpb+3x6Y8WWtEc+C MilDpExA3rlQ4FWaiS+uRoAIXJLKvOlW10kADHzOIlkluIqoNHXqP4u7UAt/WhcNhUqE rponGdqxI/y2jr62oGgCeZU7+nbpAMLiQg1p7diUoKrZdh8rvGaGTh8uoB0NNjQ/2lVa g7ZQ== 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 31-v6si23238309plg.260.2018.09.19.22.42.14; Wed, 19 Sep 2018 22:42:29 -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 S1731776AbeITLWH (ORCPT + 99 others); Thu, 20 Sep 2018 07:22:07 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:50376 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731670AbeITLWH (ORCPT ); Thu, 20 Sep 2018 07:22:07 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1357702|-1;CH=green;FP=17163135837722719489|1|1|1|0|-1|-1|-1;HT=e02c03273;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=15;RT=15;SR=0;TI=SMTPD_---.CtHBWpp_1537421996; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CtHBWpp_1537421996) by smtp.aliyun-inc.com(10.147.40.233); Thu, 20 Sep 2018 13:39:56 +0800 From: Guo Ren To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, robh+dt@kernel.org, mark.rutland@arm.com, arnd@arndb.de, robh@kernel.org, sfr@canb.auug.org.au Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arch@vger.kernel.org, c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, green.hu@gmail.com, Guo Ren Subject: [PATCH V8 6/6] dt-bindings: timer: C-SKY Multi-processor timer Date: Thu, 20 Sep 2018 13:39:32 +0800 Message-Id: <6c2373f3a70d817095d15535ebd08f503319b6e2.1537417413.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 - 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