All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: mfd: qcom,spmi-pmic: extend example
@ 2022-08-28 13:01 Krzysztof Kozlowski
  2022-08-29 22:21 ` Stephen Boyd
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2022-08-28 13:01 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Lee Jones,
	Rob Herring, Krzysztof Kozlowski, Stephen Boyd, linux-arm-msm,
	devicetree, linux-kernel
  Cc: Krzysztof Kozlowski

Add a more complete example with PM6150 to provide better validation of
the bindings.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../bindings/mfd/qcom,spmi-pmic.yaml          | 84 +++++++++++++++++++
 1 file changed, 84 insertions(+)

diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
index 230f3bf9c1ea..9676a9e3d176 100644
--- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
+++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
@@ -208,3 +208,87 @@ examples:
             };
         };
     };
+
+  - |
+    #include <dt-bindings/input/input.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/iio/qcom,spmi-vadc.h>
+    #include <dt-bindings/spmi/spmi.h>
+
+    pmic@0 {
+        compatible = "qcom,pm6150", "qcom,spmi-pmic";
+        reg = <0x0 SPMI_USID>;
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        pon@800 {
+            compatible = "qcom,pm8998-pon";
+            reg = <0x800>;
+            mode-bootloader = <0x2>;
+            mode-recovery = <0x1>;
+
+            pwrkey {
+                compatible = "qcom,pm8941-pwrkey";
+                interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
+                debounce = <15625>;
+                bias-pull-up;
+                linux,code = <KEY_POWER>;
+            };
+        };
+
+        temp-alarm@2400 {
+            compatible = "qcom,spmi-temp-alarm";
+            reg = <0x2400>;
+            interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
+            io-channels = <&pm6150_adc ADC5_DIE_TEMP>;
+            io-channel-names = "thermal";
+            #thermal-sensor-cells = <0>;
+        };
+
+        pm6150_adc: adc@3100 {
+            compatible = "qcom,spmi-adc5";
+            reg = <0x3100>;
+            interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
+            #address-cells = <1>;
+            #size-cells = <0>;
+            #io-channel-cells = <1>;
+
+            adc-chan@6 {
+                reg = <ADC5_DIE_TEMP>;
+                label = "die_temp";
+            };
+
+            adc-chan@4f {
+                reg = <ADC5_AMUX_THM3_100K_PU>;
+                qcom,ratiometric;
+                qcom,hw-settle-time = <200>;
+            };
+        };
+
+        adc-tm@3500 {
+            compatible = "qcom,spmi-adc-tm5";
+            reg = <0x3500>;
+            interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
+            #thermal-sensor-cells = <1>;
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            charger-thermistor@0 {
+                reg = <0>;
+                io-channels = <&pm6150_adc ADC5_AMUX_THM3_100K_PU>;
+                qcom,ratiometric;
+                qcom,hw-settle-time-us = <200>;
+            };
+        };
+
+        pm6150_gpio: gpios@c000 {
+            compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio";
+            reg = <0xc000>;
+            gpio-controller;
+            gpio-ranges = <&pm6150_gpio 0 0 10>;
+            #gpio-cells = <2>;
+            interrupt-controller;
+            #interrupt-cells = <2>;
+        };
+    };
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: mfd: qcom,spmi-pmic: extend example
  2022-08-28 13:01 [PATCH] dt-bindings: mfd: qcom,spmi-pmic: extend example Krzysztof Kozlowski
@ 2022-08-29 22:21 ` Stephen Boyd
  2022-08-30 16:27 ` Rob Herring
  2022-09-05 14:44 ` Lee Jones
  2 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2022-08-29 22:21 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski,
	Krzysztof Kozlowski, Lee Jones, Rob Herring, devicetree,
	linux-arm-msm, linux-kernel
  Cc: Krzysztof Kozlowski

Quoting Krzysztof Kozlowski (2022-08-28 06:01:13)
> Add a more complete example with PM6150 to provide better validation of
> the bindings.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---

Reviewed-by: Stephen Boyd <sboyd@kernel.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: mfd: qcom,spmi-pmic: extend example
  2022-08-28 13:01 [PATCH] dt-bindings: mfd: qcom,spmi-pmic: extend example Krzysztof Kozlowski
  2022-08-29 22:21 ` Stephen Boyd
@ 2022-08-30 16:27 ` Rob Herring
  2022-09-05 14:44 ` Lee Jones
  2 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2022-08-30 16:27 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Lee Jones, Rob Herring, Andy Gross, Konrad Dybcio, Stephen Boyd,
	devicetree, linux-arm-msm, linux-kernel, Bjorn Andersson,
	Krzysztof Kozlowski

On Sun, 28 Aug 2022 16:01:13 +0300, Krzysztof Kozlowski wrote:
> Add a more complete example with PM6150 to provide better validation of
> the bindings.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../bindings/mfd/qcom,spmi-pmic.yaml          | 84 +++++++++++++++++++
>  1 file changed, 84 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: mfd: qcom,spmi-pmic: extend example
  2022-08-28 13:01 [PATCH] dt-bindings: mfd: qcom,spmi-pmic: extend example Krzysztof Kozlowski
  2022-08-29 22:21 ` Stephen Boyd
  2022-08-30 16:27 ` Rob Herring
@ 2022-09-05 14:44 ` Lee Jones
  2 siblings, 0 replies; 4+ messages in thread
From: Lee Jones @ 2022-09-05 14:44 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Stephen Boyd, linux-arm-msm, devicetree,
	linux-kernel

On Sun, 28 Aug 2022, Krzysztof Kozlowski wrote:

> Add a more complete example with PM6150 to provide better validation of
> the bindings.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../bindings/mfd/qcom,spmi-pmic.yaml          | 84 +++++++++++++++++++
>  1 file changed, 84 insertions(+)

Applied, thanks.

-- 
Lee Jones [李琼斯]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-05 14:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-28 13:01 [PATCH] dt-bindings: mfd: qcom,spmi-pmic: extend example Krzysztof Kozlowski
2022-08-29 22:21 ` Stephen Boyd
2022-08-30 16:27 ` Rob Herring
2022-09-05 14:44 ` Lee Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.