Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6012502rwl; Tue, 11 Apr 2023 13:17:29 -0700 (PDT) X-Google-Smtp-Source: AKy350ZQUTSxyOkJa0PT7BsBHUi0JrXv4pjTofq0V4B0/ibrCy4iLL++ZGrpWwtQmAq5f18dya4T X-Received: by 2002:a17:907:7892:b0:933:4c24:101b with SMTP id ku18-20020a170907789200b009334c24101bmr444590ejc.7.1681244249302; Tue, 11 Apr 2023 13:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681244249; cv=none; d=google.com; s=arc-20160816; b=W+ki2rvoqdcUGtVoS41Vcs7FWho3aOoiwl/HZrHp/vIKfvqdc2OCYqTiYZwSakxETL 6nAa1UeJS89R0JAoRcArNbitaDpOW5ScOxkrSR4R5le6PKu7d7raDk3UYIM+Dudp84Xh Jsy8cqOntmtUwHZ/PPPhqQ3lCSPhaMbq8uCGvKjxX5J3TB47tQbe4jbxoVZRgZ3Aa80B Hfnt0cVRLdEyMwwyQYDaEmGpaY0JMUcNiZzUtlELlbGB6Vi+Cy2EV+DGZu0/36ljRsdB wCc8/2Z8Uq50fzBGy3Kg5a9TjFRO9yXELTjFL2TuuWsFtBK1pWvHSumUw97MZPO+aRTM R+IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=B02wKklM6dKX58GrjVJCjRoB/lwrz1uK4M7FIE4h10I=; b=Ghp8hvGeOwZib4or3GWJ8spHeP9JA2OTBaW2YfThMJT0lzdMob1lyo7L3vMWcquD8Z AuxTXsUTkXu4T3JgOyzfU9OYquYOIUbf3PZnfmtXTjeSm3jSUum3BjO1KWVplVtlv/H+ WAGOF+QGJ5mXA2rdNQ86CworQMwNaWour5XQeVrLynR3sfmSRK/eoV9DwhxZobNqqEWE wnO+AkUI80sbTlwzc363hu4g+/McI2RhRhvwWI7nj+ASbE5pVafgxc8Le2F9StGu3y42 jCf0bjXSAyKM0ZYQYcBafgHL5yoMTiQ4rAtfCIeYLGxi+pUNU7RovfR8EmJW81/ZbNSn 82sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Fb7j/HV3"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vq3-20020a170907a4c300b0094a44aa90dbsi642687ejc.214.2023.04.11.13.16.32; Tue, 11 Apr 2023 13:17:29 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Fb7j/HV3"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229726AbjDKUNc (ORCPT + 99 others); Tue, 11 Apr 2023 16:13:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229721AbjDKUN1 (ORCPT ); Tue, 11 Apr 2023 16:13:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4C1B109; Tue, 11 Apr 2023 13:13:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 537186277E; Tue, 11 Apr 2023 20:13:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72034C433D2; Tue, 11 Apr 2023 20:13:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681244004; bh=ZviwcxpDXgrZT/ibODx/e4RR16fW2UhiiAY8a0mCX/k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fb7j/HV3N5lz+blyj9ONW8umWsdCHpIahlIQEArhLEBw5NK/DabCD+fnxocqJOXgg WlF4oK6xnC/Pt4aDGT8exjZNlW1D3R3CNww08QYeNJDM8VxYgw45ZrG1wYs9s2knE+ ckfSl4N8DlzeD48puuYhvDlRAkxcXCjkOA+WPIsYhPgwL/bVo3RlCrhlvsGR1702LA hCOiNg/5ySIz+mZGIN6g2T6F/o/usbTYxcj3+y/7KoMdx83GIW/v8Ms7TxWtOpKqNa oyTLGY2xcVxdZY+oTx1QR03sWQ1q2BuDjtwoeeice8B6cNSOC5VEpbuNuURtdM0kE/ TU/yC9tbRBElw== Date: Tue, 11 Apr 2023 21:13:19 +0100 From: Conor Dooley To: Changhuang Liang Cc: Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Paul Walmsley , Palmer Dabbelt , Albert Ou , Walker Chen , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v1 1/7] dt-bindings: power: Constrain properties for JH7110 PMU Message-ID: <20230411-vitality-exodus-f7e5d2e8576c@spud> References: <20230411064743.273388-1-changhuang.liang@starfivetech.com> <20230411064743.273388-2-changhuang.liang@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="woEVfFYCRgC7kFh0" Content-Disposition: inline In-Reply-To: <20230411064743.273388-2-changhuang.liang@starfivetech.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: X-Mailing-List: linux-kernel@vger.kernel.org --woEVfFYCRgC7kFh0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 10, 2023 at 11:47:37PM -0700, Changhuang Liang wrote: > When use "starfive,jh7110-pmu-dphy" compatible, do not need the reg and > interrupts properties. Please write a commit message explaining why this is needed. The commit message as-is is insufficient, but also IMO wrong incorrect. I think it would more accurately be "...: add jh7110 dphy pmu support" or similar & the body should explain why this particular PMU has no reg/interrupts. Cheers, Conor. >=20 > Signed-off-by: Changhuang Liang > --- > .../bindings/power/starfive,jh7110-pmu.yaml | 14 ++++++++++++-- > include/dt-bindings/power/starfive,jh7110-pmu.h | 3 +++ > 2 files changed, 15 insertions(+), 2 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/power/starfive,jh7110-pmu.= yaml b/Documentation/devicetree/bindings/power/starfive,jh7110-pmu.yaml > index 98eb8b4110e7..ffb4406c2e56 100644 > --- a/Documentation/devicetree/bindings/power/starfive,jh7110-pmu.yaml > +++ b/Documentation/devicetree/bindings/power/starfive,jh7110-pmu.yaml > @@ -8,6 +8,7 @@ title: StarFive JH7110 Power Management Unit > =20 > maintainers: > - Walker Chen > + - Changhuang Liang > =20 > description: | > StarFive JH7110 SoC includes support for multiple power domains which = can be > @@ -17,6 +18,7 @@ properties: > compatible: > enum: > - starfive,jh7110-pmu > + - starfive,jh7110-pmu-dphy > =20 > reg: > maxItems: 1 > @@ -29,10 +31,18 @@ properties: > =20 > required: > - compatible > - - reg > - - interrupts > - "#power-domain-cells" > =20 > +if: > + properties: > + compatible: > + contains: > + const: starfive,jh7110-pmu > +then: > + required: > + - reg > + - interrupts > + > additionalProperties: false > =20 > examples: > diff --git a/include/dt-bindings/power/starfive,jh7110-pmu.h b/include/dt= -bindings/power/starfive,jh7110-pmu.h > index 132bfe401fc8..0bfd6700c144 100644 > --- a/include/dt-bindings/power/starfive,jh7110-pmu.h > +++ b/include/dt-bindings/power/starfive,jh7110-pmu.h > @@ -14,4 +14,7 @@ > #define JH7110_PD_ISP 5 > #define JH7110_PD_VENC 6 > =20 > +#define JH7110_PD_DPHY_TX 0 > +#define JH7110_PD_DPHY_RX 1 > + > #endif > --=20 > 2.25.1 >=20 --woEVfFYCRgC7kFh0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZDW/XwAKCRB4tDGHoIJi 0rfMAQCEY1sOSuX+9PUExrhZ16C87WAg2z6vDj6OdcqFSKbWtQEAhVtayEho0Gc3 dyCQ/hZf9AkaJDiBG33vffX1VnYxaQk= =/A68 -----END PGP SIGNATURE----- --woEVfFYCRgC7kFh0--