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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: usb: Add binding for WCH CH334/CH335 hub controller

The WCH CH334/CH335[0] are USB2.0 protocol compliant 4-port USB HUB
controller chips, supporting USB2.0 high-speed and full-speed for
upstream ports, and USB2.0 high-speed 480Mbps, full-speed 12Mbps and
low-speed 1.5Mbps for downstream ports, supporting not only low-cost STT
mode (single TT schedules 4 downstream ports in time share), but also
supports high performance MTT mode (4 TTs each corresponding to 1 port,
concurrent processing).

Add a device tree binding for it.

[0]: https://www.wch-ic.com/downloads/CH334DS1_PDF.html

Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20260113095827.115-2-kernel@airkyi.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Chaoyi Chen and committed by
Greg Kroah-Hartman
00fcc9c8 9accc68b

+65
+65
Documentation/devicetree/bindings/usb/wch,ch334.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/usb/wch,ch334.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: WCH CH334/CH335 USB 2.0 Hub Controller 8 + 9 + maintainers: 10 + - Chaoyi Chen <kernel@airkyi.com> 11 + 12 + allOf: 13 + - $ref: usb-hub.yaml# 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - usb1a86,8091 19 + 20 + reg: true 21 + 22 + reset-gpios: 23 + description: GPIO controlling the RESET# pin. 24 + 25 + vdd33-supply: 26 + description: 27 + The regulator that provides 3.3V core power to the hub. 28 + 29 + v5-supply: 30 + description: 31 + The regulator that provides 3.3V or 5V power to the hub. 32 + 33 + ports: 34 + $ref: /schemas/graph.yaml#/properties/ports 35 + 36 + patternProperties: 37 + '^port@': 38 + $ref: /schemas/graph.yaml#/properties/port 39 + 40 + properties: 41 + reg: 42 + minimum: 1 43 + maximum: 4 44 + 45 + required: 46 + - compatible 47 + - reg 48 + 49 + additionalProperties: false 50 + 51 + examples: 52 + - | 53 + #include <dt-bindings/gpio/gpio.h> 54 + usb { 55 + #address-cells = <1>; 56 + #size-cells = <0>; 57 + 58 + hub: hub@1 { 59 + compatible = "usb1a86,8091"; 60 + reg = <1>; 61 + reset-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; 62 + v5-supply = <&vcc_3v3>; 63 + vdd33-supply = <&vcc_3v3>; 64 + }; 65 + };