Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5256019ybi; Tue, 4 Jun 2019 03:58:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0TGXNwIrflHFRqu7oZgaFAzDJpYuXCYGR+Tk/LHPXtT3lWamtmxsW+dzRUBUwGRtEYHLL X-Received: by 2002:a63:1642:: with SMTP id 2mr33806703pgw.230.1559645880960; Tue, 04 Jun 2019 03:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559645880; cv=none; d=google.com; s=arc-20160816; b=FddrfmPn4c0vAqMukjnYuEvMj2jaQf8Bo8y9+OxwBJvjs7lYZqrRb5SRpvQI8aRHuZ 5KHcYU3vrZO2oiZipqDNiJcLfM+FN/hWmfgQpq/hi9u9xrQZP4qUl4j//nY6YZvWihsG Ciq5xXeUwfa1OH70hK8af2qW8LgGrG3GruhDcRSkAz0Jdum9Ud6vY46JnAzSa0kHajIv 9kBLTm7pyQd06jADtf1pw6Z9VnsBmLYjgz7n77z652sJP345rYtvlcbGEh/BICJqCBRD JHdwLp1LFWLlCJBEfBEsSuPr+NupAF04PjaCL4c7wW6U78QrcIadRrQnGn6h7q+OlQgg 7AXA== 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=slFgpWhLL8QGuqitmazpwsK8zFtzuRK8viE9NUJ4Vlo=; b=J6kliDRQ8lF9cFBr317BgmICm8f8HR6rhh/dkZv2mWOZ9U5XuS1SiXmaMg8pitSy1v q8O9BsoLLM2cMpFt5/D6j7ks8bt2NMRV2DFxF7ZLEGGwQlww8MfTDRgyYSt/Y2YRUKiU nbZoHK9YzvuRFRXY4z1TN8tA1+LGZ4RzQRO77Yv52R1OIssNNY6UDAIX4Ip5qDV8KioM SwEKDRBxqjjshFUjH2t0mCiu/bESM2yVvSLBuqiz+kDYtrBfrF1HhSm8NA1PD/jNXQX7 mO06T+tT4bnH7ZaVl+r1gj7AD0gpdXQSlrAWQz3ZyByVXSzASlCDml2gHpQBfSW0oNEA P8KQ== 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 j62si14150194pje.52.2019.06.04.03.57.44; Tue, 04 Jun 2019 03:58:00 -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 S1727560AbfFDK4N (ORCPT + 99 others); Tue, 4 Jun 2019 06:56:13 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:39915 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727501AbfFDK4K (ORCPT ); Tue, 4 Jun 2019 06:56:10 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08548739|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.457986-0.024733-0.517281;FP=8026422909421434835|2|2|3|0|-1|-1|-1;HT=e02c03267;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.EhJ5-7s_1559645767; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.EhJ5-7s_1559645767) by smtp.aliyun-inc.com(10.147.44.129); Tue, 04 Jun 2019 18:56:07 +0800 From: Mao Han To: linux-kernel@vger.kernel.org Cc: Mao Han , linux-csky@vger.kernel.org, Rob Herring , Guo Ren Subject: [PATCH V5 4/6] dt-bindings: csky: Add csky PMU bindings Date: Tue, 4 Jun 2019 18:54:47 +0800 Message-Id: <65c8b387c6b1991ee4978925bc2ec82f2cd9fad2.1559644961.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 --- 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..53c3b0a --- /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 + - count-width + Usage: optional + Value type: + Definition: the width of pmu counter + +Examples: +--------- + + pmu { + compatible = "csky,csky-pmu"; + interrupts = <0x17 IRQ_TYPE_EDGE_RISING>; + interrupt-parent = <&intc>; + count-width = <0x30>; + }; + -- 2.7.4