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 8title: Spreadtrum SC27xx PMIC Vibrator Device Tree Bindings 9 10maintainers: 11 - Orson Zhai <orsonzhai@gmail.com> 12 - Baolin Wang <baolin.wang7@gmail.com> 13 - Chunyan Zhang <zhang.lyra@gmail.com> 14 15properties: 16 compatible: 17 enum: 18 - sprd,sc2731-vibrator 19 20 reg: 21 maxItems: 1 22 23required: 24 - compatible 25 - reg 26 27additionalProperties: false 28 29examples: 30 - | 31 #include <dt-bindings/interrupt-controller/arm-gic.h> 32 sc2731_pmic: pmic@0 { 33 compatible = "sprd,sc2731"; 34 reg = <0 0>; 35 spi-max-frequency = <26000000>; 36 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; 37 interrupt-controller; 38 #interrupt-cells = <2>; 39 #address-cells = <1>; 40 #size-cells = <0>; 41 42 vibrator@eb4 { 43 compatible = "sprd,sc2731-vibrator"; 44 reg = <0xeb4>; 45 }; 46 }; 47