xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/phy/brcm,brcmstb-usb-phy.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunBroadcom STB USB PHY
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: should be one of
5*4882a593Smuzhiyun	"brcm,brcmstb-usb-phy"
6*4882a593Smuzhiyun	"brcm,bcm7216-usb-phy"
7*4882a593Smuzhiyun	"brcm,bcm7211-usb-phy"
8*4882a593Smuzhiyun
9*4882a593Smuzhiyun- reg and reg-names properties requirements are specific to the
10*4882a593Smuzhiyun  compatible string.
11*4882a593Smuzhiyun  "brcm,brcmstb-usb-phy":
12*4882a593Smuzhiyun    - reg: 1 or 2 offset and length pairs. One for the base CTRL registers
13*4882a593Smuzhiyun           and an optional pair for systems with USB 3.x support
14*4882a593Smuzhiyun    - reg-names: not specified
15*4882a593Smuzhiyun  "brcm,bcm7216-usb-phy":
16*4882a593Smuzhiyun    - reg: 3 offset and length pairs for CTRL, XHCI_EC and XHCI_GBL
17*4882a593Smuzhiyun           registers
18*4882a593Smuzhiyun    - reg-names: "ctrl", "xhci_ec", "xhci_gbl"
19*4882a593Smuzhiyun  "brcm,bcm7211-usb-phy":
20*4882a593Smuzhiyun    - reg: 5 offset and length pairs for CTRL, XHCI_EC, XHCI_GBL,
21*4882a593Smuzhiyun           USB_PHY and USB_MDIO registers and an optional pair
22*4882a593Smuzhiyun	   for the BDC registers
23*4882a593Smuzhiyun    - reg-names: "ctrl", "xhci_ec", "xhci_gbl", "usb_phy", "usb_mdio", "bdc_ec"
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun- #phy-cells: Shall be 1 as it expects one argument for setting
26*4882a593Smuzhiyun	      the type of the PHY. Possible values are:
27*4882a593Smuzhiyun	      - PHY_TYPE_USB2 for USB1.1/2.0 PHY
28*4882a593Smuzhiyun	      - PHY_TYPE_USB3 for USB3.x PHY
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunOptional Properties:
31*4882a593Smuzhiyun- clocks : clock phandles.
32*4882a593Smuzhiyun- clock-names: String, clock name.
33*4882a593Smuzhiyun- interrupts: wakeup interrupt
34*4882a593Smuzhiyun- interrupt-names: "wakeup"
35*4882a593Smuzhiyun- brcm,ipp: Boolean, Invert Port Power.
36*4882a593Smuzhiyun  Possible values are: 0 (Don't invert), 1 (Invert)
37*4882a593Smuzhiyun- brcm,ioc: Boolean, Invert Over Current detection.
38*4882a593Smuzhiyun  Possible values are: 0 (Don't invert), 1 (Invert)
39*4882a593Smuzhiyun- dr_mode: String, PHY Device mode.
40*4882a593Smuzhiyun  Possible values are: "host", "peripheral ", "drd" or "typec-pd"
41*4882a593Smuzhiyun  If this property is not defined, the phy will default to "host" mode.
42*4882a593Smuzhiyun- brcm,syscon-piarbctl: phandle to syscon for handling config registers
43*4882a593SmuzhiyunNOTE: one or both of the following two properties must be set
44*4882a593Smuzhiyun- brcm,has-xhci: Boolean indicating the phy has an XHCI phy.
45*4882a593Smuzhiyun- brcm,has-eohci: Boolean indicating the phy has an EHCI/OHCI phy.
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun
48*4882a593SmuzhiyunExample:
49*4882a593Smuzhiyun
50*4882a593Smuzhiyunusbphy_0: usb-phy@f0470200 {
51*4882a593Smuzhiyun	reg = <0xf0470200 0xb8>,
52*4882a593Smuzhiyun		<0xf0471940 0x6c0>;
53*4882a593Smuzhiyun	compatible = "brcm,brcmstb-usb-phy";
54*4882a593Smuzhiyun	#phy-cells = <1>;
55*4882a593Smuzhiyun	dr_mode = "host"
56*4882a593Smuzhiyun	brcm,ioc = <1>;
57*4882a593Smuzhiyun	brcm,ipp = <1>;
58*4882a593Smuzhiyun	brcm,has-xhci;
59*4882a593Smuzhiyun	brcm,has-eohci;
60*4882a593Smuzhiyun	clocks = <&usb20>, <&usb30>;
61*4882a593Smuzhiyun	clock-names = "sw_usb", "sw_usb3";
62*4882a593Smuzhiyun};
63*4882a593Smuzhiyun
64*4882a593Smuzhiyunusb-phy@29f0200 {
65*4882a593Smuzhiyun	reg = <0x29f0200 0x200>,
66*4882a593Smuzhiyun		<0x29c0880 0x30>,
67*4882a593Smuzhiyun		<0x29cc100 0x534>,
68*4882a593Smuzhiyun		<0x2808000 0x24>,
69*4882a593Smuzhiyun		<0x2980080 0x8>;
70*4882a593Smuzhiyun	reg-names = "ctrl",
71*4882a593Smuzhiyun		"xhci_ec",
72*4882a593Smuzhiyun		"xhci_gbl",
73*4882a593Smuzhiyun		"usb_phy",
74*4882a593Smuzhiyun		"usb_mdio";
75*4882a593Smuzhiyun	brcm,ioc = <0x0>;
76*4882a593Smuzhiyun	brcm,ipp = <0x0>;
77*4882a593Smuzhiyun	compatible = "brcm,bcm7211-usb-phy";
78*4882a593Smuzhiyun	interrupts = <0x30>;
79*4882a593Smuzhiyun	interrupt-parent = <&vpu_intr1_nosec_intc>;
80*4882a593Smuzhiyun	interrupt-names = "wake";
81*4882a593Smuzhiyun	#phy-cells = <0x1>;
82*4882a593Smuzhiyun	brcm,has-xhci;
83*4882a593Smuzhiyun	syscon-piarbctl = <&syscon_piarbctl>;
84*4882a593Smuzhiyun	clocks = <&scmi_clk 256>;
85*4882a593Smuzhiyun	clock-names = "sw_usb";
86*4882a593Smuzhiyun};
87