[PATCH 3/8] dt-bindings: usb: document the Prolific PL2775 USB-SATA bridge
Dmitry Baryshkov <[email protected]>
| Newsgroups | org.kernel.vger.linux-usb,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
The APQ8074 Dragonboard has an onboard Prolific PL2775 USB 3.0 to SATA bridge whose RESET_N pin is wired to a PMIC GPIO, so the device has to be described in DT for the OS to release it from reset. Add a schema for the hard-wired PL2775 (067b:2775) with the reset-gpios and vdd-supply properties used by onboard USB devices. Assisted-by: Claude:claude-fable-5 Signed-off-by: Dmitry Baryshkov <[email protected]> --- .../devicetree/bindings/usb/prolific,pl2775.yaml | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/prolific,pl2775.yaml b/Documentation/devicetree/bindings/usb/prolific,pl2775.yaml new file mode 100644 index 000000000000..5af8b4f5ee64 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/prolific,pl2775.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/prolific,pl2775.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Prolific PL2775 USB 3.0 to SATA bridge + +maintainers: + - Dmitry Baryshkov <[email protected]> + +description: + Device tree properties for hard wired Prolific PL2775 USB 3.0 to + SATA bridge controllers. + +allOf: + - $ref: usb-device.yaml# + +properties: + compatible: + const: usb67b,2775 + + reg: true + + reset-gpios: + description: GPIO connected to the RESET_N pin. + maxItems: 1 + + vdd-supply: + description: Power supply of the controller. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + usb { + #address-cells = <1>; + #size-cells = <0>; + + device@1 { + compatible = "usb67b,2775"; + reg = <1>; + reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + }; -- 2.47.3