From nobody Wed Feb 11 05:14:40 2026 Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70FDB2D7394 for ; Tue, 7 Oct 2025 08:33:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759826019; cv=none; b=anCwOJ3QHK8cpPOAOrvcKSgUetIJrBd/+pz6XNPvdCE/FGfxYFFzqqZuxnNLAnI6vEnC0zykmh+qW8nYrZOIBR0airTyIJ8blLaRvBX+GzANxwjbuOGDRfQ+aXhf6LR3b0Pzw0z71HuVWF+DGZ4MQV2WUzWnGfqsae02fwvWliw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759826019; c=relaxed/simple; bh=0qm+wbM4Yxdr947/e1Ix8Os5lqI7GsRoH3zKAUCA9to=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YyjCEUvna36x7r8v8TugR7Yu79ChhgiUiKtsq8IcxpzJA7Sf9mB36jC6iXNjF0dN04RThTSqQLD1bco9VQ155YL9owiNLOL0UWrsKOFQ0ytpKi0bKAo+W+Qevb59IzltSPAe2Qb30QYsUo9lGlPcpLYH38LPfZAP3mFESCLuGGM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hIHOF9sb; arc=none smtp.client-ip=209.85.208.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hIHOF9sb" Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-3652d7800a8so27145291fa.0 for ; Tue, 07 Oct 2025 01:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759826016; x=1760430816; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XN5h3tnIJ305ES8QY9VBQb05P0G9SlLaLGLqVj1UUgA=; b=hIHOF9sbKigk+aMmH7d6xeTb2eWUePcv/rS429kcBIARy6R/ZWk4bq9d1gOTsEBuzO WreG3kCMq9+eDIzNjsaPyTMbxRivP2orRsXum45RJ7DMVBi2ZVlcuDQolPM9y30zDGgp OFQ+tq7I8OBo6mP4y/Xjpe9Dlm4ncUvnB/Wjp8Ykckx1hHoGYJQqvIU/+UfGISryZkOw BRVnnnm56D/08YwAblvORldVeOgTfiHJ/ihJ1b/jDF2Pt2R7/3wN+owUxQjKJWYsDFBW I2wrT0V7y22KLO5nFBsGTDpjXwIjGsQocycg3iSijJ7q30zG3BVACaDWHtKrCCX9dVJQ 6RiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759826016; x=1760430816; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XN5h3tnIJ305ES8QY9VBQb05P0G9SlLaLGLqVj1UUgA=; b=FvPkhijMvxo27bBXRBRO9j8LPktDINQtW3hRIUfpw0PGMtORMEH/QeH8my6Kx+xvqq r+oRoGH9nOEG7MOkU87EaMCMBgHn4fiCKtpagD8fLf0D8dtxW/yeIYkHOTP8OmaUM73b kaOxzPY4XzqyOv8GhK08EJmyFEtFFx5QdvxPw+4FVPda16P9dNKqtUR1/+SFUnqBgr4r 91vkE+K+igKUp/H4tKq8hK9+UzwlIpYsMQzHEKFnbU3jxN/X7NPiMsmR9uct1AbfIf/w RNoINe9c6XZ+sk3LpOaJ0VpXgK4CjqBQy4VaX7GEp+vCYWLxv+QyXYj3oNsCuoZjvk0j yx2A== X-Forwarded-Encrypted: i=1; AJvYcCXekFPSc/Bis3V+wtt5KR4HVZLm4vuYyO8HBq76Cjf+CtnpYemYSn5al7b2LkF7s2imGX6SPQWsFGwxpJc=@vger.kernel.org X-Gm-Message-State: AOJu0YwqMiG2gaFOxCRiVQnpixPHh4X3L72lik12pK+whqJ98NtW2gEJ JuDJI2rRetpGQLth17TDP3VrSJnLCMHc5Kw+KWMr5Hwq+9OD7pCSWlWH X-Gm-Gg: ASbGncvO4pI9mvamsmhI6fj2NkOwbvAb6Du7zHtdBT+1dQ+q+2sdpUm/QFhQ/U1DG3I guWnrq5qmtBWvWIkYkXN62JaFffXKOrjZ/NSsGwJNqukJQVZ4U7st6kJicRD2/jBPk82qJOcpLH kwMC/gzmTBWxQOPedWsXfmMEgX0EaaOWoxaQM0lEoVCNh2no2CbiWm1463o3jAsHk2E7e1YeRXH 7E7LPvUs/YKc/KCDAW6FC6pb/vSefGW2AKqyxbLuhmwXtYtERt3crR40lPt1ssduXJ7KSwnr4c7 lzyvms/PxZN5KVspHFmIb3UGeUU4ey9XqlV8o2oeiEYAwamcsA8e3nzSlXBAGyq8M3UL5JB7vSs SiZqW5eqY/Iy93cxTCHcQOyjuUveJ0dwbArAZ9UziiLcLQRC+EuWJ8g== X-Google-Smtp-Source: AGHT+IGlm1lJ9PHKpLHxwmV/x0ZqvQNmZk0Jngo99z91DDEA7+xbdTil4A9ywTIUsWFHeL8ZC6SAww== X-Received: by 2002:a05:651c:2213:b0:332:37d5:da95 with SMTP id 38308e7fff4ca-374c3836cb1mr55556091fa.33.1759826015401; Tue, 07 Oct 2025 01:33:35 -0700 (PDT) Received: from mva-rohm ([2a10:a5c0:800d:dd00:8fdf:935a:2c85:d703]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-375f39d49b5sm7923001fa.13.2025.10.07.01.33.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Oct 2025 01:33:34 -0700 (PDT) Date: Tue, 7 Oct 2025 11:33:30 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Liam Girdwood , Mark Brown , Linus Walleij , Bartosz Golaszewski , Matti Vaittinen , Andreas Kemnade , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-gpio@vger.kernel.org Subject: [RFC PATCH 04/13] dt-bindings: mfd: ROHM BD72720 Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Z8mvoOwLpEV7jO45" Content-Disposition: inline In-Reply-To: --Z8mvoOwLpEV7jO45 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The ROHM BD72720 is a power management IC integrating regulators, GPIOs, charger, LEDs, RTC and a clock gate. Add dt-binding doc for ROHM BD72720. Signed-off-by: Matti Vaittinen --- .../bindings/mfd/rohm,bd72720-pmic.yaml | 269 ++++++++++++++++++ 1 file changed, 269 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/rohm,bd72720-pmic= .yaml diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd72720-pmic.yaml b= /Documentation/devicetree/bindings/mfd/rohm,bd72720-pmic.yaml new file mode 100644 index 000000000000..7f8168410121 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/rohm,bd72720-pmic.yaml @@ -0,0 +1,269 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/rohm,bd72720-pmic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BD72720 Power Management Integrated Circuit + +maintainers: + - Matti Vaittinen + +description: | + BD72720 is a single-chip power management IC for battery-powered portable + devices. The BD72720 integrates 10 bucks and 11 LDOs, and a 3000 mA + switching charger. The IC also includes a Coulomb counter, a real-time + clock (RTC), GPIOs and a 32.768 kHz clock gate. + +# In addition to the properties found from the charger node, the ROHM BD72= 720 +# uses properties from a static battery node. Please see the: +# Documentation/devicetree/bindings/power/supply/rohm,vdr-battery.yaml +# +# Following properties are used +# when present: +# +# charge-full-design-microamp-hours: Battry capacity in mAh +# voltage-max-design-microvolt: Maximum voltage +# voltage-min-design-microvolt: Minimum voltage system is still opera= ting. +# degrade-cycle-microamp-hours: Capacity lost due to aging at each fu= ll +# charge cycle. +# ocv-capacity-celsius: Array of OCV table temperatures. 1/ta= ble. +# ocv-capacity-table-: Table of OCV voltage/SOC pairs. Corre= sponds +# N.th temperature in ocv-capacity-cels= ius +# +# ROHM specific properties: +# rohm,voltage-vdr-thresh-microvolt: Threshold for starting the VDR correc= tion +# rohm,volt-drop-soc: Table of capacity values matching the +# values in VDR tables. +# rohm,volt-drop-high-temp-microvolt: VDR table for high temperature +# rohm,volt-drop-normal-temp-microvolt: VDR table for normal temperature +# rohm,volt-drop-low-temp-microvolt: VDR table for low temperature +# rohm,volt-drop-very-low-temp-microvolt: VDR table for very low temperatu= re +# +# VDR tables are (usually) determined for a specific battery by ROHM. +# The battery node would then be referred from the charger node: +# +# monitored-battery =3D <&battery>; + +properties: + compatible: + const: rohm,bd72720 + + reg: + description: + I2C slave address. + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-controller: true + + "#gpio-cells": + const: 2 + description: | + The first cell is the pin number and the second cell is used to spec= ify + flags. See ../gpio/gpio.txt for more information. + + clocks: + maxItems: 1 + + "#clock-cells": + const: 0 + + clock-output-names: + const: bd71828-32k-out + + rohm,clkout-open-drain: + description: clk32kout mode. Set to 1 for "open-drain" or 0 for "cmos". + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 1 + + rohm,charger-sense-resistor-milli-ohms: + minimum: 10 + maximum: 50 + description: | + BD72720 has a SAR ADC for measuring charging currents. External sense + resistor (RSENSE in data sheet) should be used. If some other but + 30 mOhm resistor is used the resistance value should be given here in + milli Ohms. + + regulators: + $ref: ../regulator/rohm,bd77270-regulator.yaml + description: + List of child nodes that specify the regulators. + + leds: + $ref: ../leds/rohm,bd71828-leds.yaml + + rohm,pin-dvs0: + $ref: /schemas/types.yaml#/definitions/string + description: + BD72720 has 4 different OTP options to determine the use of dvs0-pin. + OTP0 - regulator RUN state control. + OTP1 - GPI. + OTP2 - GPO. + OTP3 - Power sequencer output. + This property specifies the use of the pin. + enum: + - dvs-input + - gpi + - gpo + + rohm,pin-dvs1: + $ref: /schemas/types.yaml#/definitions/string + description: + see rohm,pin-dvs0 + enum: + - dvs-input + - gpi + - gpo + + rohm,pin-exten0: + $ref: /schemas/types.yaml#/definitions/string + description: BD72720 has an OTP option to use exten0-pin for different + purposes. Set this property accrdingly. + const: gpo + + rohm,pin-exten1: + $ref: /schemas/types.yaml#/definitions/string + description: BD72720 has an OTP option to use exten1-pin for different + purposes. Set this property accrdingly. + const: gpo + + rohm,pin-fault_b: + $ref: /schemas/types.yaml#/definitions/string + description: BD72720 has an OTP option to use fault_b-pin for different + purposes. Set this property accrdingly. + const: gpo + +required: + - compatible + - reg + - interrupts + - clocks + - "#clock-cells" + - regulators + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + pmic: pmic@4b { + compatible =3D "rohm,bd71828"; + reg =3D <0x4b>; + + interrupt-parent =3D <&gpio1>; + interrupts =3D <29 IRQ_TYPE_LEVEL_LOW>; + + clocks =3D <&osc 0>; + #clock-cells =3D <0>; + clock-output-names =3D "bd71828-32k-out"; + + gpio-controller; + #gpio-cells =3D <2>; + gpio-reserved-ranges =3D <0 1>, <2 1>; + + rohm,charger-sense-resistor-ohms =3D <10000000>; + + regulators { + buck1: BUCK1 { + regulator-name =3D "buck1"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <2000000>; + regulator-ramp-delay =3D <2500>; + }; + buck2: BUCK2 { + regulator-name =3D "buck2"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <2000000>; + regulator-ramp-delay =3D <2500>; + }; + buck3: BUCK3 { + regulator-name =3D "buck3"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <2000000>; + }; + buck4: BUCK4 { + regulator-name =3D "buck4"; + regulator-min-microvolt =3D <1000000>; + regulator-max-microvolt =3D <1800000>; + }; + buck5: BUCK5 { + regulator-name =3D "buck5"; + regulator-min-microvolt =3D <2500000>; + regulator-max-microvolt =3D <3300000>; + }; + buck6: BUCK6 { + regulator-name =3D "buck6"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <2000000>; + regulator-ramp-delay =3D <2500>; + }; + buck7: BUCK7 { + regulator-name =3D "buck7"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <2000000>; + regulator-ramp-delay =3D <2500>; + }; + ldo1: LDO1 { + regulator-name =3D "ldo1"; + regulator-min-microvolt =3D <800000>; + regulator-max-microvolt =3D <3300000>; + }; + ldo2: LDO2 { + regulator-name =3D "ldo2"; + regulator-min-microvolt =3D <800000>; + regulator-max-microvolt =3D <3300000>; + }; + ldo3: LDO3 { + regulator-name =3D "ldo3"; + regulator-min-microvolt =3D <800000>; + regulator-max-microvolt =3D <3300000>; + }; + ldo4: LDO4 { + regulator-name =3D "ldo4"; + regulator-min-microvolt =3D <800000>; + regulator-max-microvolt =3D <3300000>; + }; + ldo5: LDO5 { + regulator-name =3D "ldo5"; + regulator-min-microvolt =3D <800000>; + regulator-max-microvolt =3D <3300000>; + }; + ldo6: LDO6 { + regulator-name =3D "ldo6"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + }; + ldo7_reg: LDO7 { + regulator-name =3D "ldo7"; + regulator-min-microvolt =3D <800000>; + regulator-max-microvolt =3D <3300000>; + }; + }; + + leds { + compatible =3D "rohm,bd71828-leds"; + + led-1 { + rohm,led-compatible =3D "bd71828-grnled"; + function =3D LED_FUNCTION_INDICATOR; + color =3D ; + }; + led-2 { + rohm,led-compatible =3D "bd71828-ambled"; + function =3D LED_FUNCTION_CHARGING; + color =3D ; + }; + }; + }; + }; --=20 2.51.0 --Z8mvoOwLpEV7jO45 Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmjk0FoACgkQeFA3/03a ocWcTAf/Vn3HFVm6S4PzKIzlZl2rBimOzXMq1w9SoGDhAb2/DZmVum43bkbQ/3y8 D4h27w7iz/wsqiNv91nNL7wiVExReyM10HVCbQZhD+PREFctuBjiVJQ+6XxkzQsz f0dbY1XzWs66IWifuy6iHJWAFCNwo9BzRsIJJU3NOlf9V+8B8EdDfWQ/TdPbVAPY Q3U+psSLfql+YQugz4A+yaiN5QDzQBlNrY56BNfS9xI63O9931EJotQzdHS0TRIw yvxVTNOBAsR8TOYCbbPFcXzoLsEPpWiPsevFdiO5jr6o14H/d65ycuKhmKXxSmjx DTclm3q89kj+qAd4C0KPS9ntsmBeZQ== =uMET -----END PGP SIGNATURE----- --Z8mvoOwLpEV7jO45--