Skip to content

Commit 2fab5ab

Browse files
james1993lag-linaro
authored andcommitted
dt-bindings: input: cirrus,cs40l50: Add initial DT binding
CS40L50 is a haptic driver with waveform memory, integrated DSP, and closed-loop algorithms. Add a YAML DT binding document for this device. Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: James Ogletree <[email protected]> Reviewed-by: Jeff LaBundy <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 205fdba commit 2fab5ab

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/input/cirrus,cs40l50.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Cirrus Logic CS40L50 Advanced Haptic Driver
8+
9+
maintainers:
10+
- James Ogletree <[email protected]>
11+
12+
description:
13+
CS40L50 is a haptic driver with waveform memory,
14+
integrated DSP, and closed-loop algorithms.
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- cirrus,cs40l50
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
reset-gpios:
28+
maxItems: 1
29+
30+
vdd-a-supply:
31+
description: Power supply for internal analog circuits.
32+
33+
vdd-p-supply:
34+
description: Power supply for always-on circuits.
35+
36+
vdd-io-supply:
37+
description: Power supply for digital input/output.
38+
39+
vdd-b-supply:
40+
description: Power supply for the boost converter.
41+
42+
required:
43+
- compatible
44+
- reg
45+
- interrupts
46+
- reset-gpios
47+
- vdd-io-supply
48+
49+
additionalProperties: false
50+
51+
examples:
52+
- |
53+
#include <dt-bindings/gpio/gpio.h>
54+
#include <dt-bindings/interrupt-controller/irq.h>
55+
56+
i2c {
57+
#address-cells = <1>;
58+
#size-cells = <0>;
59+
60+
haptic-driver@34 {
61+
compatible = "cirrus,cs40l50";
62+
reg = <0x34>;
63+
interrupt-parent = <&gpio>;
64+
interrupts = <113 IRQ_TYPE_LEVEL_LOW>;
65+
reset-gpios = <&gpio 112 GPIO_ACTIVE_LOW>;
66+
vdd-io-supply = <&vreg>;
67+
};
68+
};

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5206,6 +5206,14 @@ F: sound/pci/hda/hda_component*
52065206
F: sound/pci/hda/hda_cs_dsp_ctl.*
52075207
F: sound/soc/codecs/cs*
52085208

5209+
CIRRUS LOGIC HAPTIC DRIVERS
5210+
M: James Ogletree <[email protected]>
5211+
M: Fred Treven <[email protected]>
5212+
M: Ben Bright <[email protected]>
5213+
5214+
S: Supported
5215+
F: Documentation/devicetree/bindings/input/cirrus,cs40l50.yaml
5216+
52095217
CIRRUS LOGIC DSP FIRMWARE DRIVER
52105218
M: Simon Trimmer <[email protected]>
52115219
M: Charles Keepax <[email protected]>

0 commit comments

Comments
 (0)