From patchwork Fri Apr 12 11:21:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13627641 Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 8FC3550A6C; Fri, 12 Apr 2024 11:21:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712920888; cv=none; b=DJsoGgUqDEPGHAw1RjiNYP1C63fiSyju+YXg3AtlKhjc35S6SX7avn/oABTgJTi2XBc8chz4ylTXniC7P3X2HxDc1nxtI7vfjVoRLPeGhgUxy4lQkjK1yBCXkei0HiV6LBp0IaNtMwoyvYcmNuBHSEotcqxa4sL2w3CzSLWh5sg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712920888; c=relaxed/simple; bh=TrYz9UDqxWjwVJaiIKMAsZXTVaUZhuYJVQblCZVXou0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Winr32qjNPHeT5/gfRSFGytGLSLMjm3faX0NiCCFkgxoMBQSbIWQinpVVS9o7vh9/Zhi/2ETVD+sbbSKmXJP8ZL8BkPP07Kl3MZNMzNj8pk46dEW85BvVuZC404TgvUQMIWrjZmjNBfxujINY/bPsgM+5xoP6dML1OoG8mcY9gU= 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=la2JI6cn; arc=none smtp.client-ip=209.85.167.47 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="la2JI6cn" Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-518931f8d23so220461e87.3; Fri, 12 Apr 2024 04:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712920885; x=1713525685; 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=rC42Iv2fV40TZlZTcwRZ45fA0AdSbCtIhnE2lMAxxcM=; b=la2JI6cnsjwLm3uw9pKcg879+AjuPmFkQxS3hlgPdjwP2P1dtksqzcRWA/kIJH2PIP vHwZj7w3MT+ol/wDNLvkrp96JdUmen10Qhh7IyQr7LoDZeX2n9wREKdKUL4nSMqiAziB A/V5eHr/XhB6v6lh7bV38qRSeSxukv/Zcmk0eTEPQjcSv9mpl31L0N01Mrftdw/kdWe4 KMjOrJhyk9YIuYHOaXE8D6/CHD4Lu5uSUsKOruTJngR+vbHfZK3HTXGbK9T7KEHTPO1z bEJRVF1JznXz5NIbhjwgIvUUKdAvDNTOu1hWqHO4KgUJgSpYuBjwxCquhGgnmUt2jkNU xlIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712920885; x=1713525685; 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=rC42Iv2fV40TZlZTcwRZ45fA0AdSbCtIhnE2lMAxxcM=; b=aRv8Lc/kUt/hdkbxmNOvbjTifcWkwz5u+FLySYkDyIRm+tzu6oZezFYepkMKHZTlT5 MzDmXNW5o0JggIlM5umDVcLcXtrd5mrYirqXmGsJUJhtLdlXmPGULfHj4g/s7rDHOF9o cF/MIPZqXlVXsjVFjp5HW3WPdnDGdM510W2RqQZzRIbLJlOceU9T4ZN7NPfMeLXBfbLe NdKdF8kMnvtWlVx66U/IBQw0DQkyx2XfAdrmIkqXnGLQzKTOeuQxpZOgu+PM8olCN5SW q8/VbPvr8tAT8ymCIykZymN3sEtW+tgHFgm+mkTlzotYDwzODwdKI756BjG+hsTCh61V cpQQ== X-Forwarded-Encrypted: i=1; AJvYcCWTwwv0Nnk6S8bL0C6ctgGmKlzvDnV51ZSk8O7R7dnnxPqG/2wHOJGTP5D5x7U4aAvN+B3u6AxSTaY7hhJcHa6Mwo3X7Ld0glle2vIh9NENFKTblJWSXBzuwuHQMgpE2rLgbDdIOowM9OZZn9h3UTIcSSRuEMz8BN/YNhzCpomyCZbwBrs7YqAZ X-Gm-Message-State: AOJu0Yx+KRZb/A1iplUm/jhuZO1z3aZ97nfOGs6TvmvYH01mGVSnn/eV sZgZoSrOx1ucp+JIRtWi5ndl+rRlFlKH2Wuh92ZIgsV+DiQcxfAV X-Google-Smtp-Source: AGHT+IEZycmTojkKN9PWrCiQ9xYtYdUa28iY1OYShhXvIFi0fw+RbuwzJnpgvVLWgR4Hsrqe9aLHvg== X-Received: by 2002:ac2:4182:0:b0:516:d0c2:755 with SMTP id z2-20020ac24182000000b00516d0c20755mr1391618lfh.63.1712920884392; Fri, 12 Apr 2024 04:21:24 -0700 (PDT) Received: from fedora ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id f1-20020a056512360100b00516c5eef5c7sm496404lfs.243.2024.04.12.04.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 04:21:23 -0700 (PDT) Date: Fri, 12 Apr 2024 14:21:18 +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: [RFC PATCH v2 1/6] dt-bindings: ROHM BD96801 PMIC regulators Message-ID: <27a1c489f62e46a80643fe86cca101fb5aadb7f4.1712920132.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 --- Revision history: - No changes since RFCv1 .../regulator/rohm,bd96801-regulator.yaml | 69 +++++++++++++++++++ 1 file changed, 69 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..4015802a3d84 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/rohm,bd96801-regulator.yaml @@ -0,0 +1,69 @@ +# 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: + regulator-name: + pattern: "^ldo[5-7]$" + description: + Name of the regulator. Should be "ldo5", ..., "ldo7" + 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 + + "^BUCK[1-4]$": + type: object + description: + Properties for single BUCK regulator. + $ref: regulator.yaml# + + properties: + regulator-name: + pattern: "^buck[1-4]$" + description: + should be "buck1", ..., "buck4" + 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 + + required: + - regulator-name + additionalProperties: false +additionalProperties: false