Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/gpio/qcom,wcd934x-gpio.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: WCD9340/WCD9341 GPIO controller
0008 
0009 maintainers:
0010   - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
0011 
0012 description: |
0013   Qualcomm Technologies Inc WCD9340/WCD9341 Audio Codec has integrated
0014   gpio controller to control 5 gpios on the chip.
0015 
0016 properties:
0017   compatible:
0018     enum:
0019       - qcom,wcd9340-gpio
0020       - qcom,wcd9341-gpio
0021 
0022   reg:
0023     maxItems: 1
0024 
0025   gpio-controller: true
0026 
0027   '#gpio-cells':
0028     const: 2
0029 
0030 required:
0031   - compatible
0032   - reg
0033   - gpio-controller
0034   - "#gpio-cells"
0035 
0036 additionalProperties: false
0037 
0038 examples:
0039   - |
0040     wcdgpio: gpio@42 {
0041         compatible = "qcom,wcd9340-gpio";
0042         reg = <0x042 0x2>;
0043         gpio-controller;
0044         #gpio-cells = <2>;
0045     };
0046 
0047 ...