From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F969C07542 for ; Mon, 27 May 2019 06:58:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E648C21721 for ; Mon, 27 May 2019 06:58:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726334AbfE0G6n (ORCPT ); Mon, 27 May 2019 02:58:43 -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-csky-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-csky@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