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

extcon: fsa9480: Rewrite bindings in YAML and extend

This rewrites the FSA9480 DT bindings using YAML and
extends them with the compatible TI TSU6111.

I chose to name the file fcs,fsa880 since this is the
first switch, later versions are improvements.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Linus Walleij and committed by
Chanwoo Choi
0e77f8e1 f6f79dd2

+52 -21
-21
Documentation/devicetree/bindings/extcon/extcon-fsa9480.txt
··· 1 - FAIRCHILD SEMICONDUCTOR FSA9480 MICROUSB SWITCH 2 - 3 - The FSA9480 is a USB port accessory detector and switch. The FSA9480 is fully 4 - controlled using I2C and enables USB data, stereo and mono audio, video, 5 - microphone, and UART data to use a common connector port. 6 - 7 - Required properties: 8 - - compatible : Must be one of 9 - "fcs,fsa9480" 10 - "fcs,fsa880" 11 - - reg : Specifies i2c slave address. Must be 0x25. 12 - - interrupts : Should contain one entry specifying interrupt signal of 13 - interrupt parent to which interrupt pin of the chip is connected. 14 - 15 - Example: 16 - musb@25 { 17 - compatible = "fcs,fsa9480"; 18 - reg = <0x25>; 19 - interrupt-parent = <&gph2>; 20 - interrupts = <7 0>; 21 - };
+52
Documentation/devicetree/bindings/extcon/fcs,fsa880.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/extcon/fcs,fsa880.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Fairchild Semiconductor FSA880, FSA9480 and compatibles 8 + 9 + maintainers: 10 + - Linus Walleij <linus.walleij@linaro.org> 11 + 12 + description: 13 + The FSA880 and FSA9480 are USB port accessory detectors and switches. 14 + The switch is fully controlled using I2C and enables USB data, stereo 15 + and mono audio, video, microphone, and UART data to use a common 16 + connector port. Compatible switches exist from other manufacturers. 17 + 18 + properties: 19 + compatible: 20 + enum: 21 + - fcs,fsa880 22 + - fcs,fsa9480 23 + - ti,tsu6111 24 + 25 + reg: 26 + maxItems: 1 27 + description: The I2C address for an FSA880 compatible device is 28 + usually 0x25. 29 + 30 + interrupts: 31 + maxItems: 1 32 + 33 + required: 34 + - compatible 35 + - reg 36 + - interrupts 37 + 38 + additionalProperties: false 39 + 40 + examples: 41 + - | 42 + #include <dt-bindings/interrupt-controller/irq.h> 43 + i2c { 44 + #address-cells = <1>; 45 + #size-cells = <0>; 46 + usb-switch@25 { 47 + compatible = "fcs,fsa880"; 48 + reg = <0x25>; 49 + interrupt-parent = <&gpio>; 50 + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; 51 + }; 52 + };