Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5481860rwd; Sun, 18 Jun 2023 12:24:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4kZ/0KGVyeHqUnkn8ZyuJfFd1YiI+8yKumKmJQqSfdhGbduLzusFtHdBll5uyxBUKbquV+ X-Received: by 2002:a92:c98e:0:b0:335:1ed:359b with SMTP id y14-20020a92c98e000000b0033501ed359bmr5248665iln.15.1687116261405; Sun, 18 Jun 2023 12:24:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687116261; cv=pass; d=google.com; s=arc-20160816; b=DlwBb5Ft1+4bzY+1d41Q/rFmE3GuH0hA9aKJYGGH1ytOiwfEN6Juaf3wdB3MQn/Q3f qLdCO5BRsO0aUrKLk9e517apeXA0FV6DFAf3a//AOEFcbuua4tALbvy33RTr4nK9Cuio VCCjLUmkwV4+TSppWG+GRWrb0F6erBCRcLJJslxdWX0FVB6kYPSYIEWavjDkGh+fC/Q3 TQ9vu82t+9q96PLc5QzVx+Iz99/qyejVvAsoo/QcbsOoD6qrHVebRwv/54qyy3yDGTqZ Wza+uhpV46dAFtED5INr8BKBddQ0hxDBbPAQ+sJ2DvMv8GXFLlm/Z6qajG5wrH0PgV5R yhmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=FJMWBLVxHgWe48faKZRs40upiT2yzn0xKgnw2MVIZWM=; b=XGzCE6hQllftd3rFprrTFnK72QGhyjDvdRGA4+ZJ4dMFuZjcJS9BVOkb3CS3dVvXkT qhocuCshpBgJfhCDR/o9Gf6NLRNAwfZHUd+xu5BKH/tSjYD41HKktIp3r/cJmvy/EgmL Dwq3jSvfXC9E9I7KBTFhIt+axzvRU+es0Fu4pCgNgYJZhaUpBxASuHXIn6g+RoQzDLUh pnQlH12ZLh6M3TW/xUMcdmf56sYbhIt55rkhxB0UcvuEPSVveUy5kbiBgomiMb7LjcIr SwR6LU48gNyK348BWQOZ/9HNLSmGYwGA7RuflGwu93o8b0YfAgtmT6UjxueL6IFICdW+ oG1Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=YbhDKRYK; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003; arc=pass (i=1); 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 y19-20020a1709027c9300b001b3d5fdd1c3si12570503pll.188.2023.06.18.12.24.08; Sun, 18 Jun 2023 12:24:21 -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=@gerhold.net header.s=strato-dkim-0002 header.b=YbhDKRYK; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003; arc=pass (i=1); 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 S229630AbjFRTLj (ORCPT + 99 others); Sun, 18 Jun 2023 15:11:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbjFRTLi (ORCPT ); Sun, 18 Jun 2023 15:11:38 -0400 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 898821B6; Sun, 18 Jun 2023 12:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687115492; cv=none; d=strato.com; s=strato-dkim-0002; b=lQynQm4TBgm2oPzFgVhKTiDlfm5RqIGuhIDN8h1xeR0njFroEQGHuHLeiVWBAJpupP eS33rLTDtS893Gj9pW4C+YHTF4vrb5Q/zK+KxCvEX6h8Zmx2Ol0w0/r4hRUYurN/WhrY NKZ8Nn0nd2W3dob3OkPr1262Odw6MyQ6GofT5kCLviHyhpXgU+mdQrbLC/EAqAbJG/fQ KGbW2XTf5JCkIPCF6ckwuaBWqpFuU2RcW8OlHI01+LGWrQQP/bCdS0dBnfyHclXqan0h SWuQ60GzrX2TTFpyDycNRDGrCmrF5hdLqkynZUTSDdrodxhojwAczDcOVnxi91i2ym6D dcmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1687115492; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=FJMWBLVxHgWe48faKZRs40upiT2yzn0xKgnw2MVIZWM=; b=hE67MlzWy6GMUIMCASjLk4ocMHGbl/nFQIi9hmUfe3P+Apv9l4VTDcRAnufN7lJwIl aMJA072Slf3hR63aSEF2xfJjvjCzj5pWv6FizIHVQ6ucwagV8lFQ5Y0ZaNaH3B/lQhPX vUVeujLRG1eZOH/CB5KrdsdFngzOqBkBTSJU5QciXz7IUQbHS4HOjSVQxQ+DVbaN5BUx K5jAE94bjkwytAIElot4XSOmJn85pNaqf5KTvkSYdkKJsQJ+7QeJ/1rEt+L0bwzAwcKF iW24CutL6/mP/JRHyIyV+oz+1oDYiKlL/LO3gfYXDTjDUxh1zQ/YXNLG+hwXwerXmq24 qBjg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1687115492; s=strato-dkim-0002; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=FJMWBLVxHgWe48faKZRs40upiT2yzn0xKgnw2MVIZWM=; b=YbhDKRYKpFWVDUU2/MBK6STXwSjorBYv7xYEmS6a6yOGzkaTX/9zeJtMkcYndQ18c7 iUv7YxoBOSLiTNYokZjyd4sf+JSuez0ggkAZckwQL+L/2Lkf1qQxq4xFkPeh178OCf7F yTyhDGCv5aUMI554B5knidfXNnxr6+yMbVG4PA6bjPlrodXSFGQSY5V/Zqp+R2TEvkQh thT7JJhq/8fQw0dS45qBRe+UEDbV2Z2apYLYW78qcOrc7wAdYNQCl5WEw9YboWDFITsU oZEpSrNI1axVP+PXWuYiRo7AHNR4aiDAhM3p5rLgGu/XU9Ajj1RBkAPXuVxY24chzbC/ dNAg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1687115492; s=strato-dkim-0003; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=FJMWBLVxHgWe48faKZRs40upiT2yzn0xKgnw2MVIZWM=; b=oF54QNymzT0Ibs4uevVULRe9zB9GwGr3yz6CddEyWCruKLzznt8IRe5aKPHvcgcJ1y gYTMNeJHYjqgNPXf7fDw== X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVOQ/OcYgojyw4j34+u261EJF5OxJD4peA+pvh" Received: from gerhold.net by smtp.strato.de (RZmta 49.6.0 DYNA|AUTH) with ESMTPSA id D0d0a8z5IJBW9YU (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 18 Jun 2023 21:11:32 +0200 (CEST) Date: Sun, 18 Jun 2023 21:11:29 +0200 From: Stephan Gerhold To: Jakob Hauser 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 Subject: Re: [PATCH RESEND] arm64: dts: qcom: msm8916-samsung-serranove: Add RT5033 PMIC with charger Message-ID: References: <20230617002934.39408-1-jahau.ref@rocketmail.com> <20230617002934.39408-1-jahau@rocketmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,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 Sun, Jun 18, 2023 at 06:49:16PM +0200, Jakob Hauser wrote: > 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. > Sounds good to me, thanks! Stephan