From patchwork Thu Jun 27 07:42:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 808113 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 048544D599; Thu, 27 Jun 2024 07:43:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719474187; cv=none; b=R0AbeD1FifPkoriIs2Bo775O8KbJp7OUIzkNDMX8cMoMwUzC+vMv/tBV38T24lri5aVKIerzdjpolfQ3jJG4kAOGJwAjPw2ydm6isD0mefHuRRh4oXOml0O/CMqo+gjam/coU5uvKx0PbGtKpxn9XAvYAWX1cSkADEUqAm0XcJY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719474187; c=relaxed/simple; bh=am37yhg8tEwrGaH+7KzNQHAoQNp2ZMTQaZxvQN+reDs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eiCXx9YQr5frej6Qa6tiR3Brh+HymI1BynEXiVy9aWFiXzw2A43WcouZeFUdb3qAdK3B8Y6fmwT8PGRSlLy5vWa3LizMZAcWPtD3idiMbaD0xf8ky1XRgUkfv7HX8kwxl6V7eV1xmNxwlUr07SIRq7+gNhgNzWvpYV7eKEvFFPw= 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=PE2UyPFR; arc=none smtp.client-ip=209.85.167.46 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="PE2UyPFR" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-52cdebf9f53so5122042e87.2; Thu, 27 Jun 2024 00:43:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719474184; x=1720078984; 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=CNcN2sh0AeqSnpyxcUirrwPsHSFwDLCWyBgNSuG8gNs=; b=PE2UyPFR6wBt3pDZ/qcF7G1FlO5OY5DsVNPLepCHVhv1l5pnTcb0DCXyeCwFHeNSM9 YPY/rO1Z/9qll/DNUFIuq7i9ARSkC/FqPYNg/i1Ifsi03Beg3vtvaNn6shyAI5sRXEiW 5T7Xm6XPnO2sO7Iz/oTvcpPguTPUVgwGk8enKkvNBZJmTNChCdrQTeCkpPNcl/PvMta4 Kae/0MlXeUV8zCIzhVUM2uFDTteSSEKryjuR4g1ULxj6TfSNm39WBirAD8O3/zgtF+34 0bPKOeFOt+hTSOo1wqz1tfkcsGpn7lTWy3Vh+jgwq0F2kUgcu09ZWgvChyzP3TCGurFT 8Nfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719474184; x=1720078984; 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=CNcN2sh0AeqSnpyxcUirrwPsHSFwDLCWyBgNSuG8gNs=; b=eeLWOZXjf4voDPeavFDQ/pN4LX94KBQf3BgnPQxcYcBSYsaTyFej+V8+SBrksfwhvC iG6bW+dWOXMVuG4VNzplAb9xPAoU8S1WHi2cV1pz3xP+hhRnDSmsDwLzuubW2HE/58zt q3i2XQsOXL63KFPs2oSPXJjLMaqK/pH4EnVrQDiE0nikI7ydnYxBxUjMcJbGmPaIWzO/ 1IBxz27qA92RNZ2PN/XJx+JRzgyuQCubCJRmb/Ny7c4i91yqo6ieVrBrwgzBHYjX+wEn wTSAo+EQixPoDRUc5zeGSV+U7w/sUXNy8bGsYCI3StJPbw6zXXIsFEwFet36JY7A6hrf oiXQ== X-Forwarded-Encrypted: i=1; AJvYcCW+WAmhjnOYFfdZjmKkl9EK2IfpuMzl9tZkR9inEQ5/ryxK7VoqyNJd82AqgAPQqmRBDz4uvlttXQTZNnpOhL1NfqQz3PmBby/xD8C1smx0WVcbxCwkkEm/nkEM9mwexCEa280kCnwZH9WXE5lhmLYYxjyUfQRjjXwmFI1woUQYfJSkRVJBIvdg X-Gm-Message-State: AOJu0YyU1a/o2VIQMXNV2Pj30cGXAfaqyGUbJZYQk4bjAFs+eDfazBw0 cFZDAJbe6ol+UWEEwtnQPObEW+j0OiDj+gJMG4NGJfJKxz79qTTT X-Google-Smtp-Source: AGHT+IHAkqxxTdDbU0jxjjGl19PYUxV1PQ+Z0R/3hQ6OLBX8asHgxCUBrkHPuedwXVb+R2rDofgRgw== X-Received: by 2002:a05:6512:2083:b0:52c:e040:7d9 with SMTP id 2adb3069b0e04-52ce0680398mr8011641e87.59.1719474181536; Thu, 27 Jun 2024 00:43:01 -0700 (PDT) Received: from fedora ([2a10:a5c0:800d:dd00:8cfe:d6e7:6701:9dfd]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52e7131a211sm110381e87.222.2024.06.27.00.43.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 00:43:00 -0700 (PDT) Date: Thu, 27 Jun 2024 10:42:56 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Matti Vaittinen , Wim Van Sebroeck , Guenter Roeck , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org Subject: [PATCH v5 1/6] dt-bindings: ROHM BD96801 PMIC regulators Message-ID: <53a05b77833cb3f06ecada906411c2f46eecea64.1719473802.git.mazziesaccount@gmail.com> References: Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: ROHM BD96801 is a highly configurable automotive grade PMIC. Introduce DT bindings for the BD96801 regulators. Signed-off-by: Matti Vaittinen Reviewed-by: Krzysztof Kozlowski --- Revision history: v2 => - No changes v1 => v2: - use lowercase node names in example - drop unneeded '|' from description RFCv2 => v1 - Drop regulator-name pattern requirement - do not require regulator-name --- .../regulator/rohm,bd96801-regulator.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/rohm,bd96801-regulator.yaml diff --git a/Documentation/devicetree/bindings/regulator/rohm,bd96801-regulator.yaml b/Documentation/devicetree/bindings/regulator/rohm,bd96801-regulator.yaml new file mode 100644 index 000000000000..b3d2d7d583ce --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/rohm,bd96801-regulator.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/rohm,bd96801-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BD96801 Power Management Integrated Circuit regulators + +maintainers: + - Matti Vaittinen + +description: + This module is part of the ROHM BD96801 MFD device. For more details + see Documentation/devicetree/bindings/mfd/rohm,bd96801-pmic.yaml. + + The regulator controller is represented as a sub-node of the PMIC node + on the device tree. + + Regulator nodes should be named to buck_ and ldo_. + The valid names for BD96801 regulator nodes are + buck1, buck2, buck3, buck4, ldo5, ldo6, ldo7 + +patternProperties: + "^ldo[5-7]$": + type: object + description: + Properties for single LDO regulator. + $ref: regulator.yaml# + + properties: + rohm,initial-voltage-microvolt: + description: + Initial voltage for regulator. Voltage can be tuned +/-150 mV from + this value. NOTE, This can be modified via I2C only when PMIC is in + STBY state. + minimum: 300000 + maximum: 3300000 + + unevaluatedProperties: false + + "^buck[1-4]$": + type: object + description: + Properties for single BUCK regulator. + $ref: regulator.yaml# + + properties: + rohm,initial-voltage-microvolt: + description: + Initial voltage for regulator. Voltage can be tuned +/-150 mV from + this value. NOTE, This can be modified via I2C only when PMIC is in + STBY state. + minimum: 500000 + maximum: 3300000 + + rohm,keep-on-stby: + description: + Keep the regulator powered when PMIC transitions to STBY state. + type: boolean + + unevaluatedProperties: false + +additionalProperties: false