Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34775552rwd; Sun, 9 Jul 2023 20:23:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlGRzYKvUKBFD7TRsgyb9X45kJKqP3X6Hgs6ar/NOvRt2weMVVrKPEApaLADg3XKbXjd1d/7 X-Received: by 2002:a17:906:19b:b0:993:fb68:ed67 with SMTP id 27-20020a170906019b00b00993fb68ed67mr4616282ejb.24.1688959406267; Sun, 09 Jul 2023 20:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688959406; cv=none; d=google.com; s=arc-20160816; b=ewaS3M/vrXlmvFQJ63K5it4UfqhHVFZp6b2R9GSsZ8QaD0Hc/6rman4atf4QtWE0rW XXnMvKvk/pTvF91PjD3fZAnK6rkkDzO7tl39gCXWWNYDSSIevPdnffJFyGAuccDU2/5y IzWwOKaCcwanrjAOPaU60wapm5C9V/cFwfz75FREE/XV4sqMhq0PONravtaZr/IecI92 PhCoKTOHMasuEVajH9830I4NftEVnvLEAZF2iMoSRk4nMRm0FI6AH5nUPhztT1czhcK6 KJ+UN6r1V7KBgtMpWD05r0ICCTafYBcyxo3FQ8yb1W9b9ItiyxdI2wQ9rplHmXrQ9xl2 9MeQ== 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=EH4l+XFLdlNS42Q7KeXxAgyBJ4vSFMd+eaoCIL5Oi9c=; fh=mo8dgAK45y0L3UMxRXrfv+kEuSGTss2BrTXgcn8kSHo=; b=FfPjFVho/xUAeshXUka7bYaZCyiZUWJVZS3OczEF9FVRhOhf6bYoxyAyDMwuzORCft i+tT9gw8hknQSzQK18LG7WHHl7w38Rwku+FN6kwM7NTXc7X+zY/+FnomrpbexR/nYPOg kfYLl1vDrLju6QWnKQj3vvTJkQ9vxR632KD5sY10TvTNeOeZKXF4TiueiDWaAqoPRhAv Dd3tMe/FhCuozADjc/p+AJ9wbMyZPw+0Oyah7uYqK1ptXuW+32ws7pfr868owuLxF8N7 AO8ConCgdBmPJQvjcgteGbnU8HtzCNzDZFnSmPZkjoGPHAgGWvwYA+h3TVZetyp4zPSF 1AXg== 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 jj20-20020a170907985400b0098cd60e4571si7736708ejc.801.2023.07.09.20.23.00; Sun, 09 Jul 2023 20:23:25 -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 S229500AbjGJDJU (ORCPT + 99 others); Sun, 9 Jul 2023 23:09:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbjGJDJS (ORCPT ); Sun, 9 Jul 2023 23:09:18 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 27B0EEC for ; Sun, 9 Jul 2023 20:09:15 -0700 (PDT) X-MailGates: (SIP:2,PASS,NONE)(compute_score:DELIVER,40,3) Received: from 192.168.10.47 by mg.richtek.com with MailGates ESMTPS Server V6.0(2128820:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Mon, 10 Jul 2023 11:08:59 +0800 (CST) Received: from ex3.rt.l (192.168.10.46) by ex4.rt.l (192.168.10.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Mon, 10 Jul 2023 11:08:58 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex3.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Mon, 10 Jul 2023 11:08:58 +0800 Date: Mon, 10 Jul 2023 11:08:58 +0800 From: Alina Yu To: Krzysztof Kozlowski CC: , , , Subject: Re: [PATCH v2 1/2] regulator: dt-bindings: rtq2208: Add Richtek RTQ2208 SubPMIC Message-ID: <20230710030858.GA16636@linuxcarl2.richtek.com> References: <341af3996c430549243365bb8204d33a15a482be.1688569987.git.alina_yu@richtek.com> <20230706103040.GA32138@linuxcarl2.richtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230706103040.GA32138@linuxcarl2.richtek.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 Hi, Krzystof On Thu, Jul 06, 2023 at 06:30:40PM +0800, Alina Yu wrote: > 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 > > > > ... > > > > + 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 > May I ask one more question ? If I modify the name into "richtek,mtp-sel-high", is that more understandable ? It will be like this, richtek,mtp-sel-high: type: boolean description: vout register selection besed on this value. 0 - Using DVS0 register setting to adjust vout 1 - Using DVS1 register setting to adjust vout > > > > > > > BR, > Alina