Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp425842rwr; Thu, 20 Apr 2023 01:06:33 -0700 (PDT) X-Google-Smtp-Source: AKy350bszCVOrIUjP8Cc/PJ4lU5VqhOAV5/4BCTUWhkIcnCY4xGU9e3K+N1Rs1wcRrRZMSMtYxdJ X-Received: by 2002:a05:6a21:339a:b0:ec:8bae:83a8 with SMTP id yy26-20020a056a21339a00b000ec8bae83a8mr1026218pzb.28.1681977993315; Thu, 20 Apr 2023 01:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681977993; cv=none; d=google.com; s=arc-20160816; b=czRFJAI3Q8rpbZmn0WK3vAFEsEhG2pBhfZGxMBugEv3ANwgBbHwxOd+8QTe7TXk/Q0 JWeG2lMMbctk4VC5ZjKBI73b3hfVA/eZ46Q8O8GUJBvax69UMBwY1EWtVN1A3+KSBKUr beu2qEsx9aukK+VAJtA1VEi5YWlC6CgYs+SNMW+xvlJSwOy1YcffoJR4TT/Ce5SUYdSg lOxjBtrDwVlY13ejrPHROPfA1Xvqs+BWYLlQ/uAvmEkhkqakq0CjQkJ/ZhhoA8DFHKx3 MsP+PsPIggKintBeViNQDVM0vMh69QAM0FCP/KpzKMhSJXj4MELC8yAPPbcstkZNuWxe 81TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=BI1AiAelLJ4HxelpOqQEAAWAkBpG6hkIUKnSQUWohZk=; b=JFs2ltJI+jf3B2TimOxouHjxmEUxIAAPjqtE4M24sif2BXk0+o3ZsEC84Sn4+flIRY J2+VsBxAo/dYHsNC5LBQ60q3TxURzKGlUmlpieQTJBuW0v5aqmMjlxxemf0pQtHbhok1 OENRAz4Qdvkc+3YzLD7v4qwleZlxmiDaWnibNofUk/R+nsHqLEKAB2C3MU958e8geFR/ GKciqmYiDbjr+Oae87prNkPZWmCjWkR1niYGX9wI2eFHvcKK+5HBjAUeFdI+D7ZXUrsF 9ENZk598GGuUT7NkIz08Yk107nZIcyMk3p+3tXknlPyrQicQsuTB32GybJKb8qQuEmKO wqJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wwQp1VQv; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a654c46000000b005074cff89b9si1149115pgr.250.2023.04.20.01.06.21; Thu, 20 Apr 2023 01:06:33 -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=@linaro.org header.s=google header.b=wwQp1VQv; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234144AbjDTH74 (ORCPT + 99 others); Thu, 20 Apr 2023 03:59:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234245AbjDTH7t (ORCPT ); Thu, 20 Apr 2023 03:59:49 -0400 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9073726B6 for ; Thu, 20 Apr 2023 00:59:47 -0700 (PDT) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-54fbb713301so29341187b3.11 for ; Thu, 20 Apr 2023 00:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681977587; x=1684569587; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BI1AiAelLJ4HxelpOqQEAAWAkBpG6hkIUKnSQUWohZk=; b=wwQp1VQvTD/FDhRTbzZ1RrVypby8Y5AGsbDYqpJ+LuDak82YVXfbcVccxsIBMApyKn 7BUqc1l513A9tDM5JVFjExEXFfvaXVuOUlURA+zBNKAuXGihcPGZhM+hhUxa6fpH0N0w gX3t2Of9WyaPs19d+L774nPOmBo5O1Ccj6OpzOuFd6i1bMddsYJcxR3ChHrJrP4ziPPa Dpl2qgLW1OfRaUOXB+mTI3HZQN+koHmaFxGppaH1BGwbpwp2KSQJ4TLuF+LJA+7By2Sv HFEgKKPAUiCsp2hbvYNy085rQrPBUxmJY09ttws4p38lyLmGd+lmwsew8i2xHe/E5ljd Eemw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681977587; x=1684569587; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BI1AiAelLJ4HxelpOqQEAAWAkBpG6hkIUKnSQUWohZk=; b=lMSzTKzO1l39+2vGYSpp56vRhS3CP9zIlPqqCy9K1lg6rjVhdbGiWUztx1887sJ9K7 xFjlamOyMj3dL2iMaqQjEAa1xB+xa3UZmFQ/eo9KaKu8HGR4/j0d2nBcO/I7mI03aMHF HfRaq5v81PdQ2WW1abGV8hODrLAJQIKBZjf5kAiyHSHwuPEG48+Coq+cf1rgTv5KRqtg O/q/JqARl6CMh/mKIVpTRhupw8VCu/0/1OkdQcARLyb/Rw+CNeq70A5VwvAPx9pspV1T 4uWCVPmtKj7tHtkTLziYbkLtpJCmXQDV0+vSU66VSiE6am1HOi1PIwHDgIOAq2Q8RApG XbSw== X-Gm-Message-State: AAQBX9dVdIyQLem68K4PPW3ysMqr6vdA+EJ2jkVsa3PVgVqnNzYf/UD2 ZVnf8cHLgM2Sk8gIkGy92Uc5+u+W0+QX9jetl1U/kw== X-Received: by 2002:a0d:e5c4:0:b0:54f:8af6:bb13 with SMTP id o187-20020a0de5c4000000b0054f8af6bb13mr228370ywe.3.1681977586772; Thu, 20 Apr 2023 00:59:46 -0700 (PDT) MIME-Version: 1.0 References: <9275af790e6e21b5cf661a2444effe4caf2be02e.1681646904.git.jahau@rocketmail.com> In-Reply-To: <9275af790e6e21b5cf661a2444effe4caf2be02e.1681646904.git.jahau@rocketmail.com> From: Linus Walleij Date: Thu, 20 Apr 2023 09:59:35 +0200 Message-ID: Subject: Re: [PATCH v2 9/9] dt-bindings: Add documentation for rt5033 mfd, regulator and charger To: Jakob Hauser Cc: Sebastian Reichel , Lee Jones , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Beomho Seo , Chanwoo Choi , Stephan Gerhold , Raymond Hackley , Pavel Machek , Axel Lin , ChiYuan Huang , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Jakob, thanks for your patch! The following caught my eye: On Sun, Apr 16, 2023 at 2:50=E2=80=AFPM Jakob Hauser = wrote: > Add device tree binding documentation for rt5033 multifunction device, vo= ltage > regulator and battery charger. > > Cc: Beomho Seo > Cc: Chanwoo Choi > Signed-off-by: Jakob Hauser > --- > The patch is based on linux-next (tag "next-20230413"). (...) > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/richtek,rt5033-charg= er.yaml (...) > + richtek,pre-microamp: > + description: > + Current of pre-charge mode. The pre-charge current levels are 350 = mA to > + 650 mA programmed by I2C per 100 mA. > + maxItems: 1 > + > + richtek,fast-microamp: > + description: > + Current of fast-charge mode. The fast-charge current levels are 70= 0 mA > + to 2000 mA programmed by I2C per 100 mA. > + maxItems: 1 > + > + richtek,eoc-microamp: > + description: > + This property is end of charge current. Its level ranges from 150 = mA to > + 600 mA. Between 150 mA and 300 mA in 50 mA steps, between 300 mA a= nd 600 mA > + in 100 mA steps. > + maxItems: 1 > + > + richtek,pre-threshold-microvolt: > + description: > + Voltage of pre-charge mode. If the battery voltage is below the pr= e-charge > + threshold voltage, the charger is in pre-charge mode with pre-char= ge current. > + Its levels are 2.3 V to 3.8 V programmed by I2C per 0.1 V. > + maxItems: 1 > + > + richtek,const-microvolt: > + description: > + Battery regulation voltage of constant voltage mode. This voltage = levels from > + 3.65 V to 4.4 V by I2C per 0.025 V. > + maxItems: 1 These are very generic currents and voltages, and their usage is well known and generic. So they should not be prefixed "richtek,". Use the properties already defined in Documentation/devicetree/bindings/power/supply/battery.yaml for these: precharge-current-microamp constant-charge-current-max-microamp charge-term-current-microamp precharge-upper-limit-microvolt constant-charge-voltage-max-microvolt Please double-check, I think those are the ones you need. Perhaps it is possible to just $ref these properties directly and add the additional restrictions on top. Yours, Linus Walleij