* [PATCH] dt-bindings: input: qcom,pm8xxx-vib: convert to yaml
@ 2022-09-17 15:57 Luca Weiss
2022-09-17 16:38 ` Krzysztof Kozlowski
2022-09-25 6:27 ` Dmitry Torokhov
0 siblings, 2 replies; 3+ messages in thread
From: Luca Weiss @ 2022-09-17 15:57 UTC (permalink / raw)
To: linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Luca Weiss, Andy Gross,
Bjorn Andersson, Konrad Dybcio, Dmitry Torokhov, Rob Herring,
Krzysztof Kozlowski, linux-input, devicetree, linux-kernel
Convert the PM8xxx PMIC Vibrator bindings to dt-schema.
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
.../bindings/input/qcom,pm8xxx-vib.txt | 23 -----------
.../bindings/input/qcom,pm8xxx-vib.yaml | 38 +++++++++++++++++++
2 files changed, 38 insertions(+), 23 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.txt
create mode 100644 Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.yaml
diff --git a/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.txt b/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.txt
deleted file mode 100644
index 64bb990075c3..000000000000
--- a/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-Qualcomm PM8xxx PMIC Vibrator
-
-PROPERTIES
-
-- compatible:
- Usage: required
- Value type: <string>
- Definition: must be one of:
- "qcom,pm8058-vib"
- "qcom,pm8916-vib"
- "qcom,pm8921-vib"
-
-- reg:
- Usage: required
- Value type: <prop-encoded-array>
- Definition: address of vibration control register
-
-EXAMPLE
-
- vibrator@4a {
- compatible = "qcom,pm8058-vib";
- reg = <0x4a>;
- };
diff --git a/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.yaml b/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.yaml
new file mode 100644
index 000000000000..c8832cd0d7da
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.yaml
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/input/qcom,pm8xxx-vib.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm PM8xxx PMIC Vibrator
+
+maintainers:
+ - Bjorn Andersson <andersson@kernel.org>
+
+properties:
+ compatible:
+ enum:
+ - qcom,pm8058-vib
+ - qcom,pm8916-vib
+ - qcom,pm8921-vib
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ pmic {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ vibrator@4a {
+ compatible = "qcom,pm8058-vib";
+ reg = <0x4a>;
+ };
+ };
--
2.37.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: input: qcom,pm8xxx-vib: convert to yaml
2022-09-17 15:57 [PATCH] dt-bindings: input: qcom,pm8xxx-vib: convert to yaml Luca Weiss
@ 2022-09-17 16:38 ` Krzysztof Kozlowski
2022-09-25 6:27 ` Dmitry Torokhov
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2022-09-17 16:38 UTC (permalink / raw)
To: Luca Weiss, linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Andy Gross,
Bjorn Andersson, Konrad Dybcio, Dmitry Torokhov, Rob Herring,
Krzysztof Kozlowski, linux-input, devicetree, linux-kernel
On 17/09/2022 16:57, Luca Weiss wrote:
> Convert the PM8xxx PMIC Vibrator bindings to dt-schema.
>
> Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: input: qcom,pm8xxx-vib: convert to yaml
2022-09-17 15:57 [PATCH] dt-bindings: input: qcom,pm8xxx-vib: convert to yaml Luca Weiss
2022-09-17 16:38 ` Krzysztof Kozlowski
@ 2022-09-25 6:27 ` Dmitry Torokhov
1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2022-09-25 6:27 UTC (permalink / raw)
To: Luca Weiss
Cc: linux-arm-msm, ~postmarketos/upstreaming, phone-devel,
Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, linux-input, devicetree, linux-kernel
On Sat, Sep 17, 2022 at 05:57:00PM +0200, Luca Weiss wrote:
> Convert the PM8xxx PMIC Vibrator bindings to dt-schema.
>
> Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Applied, thank you.
--
Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-25 6:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-17 15:57 [PATCH] dt-bindings: input: qcom,pm8xxx-vib: convert to yaml Luca Weiss
2022-09-17 16:38 ` Krzysztof Kozlowski
2022-09-25 6:27 ` Dmitry Torokhov
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.