Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 |
| 8 | |
| 9 | maintainers: |
| 10 | - Jaewon Kim <jaewon02.kim@samsung.com> |
| 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 | }; |