Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 09E6DC77B75 for ; Tue, 9 May 2023 06:54:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:CC:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9TOuHAXRH/fgDdkKYNe9zXRmComZ42OShPsa1WYAFLM=; b=sPvyiyogkXNYAb EhG8k+V4fxPCqUKZ+vajgjIV3dWZrrmNRQ1PM4ePZiXCuoj3JZOBSyJWH+8FkEEXdXimRLq66yKb6 W0ztCGfRjzDrmilLn1ONyBYnFUX3+LT0jhGjiekilVx+feL0Jo5JrbHJm6U3ofSocrk5T5WbaACst GwlbHlaWRABOx/D1H4WVcAljBYCiRLEGYgSQEXjm1DOKGEjmLdMd3YdzwG5QFipBlPz9bBITm3MHR uz92WepT1Mu2Up4FMpUTvF1cjGztpvEbaqHlRWq8I4ZuPIZBVubsfjSU67Vv8dRUaPcJhdvoiOInE SGHBt+1puCEa/4/BDbgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pwHEr-002Rgi-1G; Tue, 09 May 2023 06:54:21 +0000 Received: from fd01.gateway.ufhost.com ([61.152.239.71]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pwHEn-002Rf8-1X for linux-riscv@lists.infradead.org; Tue, 09 May 2023 06:54:20 +0000 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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 6CEF924DB7A; Tue, 9 May 2023 14:53:54 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 9 May 2023 14:53:54 +0800 Received: from [192.168.125.131] (183.27.98.219) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 9 May 2023 14:53:53 +0800 Message-ID: <735dd2fb-107c-5ecf-4477-70b569cad884@starfivetech.com> Date: Tue, 9 May 2023 14:52:27 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v3 5/7] dt-bindings: soc: starfive: Add StarFive syscon module Content-Language: en-US To: Conor Dooley CC: , , "Michael Turquette" , Stephen Boyd , Krzysztof Kozlowski , Philipp Zabel , Emil Renner Berthing , Rob Herring , Paul Walmsley , "Palmer Dabbelt" , Albert Ou , Hal Feng , William Qiu , , References: <20230414024157.53203-1-xingyu.wu@starfivetech.com> <20230414024157.53203-6-xingyu.wu@starfivetech.com> <20230424-footsie-compost-d6624c8ef4e8@spud> <20230508-margarita-fondling-c9b970ad73a9@spud> <014dd7b2-9623-805c-97a6-5b3c5f120b79@starfivetech.com> <7527C059-95A2-49EA-AFE0-B089D3651A6B@kernel.org> From: Xingyu Wu In-Reply-To: <7527C059-95A2-49EA-AFE0-B089D3651A6B@kernel.org> X-Originating-IP: [183.27.98.219] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX061.cuchost.com (172.16.6.61) X-YovoleRuleAgent: yovoleflag X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230508_235417_815622_30A211A5 X-CRM114-Status: GOOD ( 22.57 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On 2023/5/9 14:35, Conor Dooley wrote: > > > On 9 May 2023 07:23:18 IST, Xingyu Wu wrote: >>On 2023/5/9 3:24, Conor Dooley wrote: >>> On Mon, Apr 24, 2023 at 06:15:47PM +0100, Conor Dooley wrote: >>>> On Fri, Apr 14, 2023 at 10:41:55AM +0800, Xingyu Wu wrote: >>>> > From: William Qiu >>>> > >>>> > Add documentation to describe StarFive System Controller Registers. >>>> > >>>> > Signed-off-by: William Qiu >>>> > --- >>>> > .../soc/starfive/starfive,jh7110-syscon.yaml | 58 +++++++++++++++++++ >>>> > MAINTAINERS | 6 ++ >>>> > 2 files changed, 64 insertions(+) >>>> > create mode 100644 Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml >>>> > >>>> > diff --git a/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml b/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml >>>> > new file mode 100644 >>>> > index 000000000000..de086e74a229 >>>> > --- /dev/null >>>> > +++ b/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml >>>> > @@ -0,0 +1,58 @@ >>>> > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >>>> > +%YAML 1.2 >>>> > +--- >>>> > +$id: http://devicetree.org/schemas/soc/starfive/starfive,jh7110-syscon.yaml# >>>> > +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>> > + >>>> > +title: StarFive JH7110 SoC system controller >>>> > + >>>> > +maintainers: >>>> > + - William Qiu >>>> > + >>>> > +description: | >>>> > + The StarFive JH7110 SoC system controller provides register information such >>>> > + as offset, mask and shift to configure related modules such as MMC and PCIe. >>>> > + >>>> > +properties: >>>> > + compatible: >>>> > + oneOf: >>>> > + - items: >>>> > + - enum: >>>> > + - starfive,jh7110-aon-syscon >>>> > + - starfive,jh7110-sys-syscon >>>> > + - const: syscon >>>> > + - const: simple-mfd >>>> > + - items: >>>> > + - const: starfive,jh7110-stg-syscon >>>> > + - const: syscon >>>> > + >>>> > + reg: >>>> > + maxItems: 1 >>>> > + >>>> > + clock-controller: >>>> > + $ref: /schemas/clock/starfive,jh7110-pll.yaml# >>>> > + type: object >>>> > + >>>> > + power-controller: >>>> > + $ref: /schemas/power/starfive,jh7110-pmu.yaml# >>>> > + type: object >>>> >>>> My plan was to grab this patch after the merge window, but there's been >>>> some back and forth [1] about what exactly should be a power-controller >>>> here. Given the merge window is open & I know Emil wants to look at the >>>> various clock bits for the JH7110, I don't think there's a pressing need >>>> for you to do anything here, but figured I'd at least mention how things >>>> are going on this thread too. >>> >>> To follow up on this, it transpired in that thread that this node, not a >>> child node, should be the power controller. >>> >>> Up to you StarFive folk how you wish to resend, but I am fine with it >>> being in this series, I shall just not pick up the soc driver patches >>> until the resent binding is applied by Stephen. >>> >> >>Thanks. I had discussed with changhuang.liang about this. And I will drop >>the 'starfive,jh7110-aon-syscon' and 'power-controller' in next patchset. >>Changhuang will take these in his patchset. > > Won't that result in broken bindings, since there's a ref to the pll binding? > Keeping it in the same series (i.e. this one) makes > the most sense to me. > I will keep the 'sys-syscon' and 'stg-syscon'. The ref just follows the 'sys-syscon' so I also keep it and the pll binding. I also hope to add the 'aon-syscon' in this same series but it should be the power controller, so I have to give up it. Best regards, Xingyu Wu _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv