Message ID | 20221118133216.17037-3-walker.chen@starfivetech.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp206880wrr; Fri, 18 Nov 2022 05:56:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf56tRS8yENPvbncFIV6+wiPQZb6GpS4h3dQmxlz2Ps1cVUzX2ZgcIL90zcTe32RfPgJ4ZNz X-Received: by 2002:a17:906:4e46:b0:7ae:129b:2d3a with SMTP id g6-20020a1709064e4600b007ae129b2d3amr6019486ejw.552.1668779797036; Fri, 18 Nov 2022 05:56:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668779797; cv=none; d=google.com; s=arc-20160816; b=vScnzQkRA75G1adOFpceTtclLCe2e8SJ6oqSj4+yKpvNsyb5VxIZUYDUmk50v9It2R RJ8ciJp3206oglZy7QkC85R576qedjVBGQ8dL502/kBW+1ofIkPQiFauIqSUTavAbiZi kkFGGU+LU6LTzwkQxXvc2Z/urjolf4Fqek2/8sDJeby0FVLgXnwgPuwIwCLi1gypYO6C oO1CbD2IRgucIkV8jZNf71wURPpM2Ijbn6W9NT9wEiTYDqVr0ks//T6x2p6Nm1Gyq6Z8 Ty883CdBVhUVwiyLolZEbiYStqzbeR8PLDdo/fNZWVr9f8DnqbA9bKwCqyVlJASbkxFT BhGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=rjtm2WSWLrn7mLOdGA9xfNJCKMe10GDMHlNLulbKjek=; b=0UdVEGCBL7+wYHp6RzjN0DGdKPkvxY0VDcmrstKXIupVybWAnvZXfNo6cxo1BX1fDS Hv/iomsWa0T1AIffgNXKd/9hUjSNqMiM47l8Y/I4Q0v/KoRWgVPiR/3WN596+UxQs9jH /UPVcI8c+sJTS5fXdFTfOf6UNaKKfUNkav6qOXN+vQ4blX4rFBi/Kaf5CkeAe0d7rIw9 kH/FHjW+qgm8shfamMF2I9rwC1XKCCn5HtR9bmVBeZoBEovxo/+AAkSDS6hTNXz8ulnv jiiS/PINiQDyx5xfsvjOK7JgQOIHPdsDM86O/AqRupKP6hEk/b/qcE15r/XfepVc+wRN D0Og== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id de36-20020a1709069be400b007ad88f87ed6si2686491ejc.993.2022.11.18.05.56.12; Fri, 18 Nov 2022 05:56:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235142AbiKRNgv (ORCPT <rfc822;kkmonlee@gmail.com> + 99 others); Fri, 18 Nov 2022 08:36:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241918AbiKRNgR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 18 Nov 2022 08:36:17 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF9D94A5C; Fri, 18 Nov 2022 05:34:29 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id C81FE24E1A6; Fri, 18 Nov 2022 21:32:28 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 18 Nov 2022 21:32:28 +0800 Received: from localhost.localdomain (183.27.96.116) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 18 Nov 2022 21:32:27 +0800 From: Walker Chen <walker.chen@starfivetech.com> To: <linux-riscv@lists.infradead.org>, <linux-pm@vger.kernel.org>, <devicetree@vger.kernel.org> CC: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor.dooley@microchip.com>, "Rafael J . Wysocki" <rafael@kernel.org>, Walker Chen <walker.chen@starfivetech.com>, <linux-kernel@vger.kernel.org> Subject: [PATCH v1 2/4] dt-bindings: power: Add starfive,jh71xx-power bindings Date: Fri, 18 Nov 2022 21:32:14 +0800 Message-ID: <20221118133216.17037-3-walker.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221118133216.17037-1-walker.chen@starfivetech.com> References: <20221118133216.17037-1-walker.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.96.116] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749842444793230048?= X-GMAIL-MSGID: =?utf-8?q?1749842444793230048?= |
Series |
JH7110 Power Domain Support
|
|
Commit Message
Walker Chen
Nov. 18, 2022, 1:32 p.m. UTC
Add bindings for the power domain controller on the StarFive JH71XX SoC.
Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
---
.../bindings/power/starfive,jh71xx-power.yaml | 46 +++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml
Comments
On 18/11/2022 14:32, Walker Chen wrote: > Add bindings for the power domain controller on the StarFive JH71XX SoC. > Subject: drop second, redundant "bindings". > Signed-off-by: Walker Chen <walker.chen@starfivetech.com> > --- > .../bindings/power/starfive,jh71xx-power.yaml | 46 +++++++++++++++++++ 1st patch should be squashed here. Headers are part of bindings file. > 1 file changed, 46 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml > > diff --git a/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml b/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml > new file mode 100644 > index 000000000000..2537303b4829 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml Filename like compatible. > @@ -0,0 +1,46 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/starfive,jh71xx-power.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: StarFive JH71xx Power Domains Controller > + > +maintainers: > + - Walker Chen <walker.chen@starfivetech.com> > + > +description: | > + StarFive JH71xx SoCs include support for multiple power domains which can be > + powered on/off by software based on different application scenes to save power. > + > +properties: > + compatible: > + items: No items. You have just one item, > + - enum: > + - starfive,jh7110-pmu > + Best regards, Krzysztof
On 2022/11/21 18:13, Krzysztof Kozlowski wrote: > On 18/11/2022 14:32, Walker Chen wrote: >> Add bindings for the power domain controller on the StarFive JH71XX SoC. >> > > Subject: drop second, redundant "bindings". Will fix. > >> Signed-off-by: Walker Chen <walker.chen@starfivetech.com> >> --- >> .../bindings/power/starfive,jh71xx-power.yaml | 46 +++++++++++++++++++ > > 1st patch should be squashed here. Headers are part of bindings file. Will be done in the next version of patch. > >> 1 file changed, 46 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml >> >> diff --git a/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml b/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml >> new file mode 100644 >> index 000000000000..2537303b4829 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml > > Filename like compatible. As mentioned in the previous email, the compatible in the driver should be changed to "starfive,jh7110-power". > >> @@ -0,0 +1,46 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/power/starfive,jh71xx-power.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: StarFive JH71xx Power Domains Controller >> + >> +maintainers: >> + - Walker Chen <walker.chen@starfivetech.com> >> + >> +description: | >> + StarFive JH71xx SoCs include support for multiple power domains which can be >> + powered on/off by software based on different application scenes to save power. >> + >> +properties: >> + compatible: >> + items: > > No items. You have just one item, Yes, this issue will be fixed. Thank you for your advice. Best Regards, Walker Chen
On Tue, Nov 22, 2022 at 09:22:03PM +0800, Walker Chen wrote: > On 2022/11/21 18:13, Krzysztof Kozlowski wrote: > > On 18/11/2022 14:32, Walker Chen wrote: > >> Add bindings for the power domain controller on the StarFive JH71XX SoC. > >> > > > > Subject: drop second, redundant "bindings". > > Will fix. > > > > >> Signed-off-by: Walker Chen <walker.chen@starfivetech.com> > >> --- > >> .../bindings/power/starfive,jh71xx-power.yaml | 46 +++++++++++++++++++ > > > > 1st patch should be squashed here. Headers are part of bindings file. > > Will be done in the next version of patch. > > > > >> 1 file changed, 46 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml > >> > >> diff --git a/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml b/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml > >> new file mode 100644 > >> index 000000000000..2537303b4829 > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml > > > > Filename like compatible. > > As mentioned in the previous email, the compatible in the driver should be changed to "starfive,jh7110-power". Is the h/w block called 'power' or 'pmu'? Call it what the h/w is called. Rob
On 2022/11/30 23:24, Rob Herring wrote: > On Tue, Nov 22, 2022 at 09:22:03PM +0800, Walker Chen wrote: >> On 2022/11/21 18:13, Krzysztof Kozlowski wrote: >> > On 18/11/2022 14:32, Walker Chen wrote: >> >> Add bindings for the power domain controller on the StarFive JH71XX SoC. >> >> >> > >> > Subject: drop second, redundant "bindings". >> >> Will fix. >> >> > >> >> Signed-off-by: Walker Chen <walker.chen@starfivetech.com> >> >> --- >> >> .../bindings/power/starfive,jh71xx-power.yaml | 46 +++++++++++++++++++ >> > >> > 1st patch should be squashed here. Headers are part of bindings file. >> >> Will be done in the next version of patch. >> >> > >> >> 1 file changed, 46 insertions(+) >> >> create mode 100644 Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml >> >> >> >> diff --git a/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml b/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml >> >> new file mode 100644 >> >> index 000000000000..2537303b4829 >> >> --- /dev/null >> >> +++ b/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml >> > >> > Filename like compatible. >> >> As mentioned in the previous email, the compatible in the driver should be changed to "starfive,jh7110-power". > > Is the h/w block called 'power' or 'pmu'? Call it what the h/w is > called. h/w block is called PMU, is the abbreviation of Power Management Unit. It is more appropriate to change the compatile to 'starfive,jh7110-pmu'. Best Regards, Walker Chen
diff --git a/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml b/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml new file mode 100644 index 000000000000..2537303b4829 --- /dev/null +++ b/Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/starfive,jh71xx-power.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH71xx Power Domains Controller + +maintainers: + - Walker Chen <walker.chen@starfivetech.com> + +description: | + StarFive JH71xx SoCs include support for multiple power domains which can be + powered on/off by software based on different application scenes to save power. + +properties: + compatible: + items: + - enum: + - starfive,jh7110-pmu + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + "#power-domain-cells": + const: 1 + +required: + - compatible + - reg + - interrupts + - "#power-domain-cells" + +additionalProperties: false + +examples: + - | + pwrc: power-controller@17030000 { + compatible = "starfive,jh7110-pmu"; + reg = <0x17030000 0x10000>; + interrupts = <111>; + #power-domain-cells = <1>; + };