From patchwork Fri Jun 14 09:43:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13698249 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 C0A7A192B77; Fri, 14 Jun 2024 09:43:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718358194; cv=none; b=oSFwgGphbVGpCv9i41hB72uJnef7X+QQmJDc64Wrl/OcsJrgEWaBnj3TFWl2H/H7l1fDXp/nqGyxQj7uVTCiLBcrspDEUWi4c5sGJtBje3zNIZIlETcNmg9dFhKSMKtKOE0nyOC95IJZLx/krsWqFbFH+PmfLQMSmaTRvMPajwc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718358194; c=relaxed/simple; bh=RZDjTmZNcho40VtJeQGNtzA1C1hWFN6ZK8m7f+7YPVA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YaZ1h4WOtSmnKHBzO6sDbf+8nyxL7LyPPX3bUn1obQsuUt3Y6EPH7AF4iW23ett++GUnL6h2K29tWaFzkObIKdToG9bDfxRUExVlyEwiRr7e7Ke3UaONFk2essZfHb12G0s5vodNiYMelnl4JEgZtSbUgaRT3pGiGDdjjE1dx8A= 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=FQUS2Kbe; arc=none smtp.client-ip=209.85.208.174 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="FQUS2Kbe" Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2eaa89464a3so20414811fa.3; Fri, 14 Jun 2024 02:43:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718358191; x=1718962991; 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=EZDkymXGQI/HQdkNqSqeM0mtl+UUEgtX5UcKiSORlxk=; b=FQUS2KbeVTEw5MT61IGBwTP4n1NuJ/xiIZ3PaGitAMMil9D/Hj4mz6dKK7iN06LFw5 3C24bd0RRIy/+kS3UB4T7d4hYP1CcW5bhH2fChB4rX1eQJ/1+v6XPDXi6Eo7BPRSmVT9 bLuZMRXsIZD7rYk4L1IooK6EcU1G1MY4kOF83ZV4qc2fq8BEY/S1JuMJebas9noDGQjz i/IDT0Bo3sK5xCMAxT4NnMFmSZt+il3xwKWeWS3CTc0P11Y+jGWF5gcoa9Bq0lhsXDMa L7ZHx4ahA//qfllmSbRADGfod3BRqd5fGdXf9WbgPsv86Xj8sWVkn7/SZBRxOjLgimwR 5oXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718358191; x=1718962991; 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=EZDkymXGQI/HQdkNqSqeM0mtl+UUEgtX5UcKiSORlxk=; b=peVMLxgF4ZsJm38RfqLjKk8IyPG0BXXo/IIrJfLQDsowBBixmtGhuxvVMEMHsnD2yh z591Lcfucxfr6wZ4/qX16Qt28xtyy0HXsldkc98ogPksww0cydqGsN3aPrcSwOb/fKlD 1i58xNWcVHXC/iiuDfslRGfSRT1nwwY/SdheIaUKHGmSakpSBC/GvVH6oztgANOD/rnC K/5onsochW62DFtdZv2BR0wBg4t2Ndrzs25zoptwveelrfP/6k1QGk8tNN3wf1CV5gV+ splHQlpT/jdLhprgTUWMBhIz7dwYmoI0b0rIsXQ23PGuIwr9dPQsgoL6ITivfHNC8APf 7YLA== X-Forwarded-Encrypted: i=1; AJvYcCWGOD4HA6Cu2KS2tC3/LDAIVpB9VvuBdqeKdtthSsI6yQa83rTxwC2UWX98yEGZtvQDm/Rkv3JZg9yCubqGF40yZjvyPpdZHWQ6HOqAN30IoJXCpJYgIaxK0rSfPpN1IPqRLZaIGuAUlvX3KhPeRZnPjGGEGnj0bkkjlmlqw8QUTiGmE4wqRMqo X-Gm-Message-State: AOJu0Yz8+DwSfbeNVCNBQtDVwMSWMqf8+i/FoJmMM+zIFXBxn+KsCTVR JtUy6HmPJfN1WFtlBWmY3BDL/a/HlFfqiHKfLNvBy14L9W82YVr0 X-Google-Smtp-Source: AGHT+IGLCthWftgTLltD3Vk5j/4XywuoxN+Uhpe1vLKEr+8bpHhrhY2oikKmQ45FIfgrb6xqAbjy7w== X-Received: by 2002:a05:651c:220b:b0:2ec:165a:224e with SMTP id 38308e7fff4ca-2ec165a2446mr11536361fa.35.1718358190776; Fri, 14 Jun 2024 02:43:10 -0700 (PDT) Received: from fedora ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ec05c071d8sm4891831fa.55.2024.06.14.02.43.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 02:43:09 -0700 (PDT) Date: Fri, 14 Jun 2024 12:43:05 +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 v4 1/6] dt-bindings: ROHM BD96801 PMIC regulators Message-ID: <7bdc1e2c5569dbe2babbce187b0093852fe392e0.1718356964.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