Debian Codegraph @

Documentation/devicetree/bindings/phy/motorola,mapphone-mdm6600.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/phy/motorola,mapphone-mdm6600.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Motorola Mapphone MDM6600 USB PHY
8
9 maintainers:
10 - Tony Lindgren <[email protected]>
11
12 properties:
13 compatible:
14 items:
15 - const: motorola,mapphone-mdm6600
16
17 enable-gpios:
18 description: GPIO to enable the USB PHY
19 maxItems: 1
20
21 power-gpios:
22 description: GPIO to power on the device
23 maxItems: 1
24
25 reset-gpios:
26 description: GPIO to reset the device
27 maxItems: 1
28
29 motorola,mode-gpios:
30 description: Two GPIOs to configure MDM6600 USB start-up mode for normal mode versus USB flashing mode
31 items:
32 - description: normal mode select GPIO
33 - description: USB flashing mode select GPIO
34
35 motorola,cmd-gpios:
36 description: Three GPIOs to control the power state of the MDM6600
37 items:
38 - description: power state control GPIO 0
39 - description: power state control GPIO 1
40 - description: power state control GPIO 2
41
42 motorola,status-gpios:
43 description: Three GPIOs to read the power state of the MDM6600
44 items:
45 - description: power state read GPIO 0
46 - description: power state read GPIO 1
47 - description: power state read GPIO 2
48
49 '#phy-cells':
50 const: 0
51
52 required:
53 - compatible
54 - enable-gpios
55 - power-gpios
56 - reset-gpios
57 - motorola,mode-gpios
58 - motorola,cmd-gpios
59 - motorola,status-gpios
60
61 additionalProperties: false
62
63 examples:
64 - |
65 #include <dt-bindings/gpio/gpio.h>
66
67 usb-phy {
68 compatible = "motorola,mapphone-mdm6600";
69 enable-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;
70 power-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>;
71 reset-gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>;
72 motorola,mode-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>,
73 <&gpio5 21 GPIO_ACTIVE_HIGH>;
74 motorola,cmd-gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>,
75 <&gpio4 8 GPIO_ACTIVE_HIGH>,
76 <&gpio5 14 GPIO_ACTIVE_HIGH>;
77 motorola,status-gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>,
78 <&gpio2 21 GPIO_ACTIVE_HIGH>,
79 <&gpio2 23 GPIO_ACTIVE_HIGH>;
80 #phy-cells = <0>;
81 };