Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30277535rwd; Thu, 6 Jul 2023 03:40:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlEVl6dvsbhzQFU2xNOWkSeu5IrlMGdw0jR/xiQlUii0HgD59otATSM2U5RCqvDYgOAUze4/ X-Received: by 2002:a17:90a:b705:b0:263:5333:56a8 with SMTP id l5-20020a17090ab70500b00263533356a8mr938842pjr.21.1688640045715; Thu, 06 Jul 2023 03:40:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688640045; cv=none; d=google.com; s=arc-20160816; b=Tk/TFvGmJHmDWUWy9Zdy4a/7w9+704AhJBc4HpeC9ALvFWSVJGlHXXDdxigck00XLU xg6Sc6EwvdH2etHd8mdIiaJLIpdaSYFozuqdZmcAABPU9LFHMJYXW8ewdBM9XUNG1GzW kSd6pR0Knh+Uz+Et19b5xw9DiWznsKMNIqTvwIPmXRZNydZHm4/cbtj8kmjxdXp3TC/V nZL5GYYipR8FAEFifGUJtxRbCf74Yx7puUzUjDi7VIpKT61e2Jg6c0BcWY5eb/qUVxXE b+pc52cc+qvxccX9ptSK4BXaEpcfq3m6MTkjN7lAqdwZaRWMV2zcB9fOzxOZbyNgThQI m96g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=+f59N1jxNppyM4lSqIkjQAD601xHSmeF8bQUfgcvmos=; fh=mo8dgAK45y0L3UMxRXrfv+kEuSGTss2BrTXgcn8kSHo=; b=0MBDtOmAdbBtc/f51y5RYxgSr6CZMHE48aqQeKyU/7pt9v0E65AC+McuxzLmbD+J/U jHqxglU/t4BIp7HdumkCaTcqgIPN9OM4zPY74pncW8Use2HirbpwoPOPbmSPsnqFrL4n TLYdEaa62ThVupKI3GiUTxryuNr42rjAO2SAIM3S4NElgUa7vgXGhzHBb5gVCg1CKV+j k79S2H31v88Qvidjn64gvnfSQUmBB5CWJmE8KaTjuHwZEaujvurwWGuSO3yAipr0UYWE FT2tivoUFePEJ/nOfAPhk8lN0o5WEj0xvL5mlAlbnGW/OIYX0BYtRkji+gSRXHLYH8rQ CtBQ== 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 ng14-20020a17090b1a8e00b0025546028cbesi1413142pjb.31.2023.07.06.03.40.31; Thu, 06 Jul 2023 03:40:45 -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 S230437AbjGFKaz (ORCPT + 99 others); Thu, 6 Jul 2023 06:30:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231502AbjGFKav (ORCPT ); Thu, 6 Jul 2023 06:30:51 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6A4C6123 for ; Thu, 6 Jul 2023 03:30:48 -0700 (PDT) X-MailGates: (SIP:2,PASS,NONE)(compute_score:DELIVER,40,3) Received: from 192.168.10.46 by mg.richtek.com with MailGates ESMTPS Server V6.0(801843:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jul 2023 18:30:41 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) by ex3.rt.l (192.168.10.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Thu, 6 Jul 2023 18:30:40 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex4.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Thu, 6 Jul 2023 18:30:40 +0800 Date: Thu, 6 Jul 2023 18:30:40 +0800 From: Alina Yu To: Krzysztof Kozlowski CC: , , , Subject: Re: [PATCH v2 1/2] regulator: dt-bindings: rtq2208: Add Richtek RTQ2208 SubPMIC Message-ID: <20230706103040.GA32138@linuxcarl2.richtek.com> References: <341af3996c430549243365bb8204d33a15a482be.1688569987.git.alina_yu@richtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Wed, Jul 05, 2023 at 07:58:53PM +0200, Krzysztof Kozlowski wrote: > On 05/07/2023 17:27, alina_yu@richtek.com wrote: > > From: alinayu > > > > Add bindings for Richtek RTQ2208 IC controlled SubPMIC > > Please use scripts/get_maintainers.pl to get a list of necessary people > and lists to CC. It might happen, that command when run on an older > kernel, gives you outdated entries. Therefore please be sure you base > your patches on recent Linux kernel. > > You missed at least DT list (maybe more), so this won't be tested by our > tools. Performing review on untested code might be a waste of time, thus > I will skip this patch entirely till you follow the process allowing the > patch to be tested. > > Please kindly resend and include all necessary To/Cc entries. > > Limited review follows. > Sorry, I will add all necessary people to CC list to v3. ... > > + Buck and ldo vout selection is based on this value. > > + There are two independently programmable voltage settings named as mtp-sel0 and > > + mtp-sel1 for RTQ2208 bucks vout voltage. 0 which means this property isn't present > > + and 1 which means this property is present corresponds to different adjustable registers. > > + > > + 0 - DVS0 registers to adjust buck vout and BUCK_[A-H]_EN_NR_MTP_SEL0 register to en/disable vout. > > + 1 - DVS1 registers to adjust buck vout and BUCK_[A-H]_EN_NR_MTP_SEL1 register to en/disable vout. > > I read it three times and still don't understand. This is bool, not 0/1, > so are these "0" refer to DVS0 or to presence of the property? Maybe > Mark will understand it, I don't get it. > Yes, "0" refers to DVS0 registers, and "1" refers to DVS1. and there is only DVS0 and DVS1, so I use boolean to check which one is used. Is it more understandable if I modify that to enum ? And description will be like this richtek,mtp-sel: enum: [0, 1] description: | vout register selection besed on this value. 0 - Using DVS0 register setting to adjust vout 1 - Using DVS1 register setting to adjust vout ... > > + > > + regulator-state-(mem): > > That's not a pattern. > Should I revise that like this ? patternProperties: "^regulator-state-mem$": > > + type: object > > + additionalProperties: true > > Why? Does "additionalProperties: true" mean I need to define my own property ? If yes, I misunderstood additionalProperties as properties like "regulator-on-in-suspend" or "regulator-mode". > > > + properties: > > + regulator-on-in-suspend: false > > + regulator-mode: false > > + > > +required: > > + - compatible > > + - reg > > + - regulators > > + > > +unevaluatedProperties: false > > + > > +examples: > > + - | > > + #include > > + i2c { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + rtq2208@10 { > > Node names should be generic. See also explanation and list of examples > in DT specification: > https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > I'll modify the node name to regulator@10 in v3 > > + compatible = "richtek,rtq2208"; > > + reg = <0x10>; > > + interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>; > > + richtek,mtp-sel; > > + > > + regulators { > > + BUCK_A:buck_A { > > Drop labels. > > BR, Alina