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

dt-bindings: usb: usb251xb: support usage case without I2C control

Currently, the usb251xb assumes i2c control, but from HW point of
view, the hub supports usage case without any i2c control, I.E we
only want the gpio controls, for example the following dt node:

usb-hub {
compatible = "microchip,usb2512b";
reset-gpios = <&porta 8 GPIO_ACTIVE_LOW>;
};

Modify the dt-binding of usb2512b to support this usage case, and add
the usage example to the examples section.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250825234509.1041-2-jszhang@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jisheng Zhang and committed by
Greg Kroah-Hartman
ea32cd91 771713ae

+8 -1
+8 -1
Documentation/devicetree/bindings/usb/usb251xb.yaml
··· 240 240 241 241 required: 242 242 - compatible 243 - - reg 244 243 245 244 examples: 246 245 - | ··· 267 268 /* correct misplaced usb connectors on port 1,2 */ 268 269 swap-dx-lanes = <1 2>; 269 270 }; 271 + }; 272 + 273 + - | 274 + #include <dt-bindings/gpio/gpio.h> 275 + usb-hub { 276 + /* I2C is not connected */ 277 + compatible = "microchip,usb2512b"; 278 + reset-gpios = <&porta 8 GPIO_ACTIVE_LOW>; 270 279 };