From nobody Mon Feb 9 04:14:37 2026 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 B11CB3EDAB4 for ; Fri, 6 Feb 2026 17:29:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770398950; cv=none; b=dGwVM/WdtyAvA9/4V0sePlwxHXOwy67YlIT5IhJ8RSosf0d/sIo0VREASykIg335yQ7CD2wZeL/HrF5idh1xrI5V1/lj5ZOABvIsLcCYU7kF7h1fUxQa0qzZLQ6yjKao7UL9/UbDREK7aGsmYtdBvu/eEnKxpm0X8Ml8qtM7bgA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770398950; c=relaxed/simple; bh=go/e5AhcYE8/Tplv0QTwdsPe/+XcWA/g3Cpb4GxDoxU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dMYjDZHggAvhyBOfC2gJ03gkLGx05eiInDyPdK7DJ3piee0expHTDySxj4WmGcdoBpXNLq5huS0m6nGOANU2zfRzWeZCxt5HqhQ91Z4/ABI6eW08rQKU3f0lIgQ2oKZRNHNU7zS5v3WJmMqDDSNHYBv+5hROtEG8McraBnGXb/g= 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=FgPDQKSo; arc=none smtp.client-ip=209.85.221.41 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="FgPDQKSo" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-43622089851so1828164f8f.3 for ; Fri, 06 Feb 2026 09:29:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770398949; x=1771003749; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2tz2XBML6rb46dksX4n5A3OWDvNM/mO62BfufBhK37w=; b=FgPDQKSoeO7hVk0TCLY1PKX9esGMzueRdENXD8NlMkhpoAC9AK7SRwBD8d8rT9Yj8D lIrBm8Q1xCKE2BsBHSFOC064QRHVJu13cIymDL5lm3SEVsbWGgJ3IfjMp6a2kHG1duSx 0u1RYMMlzsloWQtG2672rbxHEBzrJaqjs1BiNb7fEwpKSG8F/M02yY+o9QQRX+Foqeoo LIdXUEYdGwg0vOzDi7oiFtVecyl+ovePElK0EKsOLJar+JdLyHBH98w8TA+voz5bPRyn vcGTApga0kl835KlauHYo5MEzAZV6wGitJ9vagJdeYUeUEx6ZNjjWKa2DFARfK1PWpgn iNXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770398949; x=1771003749; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=2tz2XBML6rb46dksX4n5A3OWDvNM/mO62BfufBhK37w=; b=sk0PcdvWD6GNMtDQpGh8ADbafnHSsylfwe0FfIBmhKMqMPr44Ni99pGVBkNBJIJJeC WrmQxBOdtDiOfb0Z1b2Ue9YALiPqbg9atLSi6f3p0pZANpHkqCDZurs93A09UIBSXS4W vJu8+ToWH3hs3ZXjAFJWHD0/HxsidhfiqICrT9/ap9V8+hgOdyz3aUu8nE816uBnSUrI ilrCqmkP03z18I/ghOZ4yu5dfuyQHPHM+WNHbZ+HGI98gU5N6zTwMAVWtoa03r2yqPSg 5So3+DLu8ag5dz0YcvT+BOdy7iLozGT3vZy4muq4vuZW5FeGpA4iqA2VFT5v0TJREaLE RDsg== X-Forwarded-Encrypted: i=1; AJvYcCUHi1EfgQcb+VYpahDKVE4d5GDri9S5rLSJvkcyXy6PbXmXvfVo0BSZCuWA4+EJ7BGyaHFLt0JlgX7TlVQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yyo/KqOrKhUM0zf0VGTmqHZ/B1UZXT6OK6EQTVcIQZhqe9Mtc5v JzLNeXpwc6LgZMDlNsNC4LnDQ+gZoy66mKB4Hh/46Pt10fNn1OyLVyaf X-Gm-Gg: AZuq6aJwp57IbHjOjeYjfYvtGyjwqa64eCDKq99kg88nRz9v3cOPQK3sLziCKUGhZwA prfibSl7+pCNZoNBvE0ReOQzxPnGIy5qs26K74XBYudO4mWPqcFg24ieAagPdLj2WpD9rECcTFz Gi79gx9+jEZyw/HN24Rk4kaKiA92iwwy81H51AE0X1A4HTIQOFE3MUa/oqymoOAt6/Lbnn1vPQC 6jg5F62A+vL7kfuI6glN4je5HDD2BtIKzzhncaKn0gjIzmlypP29ZWbdAZgJ/ub0vG1UMylQIvp srGqWy/Mwq2EN8aFpr70SuSTFo2KoOo9379bOHDlOa65mpDwUiSaNOx7b0tKFOvksye1y1qlKb2 BVV8+tDf2guFG1H9GEPBKf2SDxdGXq2ae3eotvovBX8MS13EbTUOtIg+kAEh0EG21UaOAi4l9ep xa X-Received: by 2002:a5d:5d87:0:b0:435:97ab:1288 with SMTP id ffacd0b85a97d-4362938ff35mr5394807f8f.58.1770398948881; Fri, 06 Feb 2026 09:29:08 -0800 (PST) Received: from xeon ([188.163.112.49]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43629734268sm6846033f8f.24.2026.02.06.09.29.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Feb 2026 09:29:08 -0800 (PST) From: Svyatoslav Ryhel To: Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Lee Jones , Pavel Machek , Liam Girdwood , Mark Brown , Svyatoslav Ryhel , Dixit Parmar , Tony Lindgren Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org Subject: [PATCH v2 01/11] dt-bindings: regulator: cpcap-regulator: convert to DT schema Date: Fri, 6 Feb 2026 19:28:35 +0200 Message-ID: <20260206172845.145407-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260206172845.145407-1-clamor95@gmail.com> References: <20260206172845.145407-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Convert devicetree bindings for the Motorola CPCAP MFD regulator subnode from TXT to YAML format. Main functionality preserved. Signed-off-by: Svyatoslav Ryhel --- .../bindings/regulator/cpcap-regulator.txt | 35 ------------- .../regulator/motorola,cpcap-regulator.yaml | 50 +++++++++++++++++++ 2 files changed, 50 insertions(+), 35 deletions(-) delete mode 100644 Documentation/devicetree/bindings/regulator/cpcap-regul= ator.txt create mode 100644 Documentation/devicetree/bindings/regulator/motorola,cp= cap-regulator.yaml diff --git a/Documentation/devicetree/bindings/regulator/cpcap-regulator.tx= t b/Documentation/devicetree/bindings/regulator/cpcap-regulator.txt deleted file mode 100644 index 36f5e2f5cc0f..000000000000 --- a/Documentation/devicetree/bindings/regulator/cpcap-regulator.txt +++ /dev/null @@ -1,35 +0,0 @@ -Motorola CPCAP PMIC voltage regulators ------------------------------------- - -Requires node properties: -- "compatible" value one of: - "motorola,cpcap-regulator" - "motorola,mapphone-cpcap-regulator" - "motorola,xoom-cpcap-regulator" - -Required regulator properties: -- "regulator-name" -- "regulator-enable-ramp-delay" -- "regulator-min-microvolt" -- "regulator-max-microvolt" - -Optional regulator properties: -- "regulator-boot-on" - -See Documentation/devicetree/bindings/regulator/regulator.txt -for more details about the regulator properties. - -Example: - -cpcap_regulator: regulator { - compatible =3D "motorola,cpcap-regulator"; - - cpcap_regulators: regulators { - sw5: SW5 { - regulator-min-microvolt =3D <5050000>; - regulator-max-microvolt =3D <5050000>; - regulator-enable-ramp-delay =3D <50000>; - regulator-boot-on; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/regulator/motorola,cpcap-reg= ulator.yaml b/Documentation/devicetree/bindings/regulator/motorola,cpcap-re= gulator.yaml new file mode 100644 index 000000000000..50bc57f06b51 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/motorola,cpcap-regulator.= yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/motorola,cpcap-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Motorola CPCAP PMIC regulators + +maintainers: + - Svyatoslav Ryhel + +description: + This module is part of the Motorola CPCAP MFD device. For more details + see Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml. The + regulator controller is represented as a sub-node of the PMIC node + on the device tree. + +properties: + compatible: + enum: + - motorola,cpcap-regulator + - motorola,mapphone-cpcap-regulator + - motorola,xoom-cpcap-regulator + + regulators: + type: object + + patternProperties: + "$[A-Z0-9]+^": + $ref: /schemas/regulator/regulator.yaml# + type: object + description: + Valid regulator names are SW1, SW2, SW3, SW4, SW5, VCAM, VCSI, + VDAC, VDIG, VFUSE, VHVIO, VSDIO, VPLL, VRF1, VRF2, VRFREF, VWLAN= 1, + VWLAN2, VSIM, VSIMCARD, VVIB, VUSB, VAUDIO + + required: + - regulator-name + - regulator-enable-ramp-delay + - regulator-min-microvolt + - regulator-max-microvolt + + unevaluatedProperties: false + +required: + - compatible + +additionalProperties: false + +... --=20 2.51.0