Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6722819rwr; Tue, 25 Apr 2023 02:45:56 -0700 (PDT) X-Google-Smtp-Source: AKy350bX66dCP5GAAwzL1xTpUy0aP3VRF9/RlE/0rXz7tAS9QESz1Y0ZxgDMwTYs/PgerrLOZ1eD X-Received: by 2002:a05:6a00:2304:b0:63f:24ce:1947 with SMTP id h4-20020a056a00230400b0063f24ce1947mr20217975pfh.27.1682415955938; Tue, 25 Apr 2023 02:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682415955; cv=none; d=google.com; s=arc-20160816; b=Y1O959cs72UvvTrNzlFCq6SIxIXrgnpCDuxea31V0laJZ6lYuVfbGVnM2TyZYCJj59 /eA7a0dbB9VYfnxYKJAEcAZ8Eb81xln278VuTxQu3nrM7BWe7HRLRjAQknY6CFHJFar/ f/9/+I62b28cBna8fETRhSJ+hSNDW7Zw0UefCJIS7eyszQUVYnkJfe1rbKTRuQcyFKDb gZa4GByt1H6m00652RxspCVn8QIY1qASZQKI6csMygXkFx5647rKWtpM1Z7Zd4eyP7O3 aXcJrg+YpJgujTSgkBiLveVBoIS9MMArO0JQpOcsghJLbo40MSvQRFrmxeHj401nWBw6 UXfg== 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=SPznsnIrGmMUaalxD+DbG9IDGtKajmwDfiJkPKNORcM=; b=g6fbqpyitrTKGsvVBK6zzfFCCMjPpAOSaFBWMhzUvdKNz58XQ6X7ZBDYnSBzbijUkJ rGZZukIeS2gNl0pAHX9uIOIhqel//CdPk4o3BLzTOBZ80WxWF81PbZvSfk4BSaM3CHhI /Kln3jVgmH+v0K3o1hxpGhIxu5ZwafhXYGEQLSR5Jn3Vd2hsexIKP6ORxUK9RH+FypQZ YY77xORGU/nC9nUgkXoZBhxzhuqwEa8SF9/TWOu6ZkLuf7+N8wtNr3G/RZZxR52BQEQG +AEAGhVBRFWGFStwW8uvfaWtt1vBNZ+K04F6gzjP7dRvqLIrATM56pVIOl2oFFlHEuwa PeHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad format) header.i=@microchip.com header.s=mchp header.b=ogoOwf0q; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a63460b000000b0051b28ed8df2si13306447pga.571.2023.04.25.02.45.42; Tue, 25 Apr 2023 02:45:55 -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=neutral (bad format) header.i=@microchip.com header.s=mchp header.b=ogoOwf0q; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233560AbjDYJgJ (ORCPT + 99 others); Tue, 25 Apr 2023 05:36:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233013AbjDYJgH (ORCPT ); Tue, 25 Apr 2023 05:36:07 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2798468A; Tue, 25 Apr 2023 02:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1682415366; x=1713951366; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=cdJ5RCl0jRK2WkiOSErGKVWigi6cRYrQGKqxUv/5kOQ=; b=ogoOwf0qVwraeq1FOZMNYVL8cic16j67ewF3XqoUhWZIMWVSd7vdTo7u +f48id/5kN48+vJlTqPTuxwvAEj+YvvknZhfYNyLSxbHSSSKbX1dQxmY3 EukmJAkLuEQEYBaU0a71pOLs+ufuvmUpdn+1BNi2NfmSfoDgoNnbyefbH PawXz3f0qoTAmrAO+Ei/QyCyzt1oE/CaBwwT/Y7M5jcM25NFVPZ8tjCng /ZMvoGuD4taiOZHiOTq4z/R7L+Tk7V4vrakoQDhxB+TDqSfjArCz+ejLe x+L8/S/UbKpfHkUJ8oynpVT8rrfJ2B9ZNzEQ898u8wCm1hFZUnC8+zWcE w==; X-IronPort-AV: E=Sophos;i="5.99,225,1677567600"; d="asc'?scan'208";a="210571348" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Apr 2023 02:36:05 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 25 Apr 2023 02:36:05 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Tue, 25 Apr 2023 02:36:02 -0700 Date: Tue, 25 Apr 2023 10:35:45 +0100 From: Conor Dooley To: Changhuang Liang CC: Krzysztof Kozlowski , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Paul Walmsley , Palmer Dabbelt , Albert Ou , Walker Chen , Hal Feng , , , , , Subject: Re: [RESEND v2 1/6] dt-bindings: power: Add JH7110 AON PMU support Message-ID: <20230425-resale-footrest-de667778c4fe@wendy> References: <20230419035646.43702-1-changhuang.liang@starfivetech.com> <20230419035646.43702-2-changhuang.liang@starfivetech.com> <20230419-labored-camper-644d51a7ca96@spud> <1a5b15fa-4f20-51c2-2ba1-a04a2911a694@starfivetech.com> <20230424-baffle-punch-ec73098f2b6a@spud> <20230425-unquote-eligible-09f743d81981@wendy> <68cb565d-bf39-10b0-9e3e-35ba7f54b90b@linaro.org> <0988495f-b87a-7f69-f222-37c67d6eae23@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NyVSyvpBVoaqkS2m" Content-Disposition: inline In-Reply-To: <0988495f-b87a-7f69-f222-37c67d6eae23@starfivetech.com> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 --NyVSyvpBVoaqkS2m Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 25, 2023 at 05:18:10PM +0800, Changhuang Liang wrote: >=20 >=20 > On 2023/4/25 16:19, Krzysztof Kozlowski wrote: > > On 25/04/2023 09:57, Changhuang Liang wrote: > >>>>>>>> =20 > >>>>>>>> description: | > >>>>>>>> StarFive JH7110 SoC includes support for multiple power domai= ns which can be > >>>>>>>> @@ -17,6 +18,7 @@ properties: > >>>>>>>> compatible: > >>>>>>>> enum: > >>>>>>>> - starfive,jh7110-pmu > >>>>>>>> + - starfive,jh7110-aon-pmu > >>>>> > >>>>> I was speaking to Rob about this over the weekend, he asked: > >>>>> 'Why isn't "starfive,jh7110-aon-syscon" just the power-domain provi= der > >>>>> itself?' > >>>> > >>>> Maybe not, this syscon only offset "0x00" configure power switch. > >>>> other offset configure other functions, maybe not power, so this > >>>> "starfive,jh7110-aon-syscon" not the power-domain itself. > >>>> > >>>>> Do we actually need to add a new binding for this at all? > >>>>> > >>>>> Cheers, > >>>>> Conor. > >>>>> > >>>> > >>>> Maybe this patch do that. > >>>> https://lore.kernel.org/all/20230414024157.53203-6-xingyu.wu@starfiv= etech.com/ > >>> > >>> This makes it a child-node right? I think Rob already said no to that= in > >>> and earlier revision of this series. What he meant the other day was > >>> making the syscon itself a power domain controller, since the child n= ode > >>> has no meaningful properties (reg, interrupts etc). > >>> > >>> Cheers, > >>> Conor. > >> > >> Yes, "starfive,jh7110-aon-pmu" is a child-node of "starfive,jh7110-aon= -syscon". > >> In my opinion, "0x17010000" is "aon-syscon" on JH7110 SoC, and this "a= on-pmu" is just=20 > >> a part of "aon-syscon" function, so I think it is inappropriate to mak= e "aon-syscon" > >> to a power domain controller. I think using the child-node description= is closer to > >> JH7110 SoC.=20 > >=20 > > Unfortunately, I do not see the correlation between these, any > > connection. Why being a child of syscon block would mean that this > > should no be power domain controller? Really, why? These are two > > unrelated things. > >=20 > > Best regards, > > Krzysztof > >=20 >=20 > Let me summarize what has been discussed above.=20 >=20 > There has two ways to describe this "starfive,jh7110-aon-syscon"(0x170100= 00). > 1. (0x17010000) is power-controller node: >=20 > aon_pwrc: power-controller@17010000 { > compatible =3D "starfive,jh7110-aon-pmu", "syscon"; > reg =3D <0x0 0x17010000 0x0 0x1000>; > #power-domain-cells =3D <1>; > }; >=20 >=20 > 2. (0x17010000) is syscon node, power-controller is child-node of syscon: >=20 > aon_syscon: syscon@17010000 { > compatible =3D "starfive,jh7110-aon-syscon", "syscon", "simple-mfd"; > reg =3D <0x0 0x17010000 0x0 0x1000>; >=20 > aon_pwrc: power-controller { > compatible =3D "starfive,jh7110-aon-pmu"; > #power-domain-cells =3D <1>; > }; > }; I thought that Rob was suggesting something like this: aon_syscon: syscon@17010000 { compatible =3D "starfive,jh7110-aon-syscon", ... reg =3D <0x0 0x17010000 0x0 0x1000>; #power-domain-cells =3D <1>; }; Cheers, Conor. --NyVSyvpBVoaqkS2m Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZEee8QAKCRB4tDGHoIJi 0iAjAQCAYkbFL/ydjRkg7qdZ1xejJeKnKpac8GkxwCp7ovCnGwD/S+XqbVNUcOyu xaeZnAsWfEaTMKgIuWoqCeIrvwvPlAQ= =31W+ -----END PGP SIGNATURE----- --NyVSyvpBVoaqkS2m--