Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4994216ybi; Mon, 3 Jun 2019 22:41:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDvXlylnBOKzVlpKWEx4eMHOAnrQlPA2CIv59cR9PzotMpnW9yRNfqy5VMeEh3WbgdsoHq X-Received: by 2002:a17:902:e306:: with SMTP id cg6mr6741148plb.341.1559626865027; Mon, 03 Jun 2019 22:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559626865; cv=none; d=google.com; s=arc-20160816; b=TYbDk183kRQK3DYyCAmu4D/bycSaQOA1oBoLjfH17LpY2I8fJyBVFlj+UVAoVT75NL 3RWTWZr1C/XBWK4Yg0bJybrQYLM/m+LmxfdsvR3f6s1pqaTtpXX0fGp/SknHvshOqvkX WtaMuvd6fRfpfMsOpg6DdXcKxrU8oUVzTSUn32+i0K/3Uphm8blOS7KD7g8ne0HkdjF7 Hg7QPp06Zg/lROryv9uDyS3i1S4Bae6hw+J8ZBw/jB+8zEQV03I4VZihNCdA8iGQHE1O dyM1lZyMUs55s0Vci51zSBH9PtcjD1SvYTtzuez9gIDssbaSF4gKIz3Rn4XTr7qw+6QX 2wPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OwNILkUJ7rcE778qgBn3dva3MVvush6vjVa3IwfVHcQ=; b=x/pMu2RwpbTUfjMAdJjORIdY55iHICDSROU2YIo21oKQFMTz+ARrN5156Woq8HwIdI 8eaD5u4Ouh2/2t9lduE63QZ+NhaFcyVRJfUrOQ01Lbim5417iU9/HpE1wvEDoJpT4ENW xg/veSaR2eaXV4VjDH3JpKZjD3SDmop2KlIgqxGfUg5HZZOSyeKkTwBBaRlItzUbiLAV f5oaiLYrwU+14qU1r/WtkBz4V0Gd3ARUZOe1B9pNcg8wTnnlgrB3UbhqQeqshKhRbKfm TyQGgd1QadPDFYDuS/0dP6HUu3fbmWonSgV3onHKjc7A8ptbyzxnQQ50STtmgLdhTzJ2 EzaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VuL7lsDL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10si20787118pjr.102.2019.06.03.22.40.48; Mon, 03 Jun 2019 22:41:05 -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; dkim=pass header.i=@kernel.org header.s=default header.b=VuL7lsDL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726578AbfFDFir (ORCPT + 99 others); Tue, 4 Jun 2019 01:38:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:57408 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbfFDFir (ORCPT ); Tue, 4 Jun 2019 01:38:47 -0400 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 34AED24E0A; Tue, 4 Jun 2019 05:38:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559626726; bh=EBN4ZNSd8NhEYdq0hNKqzuNHBo2t+PXzbNlAzkbg4+U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VuL7lsDLsUUTY9oR6W4cEQghyMVMAelaoT9rdrNk1YK9AwJO+G/4Y2J9LjaDNR6Gq +lg75l9/ghvaJoLigtCFFsarWc79IbswOuln/YriXudbw4t9KrBkZN3MEXfK4wZVKy 3Gh++XVNxcRNM9nXN7QOTpugEumE1W1CN2LTyk44= Received: by mail-wm1-f52.google.com with SMTP id 22so5042511wmg.2; Mon, 03 Jun 2019 22:38:46 -0700 (PDT) X-Gm-Message-State: APjAAAUAQtPw/fMf93ZGnSmShYMIXVerTs9SGCCRYjX5zJo4MYBfO+KF lU7ULY6QWbFsg6uyPvMH6tL3ptkRhP5iAJL99Ac= X-Received: by 2002:a1c:a807:: with SMTP id r7mr16193800wme.137.1559626724784; Mon, 03 Jun 2019 22:38:44 -0700 (PDT) MIME-Version: 1.0 References: <0ac19e3d8840bc422967653dba9c9b96f5767357.1559614824.git.han_mao@c-sky.com> In-Reply-To: <0ac19e3d8840bc422967653dba9c9b96f5767357.1559614824.git.han_mao@c-sky.com> From: Guo Ren Date: Tue, 4 Jun 2019 13:38:33 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V4 4/6] dt-bindings: csky: Add csky PMU bindings To: Mao Han Cc: linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, Rob Herring Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Guo Ren On Tue, Jun 4, 2019 at 10:25 AM Mao Han wrote: > > 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 >