From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 159012FFDDE for ; Sat, 7 Feb 2026 09:20:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=209.85.221.50 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770456030; cv=pass; b=Be4MkMJbeTcI0NUCyzFGduLnRDAO1vRtmYcH3HSkzWt/cIXF4Au5iGbiyxXaWXrRRrpWIHBlNTXeywQO47SJczcDFXHZF4YzCwvcIkqExjSj6wrXNYcxmiMsPjp1D9LrRIjXZjoxth5yIUOlzrS2Xo9eNYMZmrK2CWGh7uknmX0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770456030; c=relaxed/simple; bh=cy4A7rvGum9/P7zJXPm/8IWM6o1KPiGpFPtqRktj2bo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=GCsInZ7aDYThWCjHAEFxNE1yuLRgXv0g/ppb2t5c5AyLyqLBe8bn3BQbJwyR1OJGtDEFpUkooqrRFvAcMK1dMxJYBqbODUHppjWXwtsmEWHOEBuCuDCaiprkqQ0kULKhssEucZnIBhF0Q2u1+Z+QINRURuYJA7kpvBW3At+UNYk= ARC-Authentication-Results:i=2; 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=M9mit3MZ; arc=pass smtp.client-ip=209.85.221.50 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="M9mit3MZ" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-4362d4050c1so1261300f8f.2 for ; Sat, 07 Feb 2026 01:20:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770456028; cv=none; d=google.com; s=arc-20240605; b=QteSXOXoFQk9aAJEKJHj1wkEhPcBvQe2prJMoHdl+LHqOZb+O08FokqjItCGcYqZZq wpWZ+3UfItraw2GY92z1ep+9TcZLUjZj5rPqJyKP0geGTUBXjO4jWqkQBMTqdKcOcF6J 4UZtNDCvgpnfnCjbgDE6i5b6qF61M/wVOnjUWx+EBegFbnWKcVwhibMTFI0VxrREFW1x IwmN67W4aEevKA7C4Z21Mb/XgDVTpQPFYK+s/SINkAm57XK9onZySSh8YJa58ovmyhpC Z20e7O4VtTrlMgOSXwwUhgQDHXU55xaGpQQeRbMR6aBhamzm4gyP7TVppQl+PTG9aRn1 kwVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5IniXECrOUfTc9Ybm/eSbm1Y2H5SJTil/wMGC8X/eL8=; fh=I+sctrKXSW9+S4Q5tn1Is797cp+nrbirZIkJ9BWgxCM=; b=DE/U4hyo/8D81oL/zwWtaDxOGKpGjXy2xbzAPO+L8ImxYEJQNHb5T4nfpig/AzjawV bu5AqLS2XYFOwSOCeMAka6lmaSoXinrs3ikI4b3I8BPIxoAbGEsk3RSlXL8+oEYcG5Kc oG1DQ5Nfv97Q0S6gWbC2lBmvlrOno2QzLhmW0IYKMP3dXRgrLPqp+FaXTtl2IqoHP42Y gGTrz4dQRcFkj8+qFbmkrEi84feqr12EZQUsn90eEpQL1FGrtCg5ES2giB4LbQ7pD5+o DQlXlSoMl3YD0Rjb/zOpSlH0KfB8WXHdSKFboBgGqWLN39HDgjjXKv90XVxnWVPeJ/hU ukUQ==; darn=vger.kernel.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770456028; x=1771060828; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5IniXECrOUfTc9Ybm/eSbm1Y2H5SJTil/wMGC8X/eL8=; b=M9mit3MZkAsemcuc0rx+tkFJRXH41lDCpolqqqmcfzoAziQ7iZjf2hNp14NjkNGi1e znDdtO0EsfcFMPJAJIWhvEVpNaCnsyuiR57grujXQ5NF9fqX20NFe1Ch8YFN5B9/sBCw gMrIDDWMJxD9JuwQwGVloWUymTCZ0LF2Mpvou8kyZM6G0u1KGsj2aXyZW9vqyoFj3v6s Rch6GLnAEiCjUIryml15QasvQ9USVuZrScLw5bmRGBMGB0O3eX8UR0w3M/kBrQi2d8vl zke/BRX+BwQuwOwBfdvH/auRKEAdwyn+LVR924ZdSMzCvWGTsRfBXcx72p0i1Co5zynU Hz9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770456028; x=1771060828; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=5IniXECrOUfTc9Ybm/eSbm1Y2H5SJTil/wMGC8X/eL8=; b=uMm78cQ2eXsIFMt5xGB9gQtNs6ovbULkcIZhBAbnmgMui85n5KrqbZSkfC5nmgU9qX IZyaoCbE8kG4Wsdy/EzBzF6dhL2MOcH90cagHLx8HV1b3ZHaZE3FVJ+pqKAlNSv6gdfu X12Ybw+n789BhQ0ymYB6MllNAk6WLw8YklZfsmZ7ZNxM4eAa5X9zluCX/5qUVy0QdH05 cYFv2zSwOGFsUvfBbO0dqv7zQEGCQpHgaIxjsxFCju+JI9j6FUIAq/KvVeY7hSa0druY TDj/jwAdeaTCB+phsoOfL4K/XsLNH6PzwuNQoDnsm5C6jPuymimQjzlFfd0d4zqUgdru RD3w== X-Forwarded-Encrypted: i=1; AJvYcCVNFPqqmDSe0Y229fnwTz6MfKS5vcUcEFAS+FYscUZI+JV9i8H1u45oFzzBAv1upYJJVbz9hvqAQn2yG70=@vger.kernel.org X-Gm-Message-State: AOJu0Yxrz9bUjxFarLjhcZ64XY/uCsrT+HVzoEKLBkuzq1wz3myzl8Qw G1OPqgnEbro58tAZQ4W/f9Ro1JpW5J1ud+ioXJy2HSQEeNmUBeUkrlofRHmJm1/wRqLaj1TyE7u nr5KcmTyI8n1w+RqXHGUSYb/qVaTRMbc= X-Gm-Gg: AZuq6aJv6ds6O0rZTiquVpKFgaohSA/kdbW6NW1w9kaQm4OKg2tVHexTFcGC/o69FQW AVC8X7NzPWwcm+7KbxTakhxzuYkPMo+LBew5PNPoUUcf+t2FcOEyQ7KFaSfLEnYK3jQxBlx+xyb bu9U+8t6H84ChJCiFDsH1XfSfB1yptl9K7/xLF2YH6PzGIekfn53++SfkFDQSok7hQiZbhciDlw SFgGP0gEjeFkwih9ZFUke4gKwEK2OZWdHmWTcS9ape48UAToS/El3EdBAj3bZaKY4ZjpKIW X-Received: by 2002:a05:6000:420e:b0:435:d84f:4853 with SMTP id ffacd0b85a97d-4362938b24dmr7580007f8f.35.1770456028155; Sat, 07 Feb 2026 01:20:28 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20260206172845.145407-1-clamor95@gmail.com> <20260206172845.145407-2-clamor95@gmail.com> <20260206230922.GA254792-robh@kernel.org> In-Reply-To: <20260206230922.GA254792-robh@kernel.org> From: Svyatoslav Ryhel Date: Sat, 7 Feb 2026 11:20:15 +0200 X-Gm-Features: AZwV_QgS3-zSft7PiK4Y7AUbYQceyqA5VWBqSZgT2tr_s54EIIDfm21b-58zfy0 Message-ID: Subject: Re: [PATCH v2 01/11] dt-bindings: regulator: cpcap-regulator: convert to DT schema To: Rob Herring Cc: Jonathan Cameron , David Lechner , =?UTF-8?B?TnVubyBTw6E=?= , Andy Shevchenko , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Lee Jones , Pavel Machek , Liam Girdwood , Mark Brown , Dixit Parmar , Tony Lindgren , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D1=81=D0=B1, 7 =D0=BB=D1=8E=D1=82. 2026=E2=80=AF=D1=80. =D0=BE 01:09 Rob H= erring =D0=BF=D0=B8=D1=88=D0=B5: > > On Fri, Feb 06, 2026 at 07:28:35PM +0200, Svyatoslav Ryhel wrote: > > Convert devicetree bindings for the Motorola CPCAP MFD regulator subnod= e > > 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-r= egulator.txt > > create mode 100644 Documentation/devicetree/bindings/regulator/motorol= a,cpcap-regulator.yaml > > > > diff --git a/Documentation/devicetree/bindings/regulator/cpcap-regulato= r.txt 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= -regulator.yaml b/Documentation/devicetree/bindings/regulator/motorola,cpca= p-regulator.yaml > > new file mode 100644 > > index 000000000000..50bc57f06b51 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/regulator/motorola,cpcap-regula= tor.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 detai= ls > > + 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]+^": > > I thought it was said on the last version to list the names. Considering > you already have them below, better to put them in schema than prose. > And pretty much all regulator bindings define the names. > What exactly do you propose? All those names will not fit into a single unbreakable line (more than 125 columns in length btw). Patch checker will complain about this. Duplicate pattern properties for every few names? Please be a bit more specific. Thank you! > > + $ref: /schemas/regulator/regulator.yaml# > > + type: object > > + description: > > + Valid regulator names are SW1, SW2, SW3, SW4, SW5, VCAM, VCS= I, > > + VDAC, VDIG, VFUSE, VHVIO, VSDIO, VPLL, VRF1, VRF2, VRFREF, V= WLAN1, > > + 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 > > + > > +... > > -- > > 2.51.0 > >