From patchwork Fri Nov 2 19:08:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 150080 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2433990ljp; Fri, 2 Nov 2018 12:09:15 -0700 (PDT) X-Google-Smtp-Source: AJdET5etdHuQ6xY1s/vEm0m62cW7/BR5MCWaROp/LEfD1r7xUhzYV20waz5sAUJsvowigsjAT99M X-Received: by 2002:a62:6b41:: with SMTP id g62-v6mr12841516pfc.106.1541185755224; Fri, 02 Nov 2018 12:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541185755; cv=none; d=google.com; s=arc-20160816; b=okcg8CQOlTShRY+utVO8SFzo90ypg2UImCQXhYUvjJFAAOF7JaSWGc7fShRyCbj2Or txsurqNNcBKGqD5nM6ugPr/xVQQrCKwcRVzAuJlcr7B/SKTNj+9ewL5FXfSCeXXSzA32 EnlLm+GLm+AYCY1pj8CJp2ndi76XhNtaDuqr7j3b+lQ/BIFE0jQ96KLyzpxc4/01CtmL yDNOXCK2YuyX5VV8D489VDicShA2ngm7suz1oqncVeV0hArJWQOITyAWFhcyHi2+Gpwp 0Ge8l1VUul+Gp2vWzKVs5Bnsu9RZBr7dfeeMlI1L+cy/dmwTGX/oRm6Kelq+YlT5/nfu ztQA== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=AYhygTC2wYv/caLmoYMF60fvpB/eiIKLPujtWer++2M=; b=FLG2L3701eHFgMQQehKkAxJ1AoRcp2Cg59o/mdajfroVlyX2PPfwxnxbz7wIPJREts nSZfEvGuH49pqoWiTLoT+dOjxapzuGySKRjz+8De76YESjEX5d9ZiRFOO5jA3U4rRGjv a1JOWTXI5Hazf4BvevPzy2w28CAPEd0OCDY63bkvlUPUN2EYs99JS9TlGTeiL0RGxh18 fPoL62Ddh8RxRuckD7IrqT1jfDZ3Ttg9DIi0G7tWzNZBXXrHbfo68hx86SVbcKgSFLEJ 6noYvbwu2TdGx62kodYrtnjrwk3jHARh93lo04SbpyitX+DTI28YGM0SZUdfCg1X55bu CO3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kYEmU2t9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z11-v6si34718316pgf.66.2018.11.02.12.09.14; Fri, 02 Nov 2018 12:09:15 -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; dkim=pass header.i=@linaro.org header.s=google header.b=kYEmU2t9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727629AbeKCERc (ORCPT + 32 others); Sat, 3 Nov 2018 00:17:32 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:50790 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726051AbeKCERb (ORCPT ); Sat, 3 Nov 2018 00:17:31 -0400 Received: by mail-wm1-f65.google.com with SMTP id h2-v6so2887556wmb.0 for ; Fri, 02 Nov 2018 12:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AYhygTC2wYv/caLmoYMF60fvpB/eiIKLPujtWer++2M=; b=kYEmU2t9DfhBK6D9RUmtbcXwDpJ5OwD5nX0jV1vnQwlVqxEMz3+Mok9IUSV8iduF1g o+O6vjRoPsss7yOZSGxY7C6I67HP7HBaAzrqtx+RV6qJp54/NOcBBL2lRG/1+pVrXQO1 z6OINvE7FW6oaUMsKftiAaKIDBhqv17XIJr0o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AYhygTC2wYv/caLmoYMF60fvpB/eiIKLPujtWer++2M=; b=Of2jl8HunQboj2I5M7U9ZzMRe7rVzpEJVfdYqlDAsT7NX26UZvZ+zzVHH0RHXwqSRh DOdAVrX/dsIjAnCKleSz3j4p6oAzh00HolO7Jup0g0aiCZSkPAJry4gG263j76/bDYtZ GYXYoqjDOCVvtb/LwufmA9JRfXuJnsfkjoRv06W0Rol1q9N3lp2vcZEXEU8D9E2OeWPj 6o8HQWLglIgA5wTz5rP3wyD5ljyygCTCJAQm2ssW4O5cCtqbO7Iu5Mw+DTy83/Ax2Hqd oiV6EMvotoKymGiQBkrfsM/wTPTzLeTdujgVN1GEYKQ0oVTjaG90ZKhQUO7f/CV+BkFv r3LQ== X-Gm-Message-State: AGRZ1gKMKMfffbGMgEczAIqqwQtJ0TAfNypIj3d8B9/Tmk+9jC9u/miY YLDPLuFWSHqwSO2R/qTBfJWO4g== X-Received: by 2002:a1c:950f:: with SMTP id x15-v6mr165944wmd.3.1541185749708; Fri, 02 Nov 2018 12:09:09 -0700 (PDT) Received: from localhost.localdomain ([80.125.186.228]) by smtp.gmail.com with ESMTPSA id s195-v6sm3899337wmd.39.2018.11.02.12.09.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Nov 2018 12:09:08 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, ren_guo@c-sky.com Subject: [PATCH 2/4] dt-bindings: timer: C-SKY Multi-processor timer Date: Fri, 2 Nov 2018 20:08:56 +0100 Message-Id: <1541185738-8208-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1541185738-8208-1-git-send-email-daniel.lezcano@linaro.org> References: <1541185738-8208-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren Dt-bingdings doc for C-SKY SMP system setting. Signed-off-by: Guo Ren Reviewed-by: Rob Herring Signed-off-by: Daniel Lezcano --- .../devicetree/bindings/timer/csky,mptimer.txt | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,mptimer.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/timer/csky,mptimer.txt b/Documentation/devicetree/bindings/timer/csky,mptimer.txt new file mode 100644 index 0000000..15cfec0 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/csky,mptimer.txt @@ -0,0 +1,42 @@ +============================ +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 + +Examples: +--------- + + timer: timer { + compatible = "csky,mptimer"; + clocks = <&dummy_apb_clk>; + interrupts = <16>; + interrupt-parent = <&intc>; + };