Skip to content

Commit cc3d15a

Browse files
mriparddtor
authored andcommitted
dt-bindings: input: Convert Regulator Haptic binding to a schema
The Haptic feedback based on a regulator is supported by Linux thanks to its device tree binding. Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema. Signed-off-by: Maxime Ripard <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 187acd8 commit cc3d15a

File tree

2 files changed

+43
-21
lines changed

2 files changed

+43
-21
lines changed

Documentation/devicetree/bindings/input/regulator-haptic.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: "http://devicetree.org/schemas/input/regulator-haptic.yaml#"
5+
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6+
7+
title: Regulator Haptic Device Tree Bindings
8+
9+
maintainers:
10+
- Jaewon Kim <[email protected]>
11+
12+
properties:
13+
compatible:
14+
const: regulator-haptic
15+
16+
haptic-supply:
17+
description: >
18+
Power supply to the haptic motor
19+
20+
max-microvolt:
21+
description: >
22+
The maximum voltage value supplied to the haptic motor
23+
24+
min-microvolt:
25+
description: >
26+
The minimum voltage value supplied to the haptic motor
27+
28+
required:
29+
- compatible
30+
- haptic-supply
31+
- max-microvolt
32+
- min-microvolt
33+
34+
additionalProperties: false
35+
36+
examples:
37+
- |
38+
haptics {
39+
compatible = "regulator-haptic";
40+
haptic-supply = <&motor_regulator>;
41+
max-microvolt = <2700000>;
42+
min-microvolt = <1100000>;
43+
};

0 commit comments

Comments
 (0)