Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5403321rwd; Sun, 18 Jun 2023 10:41:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/MmPsB80+8PRy1c6klkXkMiLmuOX9le6HiM6O9R2IX48IkNa5PffcjaVIDC0tAdRtcOnK X-Received: by 2002:a17:902:f542:b0:1ac:b449:3528 with SMTP id h2-20020a170902f54200b001acb4493528mr10670913plf.46.1687110116784; Sun, 18 Jun 2023 10:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687110116; cv=none; d=google.com; s=arc-20160816; b=cI3okbucH3MQwJGupk7t+eLRIgXozmN0Z8xKKGL9eNgNKag3bq1zfh0gFzdJ7WQkIJ 89m5ZiGSJCfX9RhT+9N7cc3Mdo7J0DQyyLUvpxAINvKn1+4leI0ersKeBd4CUop2CGwW +l5te8UNelhkLQg/X7X+kqnzbmxD/Sh4b3uoQmWKotMDy7XEqeAtuB+ieO8i79NwcaHL pm7gD0qZGMSVUUdk8IB6fvytBF34+efmq87lM/yRIqnxdpBZnUP2yxmXpMM3y1XynyIw K65CfOltL/bNJeB/Xe7nOnKH49cCKmKE4QHnAnyLmTkyWIBzeUh6D5oi5cMXV6ua14Ms 4UNg== 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=1byxmKsuwVtHNKVjs0CfYPPIiLgXwsmmbrJRN3DT5sY=; b=fyydkN0hRHuRq2N70oBiSvhUm1ObN1hdLQXHKHK3e3vW1uv1wmdP4oihF7W1QGhJqP oyxdG32rAnbr8gvoc/uFsXDY6S8bbmFmQzTAKVI+FnU4YkVRy7gfgvsfIwxGGFopOAs6 mCLgHaK/dO2rdoXCgjTd+MCH42IkPl6aLZS/1fmVUD1eq4OM7Ice9bAf9F81DNJ1uZzK 5wajQl3pHfAhPNn9oTvCd3L6hlYpAw0suQaYocfgoq3Pp+ofhfTmRrcwuaUrK+J9xUDW rSuMYApeYdc5/EFMdezoJapflkYRyIbD8WiIXCsg5iW4bn3reojT///fbRbA3S/Buz56 RHfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rocketmail.com header.s=s2048 header.b="uha/SwH7"; 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=REJECT sp=REJECT dis=NONE) header.from=rocketmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fa22-20020a17090af0d600b0025c00bb639fsi5851712pjb.146.2023.06.18.10.41.44; Sun, 18 Jun 2023 10:41:56 -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=@rocketmail.com header.s=s2048 header.b="uha/SwH7"; 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=REJECT sp=REJECT dis=NONE) header.from=rocketmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229478AbjFRQt0 (ORCPT + 99 others); Sun, 18 Jun 2023 12:49:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjFRQtZ (ORCPT ); Sun, 18 Jun 2023 12:49:25 -0400 Received: from sonic309-25.consmr.mail.ir2.yahoo.com (sonic309-25.consmr.mail.ir2.yahoo.com [77.238.179.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92909E4D for ; Sun, 18 Jun 2023 09:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1687106962; bh=1byxmKsuwVtHNKVjs0CfYPPIiLgXwsmmbrJRN3DT5sY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=uha/SwH7I7rs/r5ZpEHymasRxI2NNC+1btE5cJbHnBVi/+2EP7LDhN4wP0wDJUYFZOHGiyqYc6KUZdGxbK/K5mHGpV0F5Op8ZtJI8ZAGhObL62malGYW6geWo/PDkaNG+bbZx5AixdS/ovGfmzqmzPLyac5wc/8HU47ZdWI6bRFyGu2FAmtdOxy+Zs18pBuCIB3ns2p/sxLaJI9ag/V6BGpq651v+Mdo5Mt8drysFdU2I6OIGYU0/6jEiLIUIkufSuDABDMOHHFDT5favNAZie9mABoyfHlT/MRyDTqRa4+qr2JkIAxUZsyjmSV3WR7UptRCAYk0k1y5Sie2SoaKkA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1687106962; bh=aJFsOPX7ARn/sObHD13lQRHiRpseUebdhxOsSCSQNu9=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=pnZ2jomD+qitYFiL0hkl3X6RthizvbE/SLUTXcJrhYl98NczZJKkXP2bQI9AHkdXsajDhiSPhjsTpHboF6vn+fdmACCYu9w2UGz/LDqZ6nb9z5FCLXaI13nX5BDu7uEIB6oRBBakArIL09jTJT16NJJNz4/T2nCeQkR2MhZqmM0DhM1B62TOzJd1CmhhRYskRyVTkPccRGNQPRNzJ1Rz58GN33Z8ZQOLJ79mEKObXjTyRCepkukeVHCK2OG/v3m7JuX1Uugj2ozeDjpTB5fzhhtQI/9RqdLe6mtSaW/y0vyIBmpsWssIa6/BD1irrJACUsSHr20N1X2YKExjn6fxcg== X-YMail-OSG: y1.8yFUVM1nNIPH0bembKj4.xSeiOLT4LwMSpl8Fo4EH0ZaQSwdfamb.Rx4slUh 7baTXb1K7zM.3kQpzH8Ut2G1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J6MW 3KvS2_l8AhA5PjNJCM6JsP2PQrKddsvL1idKtjCKyyIFEu2KCBjTFknxeqrBOrxFnk2J7RMwubGz 0KxZ7L7G_HTpsmQcak1kuLNTdp65MF03k X-Sonic-MF: X-Sonic-ID: 0a8d3c80-63d9-43ac-ad23-34ea945a5cd7 Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Sun, 18 Jun 2023 16:49:22 +0000 Received: by hermes--production-ir2-7867f454fc-z6m77 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 4eb4576de48997a989d0f23ab4fb0b6c; Sun, 18 Jun 2023 16:49:18 +0000 (UTC) Message-ID: Date: Sun, 18 Jun 2023 18:49:16 +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 RESEND] arm64: dts: qcom: msm8916-samsung-serranove: Add RT5033 PMIC with charger To: Stephan Gerhold Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Sebastian Reichel , Lee Jones , Raymond Hackley , Henrik Grimler , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht References: <20230617002934.39408-1-jahau.ref@rocketmail.com> <20230617002934.39408-1-jahau@rocketmail.com> Content-Language: en-US From: Jakob Hauser In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.21557 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 Stephan, On 17.06.23 16:15, Stephan Gerhold wrote: > On Sat, Jun 17, 2023 at 02:29:34AM +0200, Jakob Hauser wrote: ... >> + regulators { >> + safe_ldo_reg: SAFE_LDO { >> + regulator-name = "SAFE_LDO"; >> + regulator-min-microvolt = <4900000>; >> + regulator-max-microvolt = <4900000>; >> + regulator-always-on; >> + }; >> + ldo_reg: LDO { >> + regulator-name = "LDO"; >> + regulator-min-microvolt = <2800000>; >> + regulator-max-microvolt = <2800000>; >> + }; >> + buck_reg: BUCK { >> + regulator-name = "BUCK"; >> + regulator-min-microvolt = <1200000>; >> + regulator-max-microvolt = <1200000>; >> + }; > > The "regulator-name"s here don't really seem useful, since they're just > the same as the ones already declared in the driver. Can you drop them? > Alternatively you could assign more useful board-specific names, such as > the CAM_SENSOR_A2.8V that was used downstream. > > Also, I think it would be slightly clearer to prefix the regulator > labels (safe_ldo_reg, ldo_reg etc) with rt5033_. Perhaps > "rt5033_ldo_reg" or "rt5033_reg_ldo"? ... About the "regulator-name"s I wasn't really aware. I don't have a strong opinion on this. With the downstream names, it would look like this: regulators { rt5033_reg_safe_ldo: SAFE_LDO { regulator-name = "RT5033SafeLDO"; regulator-min-microvolt = <4900000>; regulator-max-microvolt = <4900000>; regulator-always-on; }; rt5033_reg_ldo: LDO { regulator-name = "CAM_SENSOR_A2.8V"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; }; rt5033_reg_buck: BUCK { regulator-name = "CAM_SENSOR_CORE_1.25V"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; }; Dropping them would look like this: regulators { rt5033_reg_safe_ldo: SAFE_LDO { regulator-min-microvolt = <4900000>; regulator-max-microvolt = <4900000>; regulator-always-on; }; rt5033_reg_ldo: LDO { regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; }; rt5033_reg_buck: BUCK { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; }; I would rather drop them. The first name "RT5033SafeLDO" doesn't add much information. The other two I'm not fully sure if they provide the cam sensor only or if there might be other users as well. Also it add an additional set of names. When dropping them, the generic names SAFE_LDO, LDO and BUCK are taken from the rt5033-regulator driver. Unfortunately, I added the example in the dt-bindings with the generic names. So this question might come up again when someone else adds rt5033-regulators to another device. For the phandle labels I'd go for rt5033_reg_..., I already changed them in the examples above. Kind regards, Jakob