xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/usb251xb.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunMicrochip USB 2.0 Hi-Speed Hub Controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe device node for the configuration of a Microchip USB251x/xBi USB 2.0
4*4882a593SmuzhiyunHi-Speed Controller.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunRequired properties :
7*4882a593Smuzhiyun - compatible : Should be "microchip,usb251xb" or one of the specific types:
8*4882a593Smuzhiyun	"microchip,usb2512b", "microchip,usb2512bi", "microchip,usb2513b",
9*4882a593Smuzhiyun	"microchip,usb2513bi", "microchip,usb2514b", "microchip,usb2514bi",
10*4882a593Smuzhiyun	"microchip,usb2517", "microchip,usb2517i", "microchip,usb2422"
11*4882a593Smuzhiyun - reg : I2C address on the selected bus (default is <0x2C>)
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunOptional properties :
14*4882a593Smuzhiyun - reset-gpios : Should specify the gpio for hub reset
15*4882a593Smuzhiyun - vdd-supply : Should specify the phandle to the regulator supplying vdd
16*4882a593Smuzhiyun - skip-config : Skip Hub configuration, but only send the USB-Attach command
17*4882a593Smuzhiyun - vendor-id : Set USB Vendor ID of the hub (16 bit, default is 0x0424)
18*4882a593Smuzhiyun - product-id : Set USB Product ID of the hub (16 bit, default depends on type)
19*4882a593Smuzhiyun - device-id : Set USB Device ID of the hub (16 bit, default is 0x0bb3)
20*4882a593Smuzhiyun - language-id : Set USB Language ID (16 bit, default is 0x0000)
21*4882a593Smuzhiyun - manufacturer : Set USB Manufacturer string (max 31 characters long)
22*4882a593Smuzhiyun - product : Set USB Product string (max 31 characters long)
23*4882a593Smuzhiyun - serial : Set USB Serial string (max 31 characters long)
24*4882a593Smuzhiyun - {bus,self}-powered : selects between self- and bus-powered operation
25*4882a593Smuzhiyun	(boolean, default is self-powered)
26*4882a593Smuzhiyun - disable-hi-speed : disable USB Hi-Speed support (boolean)
27*4882a593Smuzhiyun - {multi,single}-tt : selects between multi- and single-transaction-translator
28*4882a593Smuzhiyun	(boolean, default is multi-tt)
29*4882a593Smuzhiyun - disable-eop : disable End of Packet generation in full-speed mode (boolean)
30*4882a593Smuzhiyun - {ganged,individual}-sensing : select over-current sense type in self-powered
31*4882a593Smuzhiyun	mode (boolean, default is individual)
32*4882a593Smuzhiyun - {ganged,individual}-port-switching : select port power switching mode
33*4882a593Smuzhiyun	(boolean, default is individual)
34*4882a593Smuzhiyun - dynamic-power-switching : enable auto-switching from self- to bus-powered
35*4882a593Smuzhiyun	operation if the local power source is removed or unavailable (boolean)
36*4882a593Smuzhiyun - oc-delay-us : Delay time (in microseconds) for filtering the over-current
37*4882a593Smuzhiyun	sense inputs. Valid values are 100, 4000, 8000 (default) and 16000. If
38*4882a593Smuzhiyun	an invalid value is given, the default is used instead.
39*4882a593Smuzhiyun - compound-device : indicate the hub is part of a compound device (boolean)
40*4882a593Smuzhiyun - port-mapping-mode : enable port mapping mode (boolean)
41*4882a593Smuzhiyun - led-{usb,speed}-mode : led usb/speed indication mode selection
42*4882a593Smuzhiyun	(boolean, default is speed mode)
43*4882a593Smuzhiyun - string-support : enable string descriptor support (required for manufacturer,
44*4882a593Smuzhiyun	product and serial string configuration)
45*4882a593Smuzhiyun - non-removable-ports : Should specify the ports which have a non-removable
46*4882a593Smuzhiyun	device connected.
47*4882a593Smuzhiyun - sp-disabled-ports : Specifies the ports which will be self-power disabled
48*4882a593Smuzhiyun - bp-disabled-ports : Specifies the ports which will be bus-power disabled
49*4882a593Smuzhiyun - sp-max-total-current-microamp: Specifies max current consumed by the hub
50*4882a593Smuzhiyun	from VBUS when operating in self-powered hub. It includes the hub
51*4882a593Smuzhiyun	silicon along with all associated circuitry including a permanently
52*4882a593Smuzhiyun	attached peripheral (range: 0 - 100000 uA, default 1000 uA)
53*4882a593Smuzhiyun - bp-max-total-current-microamp: Specifies max current consumed by the hub
54*4882a593Smuzhiyun	from VBUS when operating in self-powered hub. It includes the hub
55*4882a593Smuzhiyun	silicon along with all associated circuitry including a permanently
56*4882a593Smuzhiyun	attached peripheral (range: 0 - 510000 uA, default 100000 uA)
57*4882a593Smuzhiyun - sp-max-removable-current-microamp: Specifies max current consumed by the hub
58*4882a593Smuzhiyun	from VBUS when operating in self-powered hub. It includes the hub
59*4882a593Smuzhiyun	silicon along with all associated circuitry excluding a permanently
60*4882a593Smuzhiyun	attached peripheral (range: 0 - 100000 uA, default 1000 uA)
61*4882a593Smuzhiyun - bp-max-removable-current-microamp: Specifies max current consumed by the hub
62*4882a593Smuzhiyun	from VBUS when operating in self-powered hub. It includes the hub
63*4882a593Smuzhiyun	silicon along with all associated circuitry excluding a permanently
64*4882a593Smuzhiyun	attached peripheral (range: 0 - 510000 uA, default 100000 uA)
65*4882a593Smuzhiyun - power-on-time-ms : Specifies the time it takes from the time the host
66*4882a593Smuzhiyun	initiates the power-on sequence to a port until the port has adequate
67*4882a593Smuzhiyun	power. The value is given in ms in a 0 - 510 range (default is 100ms).
68*4882a593Smuzhiyun - swap-dx-lanes : Specifies the ports which will swap the differential-pair
69*4882a593Smuzhiyun	(D+/D-), default is not-swapped.
70*4882a593Smuzhiyun
71*4882a593SmuzhiyunExamples:
72*4882a593Smuzhiyun	usb2512b@2c {
73*4882a593Smuzhiyun		compatible = "microchip,usb2512b";
74*4882a593Smuzhiyun		reg = <0x2c>;
75*4882a593Smuzhiyun		reset-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
76*4882a593Smuzhiyun	};
77*4882a593Smuzhiyun
78*4882a593Smuzhiyun	usb2514b@2c {
79*4882a593Smuzhiyun		compatible = "microchip,usb2514b";
80*4882a593Smuzhiyun		reg = <0x2c>;
81*4882a593Smuzhiyun		vendor-id = /bits/ 16 <0x0000>;
82*4882a593Smuzhiyun		product-id = /bits/ 16 <0x0000>;
83*4882a593Smuzhiyun		string-support;
84*4882a593Smuzhiyun		manufacturer = "Foo";
85*4882a593Smuzhiyun		product = "Foo-Bar";
86*4882a593Smuzhiyun		serial = "1234567890A";
87*4882a593Smuzhiyun		/* correct misplaced usb connectors on port 1,2 */
88*4882a593Smuzhiyun		swap-dx-lanes = <1 2>;
89*4882a593Smuzhiyun	};
90