0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 # Copyright 2020 Unisoc Inc.
0003 %YAML 1.2
0004 ---
0005 $id: http://devicetree.org/schemas/input/sprd,sc27xx-vibrator.yaml#
0006 $schema: http://devicetree.org/meta-schemas/core.yaml#
0007
0008 title: Spreadtrum SC27xx PMIC Vibrator Device Tree Bindings
0009
0010 maintainers:
0011 - Orson Zhai <orsonzhai@gmail.com>
0012 - Baolin Wang <baolin.wang7@gmail.com>
0013 - Chunyan Zhang <zhang.lyra@gmail.com>
0014
0015 properties:
0016 compatible:
0017 enum:
0018 - sprd,sc2721-vibrator
0019 - sprd,sc2730-vibrator
0020 - sprd,sc2731-vibrator
0021
0022 reg:
0023 maxItems: 1
0024
0025 required:
0026 - compatible
0027 - reg
0028
0029 additionalProperties: false
0030
0031 examples:
0032 - |
0033 #include <dt-bindings/interrupt-controller/arm-gic.h>
0034 sc2731_pmic: pmic@0 {
0035 compatible = "sprd,sc2731";
0036 reg = <0 0>;
0037 spi-max-frequency = <26000000>;
0038 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
0039 interrupt-controller;
0040 #interrupt-cells = <2>;
0041 #address-cells = <1>;
0042 #size-cells = <0>;
0043
0044 vibrator@eb4 {
0045 compatible = "sprd,sc2731-vibrator";
0046 reg = <0xeb4>;
0047 };
0048 };