Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: gpio: wcd934x: Add bindings for gpio

Qualcomm Technologies Inc WCD9340/WCD9341 Audio Codec has integrated
gpio controller to control 5 gpios on the chip. This patch adds
required device tree bindings for it.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20200107130844.20763-2-srinivas.kandagatla@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Srinivas Kandagatla and committed by
Linus Walleij
b0d126e1 97082890

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