Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | # Copyright 2020 Unisoc Inc. |
| 3 | %YAML 1.2 |
| 4 | --- |
| 5 | $id: http://devicetree.org/schemas/input/sprd,sc27xx-vibrator.yaml# |
| 6 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 | |
| 8 | title: Spreadtrum SC27xx PMIC Vibrator |
| 9 | |
| 10 | maintainers: |
| 11 | - Orson Zhai <orsonzhai@gmail.com> |
| 12 | - Baolin Wang <baolin.wang7@gmail.com> |
| 13 | - Chunyan Zhang <zhang.lyra@gmail.com> |
| 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | enum: |
| 18 | - sprd,sc2721-vibrator |
| 19 | - sprd,sc2730-vibrator |
| 20 | - sprd,sc2731-vibrator |
| 21 | |
| 22 | reg: |
| 23 | maxItems: 1 |
| 24 | |
| 25 | required: |
| 26 | - compatible |
| 27 | - reg |
| 28 | |
| 29 | additionalProperties: false |
| 30 | |
| 31 | examples: |
| 32 | - | |
| 33 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 34 | sc2731_pmic: pmic@0 { |
| 35 | compatible = "sprd,sc2731"; |
| 36 | reg = <0 0>; |
| 37 | spi-max-frequency = <26000000>; |
| 38 | interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; |
| 39 | interrupt-controller; |
| 40 | #interrupt-cells = <2>; |
| 41 | #address-cells = <1>; |
| 42 | #size-cells = <0>; |
| 43 | |
| 44 | vibrator@eb4 { |
| 45 | compatible = "sprd,sc2731-vibrator"; |
| 46 | reg = <0xeb4>; |
| 47 | }; |
| 48 | }; |