From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 D05222FE067 for ; Mon, 9 Feb 2026 07:13:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770621220; cv=none; b=Mw2MCYGNcy4LOm4IuKK+MH2yBozQ7ckU9ZnWtGoyxETSVEv18Zo1KjKG/Hj7T+cpozzi/n+zKtJuMuWdcmocAA8bQ6YhKwc2xkWLuZ8tD6wmpE52Pv0Ai15ggCb+medr3Xx/n80xdnpLtzncNrJwo2Vo9zJd+3iKaDyEuylezCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770621220; c=relaxed/simple; bh=wjhPJySClgeUMyCJuXTdPR22ZbR2363nYldOD0ul2/0=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=q2mxrtxuSoCfGPl8j8C9tLFbHgFVnRBr+aaMUTv4rRQh5z+RrLbWRA/JtRV/7KQRweXAzo+G6wujgo5N3wwZvSAHqx8qAJ2MBhqb/KioitAl6oJPEMxrPH6cfa4UrNjf2Lg6/cHK2EnQ9G+14Mh5AUqLCKDbXyb5cH2ynTVJBXM= 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=eRooKwF0; arc=none smtp.client-ip=209.85.167.44 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="eRooKwF0" Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-59de0b7c28aso4742879e87.1 for ; Sun, 08 Feb 2026 23:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770621218; x=1771226018; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=gJTcZlZbFHgUhIybFH4cWwk7Nh3ta/uxgKGllk07sVY=; b=eRooKwF0vCfpmtbR5z7o7JrYBoQ3suRDgEGIIh3ia554zWhryLlSc5nwMgjkVIuivr l2kbaO6rE2HXqw2VoJwORSshlBHbFw2gmKRMFRBuMY4wvbwmlxgZBWhQecUZPnBQNquu w8B4o19nfDZbaIJ1j4+OgNLmk42FhSmxFKhEv7ZBhSvE8oD0T/QcEsM+lLWlqv15ZdN6 Et+FsptXbXtwLYo4t3Urk2UTpPZO+kdyU9z+0bAmonHSlHqwzI5FEIN3wiVeno2GfTrb /ZXOrk9I8WBhTEifYiyEuC6sP6+pOBhqS7Z/wK23E7u3bleduzQAm++OPs7xl8AvSLZ/ eSHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770621218; x=1771226018; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gJTcZlZbFHgUhIybFH4cWwk7Nh3ta/uxgKGllk07sVY=; b=VvlDlhGZ7VwysPfAgAtZucH41YsU3M0cp9KQDCM2+68UoTh0o3Y8vgmsuXhCXq+MQc PBS+L9+twUOzExVviRFTwE9IGQD3oYeyHlEX18TxM1Owa5AbTsA/ZpcltTjgyLA2dwQx /aVRUh1d3ae7ekFbj34lOOx+4m+BnDp/lJ0Xt0sNqjROETQfaXxz2F3MoooQFpY3ZXfs qdcF2E5C+TcED29k2fA9IrGeEU7gCqRoaRb6veV7/zyqw4RMRWjagkrM3aeHEeZLdMEQ +ROoDy0sC/2VBtjEP1cj8xvXHkqjHT8ufeaYmLz7XgQa66oVaE6Xt9f5LFRVnLrvLDIZ j74Q== X-Forwarded-Encrypted: i=1; AJvYcCXkNi8bc1ZSx3j2H5I1+leYlXao9wo2Gyz4IockcyonqI7QMssKdxSO4Z8WBouNYFBqFIJTJbApx+kqGw==@vger.kernel.org X-Gm-Message-State: AOJu0YzVml07mWVsSKbtPuedr5anVXjCdHXiMlJ83PG8uL3+wvRkljkN 5j01sG6aGIySCTVAVq3e4wfm1O4vBvTB/HCpm1aCrWR6K7ebDDjUGOzi X-Gm-Gg: AZuq6aJg2T1E0mKJxhNu0AEq21ebS4BRkhDf5RUkPXX+1gg+OCJFC9YGeCfQh3spp82 nQvq+2tKHtvnSj/9prsAcDoiuKoL1gXdjGnyowQXrie/u5AKFLJ7dz/hjDySWkEB1dVrn3PS2K1 PucF8WmoDEIOxSYKPehjf55v943gepFD+37duVGxdD/uV5QXBwBSm5CrEYoGExRcfhnC1Ftl/4T yethRS71Dt6xLjFbAs3X+E5zk9gN2sJ8kRWY3wlEWvn9rKIZE+Hztx13DO9ys/4GCsVBSIy6oFz 6hSL/glnh6haTpi84fX3wc34HxvhuWb4IS46EXV84rRGfpwr6jedinp2qNVhjfYRWR23VdGBdZG 6lJzUWX7zvXQZbRwGf4momYvEID8fAlxCBsZit8c/rCo+dzv5zkv5iTTVldp6A9Na9K+nD8+hq9 fycKo8SgQefTHlOOX2vbGq X-Received: by 2002:a05:6512:a90:b0:59e:49f3:658c with SMTP id 2adb3069b0e04-59e49f36647mr2144179e87.49.1770621217578; Sun, 08 Feb 2026 23:13:37 -0800 (PST) Received: from ehlo.thunderbird.net ([178.137.105.239]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-59e44d29975sm2395771e87.66.2026.02.08.23.13.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Feb 2026 23:13:36 -0800 (PST) Date: Mon, 09 Feb 2026 09:13:35 +0200 From: Svyatoslav Ryhel To: Rob Herring , David Lechner CC: Jonathan Cameron , =?ISO-8859-1?Q?Nuno_S=E1?= , 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 Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_v2_01/11=5D_dt-bindings=3A_regulat?= =?US-ASCII?Q?or=3A_cpcap-regulator=3A_convert_to_DT_schema?= User-Agent: K-9 Mail for Android In-Reply-To: References: <20260206172845.145407-1-clamor95@gmail.com> <20260206172845.145407-2-clamor95@gmail.com> <20260206230922.GA254792-robh@kernel.org> <51eddfc0-9f23-4a7f-8729-19775d834c0b@baylibre.com> Message-ID: <20E2821E-3A3B-425B-8E5A-AEC36A2AB9CE@gmail.com> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 9 =D0=BB=D1=8E=D1=82=D0=BE=D0=B3=D0=BE 2026=E2=80=AF=D1=80=2E 00:37:41 GMT= +02:00, Rob Herring =D0=BF=D0=B8=D1=88=D0=B5: >On Sat, Feb 7, 2026 at 11:32=E2=80=AFAM David Lechner wrote: >> >> On 2/7/26 11:25 AM, Svyatoslav Ryhel wrote: >> > =D1=81=D0=B1, 7 =D0=BB=D1=8E=D1=82=2E 2026=E2=80=AF=D1=80=2E =D0=BE 1= 9:19 David Lechner =D0=BF=D0=B8=D1=88=D0=B5: >> >> >> >> On 2/7/26 3:20 AM, Svyatoslav Ryhel wrote: >> >>> =D1=81=D0=B1, 7 =D0=BB=D1=8E=D1=82=2E 2026=E2=80=AF=D1=80=2E =D0=BE= 01:09 Rob Herring =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 = subnode >> >>>>> from TXT to YAML format=2E Main functionality preserved=2E >> >>>>> >> >> >> >> =2E=2E=2E >> >> >> >>>>> +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=2E Con= sidering >> >>>> you already have them below, better to put them in schema than pro= se=2E >> >>>> And pretty much all regulator bindings define the names=2E >> >>>> >> >>> >> >>> What exactly do you propose? All those names will not fit into a >> >>> single unbreakable line (more than 125 columns in length btw)=2E Pa= tch >> >>> checker will complain about this=2E Duplicate pattern properties fo= r >> >>> every few names? Please be a bit more specific=2E Thank you! >> >> >> >> Making checkpatch happy is not a hard requirement=2E If you have to >> >> go over 125 characters for technical reasons, no one is going to >> >> complain=2E >> >> >> >> I already gave an example on the last version=2E It is just a regex >> >> expression=2E (And note that you didn't fix the $ and ^ either=2E ^ >> >> means beginning of the line and $ means the end of the line=2E So >> >> the pattern currently won't match anything=2E) >> >> >> >> patternProperties: >> >> "^(SW1|SW2|SW3|SW4|SW5|=2E=2E=2E)$": >> >> >> >> >> >> And I hope it is obvious that you are meant to replace =2E=2E=2E wit= h the >> >> rest of the names separated by |=2E >> >> >> > >> > David, thank you for your suggestions and I did not want to offend yo= u >> > nor Rob, or ignore=2E Using this large string IMHO feels a bit wrong= =2E No >> > offence, I will use it if required=2E 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=2Eyaml# >> > 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=2Eyaml# >> > 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=2Eyaml# >> > 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=2E > >Yes=2E > >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=2E > Amazing! Thank you both for your suggestions=2E >Rob