Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1431437lqj; Tue, 4 Jun 2024 00:54:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJ69VBT5IVmuVZd6aZ9DTsrkktE8PW6qokpFD+utDVq9n8GkFvA9krpTdoTma0q84nIu+VURPBwvta2nCDBTHjhvVwTaB98Pxz3ewwbA== X-Google-Smtp-Source: AGHT+IFvO0012Q5KZ7VR5XIowiwbaOX8z6b7tyGwu8P7/h+yWRHc+gidO+k21gU5qKQB/IzTY6Ud X-Received: by 2002:a05:6808:3d3:b0:3d2:a7:6f1a with SMTP id 5614622812f47-3d200a77349mr191623b6e.57.1717487677897; Tue, 04 Jun 2024 00:54:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717487677; cv=pass; d=google.com; s=arc-20160816; b=L+a3h98KEhb5l+aXgGY4cui5YKTNpY1SIFZESrikTxr9kSJ1gEAitTnfwwpSHlbWAB sfkqmuyoQk4uvIAfoKpIte4RgonD1h/x3ipG2PJlkqFX9a/HgFEwOPOQUX60ItN598BX dfZUzSN1SQihuz2aegQyvQJbN7x39/TAyDZd4+fdy7+XZcoTd7cKdzRWffZPYcYyuv2m jc2AU32r263iNbKdV5gP66vqwzp7zFP0IJD+8DC1UltaRI6aYBiOz2enLp7vOG+1+ceo IjwEC/U9LcREK7sdOjqiI91y0/HrR2wSJneXmd3+NHdShtWY5eVN64XYiCep1LoDwTAB d9cg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BoSVUPBHVu1Boko+k4yuvY/1xggpNKidapHYx+cVQow=; fh=TcVG/r1x/cse0SKJjCsJ+SmSO1xrW8kDh/P4WcYiWvk=; b=Mofy53W9Nj2jNSoHKtTWSUthbxX41P/zWgmEnIUQbDEzSSzuyLdS9J3ITeusCw2sZ3 swlxwmYdVsmA7U8GUyFSKAxV5q1HIV/uRZJR+qTC0Ylv5Gb+rctKhsI4+ZdXEHTBiBCD aOh0Z6GvfDrP3D+6TWJuhpwCAQN+LzNqCdDO7+Jj3MOs2BZXa90H9ggLdabueO0XNXLc lWIoaZSI1mDrHKlq3fGXuZKAKBbD25jt8hCkAesOTlnl73UMaZsPMwBP+DAqC0zPuTdv sayHMUPean6HJPcmzJCx/Zg9nN6fbGzaDDDqIzKflwW0LfjzdLV1mlOIXapzNvC7g/Xi c7XA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MP+Clkmi; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-200190-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200190-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c359e09cadsi1170931a12.378.2024.06.04.00.54.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 00:54:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200190-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MP+Clkmi; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-200190-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200190-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 79DAA2834F4 for ; Tue, 4 Jun 2024 07:54:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1EC11420A0; Tue, 4 Jun 2024 07:54:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MP+Clkmi" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 CA1361411FD; Tue, 4 Jun 2024 07:54:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717487653; cv=none; b=M/ektmnmp8rMaFlEZoSl5Io9ZVh+EfNWdOQVZGT2oKR22WueGBwzrjrA58/uCZc8+q4kNXoy3XTiRmSDQUEebud3TV3349WOXGPCY6KEQ00Yp1x0yWgxmsYZEciVeLV9uoQT4+ft9bxLlE6ztVwxIL3slOGbt6mdZNW2XkwJX10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717487653; c=relaxed/simple; bh=+07XjaCmvSa2PN1d6lMA+SwXTKZqzU2wx3qN8oHNSUM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ImmqQIq8AkUegyGT0Sk93+vg0/WPvHGkcEdfjNfgN/WFrvMlxxvIb7k495xNZhveo14lAjZIsv93aWl9h81kCMQd0w43z5XPGRNZi3c7PbxOheD+hEFJUvT6Wc1MIr1D6Aj34j9HttrPLBjPKcaTAs80T+OmEvlXZSJtnDvmAtQ= 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=MP+Clkmi; arc=none smtp.client-ip=209.85.167.49 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 Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-52b992fd796so777824e87.0; Tue, 04 Jun 2024 00:54:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717487650; x=1718092450; 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=BoSVUPBHVu1Boko+k4yuvY/1xggpNKidapHYx+cVQow=; b=MP+ClkmiJ7/SCMB3tuggw9iyM2JLiq2qdeCDiee4/oLT4iJ5eOZIs8VGjMBHLILWIg 5p1WQyw0CN7L+8ECdN/kC9z88+HPAyyZTR6G3uOw7olg3+pothbArAdd2EElvuEkM95E WAS//ZZ+qk/geE0isbIQ4rUVsvYeHN6GGjrZ5xPD5xfEdbjkFUtYIV7RibnKqDBbekrN 4lIaXz8SDFVA/wsVlqDuq0lssLZCBgBFGlGrCtcYiFyvMDxWexzcL/AhhE/O5O6t/nfp 7WAQztHI2zRU8+u5I1MJyopHRa0SrjNsBKRRjRHzAuTwBQY7Uh2mvDR70CTOkdWZ92Ro PHWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717487650; x=1718092450; 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=BoSVUPBHVu1Boko+k4yuvY/1xggpNKidapHYx+cVQow=; b=sA4rAUzX2Npvi1QzTTzr8lgGRGDUbdIOhoV9WbJ/E1cJ1tx+MwFkzAuJNcYkWW3f4n m6LgXOv3NxzfkLK6nR6S9LPLpZlbz+Kgv87hrVOZRvOgyMwUiPhYLtj+ZVguXK5TMHpH 9ga+iIm+j1RyArLQdjXCaA9raHGYJM1aYYNiax8cfJu4GZ3lqQ555Vj5vuX6fqyYzaVH Ebjt8rLTiby9Mpo+0r13yws2T6ufQKxT8oQc7zE48g7GiOBB0MhqzOS7y4JckhCs3boF PGZCUe0sp781+tVb43u+HpymV1j1Cj+wJSfv99fZuYqi8qtSWNtL5W/W3e5XoksmQrWZ b4pg== X-Forwarded-Encrypted: i=1; AJvYcCW46TxxrOrkyNP9HkwS2/ej5n4NxJKTYosldiyG+d+RxqFz4+6p3iWxzULnG8THj4bbw6w5tqvHtdwZdSexIMaSFzHoyw8FSGO4spfgjMY5O4ZEXPPOzI/Cg2neN3k2bTlvh82ndQaGoks+VZ+yeiNeN1Gp1NpQgXP9TVOQbpZ4FdWCzE/htfXN X-Gm-Message-State: AOJu0Yz/6KYicgaSMLkBfZLVwQJcWhXw1oU4iXNHLjThO03UvCc9TVC4 GYjlmsijzX5idfbBX+heuD+30Vf6iJ7MOFML08LFyXJLhn1nFB5B X-Received: by 2002:a05:6512:118e:b0:52b:a5bb:12e6 with SMTP id 2adb3069b0e04-52ba5bb136bmr635980e87.35.1717487649543; Tue, 04 Jun 2024 00:54:09 -0700 (PDT) Received: from fedora ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b84d7ecbdsm1432069e87.182.2024.06.04.00.54.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 00:54:08 -0700 (PDT) Date: Tue, 4 Jun 2024 10:54:04 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Greg Kroah-Hartman , "Rafael J. Wysocki" , Matti Vaittinen , Wim Van Sebroeck , Guenter Roeck , Thomas Gleixner , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org Subject: [PATCH v3 02/10] dt-bindings: mfd: bd96801 PMIC core Message-ID: <674f3c69eefb2d31ceb064f898cb0237a5301044.1717486682.git.mazziesaccount@gmail.com> 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-sha256; protocol="application/pgp-signature"; boundary="4Ps4zMNCG7GQ+eF5" Content-Disposition: inline In-Reply-To: --4Ps4zMNCG7GQ+eF5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ROHM BD96801 is a highly configurable automotive grade PMIC. Introduce DT bindings for the BD96801 core. Signed-off-by: Matti Vaittinen Reviewed-by: Krzysztof Kozlowski --- Revision history: v2 =3D>: - No changes v1 =3D> v2: - use lowercase node names in example - minor addition to ERRB use-cases RFCv2 =3D> v1 - minor cleaning - add timeout-sec RFCv1 =3D> RFCv2: - Document rohm,hw-timeout-ms - Document rohm,wdg-action --- .../bindings/mfd/rohm,bd96801-pmic.yaml | 173 ++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/rohm,bd96801-pmic= =2Eyaml diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd96801-pmic.yaml b= /Documentation/devicetree/bindings/mfd/rohm,bd96801-pmic.yaml new file mode 100644 index 000000000000..d381125a0a15 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/rohm,bd96801-pmic.yaml @@ -0,0 +1,173 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/rohm,bd96801-pmic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BD96801 Scalable Power Management Integrated Circuit + +maintainers: + - Matti Vaittinen + +description: + BD96801 is an automotive grade single-chip power management IC. + It integrates 4 buck converters and 3 LDOs with safety features like + over-/under voltage and over current detection and a watchdog. + +properties: + compatible: + const: rohm,bd96801 + + reg: + maxItems: 1 + + interrupts: + description: + The PMIC provides intb and errb IRQ lines. The errb IRQ line is used + for fatal IRQs which will cause the PMIC to shut down power outputs. + In many systems this will shut down the SoC contolling the PMIC and + connecting/handling the errb can be omitted. However, there are cases + where the SoC is not powered by the PMIC or has a short time backup + energy to handle shutdown of critical hardware. In that case it may = be + useful to connect the errb and handle errb events. + minItems: 1 + maxItems: 2 + + interrupt-names: + minItems: 1 + items: + - enum: [intb, errb] + - const: errb + + rohm,hw-timeout-ms: + description: + Watchdog timeout value(s). First walue is timeout limit. Second valu= e is + optional value for 'too early' watchdog ping if window timeout mode = is + to be used. + minItems: 1 + maxItems: 2 + + rohm,wdg-action: + description: + Whether the watchdog failure must turn off the regulator power outpu= ts or + just toggle the INTB line. + enum: + - prstb + - intb-only + + timeout-sec: + maxItems: 2 + + regulators: + $ref: /schemas/regulator/rohm,bd96801-regulator.yaml + description: + List of child nodes that specify the regulators. + +required: + - compatible + - reg + - interrupts + - interrupt-names + - regulators + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + pmic: pmic@60 { + reg =3D <0x60>; + compatible =3D "rohm,bd96801"; + interrupt-parent =3D <&gpio1>; + interrupts =3D <29 IRQ_TYPE_LEVEL_LOW>, <6 IRQ_TYPE_LEVEL_LOW>; + interrupt-names =3D "intb", "errb"; + + regulators { + buck1 { + regulator-name =3D "buck1"; + regulator-ramp-delay =3D <1250>; + /* 0.5V min INITIAL - 150 mV tune */ + regulator-min-microvolt =3D <350000>; + /* 3.3V + 150mV tune */ + regulator-max-microvolt =3D <3450000>; + + /* These can be set only when PMIC is in STBY */ + rohm,initial-voltage-microvolt =3D <500000>; + regulator-ov-error-microvolt =3D <230000>; + regulator-uv-error-microvolt =3D <230000>; + regulator-temp-protection-kelvin =3D <1>; + regulator-temp-warn-kelvin =3D <0>; + }; + buck2 { + regulator-name =3D "buck2"; + regulator-min-microvolt =3D <350000>; + regulator-max-microvolt =3D <3450000>; + + rohm,initial-voltage-microvolt =3D <3000000>; + regulator-ov-error-microvolt =3D <18000>; + regulator-uv-error-microvolt =3D <18000>; + regulator-temp-protection-kelvin =3D <1>; + regulator-temp-warn-kelvin =3D <1>; + }; + buck3 { + regulator-name =3D "buck3"; + regulator-min-microvolt =3D <350000>; + regulator-max-microvolt =3D <3450000>; + + rohm,initial-voltage-microvolt =3D <600000>; + regulator-ov-warn-microvolt =3D <18000>; + regulator-uv-warn-microvolt =3D <18000>; + regulator-temp-protection-kelvin =3D <1>; + regulator-temp-error-kelvin =3D <0>; + }; + buck4 { + regulator-name =3D "buck4"; + regulator-min-microvolt =3D <350000>; + regulator-max-microvolt =3D <3450000>; + + rohm,initial-voltage-microvolt =3D <600000>; + regulator-ov-warn-microvolt =3D <18000>; + regulator-uv-warn-microvolt =3D <18000>; + regulator-temp-protection-kelvin =3D <1>; + regulator-temp-error-kelvin =3D <0>; + }; + ldo5 { + regulator-name =3D "ldo5"; + regulator-min-microvolt =3D <300000>; + regulator-max-microvolt =3D <3300000>; + + rohm,initial-voltage-microvolt =3D <500000>; + regulator-ov-error-microvolt =3D <36000>; + regulator-uv-error-microvolt =3D <34000>; + regulator-temp-protection-kelvin =3D <1>; + regulator-temp-warn-kelvin =3D <0>; + }; + ldo6 { + regulator-name =3D "ldo6"; + regulator-min-microvolt =3D <300000>; + regulator-max-microvolt =3D <3300000>; + + rohm,initial-voltage-microvolt =3D <300000>; + regulator-ov-error-microvolt =3D <36000>; + regulator-uv-error-microvolt =3D <34000>; + regulator-temp-protection-kelvin =3D <1>; + regulator-temp-warn-kelvin =3D <0>; + }; + ldo7 { + regulator-name =3D "ldo7"; + regulator-min-microvolt =3D <300000>; + regulator-max-microvolt =3D <3300000>; + + rohm,initial-voltage-microvolt =3D <500000>; + regulator-ov-error-microvolt =3D <36000>; + regulator-uv-error-microvolt =3D <34000>; + regulator-temp-protection-kelvin =3D <1>; + regulator-temp-warn-kelvin =3D <0>; + }; + }; + }; + }; --=20 2.45.1 --=20 Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =3D]=20 --4Ps4zMNCG7GQ+eF5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmZeyBwACgkQeFA3/03a ocXSnQf/YCl6DS+PfaoCQuZc+4eoWP3t8mAR7po//JC+pbpMGtlYiaGwxD/3RkE5 Oxs04bd8gOxGLVYrIua9e0bJ29EGkoCemDOVmSr7kG+CCH9abIsfPqti1KlevhGB XQrttdSrHH9W0t6x3IkjCLVxRj23m24oZBBKT5032WkoDawJZuybOPRMWrF5p/IG fi9w7F8CNRmkdnpahsyTPP1ModWapgKIt6dHpRlMaGlGLBcUmUzIhdr+6yGdQ9yL j7hULd858cPG65jbt6mqR9z+erK/yDQ3vxIRrAyNf+3vS9gqMVNIqiaqs+Ha3zXc oAe3gLpuOcf6aBfDQm1F2MDwN+qxCg== =vY9r -----END PGP SIGNATURE----- --4Ps4zMNCG7GQ+eF5--