usb: misc: Add Terminus FE1.1 USB2.0 Hub support
Yixun Lan
maintainerv2 cover usb: misc: Add Terminus FE1.1 USB2.0 Hub support
This series try to add support for Terminus FE1.1 USB2.0 Hub.
The FE1.1 Hub provide interesting choice of selecting power supply from either 3.3V or 5V, if need to use integrated 5V to 3.3v regulator, the 5V supply should be used. Otherwise, 5V pin can be set to NO-Connection, and use the 3.3v external supply source.
---
Changes in v2:
- drop patch 1, not add Terminus vendor prefix
- reuse compatible data, no introduce new one
- fix binding
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Yixun Lan (2):
dt-bindings: usb: Add support for Terminus FE1.1s USB2.0 Hub controller
usb: misc: onboard_usb_dev: Add Terminus FE1.1s USB2.0 Hub (1a40:0101)
.../devicetree/bindings/usb/terminus,fe11.yaml | 62 ++++++++++++++++++++++ drivers/usb/misc/onboard_usb_dev.c | 2 + drivers/usb/misc/onboard_usb_dev.h | 1 + 3 files changed, 65 insertions(+)
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260317-03-usb-hub-fe1-356aea478a5b
Best regards,
Signature · 1 line
Yixun Lan <[email protected]>
Yixun Lan
maintainerPATCH v2 1/2 dt-bindings: usb: Add support for Terminus FE1.1s USB2.0 Hub controller
Terminus FE1.1s is USB2.0 protocol compliant 4-port USB HUB, It support MTT (Multiple Transaction Translator) mode, the upstream port supports high-speed 480MHz and full-speed 12MHz modes, also has integrated 5V to 3.3V, 1.8V regulator and Power-On-Reset circuit.
Introduce the DT binding for it.
--- .../devicetree/bindings/usb/terminus,fe11.yaml | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+)
Documentation/devicetree/bindings/usb/terminus,fe11.yaml new file +62 -0
@@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/terminus,fe11.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Terminus FE1.1/1.1S USB 2.0 Hub Controller + +maintainers: + - Yixun Lan <[email protected]> + +allOf: + - $ref: usb-hub.yaml# + +properties: + compatible: + enum: + - usb1a40,0101 + + reg: true + + reset-gpios: + description: + GPIO controlling the RESET#. + + vdd-supply: + description: + Regulator supply to the hub, one of 3.3V or 5V can be chosen. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + patternProperties: + '^port@': + $ref: /schemas/graph.yaml#/properties/port + + properties: + reg: + minimum: 1 + maximum: 4 + +required: + - compatible + - reg + - vdd-supply + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + usb { + #address-cells = <1>; + #size-cells = <0>; + + hub@1 { + compatible = "usb1a40,0101"; + reg = <1>; + reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + vdd-supply = <&vcc_5v>; + }; + };
Signature · 1 line
2.53.0
Re: [PATCH v2 1/2] dt-bindings: usb: Add support for Terminus FE1.1s USB2.0 Hub controller
Quoted 5 lines · Yixun Lan
Terminus FE1.1s is USB2.0 protocol compliant 4-port USB HUB, It support MTT (Multiple Transaction Translator) mode, the upstream port supports high-speed 480MHz and full-speed 12MHz modes, also has integrated 5V to 3.3V, 1.8V regulator and Power-On-Reset circuit.
Quoted 8 lines
Introduce the DT binding for it.
Signed-off-by Yixun Lan <[email protected]>--- .../devicetree/bindings/usb/terminus,fe11.yaml | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+)
Yixun Lan
maintainerPATCH v2 2/2 usb: misc: onboard_usb_dev: Add Terminus FE1.1s USB2.0 Hub (1a40:0101)
In reply to Yixun LanTerminus FE1.1s is USB2.0 protocol compliant 4-port USB HUB, It support MTT (Multiple Transaction Translator) mode, the upstream port supports high-speed 480MHz and full-speed 12MHz modes, also it has integrated 5V to 3.3V/1.8V regulator and Power-On-Reset circuit.
--- drivers/usb/misc/onboard_usb_dev.c | 2 ++ drivers/usb/misc/onboard_usb_dev.h | 1 + 2 files changed, 3 insertions(+)
drivers/usb/misc/onboard_usb_dev.c +2 -0
@@ -570,6 +570,7 @@ static struct platform_driver onboard_dev_driver = {#define VENDOR_ID_MICROCHIP 0x0424#define VENDOR_ID_PARADE 0x1da0#define VENDOR_ID_REALTEK 0x0bda +#define VENDOR_ID_TERMINUS 0x1a40#define VENDOR_ID_TI 0x0451#define VENDOR_ID_VIA 0x2109#define VENDOR_ID_XMOS 0x20B1
@@ -673,6 +674,7 @@ static const struct usb_device_id onboard_dev_id_table[] = { { USB_DEVICE(VENDOR_ID_REALTEK, 0x0414) }, /* RTS5414 USB 3.2 HUB */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x5414) }, /* RTS5414 USB 2.1 HUB */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x0179) }, /* RTL8188ETV 2.4GHz WiFi */ + { USB_DEVICE(VENDOR_ID_TERMINUS, 0x0101) }, /* Terminus FE1.1s 2.0 HUB */ { USB_DEVICE(VENDOR_ID_TI, 0x8025) }, /* TI USB8020B 3.0 HUB */ { USB_DEVICE(VENDOR_ID_TI, 0x8027) }, /* TI USB8020B 2.0 HUB */ { USB_DEVICE(VENDOR_ID_TI, 0x8140) }, /* TI USB8041 3.0 HUB */
drivers/usb/misc/onboard_usb_dev.h +1 -0
@@ -153,6 +153,7 @@ static const struct of_device_id onboard_dev_match[] = { { .compatible = "usbbda,5411", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,414", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,5414", .data = &realtek_rts5411_data, }, + { .compatible = "usb1a40,0101", .data = &vialab_vl817_data, }, { .compatible = "usb1a86,8091", .data = &wch_ch334_data, }, { .compatible = "usb1da0,5511", .data = ¶de_ps5511_data, }, { .compatible = "usb1da0,55a1", .data = ¶de_ps5511_data, },
Signature · 1 line
2.53.0