Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6701971rwr; Tue, 25 Apr 2023 02:21:25 -0700 (PDT) X-Google-Smtp-Source: AKy350ahO46UOn3pTg9PwwZRDcQ4wAyLmzrV65uaQHwVQqAQ+xdeVFSpwBBgeUxp73Dc5J9lDIEf X-Received: by 2002:a17:90a:d14f:b0:24b:6349:4f87 with SMTP id t15-20020a17090ad14f00b0024b63494f87mr14990106pjw.6.1682414484741; Tue, 25 Apr 2023 02:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682414484; cv=none; d=google.com; s=arc-20160816; b=jNSSX52Z34C83YQjsF/bhxOBK6FkR3BASikk+/qGcncFQInQZuqjhxBOWi4GEQZrrA /5apxBatqNYHgrIZngiWT3GjxLr7V5L8Emu68lNZbqrk+uUMNwwEm2BavlXulcbZBOjr B0KcQBdpE7iYxXT84+UowVtNh9cfoTmhv0GTjCiGTQVV4dgeqJeh2eb9iNv8JjGiD8wd Me2tUIBogsZXGzwTIv8EBo1bBtffaSB5uhPE9Dk8gPC2IrBuMWjD2yG3et6aZvJtoN8J QWWQ49AjEtce8JBmscK3S6fL+WDODA8mE2k/mrv109DzTW73BxNiv3iKvEGWezxgWfVw P/gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=qIBH4ZV0VXu0ll1JSAvPIe8CXSVxQOBDB78Q8NgyG7I=; b=PptUwzBKd9wkzvNdBySVIY9eI9TsA/fFWoM2glKk9knH395CiA20qBcgnmSkqEE8cU U8woCPIrYfodulXtTwyu+9C1Pgvp7rPNpOWmvcYrvIdLtkYheNEuKm/k2Zpbl0zwNOHH 7Md36sGp7mSY3wpk7O83UGt3qzCeuSo3O+eefQNSLGls4r03SjxOwUOP88rhYhAf29yw pDFm8YDnzs7JgPUUJ3K6VIvrN0DA4X5xxVRnv8Q01CkmaEi0bjBNAgAAaiGQN2oj7MAh IQvNF6lQIhupPLJV6fELF2+0R43dX9T9KBKqHbvoqgU1rZmmvkNraE7WPUCS0XS5uVWl byyg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y62-20020a638a41000000b005203991145csi13708782pgd.623.2023.04.25.02.21.10; Tue, 25 Apr 2023 02:21:24 -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; 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 S233597AbjDYJSg (ORCPT + 99 others); Tue, 25 Apr 2023 05:18:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231428AbjDYJS2 (ORCPT ); Tue, 25 Apr 2023 05:18:28 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B06D40E0; Tue, 25 Apr 2023 02:18:23 -0700 (PDT) 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 9FC5524E314; Tue, 25 Apr 2023 17:18:11 +0800 (CST) Received: from EXMBX162.cuchost.com (172.16.6.72) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 25 Apr 2023 17:18:12 +0800 Received: from [192.168.125.106] (113.72.145.137) by EXMBX162.cuchost.com (172.16.6.72) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 25 Apr 2023 17:18:10 +0800 Message-ID: <0988495f-b87a-7f69-f222-37c67d6eae23@starfivetech.com> Date: Tue, 25 Apr 2023 17:18:10 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [RESEND v2 1/6] dt-bindings: power: Add JH7110 AON PMU support Content-Language: en-US To: Krzysztof Kozlowski , Conor Dooley CC: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Paul Walmsley , Palmer Dabbelt , Albert Ou , Walker Chen , Hal Feng , , , , , 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> From: Changhuang Liang In-Reply-To: <68cb565d-bf39-10b0-9e3e-35ba7f54b90b@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [113.72.145.137] X-ClientProxiedBy: EXCAS061.cuchost.com (172.16.6.21) To EXMBX162.cuchost.com (172.16.6.72) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 2023/4/25 16:19, Krzysztof Kozlowski wrote: > On 25/04/2023 09:57, Changhuang Liang wrote: >>>>>>>> >>>>>>>> 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-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 provider >>>>> 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@starfivetech.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 node >>> 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 "aon-pmu" is just >> a part of "aon-syscon" function, so I think it is inappropriate to make "aon-syscon" >> to a power domain controller. I think using the child-node description is closer to >> JH7110 SoC. > > 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. > > Best regards, > Krzysztof > Let me summarize what has been discussed above. There has two ways to describe this "starfive,jh7110-aon-syscon"(0x17010000). 1. (0x17010000) is power-controller node: aon_pwrc: power-controller@17010000 { compatible = "starfive,jh7110-aon-pmu", "syscon"; reg = <0x0 0x17010000 0x0 0x1000>; #power-domain-cells = <1>; }; 2. (0x17010000) is syscon node, power-controller is child-node of syscon: aon_syscon: syscon@17010000 { compatible = "starfive,jh7110-aon-syscon", "syscon", "simple-mfd"; reg = <0x0 0x17010000 0x0 0x1000>; aon_pwrc: power-controller { compatible = "starfive,jh7110-aon-pmu"; #power-domain-cells = <1>; }; }; I prefer the way of 2. This is more in line with the hardware description of JH7110.