* [PATCH 0/1] Update apq8016 lpass-cpu compat string
@ 2022-09-09 16:34 Bryan O'Donoghue
2022-09-09 16:34 ` [PATCH 1/1] ASoC: dt-bindings: Mark old binding qcom,cpu-lpass-apq8016 as deprecated Bryan O'Donoghue
0 siblings, 1 reply; 4+ messages in thread
From: Bryan O'Donoghue @ 2022-09-09 16:34 UTC (permalink / raw)
To: agross, andersson, robh+dt, krzysztof.kozlowski+dt, linux-arm-msm,
devicetree
Cc: bryan.odonoghue
Per discussion with Krzysztof on this yesterday:
https://lore.kernel.org/linux-arm-msm/20220908105720.857294-1-bryan.odonoghue@linaro.org/T/#mb16386b0b6d45de6a7d7e01733d5b6a7d0b85c25
Mark the old lpass compat string as deprecated in yaml and leave a comment
in the commit log to explain new SoC additions should use the corrected
version.
Bryan O'Donoghue (1):
ASoC: dt-bindings: Mark old binding qcom,cpu-lpass-apq8016 as
deprecated
.../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
--
2.37.3
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/1] ASoC: dt-bindings: Mark old binding qcom,cpu-lpass-apq8016 as deprecated 2022-09-09 16:34 [PATCH 0/1] Update apq8016 lpass-cpu compat string Bryan O'Donoghue @ 2022-09-09 16:34 ` Bryan O'Donoghue 2022-09-09 16:36 ` Krzysztof Kozlowski 0 siblings, 1 reply; 4+ messages in thread From: Bryan O'Donoghue @ 2022-09-09 16:34 UTC (permalink / raw) To: agross, andersson, robh+dt, krzysztof.kozlowski+dt, linux-arm-msm, devicetree Cc: bryan.odonoghue We've had some discongruity in the compatible string of the lpass for 8916 for a while. Mark the old compat as deprecated. New SoC additions such as msm8936 and msm8939 should use the compat string "qcom,apq8016-lpass-cpu". Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- .../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml index ef18a572a1ff3..bb6f0c5dd4e8b 100644 --- a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml @@ -18,11 +18,13 @@ description: | properties: compatible: - enum: - - qcom,lpass-cpu - - qcom,apq8016-lpass-cpu - - qcom,sc7180-lpass-cpu - - qcom,sc7280-lpass-cpu + oneOf: + - const: qcom,lpass-cpu + - const: qcom,apq8016-lpass-cpu + - const: qcom,sc7180-lpass-cpu + - const: qcom,sc7280-lpass-cpu + - const: qcom,lpass-cpu-apq8016 + deprecated: true reg: minItems: 1 -- 2.37.3 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] ASoC: dt-bindings: Mark old binding qcom,cpu-lpass-apq8016 as deprecated 2022-09-09 16:34 ` [PATCH 1/1] ASoC: dt-bindings: Mark old binding qcom,cpu-lpass-apq8016 as deprecated Bryan O'Donoghue @ 2022-09-09 16:36 ` Krzysztof Kozlowski 2022-09-09 17:22 ` Bryan O'Donoghue 0 siblings, 1 reply; 4+ messages in thread From: Krzysztof Kozlowski @ 2022-09-09 16:36 UTC (permalink / raw) To: Bryan O'Donoghue, agross, andersson, robh+dt, krzysztof.kozlowski+dt, linux-arm-msm, devicetree On 09/09/2022 18:34, Bryan O'Donoghue wrote: > We've had some discongruity in the compatible string of the lpass for 8916 > for a while. > > Mark the old compat as deprecated. New SoC additions such as msm8936 and > msm8939 should use the compat string "qcom,apq8016-lpass-cpu". > > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> > --- > .../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml > index ef18a572a1ff3..bb6f0c5dd4e8b 100644 > --- a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml > +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml > @@ -18,11 +18,13 @@ description: | > > properties: > compatible: > - enum: > - - qcom,lpass-cpu > - - qcom,apq8016-lpass-cpu > - - qcom,sc7180-lpass-cpu > - - qcom,sc7280-lpass-cpu > + oneOf: > + - const: qcom,lpass-cpu > + - const: qcom,apq8016-lpass-cpu > + - const: qcom,sc7180-lpass-cpu > + - const: qcom,sc7280-lpass-cpu We talked and I gave you the expected code with enum. I also explained why other schema (Odroid sound) is done differently. The code here is correct, but I find more readable and common to use enum. Please make these entries as enum. > + - const: qcom,lpass-cpu-apq8016 > + deprecated: true > > reg: > minItems: 1 Best regards, Krzysztof ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] ASoC: dt-bindings: Mark old binding qcom,cpu-lpass-apq8016 as deprecated 2022-09-09 16:36 ` Krzysztof Kozlowski @ 2022-09-09 17:22 ` Bryan O'Donoghue 0 siblings, 0 replies; 4+ messages in thread From: Bryan O'Donoghue @ 2022-09-09 17:22 UTC (permalink / raw) To: Krzysztof Kozlowski, agross, andersson, robh+dt, krzysztof.kozlowski+dt, linux-arm-msm, devicetree On 09/09/2022 17:36, Krzysztof Kozlowski wrote: > On 09/09/2022 18:34, Bryan O'Donoghue wrote: >> We've had some discongruity in the compatible string of the lpass for 8916 >> for a while. >> >> Mark the old compat as deprecated. New SoC additions such as msm8936 and >> msm8939 should use the compat string "qcom,apq8016-lpass-cpu". >> >> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> >> --- >> .../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 12 +++++++----- >> 1 file changed, 7 insertions(+), 5 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml >> index ef18a572a1ff3..bb6f0c5dd4e8b 100644 >> --- a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml >> +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml >> @@ -18,11 +18,13 @@ description: | >> >> properties: >> compatible: >> - enum: >> - - qcom,lpass-cpu >> - - qcom,apq8016-lpass-cpu >> - - qcom,sc7180-lpass-cpu >> - - qcom,sc7280-lpass-cpu >> + oneOf: >> + - const: qcom,lpass-cpu >> + - const: qcom,apq8016-lpass-cpu >> + - const: qcom,sc7180-lpass-cpu >> + - const: qcom,sc7280-lpass-cpu > > We talked and I gave you the expected code with enum. I also explained > why other schema (Odroid sound) is done differently. The code here is > correct, but I find more readable and common to use enum. Please make > these entries as enum. Ah you did say enum, I copy/pasted the wrong fragment. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-09-09 17:22 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-09-09 16:34 [PATCH 0/1] Update apq8016 lpass-cpu compat string Bryan O'Donoghue 2022-09-09 16:34 ` [PATCH 1/1] ASoC: dt-bindings: Mark old binding qcom,cpu-lpass-apq8016 as deprecated Bryan O'Donoghue 2022-09-09 16:36 ` Krzysztof Kozlowski 2022-09-09 17:22 ` Bryan O'Donoghue
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).