Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3458437ybi; Mon, 27 May 2019 00:00:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYe5U0g/S+B9QrUTf+D8R0x8jUZ7fE8IS52XUGZQ8p1PbmpKGz6p4Xb80ia/RGTT6M8Lni X-Received: by 2002:a62:3741:: with SMTP id e62mr39417238pfa.213.1558940417212; Mon, 27 May 2019 00:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558940417; cv=none; d=google.com; s=arc-20160816; b=H6/ORlgT76RIYahzt+jV78rjoWE4KOuUL/lazouXivudbPDYEtcTWV7b3QWda+imJ7 sTH3rFam1ZEwm8UkK+7tZMzXcNaRNOzwx4vYmlere4jyNy5ZrdzNTddivtrlS7jXMtp6 DwRlUJ+B6rCfnpRLkrOVYuH6d6VLBapaEbnDU8QvsJ4NMEgi28DKDbQYVFrw5vOmGyRi OVkwn4dpMuy28ESB8M/KHcAEvtgbS7BuXRz4gKsyztNhmQ13EwaVfmSV6ER1Q4yNTqK2 Nju6tKrKLUPyNi4R9iskiLtPMNYVSJOB05kvEFw8yvMJR6YG+eEWF5CbbD1A+cC9QiqT udPA== 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=ahp0p6JtRVVwtryxE40/iKkhq+WkT+bDKW6yJYMiaNA=; b=j2p0y+ztH2xwkNY3qEBbqYWlUnzCUeoHI3TXLZ0C5KcQpWg2Ik0OmxeRMaOgrRadVf OXeVPFfqJOYIt9E+q4/2tbjWlkvTaOq7x2q9KMppkDzhNjHxb31QafCZcH03LQKB7/M5 gSri6zXEDPbxzuyQIDGHjrdxPSs8rk9cUrZsP7TaFK6MtsqdemF02KhfLIIoUb++CGSZ 1qJQCT2KFEGQkiza3kE8+RexXOntAkZWzkyZgQXXUHGA/hHzQxZDxMRVmZkWzLck9xc2 uKaBJgELhihNqVsHOKkwZ4NS93W9taOXZEqIGCjkfCFrl1t2kcagXboiZ3brlgWUIZk2 llOg== 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 e23si14937535pgi.434.2019.05.27.00.00.02; Mon, 27 May 2019 00:00:17 -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 S1726483AbfE0G6o (ORCPT + 99 others); Mon, 27 May 2019 02:58:44 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:47257 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726322AbfE0G6b (ORCPT ); Mon, 27 May 2019 02:58:31 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.0850651|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.503012-0.0276285-0.469359;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03292;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.Edg3JTK_1558940308; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.Edg3JTK_1558940308) by smtp.aliyun-inc.com(10.147.42.197); Mon, 27 May 2019 14:58:28 +0800 From: Mao Han To: linux-kernel@vger.kernel.org Cc: Mao Han , Rob Herring , Guo Ren , linux-csky@vger.kernel.org Subject: [PATCH V2 4/5] dt-bindings: csky: Add csky PMU bindings Date: Mon, 27 May 2019 14:57:20 +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 This patch adds the documentation to describe that how to add pmu node in dts. Signed-off-by: Mao Han CC: Rob Herring CC: Guo Ren CC: linux-csky@vger.kernel.org --- Documentation/devicetree/bindings/csky/pmu.txt | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/csky/pmu.txt diff --git a/Documentation/devicetree/bindings/csky/pmu.txt b/Documentation/devicetree/bindings/csky/pmu.txt new file mode 100644 index 0000000..6d3cba3 --- /dev/null +++ b/Documentation/devicetree/bindings/csky/pmu.txt @@ -0,0 +1,38 @@ +============================ +C-SKY Performance Monitor Units +============================ + +C-SKY 8xx series cores often have a PMU for counting cpu and cache events. +The C-SKY PMU representation in the device tree should be done as under: + +============================== +PMU node bindings definition +============================== + + Description: Describes PMU + + PROPERTIES + + - compatible + Usage: required + Value type: + Definition: must be "csky,csky-pmu" + - interrupts + Usage: required + Value type: + Definition: must be pmu irq num defined by soc + - reg-io-width + Usage: optional + Value type: + Definition: the width of pmu counter + +Examples: +--------- + + pmu { + compatible = "csky,csky-pmu"; + interrupts = <0x17>; + interrupt-parent = <&intc>; + reg-io-width = <0x30>; + }; + -- 2.7.4