1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/input/pwm-vibrator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
13 Registers a PWM device as vibrator. It is expected, that the vibrator's
14 strength increases based on the duty cycle of the enable PWM channel
15 (100% duty cycle meaning strongest vibration, 0% meaning no vibration).
17 The binding supports an optional direction PWM channel, that can be
18 driven at fixed duty cycle. If available this is can be used to increase
19 the vibration effect of some devices.
39 direction-duty-cycle-ns:
41 Duty cycle of the direction PWM channel in nanoseconds,
42 defaults to 50% of the channel's period.
49 additionalProperties: false
54 compatible = "pwm-vibrator";
55 pwms = <&pwm9 0 1000000000 0>,
56 <&pwm8 0 1000000000 0>;
57 pwm-names = "enable", "direction";
58 direction-duty-cycle-ns = <1000000000>;