linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] dt-bindings: input: Convert ti,drv260x to DT schema
@ 2022-11-05 14:17 Luca Weiss
  2022-11-07 19:33 ` Dmitry Torokhov
  0 siblings, 1 reply; 3+ messages in thread
From: Luca Weiss @ 2022-11-05 14:17 UTC (permalink / raw)
  To: linux-input
  Cc: ~postmarketos/upstreaming, phone-devel, Luca Weiss, Andrew Davis,
	Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski, devicetree,
	linux-kernel

Convert the drv260x haptics binding to DT schema format.

The only notable change from .txt format is that vbat-supply is not
actually required, so don't make it a required property.

Acked-by: Andrew Davis <afd@ti.com>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
Changes since v2:
* add default values for vib-*-mv
* add note about 'mode' property
* add enable-gpios, deprecate enable-gpio

 .../devicetree/bindings/input/ti,drv260x.txt  |  50 --------
 .../devicetree/bindings/input/ti,drv260x.yaml | 109 ++++++++++++++++++
 2 files changed, 109 insertions(+), 50 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/input/ti,drv260x.txt
 create mode 100644 Documentation/devicetree/bindings/input/ti,drv260x.yaml

diff --git a/Documentation/devicetree/bindings/input/ti,drv260x.txt b/Documentation/devicetree/bindings/input/ti,drv260x.txt
deleted file mode 100644
index 4c5312eaaa85..000000000000
--- a/Documentation/devicetree/bindings/input/ti,drv260x.txt
+++ /dev/null
@@ -1,50 +0,0 @@
-* Texas Instruments - drv260x Haptics driver family
-
-Required properties:
-	- compatible - One of:
-		"ti,drv2604" - DRV2604
-		"ti,drv2605" - DRV2605
-		"ti,drv2605l" - DRV2605L
-	- reg -  I2C slave address
-	- vbat-supply - Required supply regulator
-	- mode - Power up mode of the chip (defined in include/dt-bindings/input/ti-drv260x.h)
-		DRV260X_LRA_MODE - Linear Resonance Actuator mode (Piezoelectric)
-		DRV260X_LRA_NO_CAL_MODE - This is a LRA Mode but there is no calibration
-				sequence during init.  And the device is configured for real
-				time playback mode (RTP mode).
-		DRV260X_ERM_MODE - Eccentric Rotating Mass mode (Rotary vibrator)
-	- library-sel - These are ROM based waveforms pre-programmed into the IC.
-				This should be set to set the library to use at power up.
-				(defined in include/dt-bindings/input/ti-drv260x.h)
-		DRV260X_LIB_EMPTY - Do not use a pre-programmed library
-		DRV260X_ERM_LIB_A - Pre-programmed Library
-		DRV260X_ERM_LIB_B - Pre-programmed Library
-		DRV260X_ERM_LIB_C - Pre-programmed Library
-		DRV260X_ERM_LIB_D - Pre-programmed Library
-		DRV260X_ERM_LIB_E - Pre-programmed Library
-		DRV260X_ERM_LIB_F - Pre-programmed Library
-		DRV260X_LIB_LRA - Pre-programmed LRA Library
-
-Optional properties:
-	- enable-gpio - gpio pin to enable/disable the device.
-	- vib-rated-mv - The rated voltage of the actuator in millivolts.
-			  If this is not set then the value will be defaulted to
-			  3.2 v.
-	- vib-overdrive-mv - The overdrive voltage of the actuator in millivolts.
-			  If this is not set then the value will be defaulted to
-			  3.2 v.
-Example:
-
-haptics: haptics@5a {
-	compatible = "ti,drv2605l";
-	reg = <0x5a>;
-	vbat-supply = <&vbat>;
-	enable-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
-	mode = <DRV260X_LRA_MODE>;
-	library-sel = <DRV260X_LIB_LRA>;
-	vib-rated-mv = <3200>;
-	vib-overdrive-mv = <3200>;
-}
-
-For more product information please see the link below:
-http://www.ti.com/product/drv2605
diff --git a/Documentation/devicetree/bindings/input/ti,drv260x.yaml b/Documentation/devicetree/bindings/input/ti,drv260x.yaml
new file mode 100644
index 000000000000..63230977043e
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/ti,drv260x.yaml
@@ -0,0 +1,109 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/input/ti,drv260x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments - drv260x Haptics driver family
+
+maintainers:
+  - Andrew Davis <afd@ti.com>
+
+properties:
+  compatible:
+    enum:
+      - ti,drv2604
+      - ti,drv2605
+      - ti,drv2605l
+
+  reg:
+    maxItems: 1
+
+  vbat-supply:
+    description: Power supply to the haptic motor
+
+  # TODO: Deprecate 'mode' in favor of differently named property
+  mode:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: |
+      Power up mode of the chip
+      (defined in include/dt-bindings/input/ti-drv260x.h)
+
+      DRV260X_LRA_MODE
+        Linear Resonance Actuator mode (Piezoelectric)
+
+      DRV260X_LRA_NO_CAL_MODE
+        This is a LRA Mode but there is no calibration sequence during init.
+        And the device is configured for real time playback mode (RTP mode).
+
+      DRV260X_ERM_MODE
+        Eccentric Rotating Mass mode (Rotary vibrator)
+    enum: [ 0, 1, 2 ]
+
+  library-sel:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: |
+      These are ROM based waveforms pre-programmed into the IC.
+      This should be set to set the library to use at power up.
+      (defined in include/dt-bindings/input/ti-drv260x.h)
+
+      DRV260X_LIB_EMPTY - Do not use a pre-programmed library
+      DRV260X_ERM_LIB_A - Pre-programmed Library
+      DRV260X_ERM_LIB_B - Pre-programmed Library
+      DRV260X_ERM_LIB_C - Pre-programmed Library
+      DRV260X_ERM_LIB_D - Pre-programmed Library
+      DRV260X_ERM_LIB_E - Pre-programmed Library
+      DRV260X_ERM_LIB_F - Pre-programmed Library
+      DRV260X_LIB_LRA - Pre-programmed LRA Library
+    enum: [ 0, 1, 2, 3, 4, 5, 6, 7 ]
+
+  enable-gpio:
+    maxItems: 1
+    deprecated: true
+
+  enable-gpios:
+    maxItems: 1
+
+  vib-rated-mv:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: |
+      The rated voltage of the actuator in millivolts.
+      If this is not set then the value will be defaulted to 3200 mV.
+    default: 3200
+
+  vib-overdrive-mv:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: |
+      The overdrive voltage of the actuator in millivolts.
+      If this is not set then the value will be defaulted to 3200 mV.
+    default: 3200
+
+required:
+  - compatible
+  - reg
+  - enable-gpio
+  - mode
+  - library-sel
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    #include <dt-bindings/input/ti-drv260x.h>
+
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        haptics@5a {
+            compatible = "ti,drv2605l";
+            reg = <0x5a>;
+            vbat-supply = <&vbat>;
+            enable-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
+            mode = <DRV260X_LRA_MODE>;
+            library-sel = <DRV260X_LIB_LRA>;
+            vib-rated-mv = <3200>;
+            vib-overdrive-mv = <3200>;
+        };
+    };
-- 
2.38.1


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

* Re: [PATCH v3] dt-bindings: input: Convert ti,drv260x to DT schema
  2022-11-05 14:17 [PATCH v3] dt-bindings: input: Convert ti,drv260x to DT schema Luca Weiss
@ 2022-11-07 19:33 ` Dmitry Torokhov
  2022-11-08 11:15   ` Krzysztof Kozlowski
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Torokhov @ 2022-11-07 19:33 UTC (permalink / raw)
  To: Luca Weiss
  Cc: linux-input, ~postmarketos/upstreaming, phone-devel,
	Andrew Davis, Rob Herring, Krzysztof Kozlowski, devicetree,
	linux-kernel

On Sat, Nov 05, 2022 at 03:17:06PM +0100, Luca Weiss wrote:
> Convert the drv260x haptics binding to DT schema format.
> 
> The only notable change from .txt format is that vbat-supply is not
> actually required, so don't make it a required property.
> 
> Acked-by: Andrew Davis <afd@ti.com>
> Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
> ---
> Changes since v2:
> * add default values for vib-*-mv
> * add note about 'mode' property
> * add enable-gpios, deprecate enable-gpio
> 
>  .../devicetree/bindings/input/ti,drv260x.txt  |  50 --------
>  .../devicetree/bindings/input/ti,drv260x.yaml | 109 ++++++++++++++++++
>  2 files changed, 109 insertions(+), 50 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/input/ti,drv260x.txt
>  create mode 100644 Documentation/devicetree/bindings/input/ti,drv260x.yaml
> 
> diff --git a/Documentation/devicetree/bindings/input/ti,drv260x.txt b/Documentation/devicetree/bindings/input/ti,drv260x.txt
> deleted file mode 100644
> index 4c5312eaaa85..000000000000
> --- a/Documentation/devicetree/bindings/input/ti,drv260x.txt
> +++ /dev/null
> @@ -1,50 +0,0 @@
> -* Texas Instruments - drv260x Haptics driver family
> -
> -Required properties:
> -	- compatible - One of:
> -		"ti,drv2604" - DRV2604
> -		"ti,drv2605" - DRV2605
> -		"ti,drv2605l" - DRV2605L
> -	- reg -  I2C slave address
> -	- vbat-supply - Required supply regulator
> -	- mode - Power up mode of the chip (defined in include/dt-bindings/input/ti-drv260x.h)
> -		DRV260X_LRA_MODE - Linear Resonance Actuator mode (Piezoelectric)
> -		DRV260X_LRA_NO_CAL_MODE - This is a LRA Mode but there is no calibration
> -				sequence during init.  And the device is configured for real
> -				time playback mode (RTP mode).
> -		DRV260X_ERM_MODE - Eccentric Rotating Mass mode (Rotary vibrator)
> -	- library-sel - These are ROM based waveforms pre-programmed into the IC.
> -				This should be set to set the library to use at power up.
> -				(defined in include/dt-bindings/input/ti-drv260x.h)
> -		DRV260X_LIB_EMPTY - Do not use a pre-programmed library
> -		DRV260X_ERM_LIB_A - Pre-programmed Library
> -		DRV260X_ERM_LIB_B - Pre-programmed Library
> -		DRV260X_ERM_LIB_C - Pre-programmed Library
> -		DRV260X_ERM_LIB_D - Pre-programmed Library
> -		DRV260X_ERM_LIB_E - Pre-programmed Library
> -		DRV260X_ERM_LIB_F - Pre-programmed Library
> -		DRV260X_LIB_LRA - Pre-programmed LRA Library
> -
> -Optional properties:
> -	- enable-gpio - gpio pin to enable/disable the device.
> -	- vib-rated-mv - The rated voltage of the actuator in millivolts.
> -			  If this is not set then the value will be defaulted to
> -			  3.2 v.
> -	- vib-overdrive-mv - The overdrive voltage of the actuator in millivolts.
> -			  If this is not set then the value will be defaulted to
> -			  3.2 v.
> -Example:
> -
> -haptics: haptics@5a {
> -	compatible = "ti,drv2605l";
> -	reg = <0x5a>;
> -	vbat-supply = <&vbat>;
> -	enable-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
> -	mode = <DRV260X_LRA_MODE>;
> -	library-sel = <DRV260X_LIB_LRA>;
> -	vib-rated-mv = <3200>;
> -	vib-overdrive-mv = <3200>;
> -}
> -
> -For more product information please see the link below:
> -http://www.ti.com/product/drv2605
> diff --git a/Documentation/devicetree/bindings/input/ti,drv260x.yaml b/Documentation/devicetree/bindings/input/ti,drv260x.yaml
> new file mode 100644
> index 000000000000..63230977043e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/ti,drv260x.yaml
> @@ -0,0 +1,109 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/input/ti,drv260x.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments - drv260x Haptics driver family
> +
> +maintainers:
> +  - Andrew Davis <afd@ti.com>
> +
> +properties:
> +  compatible:
> +    enum:
> +      - ti,drv2604
> +      - ti,drv2605
> +      - ti,drv2605l
> +
> +  reg:
> +    maxItems: 1
> +
> +  vbat-supply:
> +    description: Power supply to the haptic motor
> +
> +  # TODO: Deprecate 'mode' in favor of differently named property
> +  mode:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    description: |
> +      Power up mode of the chip
> +      (defined in include/dt-bindings/input/ti-drv260x.h)
> +
> +      DRV260X_LRA_MODE
> +        Linear Resonance Actuator mode (Piezoelectric)
> +
> +      DRV260X_LRA_NO_CAL_MODE
> +        This is a LRA Mode but there is no calibration sequence during init.
> +        And the device is configured for real time playback mode (RTP mode).
> +
> +      DRV260X_ERM_MODE
> +        Eccentric Rotating Mass mode (Rotary vibrator)
> +    enum: [ 0, 1, 2 ]
> +
> +  library-sel:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    description: |
> +      These are ROM based waveforms pre-programmed into the IC.
> +      This should be set to set the library to use at power up.
> +      (defined in include/dt-bindings/input/ti-drv260x.h)
> +
> +      DRV260X_LIB_EMPTY - Do not use a pre-programmed library
> +      DRV260X_ERM_LIB_A - Pre-programmed Library
> +      DRV260X_ERM_LIB_B - Pre-programmed Library
> +      DRV260X_ERM_LIB_C - Pre-programmed Library
> +      DRV260X_ERM_LIB_D - Pre-programmed Library
> +      DRV260X_ERM_LIB_E - Pre-programmed Library
> +      DRV260X_ERM_LIB_F - Pre-programmed Library
> +      DRV260X_LIB_LRA - Pre-programmed LRA Library
> +    enum: [ 0, 1, 2, 3, 4, 5, 6, 7 ]
> +
> +  enable-gpio:
> +    maxItems: 1
> +    deprecated: true
> +
> +  enable-gpios:
> +    maxItems: 1
> +
> +  vib-rated-mv:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    description: |
> +      The rated voltage of the actuator in millivolts.
> +      If this is not set then the value will be defaulted to 3200 mV.
> +    default: 3200
> +
> +  vib-overdrive-mv:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    description: |
> +      The overdrive voltage of the actuator in millivolts.
> +      If this is not set then the value will be defaulted to 3200 mV.
> +    default: 3200
> +
> +required:
> +  - compatible
> +  - reg
> +  - enable-gpio

It is weird to have a deprecated property listed in required list and
also in the example...

> +  - mode
> +  - library-sel
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/gpio/gpio.h>
> +    #include <dt-bindings/input/ti-drv260x.h>
> +
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        haptics@5a {
> +            compatible = "ti,drv2605l";
> +            reg = <0x5a>;
> +            vbat-supply = <&vbat>;
> +            enable-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
> +            mode = <DRV260X_LRA_MODE>;
> +            library-sel = <DRV260X_LIB_LRA>;
> +            vib-rated-mv = <3200>;
> +            vib-overdrive-mv = <3200>;
> +        };
> +    };
> -- 
> 2.38.1
> 

-- 
Dmitry

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

* Re: [PATCH v3] dt-bindings: input: Convert ti,drv260x to DT schema
  2022-11-07 19:33 ` Dmitry Torokhov
