Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3795656ybi; Sun, 2 Jun 2019 23:51:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+qayd46nAOaR/LriwHKMN7YQn7gnBBwMnOpukG1OLDOK9J1EIYgj7m2yseI9z24itJBmk X-Received: by 2002:a17:90a:dc86:: with SMTP id j6mr26543197pjv.141.1559544701619; Sun, 02 Jun 2019 23:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559544701; cv=none; d=google.com; s=arc-20160816; b=knGBelto+mTqP76qBZt6I4r+7qsbGBaXgznHErupKW/HrFT1FFC88pTVdHxfdfPKdC yj5jL4w91MDexwwVBlxY2Z4ajBsGfzTbuKGE0Rsz7aaDEs1od39UsVODLzHobHsxh0Z+ mGzTFN8lKKco+ZCtY30Tf6PolmfBM0OzlwtGKyh1PlJeU1l5Z9dplGitystjL0vm6dCw hYz55xTl9uZcxppaI0k70L9wlAKzqHLEkCzT19MKZGDXb4i7ugBOi5Uc4ze5BgZP6f5F W88QqlZWg3Fej60cGIX5HjjFSw72u61CanZ/0Bcp8zR5O0644m0phLjMmJfpEVVQAKo8 P7Hw== 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=PMNXmD/LQrCbOUs8Eb+Q7yliwRknMmaFW8jzzb7DyoM=; b=K5ooDTdbBvaU6kHcctxt1jyGeLWSi6D2gnx9daCbalBMUubXeuxQTJCcr3Gc4idli6 FrV2xwCtTXy6koMNF1qVIizS3keqR6AhlN/aD5klCiGm+O7zbBQNTD1Hry7yj9y1c5QZ IN06BD9kCrcYK4sUy/gSur5akityJlrSB+UaYncyRuXJiR4ESPdnbkvUj71/WVI7V7DR THiG1MrQYvxOK6ggHoLhBP0/Sd8F4f7xWI3Byt36wlgG2ZG4WxrhYvIfneBvr3AHxiaa NFcS/jei98054D1ux3wiz17mr8XcnYmB1fmvvj4adDZ5mL7/xK/uMlLbZK8lN6z2iDpF cyKA== 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 q8si13772354pll.205.2019.06.02.23.51.26; Sun, 02 Jun 2019 23:51:41 -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 S1727271AbfFCGsA (ORCPT + 99 others); Mon, 3 Jun 2019 02:48:00 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:43713 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727268AbfFCGrj (ORCPT ); Mon, 3 Jun 2019 02:47:39 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.0843899|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.425534-0.023847-0.550619;FP=0|0|0|0|0|-1|-1|-1;HT=e01a16378;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.EglnAtr_1559544454; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.EglnAtr_1559544454) by smtp.aliyun-inc.com(10.147.40.7); Mon, 03 Jun 2019 14:47:34 +0800 From: Mao Han To: linux-kernel@vger.kernel.org Cc: Mao Han , Rob Herring , Guo Ren , linux-csky@vger.kernel.org Subject: [PATCH V3 4/6] dt-bindings: csky: Add csky PMU bindings Date: Mon, 3 Jun 2019 14:46:23 +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..4046b3b --- /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 IRQ_TYPE_EDGE_RISING>; + interrupt-parent = <&intc>; + reg-io-width = <0x30>; + }; + -- 2.7.4