* [PATCH 1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum
@ 2022-10-27 14:34 Krzysztof Kozlowski
2022-10-27 14:34 ` [PATCH 2/2] dt-bindings: iio: adc: qcom,spmi-vadc: extend example Krzysztof Kozlowski
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2022-10-27 14:34 UTC (permalink / raw)
To: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, linux-iio,
devicetree, linux-kernel
Cc: Krzysztof Kozlowski
The second compatible item in oneOf is just an enum, not a list.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml
index 8bac0c4120dd..a848df37db06 100644
--- a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml
@@ -22,13 +22,11 @@ properties:
- items:
- const: qcom,pms405-adc
- const: qcom,spmi-adc-rev2
-
- - items:
- - enum:
- - qcom,spmi-vadc
- - qcom,spmi-adc5
- - qcom,spmi-adc-rev2
- - qcom,spmi-adc7
+ - enum:
+ - qcom,spmi-vadc
+ - qcom,spmi-adc5
+ - qcom,spmi-adc-rev2
+ - qcom,spmi-adc7
reg:
description: VADC base address in the SPMI PMIC register map
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] dt-bindings: iio: adc: qcom,spmi-vadc: extend example
2022-10-27 14:34 [PATCH 1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum Krzysztof Kozlowski
@ 2022-10-27 14:34 ` Krzysztof Kozlowski
2022-10-31 16:36 ` Rob Herring
2022-12-06 18:19 ` (subset) " Bjorn Andersson
2022-10-31 16:33 ` [PATCH 1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum Rob Herring
2022-12-06 18:19 ` Bjorn Andersson
2 siblings, 2 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2022-10-27 14:34 UTC (permalink / raw)
To: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, linux-iio,
devicetree, linux-kernel
Cc: Krzysztof Kozlowski
Cleanup existing example (generic node name for spmi, use 4-space
indentation) and add example for ADCv7 copied from
Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../bindings/iio/adc/qcom,spmi-vadc.yaml | 94 ++++++++++++-------
1 file changed, 62 insertions(+), 32 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml
index a848df37db06..f1522196042d 100644
--- a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml
@@ -236,42 +236,72 @@ additionalProperties: false
examples:
- |
- spmi_bus {
- #address-cells = <1>;
- #size-cells = <0>;
- /* VADC node */
- pmic_vadc: adc@3100 {
- compatible = "qcom,spmi-vadc";
- reg = <0x3100>;
- interrupts = <0x0 0x31 0x0 0x1>;
+ spmi {
#address-cells = <1>;
#size-cells = <0>;
- #io-channel-cells = <1>;
-
- /* Channel node */
- adc-chan@39 {
- reg = <0x39>;
- qcom,decimation = <512>;
- qcom,ratiometric;
- qcom,hw-settle-time = <200>;
- qcom,avg-samples = <1>;
- qcom,pre-scaling = <1 3>;
- };
-
- adc-chan@9 {
- reg = <0x9>;
- };
-
- adc-chan@a {
- reg = <0xa>;
+ /* VADC node */
+ pmic_vadc: adc@3100 {
+ compatible = "qcom,spmi-vadc";
+ reg = <0x3100>;
+ interrupts = <0x0 0x31 0x0 0x1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ #io-channel-cells = <1>;
+
+ /* Channel node */
+ adc-chan@39 {
+ reg = <0x39>;
+ qcom,decimation = <512>;
+ qcom,ratiometric;
+ qcom,hw-settle-time = <200>;
+ qcom,avg-samples = <1>;
+ qcom,pre-scaling = <1 3>;
+ };
+
+ adc-chan@9 {
+ reg = <0x9>;
+ };
+
+ adc-chan@a {
+ reg = <0xa>;
+ };
+
+ adc-chan@e {
+ reg = <0xe>;
+ };
+
+ adc-chan@f {
+ reg = <0xf>;
+ };
};
+ };
- adc-chan@e {
- reg = <0xe>;
- };
+ - |
+ #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h>
+ #include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h>
+ #include <dt-bindings/interrupt-controller/irq.h>
- adc-chan@f {
- reg = <0xf>;
+ spmi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ adc@3100 {
+ reg = <0x3100>;
+ compatible = "qcom,spmi-adc7";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ #io-channel-cells = <1>;
+
+ /* Other properties are omitted */
+ xo-therm@44 {
+ reg = <PMK8350_ADC7_AMUX_THM1_100K_PU>;
+ qcom,ratiometric;
+ qcom,hw-settle-time = <200>;
+ };
+
+ conn-therm@47 {
+ reg = <PM8350_ADC7_AMUX_THM4_100K_PU>;
+ qcom,ratiometric;
+ qcom,hw-settle-time = <200>;
+ };
};
- };
};
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum
2022-10-27 14:34 [PATCH 1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum Krzysztof Kozlowski
2022-10-27 14:34 ` [PATCH 2/2] dt-bindings: iio: adc: qcom,spmi-vadc: extend example Krzysztof Kozlowski
@ 2022-10-31 16:33 ` Rob Herring
2022-11-06 11:58 ` Jonathan Cameron
2022-12-06 18:19 ` Bjorn Andersson
2 siblings, 1 reply; 7+ messages in thread
From: Rob Herring @ 2022-10-31 16:33 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Jonathan Cameron, Lars-Peter Clausen, Bjorn Andersson,
Krzysztof Kozlowski, linux-kernel, Rob Herring, devicetree,
linux-iio, Andy Gross
On Thu, 27 Oct 2022 10:34:10 -0400, Krzysztof Kozlowski wrote:
> The second compatible item in oneOf is just an enum, not a list.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml | 12 +++++-------
> 1 file changed, 5 insertions(+), 7 deletions(-)
>
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] dt-bindings: iio: adc: qcom,spmi-vadc: extend example
2022-10-27 14:34 ` [PATCH 2/2] dt-bindings: iio: adc: qcom,spmi-vadc: extend example Krzysztof Kozlowski
@ 2022-10-31 16:36 ` Rob Herring
2022-12-06 18:19 ` (subset) " Bjorn Andersson
1 sibling, 0 replies; 7+ messages in thread
From: Rob Herring @ 2022-10-31 16:36 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Krzysztof Kozlowski, linux-kernel, devicetree, Bjorn Andersson,
Rob Herring, linux-iio, Jonathan Cameron, Lars-Peter Clausen,
Andy Gross
On Thu, 27 Oct 2022 10:34:11 -0400, Krzysztof Kozlowski wrote:
> Cleanup existing example (generic node name for spmi, use 4-space
> indentation) and add example for ADCv7 copied from
> Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../bindings/iio/adc/qcom,spmi-vadc.yaml | 94 ++++++++++++-------
> 1 file changed, 62 insertions(+), 32 deletions(-)
>
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum
2022-10-31 16:33 ` [PATCH 1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum Rob Herring
@ 2022-11-06 11:58 ` Jonathan Cameron
0 siblings, 0 replies; 7+ messages in thread
From: Jonathan Cameron @ 2022-11-06 11:58 UTC (permalink / raw)
To: Rob Herring
Cc: Krzysztof Kozlowski, Lars-Peter Clausen, Bjorn Andersson,
Krzysztof Kozlowski, linux-kernel, Rob Herring, devicetree,
linux-iio, Andy Gross
On Mon, 31 Oct 2022 11:33:47 -0500
Rob Herring <robh@kernel.org> wrote:
> On Thu, 27 Oct 2022 10:34:10 -0400, Krzysztof Kozlowski wrote:
> > The second compatible item in oneOf is just an enum, not a list.
> >
> > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > ---
> > .../devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml | 12 +++++-------
> > 1 file changed, 5 insertions(+), 7 deletions(-)
> >
>
> Acked-by: Rob Herring <robh@kernel.org>
Series applied to the togreg branch of iio.git.
Initially pushed out as testing to let 0-day poke at the whole tree before
I make a mess of linux-next.
Thanks,
Jonathan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum
2022-10-27 14:34 [PATCH 1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum Krzysztof Kozlowski
2022-10-27 14:34 ` [PATCH 2/2] dt-bindings: iio: adc: qcom,spmi-vadc: extend example Krzysztof Kozlowski
2022-10-31 16:33 ` [PATCH 1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum Rob Herring
@ 2022-12-06 18:19 ` Bjorn Andersson
2 siblings, 0 replies; 7+ messages in thread
From: Bjorn Andersson @ 2022-12-06 18:19 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, linux-kernel, devicetree,
Jonathan Cameron, Andy Gross, Krzysztof Kozlowski, linux-iio,
Lars-Peter Clausen
On Thu, 27 Oct 2022 10:34:10 -0400, Krzysztof Kozlowski wrote:
> The second compatible item in oneOf is just an enum, not a list.
>
>
Applied, thanks!
[1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum
(no commit info)
[2/2] dt-bindings: iio: adc: qcom,spmi-vadc: extend example
commit: 74e903461b178faa5d0873254b77ee18fca5d059
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: (subset) [PATCH 2/2] dt-bindings: iio: adc: qcom,spmi-vadc: extend example
2022-10-27 14:34 ` [PATCH 2/2] dt-bindings: iio: adc: qcom,spmi-vadc: extend example Krzysztof Kozlowski
2022-10-31 16:36 ` Rob Herring
@ 2022-12-06 18:19 ` Bjorn Andersson
1 sibling, 0 replies; 7+ messages in thread
From: Bjorn Andersson @ 2022-12-06 18:19 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, linux-kernel, devicetree,
Jonathan Cameron, Andy Gross, Krzysztof Kozlowski, linux-iio,
Lars-Peter Clausen
On Thu, 27 Oct 2022 10:34:11 -0400, Krzysztof Kozlowski wrote:
> Cleanup existing example (generic node name for spmi, use 4-space
> indentation) and add example for ADCv7 copied from
> Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml.
>
>
Applied, thanks!
[2/2] dt-bindings: iio: adc: qcom,spmi-vadc: extend example
commit: 74e903461b178faa5d0873254b77ee18fca5d059
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-12-06 18:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-27 14:34 [PATCH 1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum Krzysztof Kozlowski
2022-10-27 14:34 ` [PATCH 2/2] dt-bindings: iio: adc: qcom,spmi-vadc: extend example Krzysztof Kozlowski
2022-10-31 16:36 ` Rob Herring
2022-12-06 18:19 ` (subset) " Bjorn Andersson
2022-10-31 16:33 ` [PATCH 1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum Rob Herring
2022-11-06 11:58 ` Jonathan Cameron
2022-12-06 18:19 ` Bjorn Andersson
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).