@ 2022-11-08 11:15   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-08 11:15 UTC (permalink / raw)
  To: Dmitry Torokhov, Luca Weiss
  Cc: linux-input, ~postmarketos/upstreaming, phone-devel,
	Andrew Davis, Rob Herring, Krzysztof Kozlowski, devicetree,
	linux-kernel

On 07/11/2022 20:33, Dmitry Torokhov wrote:
> On Sat, Nov 05, 2022 at 03:17:06PM +0100, Luca Weiss wrote:
>> Convert the drv260x haptics binding to DT schema format.
>>
>> The only notable change from .txt format is that vbat-supply is not
>> actually required, so don't make it a required property.
>>
>> Acked-by: Andrew Davis <afd@ti.com>
>> Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
>> ---
>> Changes since v2:
>> * add default values for vib-*-mv
>> * add note about 'mode' property
>> * add enable-gpios, deprecate enable-gpio
>>
>>  .../devicetree/bindings/input/ti,drv260x.txt  |  50 --------
>>  .../devicetree/bindings/input/ti,drv260x.yaml | 109 ++++++++++++++++++
>>  2 files changed, 109 insertions(+), 50 deletions(-)
>>  delete mode 100644 Documentation/devicetree/bindings/input/ti,drv260x.txt
>>  create mode 100644 Documentation/devicetree/bindings/input/ti,drv260x.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/input/ti,drv260x.txt b/Documentation/devicetree/bindings/input/ti,drv260x.txt
>> deleted file mode 100644
>> index 4c5312eaaa85..000000000000
>> --- a/Documentation/devicetree/bindings/input/ti,drv260x.txt
>> +++ /dev/null
>> @@ -1,50 +0,0 @@
>> -* Texas Instruments - drv260x Haptics driver family
>> -
>> -Required properties:
>> -	- compatible - One of:
>> -		"ti,drv2604" - DRV2604
>> -		"ti,drv2605" - DRV2605
>> -		"ti,drv2605l" - DRV2605L
>> -	- reg -  I2C slave address
>> -	- vbat-supply - Required supply regulator
>> -	- mode - Power up mode of the chip (defined in include/dt-bindings/input/ti-drv260x.h)
>> -		DRV260X_LRA_MODE - Linear Resonance Actuator mode (Piezoelectric)
>> -		DRV260X_LRA_NO_CAL_MODE - This is a LRA Mode but there is no calibration
>> -				sequence during init.  And the device is configured for real
>> -				time playback mode (RTP mode).
>> -		DRV260X_ERM_MODE - Eccentric Rotating Mass mode (Rotary vibrator)
>> -	- library-sel - These are ROM based waveforms pre-programmed into the IC.
>> -				This should be set to set the library to use at power up.
>> -				(defined in include/dt-bindings/input/ti-drv260x.h)
>> -		DRV260X_LIB_EMPTY - Do not use a pre-programmed library
>> -		DRV260X_ERM_LIB_A - Pre-programmed Library
>> -		DRV260X_ERM_LIB_B - Pre-programmed Library
>> -		DRV260X_ERM_LIB_C - Pre-programmed Library
>> -		DRV260X_ERM_LIB_D - Pre-programmed Library
>> -		DRV260X_ERM_LIB_E - Pre-programmed Library
>> -		DRV260X_ERM_LIB_F - Pre-programmed Library
>> -		DRV260X_LIB_LRA - Pre-programmed LRA Library
>> -
>> -Optional properties:
>> -	- enable-gpio - gpio pin to enable/disable the device.
>> -	- vib-rated-mv - The rated voltage of the actuator in millivolts.
>> -			  If this is not set then the value will be defaulted to
>> -			  3.2 v.
>> -	- vib-overdrive-mv - The overdrive voltage of the actuator in millivolts.
>> -			  If this is not set then the value will be defaulted to
>> -			  3.2 v.
>> -Example:
>> -
>> -haptics: haptics@5a {
>> -	compatible = "ti,drv2605l";
>> -	reg = <0x5a>;
>> -	vbat-supply = <&vbat>;
>> -	enable-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
>> -	mode = <DRV260X_LRA_MODE>;
>> -	library-sel = <DRV260X_LIB_LRA>;
>> -	vib-rated-mv = <3200>;
>> -	vib-overdrive-mv = <3200>;
>> -}
>> -
>> -For more product information please see the link below:
>> -http://www.ti.com/product/drv2605
>> diff --git a/Documentation/devicetree/bindings/input/ti,drv260x.yaml b/Documentation/devicetree/bindings/input/ti,drv260x.yaml
>> new file mode 100644
>> index 000000000000..63230977043e
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/input/ti,drv260x.yaml
>> @@ -0,0 +1,109 @@
>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/input/ti,drv260x.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Texas Instruments - drv260x Haptics driver family
>> +
>> +maintainers:
>> +  - Andrew Davis <afd@ti.com>
>> +
>> +properties:
>> +  compatible:
>> +    enum:
>> +      - ti,drv2604
>> +      - ti,drv2605
>> +      - ti,drv2605l
>> +
>> +  reg:
>> +    maxItems: 1
>> +
>> +  vbat-supply:
>> +    description: Power supply to the haptic motor
>> +
>> +  # TODO: Deprecate 'mode' in favor of differently named property
>> +  mode:
>> +    $ref: /schemas/types.yaml#/definitions/uint32
>> +    description: |
>> +      Power up mode of the chip
>> +      (defined in include/dt-bindings/input/ti-drv260x.h)
>> +
>> +      DRV260X_LRA_MODE
>> +        Linear Resonance Actuator mode (Piezoelectric)
>> +
>> +      DRV260X_LRA_NO_CAL_MODE
>> +        This is a LRA Mode but there is no calibration sequence during init.
>> +        And the device is configured for real time playback mode (RTP mode).
>> +
>> +      DRV260X_ERM_MODE
>> +        Eccentric Rotating Mass mode (Rotary vibrator)
>> +    enum: [ 0, 1, 2 ]
>> +
>> +  library-sel:
>> +    $ref: /schemas/types.yaml#/definitions/uint32
>> +    description: |
>> +      These are ROM based waveforms pre-programmed into the IC.
>> +      This should be set to set the library to use at power up.
>> +      (defined in include/dt-bindings/input/ti-drv260x.h)
>> +
>> +      DRV260X_LIB_EMPTY - Do not use a pre-programmed library
>> +      DRV260X_ERM_LIB_A - Pre-programmed Library
>> +      DRV260X_ERM_LIB_B - Pre-programmed Library
>> +      DRV260X_ERM_LIB_C - Pre-programmed Library
>> +      DRV260X_ERM_LIB_D - Pre-programmed Library
>> +      DRV260X_ERM_LIB_E - Pre-programmed Library
>> +      DRV260X_ERM_LIB_F - Pre-programmed Library
>> +      DRV260X_LIB_LRA - Pre-programmed LRA Library
>> +    enum: [ 0, 1, 2, 3, 4, 5, 6, 7 ]
>> +
>> +  enable-gpio:
>> +    maxItems: 1
>> +    deprecated: true
>> +
>> +  enable-gpios:
>> +    maxItems: 1
>> +
>> +  vib-rated-mv:
>> +    $ref: /schemas/types.yaml#/definitions/uint32
>> +    description: |
>> +      The rated voltage of the actuator in millivolts.
>> +      If this is not set then the value will be defaulted to 3200 mV.
>> +    default: 3200
>> +
>> +  vib-overdrive-mv:
>> +    $ref: /schemas/types.yaml#/definitions/uint32
>> +    description: |
>> +      The overdrive voltage of the actuator in millivolts.
>> +      If this is not set then the value will be defaulted to 3200 mV.
>> +    default: 3200
>> +
>> +required:
>> +  - compatible
>> +  - reg
>> +  - enable-gpio
> 
> It is weird to have a deprecated property listed in required list and
> also in the example...

Yep, this should be fixed.

Best regards,
Krzysztof


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

end of thread, other threads:[~2022-11-08 11:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-05 14:17 [PATCH v3] dt-bindings: input: Convert ti,drv260x to DT schema Luca Weiss
2022-11-07 19:33 ` Dmitry Torokhov
2022-11-08 11:15   ` Krzysztof Kozlowski

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).