Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34927709rwd; Sun, 9 Jul 2023 23:27:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlH95ae+N+v3P66coF3P/yrwW5klDo3Vlv7xnhLJk6sUYVB7mPcJzsbuIfBHnJ0BcqyYt7VY X-Received: by 2002:a17:906:6b92:b0:978:8e8c:1bcb with SMTP id l18-20020a1709066b9200b009788e8c1bcbmr10042460ejr.43.1688970437959; Sun, 09 Jul 2023 23:27:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688970437; cv=none; d=google.com; s=arc-20160816; b=JetpSFivScBayLbppG0oLdgzBP0sKStFMRokF5iZKbeXXxbAo+uPu3p6K/0zkB4NiM b9IjTM38qvO5WbKAyMKTHYcJXaXE5NYGQf0ZGtISGFN5ad+1Q8bezH5ly8uSBts7i24q LQY6GNuheEQWcthQbagbtZW1U/oZbnjcAwT9o15tPS6kjS3cEG/W2U3DQqXtrV/wSy2O e3gv1FOIkcD8DmYiNSQEl8ywNdO0XBNk/C+r0PlGjHAG2bNqZl1VxwQuKf2vTkKRNxjd m1uR6qj1ww/8Lo1u5LAb1aUpGSMpQt8yW96ONKdxw55ntQQnnRetP2qTWAiwxHGJjWnx 5PIw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=FvrUwn7pxABQrO4a2PsWwdHY3YB8HNSxX84DA7RWfMA=; fh=1LG5EMQjTJW1FrMcVDHc6sQRCaT3fdqQjOguA5uhaDc=; b=RmRU5ExDhXJiuPU4TJEoFGHbYTB3YvAIzlD3d7SUCMDmkhQPcr3kcJuueL9RjbnkSh QbgioIwt7YNWVAmhfkS3f+lEo3l8gRHn2IYdiWIrn8xjAcVUs+SyIbE34Cj98a6Ei7vP zo8RdMf1HA91PqxLM2L+KMalPhD1F4c923p4xiXgYiX4MuSrplY+oXXWd15xVKDaSiBw gkbIjZ65ukmujFxvoduMc9gDS7+GijTWhGTKgBX4t8MrEl3Y8hbr3Z19CzKqESESOpEm pG1d1iLS/OPkHPvT1t/qGy+5isyDF3lqCY8+zqTOXgs5Q4x/l7KhJt92JNXN1Mv6gTq2 cblw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZzGxdSG3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p14-20020a1709060dce00b009929c39d5c5si7435120eji.367.2023.07.09.23.26.54; Sun, 09 Jul 2023 23:27:17 -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=pass header.i=@kernel.org header.s=k20201202 header.b=ZzGxdSG3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229714AbjGJGCt (ORCPT + 99 others); Mon, 10 Jul 2023 02:02:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbjGJGCs (ORCPT ); Mon, 10 Jul 2023 02:02:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64D4CF9 for ; Sun, 9 Jul 2023 23:02:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ECE7860DF4 for ; Mon, 10 Jul 2023 06:02:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 906D9C433C7; Mon, 10 Jul 2023 06:02:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688968966; bh=lXX8+8C2CPgAH+JV9a0WXKBIs81GM0CysUlsX48kz1o=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZzGxdSG3D3vxOGMof/r0+nd8BzWgh1pyl0T03Orrd94jtOl4JA3dqEvqg4fQczYEk 4EW6uHRTG1r3dFDJRS3S6kULnL+2mi2juGRxHk9dy1JSe3E+ZZNOUuXOuJCmz5DY78 xz1s2I5QoT/F0JkWC0Tq004RhEXQ8akNQqb34GisfYpK1vtbvL53ZKcRPFYUToOkvZ I2XcGSCT0ZO/ZLm2H9B45CSS/YQtWSCq1F6HUplKWcklxIPnq21L+z+riWKZZ+dA8d OlDqf6VGNQHU1f4CaM7HO56fomWLHCMEiFjAAnSxkYVqpTgd59AK9GEHWrHX6WIZ1T AFgwIn8s5rg8w== Message-ID: <8b5bde1a-08e2-15ad-ebe1-08a16de00468@kernel.org> Date: Mon, 10 Jul 2023 08:02:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 1/2] regulator: dt-bindings: rtq2208: Add Richtek RTQ2208 SubPMIC To: Alina Yu Cc: broonie@kernel.org, linux-kernel@vger.kernel.org, cy_huang@richtek.com References: <341af3996c430549243365bb8204d33a15a482be.1688569987.git.alina_yu@richtek.com> <20230706103040.GA32138@linuxcarl2.richtek.com> <20230710030858.GA16636@linuxcarl2.richtek.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <20230710030858.GA16636@linuxcarl2.richtek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 On 10/07/2023 05:08, Alina Yu wrote: >> 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 You don't have 0 or 1 values in such case. The property can be bool, but description is not good. Best regards, Krzysztof