From nobody Thu Apr 2 04:56:28 2026 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.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 208C8345753 for ; Mon, 23 Feb 2026 06:39:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771828754; cv=none; b=dSRdFKeGVu3jel7kDP2jvGqvMeMMiK4BdVh7Rnog7c96FZW/u61ZwZ6sPdIHJ78aN7TEx76mH4KwLMZK/GhPJqYm4mh6Gubn7k6G4Wo80EZH0nufwV2zy3GJ0fgn33sBQYwh5TIj116fsxN0ss9l/v64WXcPDtbP47XmTpMd73c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771828754; c=relaxed/simple; bh=q8Lq6+Cvt3B/SkkRYA6XHIWjWyV8PlukszbooxWFxR8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a5+c/n+f5FE7E872zEIDYdS1u+O4gw+8yAEBJYn2YLHyt3gVFMJQuEDskOMMCTWrMiIJxzxMYKveb5eXzctzHr4yAtOwtGHojFcQaJvY26p2gQqiYxfDZo+2P/j1XDJilQHtBoFo3IaEUKv6JR6QMuHdV4kLanQHUlfBpeLjiJw= 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=iUQAthXI; arc=none smtp.client-ip=209.85.167.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="iUQAthXI" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-59e60925251so4031770e87.3 for ; Sun, 22 Feb 2026 22:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771828750; x=1772433550; 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=QBhVm8HFMDMXwYhsB0aG8oH//jaDuQqOFuWYFh+Nf9c=; b=iUQAthXI7eW3yNfemv5ufny2ApHP+iy+QlPJVPg1eUqsI2LPfFKjUDaK4582E+mr2t BhfuS7lBObeOd9GdLj3WJQ2ZiMPiu35nLckH6OiXM4W5bDNxpe1DpaZ/qxN2enWQAvUP uxn5z+ouJAyWi2b8Oty/2Mlt74sB19IygSfSzST3jOYoWKEP7+jLceKSpEKeFKQGgQqw 3BvvsuFiWhAMqiQb5qeXug9ST/BClrW44NTh6DA59WzwRGyPTmAWJJx6Mb5rVZAM5VI5 RiKKZv0zJ58e2uTpi11OyMPOf7VZat3orHqMwCDhNoUsuK+EV0CHvwPxpAu1ljsWbQDJ NBhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771828750; x=1772433550; 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=QBhVm8HFMDMXwYhsB0aG8oH//jaDuQqOFuWYFh+Nf9c=; b=ZegahlybzNU+0bpZrwLK8YTp3SImR78icK35kki7F7xiSBf1J67tIFAhu6pEwG7aaL o6/LQaRTisqlqeLbYmFXTweVSSufH/dYKWu0R9cgeR1PEU9yp11bM4EPC508D6YqhCOX Rt3r4HOm1v0IRw+X3PaDE4wzgMyuW3RjNt9ClrDfFg6OSp+9nbeaQPnE3XKP4gEsN/Sf EY/TW4F/I9bYhsR2ElxxQQbuFadrmf0NGDKQLy0SEjuKNfVxL5bP/D0cSoOa/S1LFtpP +i5Ozy0i6JKVY7LCP/qzscgWKj3PXl6mQefCXASe0xgYk56zadfTIoFl+Wnrjrlxro3b QtBg== X-Forwarded-Encrypted: i=1; AJvYcCUySxzcqe16fFY5xXK/xfVWStTN9qNrCyXO/L1q+lbO/6cZRXLt4ZS/kesypuTn0Oh23l8LaxzqRdTK49o=@vger.kernel.org X-Gm-Message-State: AOJu0Yw7DzkajsrZPbXI4iVXEKvSLpy95X+Z7Iw0z/cuUg6vJw2NFWOw BMTOR8fuu2/JUTCY+672NS6Pi5hQ1ReH+XcRPQZLk5FAX/yCZ036CjAD X-Gm-Gg: AZuq6aKVhPToqg5RvKZaiiS0FiiIkqn4/AYVmayWiLFoWSW5zuPQt0vc5jyxYjB2DtY JpsUGJWW4x3HS+5kC4q6GyDyzCamECZCl81e5e6Izxvx/1jQUwnhnaz51fqdBfOttaFcfD9Qy7N hIxX46Ml1wuWVc82yI4PsuuVXMeylsmwaRSzzV6NQZED0uYDzw0vwvxKZ642heiUYQzChDznUXx 6RTUmVd6FAcV47VOynyeBhYQg1BNZ2F6WqQzX67RlqY5oXr9dAHg4D9SbHpSOTWIR4XUFYLd7UT BhAp4PJ0/28leEynu3yO04pyXKbVy2n5kon2bjZMaVp6rPy+hg3AyfsWDtuZm0++h8r7+VqEE1j P7vrc27xvIyqkIg7SHKUwPHa80PuSsbCLYJM62/ogWlE/B55foqtWDTPdms4eZvSBUJ9MiPoLBL AjjctAIRxahP+z X-Received: by 2002:a05:6512:22c3:b0:5a0:f49a:353a with SMTP id 2adb3069b0e04-5a0f49a359amr282610e87.39.1771828750144; Sun, 22 Feb 2026 22:39:10 -0800 (PST) Received: from xeon ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5a0eeb13abbsm1369626e87.23.2026.02.22.22.39.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Feb 2026 22:39:09 -0800 (PST) From: Svyatoslav Ryhel To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Pavel Machek , Liam Girdwood , Mark Brown , Svyatoslav Ryhel , David Lechner , Tony Lindgren Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: [PATCH v3 1/9] dt-bindings: regulator: cpcap-regulator: convert to DT schema Date: Mon, 23 Feb 2026 08:38:50 +0200 Message-ID: <20260223063858.12208-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260223063858.12208-1-clamor95@gmail.com> References: <20260223063858.12208-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 Reviewed-by: Rob Herring (Arm) --- .../bindings/regulator/cpcap-regulator.txt | 35 -------------- .../regulator/motorola,cpcap-regulator.yaml | 46 +++++++++++++++++++ 2 files changed, 46 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..ed28d2653a55 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/motorola,cpcap-regulator.= yaml @@ -0,0 +1,46 @@ +# 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: + "^(SW[1-6]|V(CAM|CSI|DAC|DIG|FUSE|HVIO|SDIO|PLL|RF[12]|RFREF|WLAN[12= ]|SIM|SIMCARD|VIB|USB|AUDIO))$": + $ref: /schemas/regulator/regulator.yaml# + type: object + + required: + - regulator-name + - regulator-enable-ramp-delay + - regulator-min-microvolt + - regulator-max-microvolt + + unevaluatedProperties: false + +required: + - compatible + +additionalProperties: false + +... --=20 2.51.0