From nobody Mon Feb 9 07:20:43 2026 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 C869327F18B for ; Sun, 25 Jan 2026 15:36:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769355375; cv=none; b=Oz2iiabNXAY+CX+T+OaVwvVTCyR+2JgrLhT9BxH8kxU/9TBcnQI2dfkaQwDaOepwnYMNse02Xv7m6HDHy5jUodhgXt5kWrOI/p6uzPZBSibxBYkRyIDOEVLBTLwvz2xD9+BL0gLTMWSpwxyXnoLMJrzxAcOCtqm8H3HLVUI8sP0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769355375; c=relaxed/simple; bh=l9NQa79di/jjOBPV+OqER4b7B0YtHihmaNsEeJfrOXo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=otSNKSD5+cRDTu8yeTG0p+jL17t4Ongv+qR/b0cVJkap4M2yFbYHG1Mu+ldJHBQlhzw4Hm97uTvuPIFCwp7zR9HWLBrGeESC6cL/VA23Kg8Ic1hj6+R1rkXjVO3PtYaRdN4+CrOGIgM5fZeq6KduuWYWM9YW9BZrStUVcXx/Yqo= 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=Hsd/EVa0; arc=none smtp.client-ip=209.85.221.48 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="Hsd/EVa0" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-432d2c96215so3358794f8f.3 for ; Sun, 25 Jan 2026 07:36:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769355372; x=1769960172; 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=IlJduHNY4/ATTPZTxaM+BbgtP/PXXrqKo+1qMJ4eq2o=; b=Hsd/EVa0TYcXIn/kaUUvAAkPZkDXLdvJcNKnZMwiGdpXc2hz937eYwwVcH/nHBgaoE BA00P/Om+yXGV3K1GPiKcuVCHosd5BcxnWTBNucsx4tzBnHuEpndlQv/Ds8tLM/CWGhp 2fFt3tgvQ9gOkk5O0U8v1iGfrvxbETRUeIq4oibqJKu3fQTEj9Ad8/lJoIlUDtq/XlVK u0+VazAJ9Lf6Xd9IAzZyei8BwaWpsCGJ9QJu7D8+rLcEXmEeZgXOgp+HsCdmG001XYvQ Fx55ffuwaqTrjflh4ZAlfp9hj/3ifx1WZ8xCud9mIBg0k2sn2VCExDrhioTmVaQ5ZMZx WR2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769355372; x=1769960172; 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=IlJduHNY4/ATTPZTxaM+BbgtP/PXXrqKo+1qMJ4eq2o=; b=hEvdOWW1RU/jFF2P6hXMFscvCSWyIADZ+2tT/5SsMTLUe4g8nSt84j3kbgH3tGc6KZ 3r8ba6C1n8F2RzgEogxnXUKT8h/qhEC87++Zg7X2GMTS0T8dcEZKgd47iPj2u+i5hE5l ZSt8oB6/dn/Lut2VU9wDE5p1DYLa7taLTdtHaZML4NaDhrlmkLjroAKclQHaSLOnp/YR NScgqcGJ3ykdPkyGG0bK+yG7D5I+TlBjPADscjsir0e0F/6eKYYAceu0RiU7D9xvFLxH XOhT3n288uvifH5eGsfNX8zfSoIoDnw0iD089ahWoJeX/DlKCyC01JeGcCKZGgVYIwTj YLEA== X-Forwarded-Encrypted: i=1; AJvYcCUCqdaluRuID5FAxamlc0+uKxM21CaWvONgQVgWYeqh+Tx9pvqLEp30SCYxqD5aFOkTNMQUqoR3jb2td5A=@vger.kernel.org X-Gm-Message-State: AOJu0Yzn9dpAR7/4lI7x6EVi6R8Fv11IGiFYm7+Bc4d6W7oYF+UktDj/ LQDwGU/5Z+t66tzRiqU4WAz8XFby3zM66SonuuA995oXFrse+OCPJeQ8s0jk9Q== X-Gm-Gg: AZuq6aIUceW9aZhjkMqVaCwokjBbwda/cr4Bz+Nq3atgjUXXtYDXmece7jbkFPEKV2z uvLppyAen56MY/WhP/b4coBu+VkWbSynaFvPF1HQmliD/3/EVSB01WWBshw58o0RIiMky0uwbmy k9925/ChrRXsbwKEuccAwHDD21GrqyZzKWoCUk3nSSaKSY+g6h/kPDok3lObR7CgkdIN2nXLrj4 t6lAldIkyG35JIuBqxf3UdEryEY3yy5BMC11WsNMTnEoaqWImzcQHzk8ou+k2wqUkZUVA2UBn3U olQZjGqvoovs3PeuCBJjz6mycsfH8J5pFTVx7aSiOlTIpGCT718P4bN+NDvpY///wYeyR0lVTfz mWucWASXXtpcqgjvrlY6rx7N41n5feDvgs1IU5Dt9JPh3dJHF0/O1DJU9XH2oVqCEtfK+eaclIM uF X-Received: by 2002:a05:600c:4f43:b0:477:a54a:acba with SMTP id 5b1f17b1804b1-4805cf5f2b9mr31969485e9.17.1769348592595; Sun, 25 Jan 2026 05:43:12 -0800 (PST) Received: from xeon ([188.163.112.49]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435b1c246ecsm22459688f8f.10.2026.01.25.05.43.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jan 2026 05:43:12 -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 , Alexandre Belloni , 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, linux-rtc@vger.kernel.org Subject: [PATCH v1 01/10] dt-bindings: regulator: cpcap-regulator: convert to schema Date: Sun, 25 Jan 2026 15:42:53 +0200 Message-ID: <20260125134302.45958-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260125134302.45958-1-clamor95@gmail.com> References: <20260125134302.45958-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 and added compatible for CPCAP regulator set found in the Mot board. Signed-off-by: Svyatoslav Ryhel --- .../bindings/regulator/cpcap-regulator.txt | 35 ------------- .../regulator/motorola,cpcap-regulator.yaml | 51 +++++++++++++++++++ 2 files changed, 51 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..b73d32a86904 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/motorola,cpcap-regulator.= yaml @@ -0,0 +1,51 @@ +# 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,mot-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