From: Svyatoslav Ryhel <clamor95@gmail.com>
To: Rob Herring <robh@kernel.org>, David Lechner <dlechner@baylibre.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
"Lee Jones" <lee@kernel.org>, "Pavel Machek" <pavel@kernel.org>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Mark Brown" <broonie@kernel.org>,
"Dixit Parmar" <dixitparmar19@gmail.com>,
"Tony Lindgren" <tony@atomide.com>,
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: Re: [PATCH v2 01/11] dt-bindings: regulator: cpcap-regulator: convert to DT schema
Date: Mon, 09 Feb 2026 09:13:35 +0200 [thread overview]
Message-ID: <20E2821E-3A3B-425B-8E5A-AEC36A2AB9CE@gmail.com> (raw)
In-Reply-To: <CAL_Jsq+JzAnvW3zSC7Y=dpWTKMUwFfTOuAnMS21d+F_W=5ONeg@mail.gmail.com>
9 лютого 2026 р. 00:37:41 GMT+02:00, Rob Herring <robh@kernel.org> пише:
>On Sat, Feb 7, 2026 at 11:32 AM David Lechner <dlechner@baylibre.com> wrote:
>>
>> On 2/7/26 11:25 AM, Svyatoslav Ryhel wrote:
>> > сб, 7 лют. 2026 р. о 19:19 David Lechner <dlechner@baylibre.com> пише:
>> >>
>> >> On 2/7/26 3:20 AM, Svyatoslav Ryhel wrote:
>> >>> сб, 7 лют. 2026 р. о 01:09 Rob Herring <robh@kernel.org> пише:
>> >>>>
>> >>>> On Fri, Feb 06, 2026 at 07:28:35PM +0200, Svyatoslav Ryhel wrote:
>> >>>>> Convert devicetree bindings for the Motorola CPCAP MFD regulator subnode
>> >>>>> from TXT to YAML format. Main functionality preserved.
>> >>>>>
>> >>
>> >> ...
>> >>
>> >>>>> +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!
>> >>
>> >> Making checkpatch happy is not a hard requirement. If you have to
>> >> go over 125 characters for technical reasons, no one is going to
>> >> complain.
>> >>
>> >> I already gave an example on the last version. It is just a regex
>> >> expression. (And note that you didn't fix the $ and ^ either. ^
>> >> means beginning of the line and $ means the end of the line. So
>> >> the pattern currently won't match anything.)
>> >>
>> >> patternProperties:
>> >> "^(SW1|SW2|SW3|SW4|SW5|...)$":
>> >>
>> >>
>> >> And I hope it is obvious that you are meant to replace ... with the
>> >> rest of the names separated by |.
>> >>
>> >
>> > David, thank you for your suggestions and I did not want to offend you
>> > nor Rob, or ignore. Using this large string IMHO feels a bit wrong. No
>> > offence, I will use it if required. At the same time I was
>> > experimenting with possible representation and come up with smth like
>> > this:
>> >
>> > patternProperties:
>> > "^SW[1-6]$":
>> > type: object
>> > $ref: /schemas/regulator/regulator.yaml#
>> > unevaluatedProperties: false
>> >
>> > required:
>> > - regulator-name
>> > - regulator-enable-ramp-delay
>> > - regulator-min-microvolt
>> > - regulator-max-microvolt
>> >
>> > "^V(CAM|CSI|DAC|DIG|FUSE|HVIO|SDIO|PLL|RF1|RF2|RFREF)$":
>> > type: object
>> > $ref: /schemas/regulator/regulator.yaml#
>> > unevaluatedProperties: false
>> >
>> > required:
>> > - regulator-name
>> > - regulator-enable-ramp-delay
>> > - regulator-min-microvolt
>> > - regulator-max-microvolt
>> >
>> > "^V(WLAN1|WLAN2|SIM|SIMCARD|VIB|USB|AUDIO)$":
>> > type: object
>> > $ref: /schemas/regulator/regulator.yaml#
>> > unevaluatedProperties: false
>> >
>> > required:
>> > - regulator-name
>> > - regulator-enable-ramp-delay
>> > - regulator-min-microvolt
>> > - regulator-max-microvolt
>> >
>> > Will this be acceptable? It passes checks
>>
>> I think we would rather have the long match string instead of
>> repeating the rest of it multiple times.
>
>Yes.
>
>105 chars:
>
> "^(SW[1-6]|V(CAM|CSI|DAC|DIG|FUSE|HVIO|SDIO|PLL|RF[12]|RFREF|WLAN[12]|SIM|SIMCARD|VIB|USB|AUDIO))$":
>
>There is the yamllint of 110 which does have to be followed.
>
Amazing! Thank you both for your suggestions.
>Rob
next prev parent reply other threads:[~2026-02-09 7:13 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-06 17:28 [PATCH v2 00/11] mfd: cpcap: convert documentation to schema and add Mot board support Svyatoslav Ryhel
2026-02-06 17:28 ` [PATCH v2 01/11] dt-bindings: regulator: cpcap-regulator: convert to DT schema Svyatoslav Ryhel
2026-02-06 22:58 ` Rob Herring (Arm)
2026-02-06 23:09 ` Rob Herring
2026-02-07 9:20 ` Svyatoslav Ryhel
2026-02-07 17:19 ` David Lechner
2026-02-07 17:25 ` Svyatoslav Ryhel
2026-02-07 17:32 ` David Lechner
2026-02-08 22:37 ` Rob Herring
2026-02-09 7:13 ` Svyatoslav Ryhel [this message]
2026-02-06 17:28 ` [PATCH v2 02/11] dt-bindings: regulator: cpcap-regulator: document Mot regulator Svyatoslav Ryhel
2026-02-11 21:13 ` Rob Herring (Arm)
2026-02-06 17:28 ` [PATCH v2 03/11] regulator: cpcap-regulator: add support for Mot regulators Svyatoslav Ryhel
2026-02-06 17:28 ` [PATCH v2 04/11] dt-bindings: iio: adc: cpcap-adc: document Mot ADC Svyatoslav Ryhel
2026-02-07 13:55 ` Jonathan Cameron
2026-02-06 17:28 ` [PATCH v2 05/11] iio: adc: cpcap-adc: add support for " Svyatoslav Ryhel
2026-02-07 13:55 ` Jonathan Cameron
2026-03-03 21:27 ` Jonathan Cameron
2026-02-06 17:28 ` [PATCH v2 06/11] dt-bindings: leds: leds-cpcap: convert to DT schema Svyatoslav Ryhel
2026-02-06 22:58 ` Rob Herring (Arm)
2026-02-06 17:28 ` [PATCH v2 07/11] dt-bindings: input: cpcap-pwrbutton: " Svyatoslav Ryhel
2026-02-06 22:58 ` Rob Herring (Arm)
2026-02-06 17:28 ` [PATCH v2 08/11] dt-bindings: mfd: motorola-cpcap: " Svyatoslav Ryhel
2026-02-11 21:20 ` Rob Herring
2026-02-12 5:30 ` Svyatoslav Ryhel
2026-02-12 20:19 ` Rob Herring
2026-02-13 7:23 ` Svyatoslav Ryhel
2026-02-06 17:28 ` [PATCH v2 09/11] dt-bindings: mfd: motorola-cpcap: document Mapphone and Mot CPCAP Svyatoslav Ryhel
2026-02-06 17:28 ` [PATCH v2 10/11] mfd: motorola-cpcap: diverge configuration per-board Svyatoslav Ryhel
2026-02-08 12:54 ` Andy Shevchenko
2026-02-08 15:19 ` Svyatoslav Ryhel
2026-02-09 8:18 ` Andy Shevchenko
2026-02-09 8:42 ` Svyatoslav Ryhel
2026-02-09 8:55 ` Andy Shevchenko
2026-02-09 9:06 ` Svyatoslav Ryhel
2026-02-09 10:27 ` Andy Shevchenko
2026-02-06 17:28 ` [PATCH v2 11/11] mfd: motorola-cpcap: add support for Mot CPCAP composition Svyatoslav Ryhel
2026-02-08 12:56 ` Andy Shevchenko
2026-02-08 14:41 ` Svyatoslav Ryhel
2026-02-08 14:48 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20E2821E-3A3B-425B-8E5A-AEC36A2AB9CE@gmail.com \
--to=clamor95@gmail.com \
--cc=andy@kernel.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dixitparmar19@gmail.com \
--cc=dlechner@baylibre.com \
--cc=dmitry.torokhov@gmail.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=pavel@kernel.org \
--cc=robh@kernel.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®