Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp249362ybm; Wed, 22 May 2019 02:28:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzBR0we11KHiZ0oAqzGVXQd+DOqVrNJQYhom9OPUypkBt5tkfLLVRKVQ/pz8bzPhpASaPY X-Received: by 2002:a65:64da:: with SMTP id t26mr204727pgv.41.1558517328408; Wed, 22 May 2019 02:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558517328; cv=none; d=google.com; s=arc-20160816; b=qB5N7B09R4uichnoOALvcor5ad7+mxWZXSnf/QSJCkIo505m+ApKb0SOiqBIUEySGx B53BWayQRvCDvN49yumd2pAE2LsurW3UG0nPEQykAN2PZxQGJXxgqpTw5UbQOZgddni1 Lc0edbf+EhSavT4QTcnpmk2t0SiYcMPQ7VytDEvFrXUnCmIgveEa4nxR1Sz2AFAianUv EhuC7x6S9AuhiXYZX6TUQnNcvfpw4II3y1vHXRPXkX17deKrDTEy9yDnY83kkEwbQQbu 8/XaywaH/nsIrLbmmGOCKNT7CGxx3/Z2EL+n7LhAYlPVKfu0Wvh8ilFjLNjFa6yD9NTU zdQQ== 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=aqQK96sInWVh0Y5LIJ5B9p2BPe82b3j35ySKP7D0fzl6au39MtAeTM/kHzCwTe6yw0 WZ4OdsgSyBJDwWFzdHDVQEVZphvdN1mfk/RYcUyMOAPB6vp07DNK8Cj2U92+aFbfrNBI gmlq5XQ8CeRmWp0BmZdmgqH2aL/BCwXgrsDkgs1ku5UqLzDh7vBiencnV55IHradR0HH TCEvsuvSK2kIh8ulCRqFJUqGwtu4ldYEkvS1AQd7Efz/sZDL2m1N0yl4zJcXywVgphJM sCuJRHn5NKQ/HE58VkneTjsXCsfDq9s9C0Zz76axXfl2asPCHgT+WksDGKES46dOzKzB 6WSg== 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 bg9si23439651plb.12.2019.05.22.02.28.33; Wed, 22 May 2019 02:28:48 -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 S1729099AbfEVJ06 (ORCPT + 99 others); Wed, 22 May 2019 05:26:58 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:54376 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729000AbfEVJ0u (ORCPT ); Wed, 22 May 2019 05:26:50 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08448831|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.503012-0.0276285-0.469359;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03278;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.EbUB1X0_1558517209; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.EbUB1X0_1558517209) by smtp.aliyun-inc.com(10.147.41.187); Wed, 22 May 2019 17:26:49 +0800 From: Mao Han To: linux-kernel@vger.kernel.org Cc: Mao Han , Rob Herring , Guo Ren , linux-csky@vger.kernel.org Subject: [PATCH 4/5] dt-bindings: csky: Add csky PMU bindings Date: Wed, 22 May 2019 17:25:31 +0800 Message-Id: <2e6e6d4b8f002900a3872105a9284d7dd562c82b.1558516765.git.han_mao@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 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