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