1*b0d126e1SSrinivas Kandagatla# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*b0d126e1SSrinivas Kandagatla%YAML 1.2 3*b0d126e1SSrinivas Kandagatla--- 4*b0d126e1SSrinivas Kandagatla$id: http://devicetree.org/schemas/gpio/qcom,wcd934x-gpio.yaml# 5*b0d126e1SSrinivas Kandagatla$schema: http://devicetree.org/meta-schemas/core.yaml# 6*b0d126e1SSrinivas Kandagatla 7*b0d126e1SSrinivas Kandagatlatitle: WCD9340/WCD9341 GPIO controller 8*b0d126e1SSrinivas Kandagatla 9*b0d126e1SSrinivas Kandagatlamaintainers: 10*b0d126e1SSrinivas Kandagatla - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 11*b0d126e1SSrinivas Kandagatla 12*b0d126e1SSrinivas Kandagatladescription: | 13*b0d126e1SSrinivas Kandagatla Qualcomm Technologies Inc WCD9340/WCD9341 Audio Codec has integrated 14*b0d126e1SSrinivas Kandagatla gpio controller to control 5 gpios on the chip. 15*b0d126e1SSrinivas Kandagatla 16*b0d126e1SSrinivas Kandagatlaproperties: 17*b0d126e1SSrinivas Kandagatla compatible: 18*b0d126e1SSrinivas Kandagatla enum: 19*b0d126e1SSrinivas Kandagatla - qcom,wcd9340-gpio 20*b0d126e1SSrinivas Kandagatla - qcom,wcd9341-gpio 21*b0d126e1SSrinivas Kandagatla 22*b0d126e1SSrinivas Kandagatla reg: 23*b0d126e1SSrinivas Kandagatla maxItems: 1 24*b0d126e1SSrinivas Kandagatla 25*b0d126e1SSrinivas Kandagatla gpio-controller: true 26*b0d126e1SSrinivas Kandagatla 27*b0d126e1SSrinivas Kandagatla '#gpio-cells': 28*b0d126e1SSrinivas Kandagatla const: 2 29*b0d126e1SSrinivas Kandagatla 30*b0d126e1SSrinivas Kandagatlarequired: 31*b0d126e1SSrinivas Kandagatla - compatible 32*b0d126e1SSrinivas Kandagatla - reg 33*b0d126e1SSrinivas Kandagatla - gpio-controller 34*b0d126e1SSrinivas Kandagatla - "#gpio-cells" 35*b0d126e1SSrinivas Kandagatla 36*b0d126e1SSrinivas KandagatlaadditionalProperties: false 37*b0d126e1SSrinivas Kandagatla 38*b0d126e1SSrinivas Kandagatlaexamples: 39*b0d126e1SSrinivas Kandagatla - | 40*b0d126e1SSrinivas Kandagatla wcdgpio: gpio@42 { 41*b0d126e1SSrinivas Kandagatla compatible = "qcom,wcd9340-gpio"; 42*b0d126e1SSrinivas Kandagatla reg = <0x042 0x2>; 43*b0d126e1SSrinivas Kandagatla gpio-controller; 44*b0d126e1SSrinivas Kandagatla #gpio-cells = <2>; 45*b0d126e1SSrinivas Kandagatla }; 46*b0d126e1SSrinivas Kandagatla 47*b0d126e1SSrinivas Kandagatla... 48