aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2013-01-25 05:23:57 -0500
committerFelipe Balbi <balbi@ti.com>2013-01-25 05:25:36 -0500
commit01658f0f8d1322dbf94f289aa610731d539bf888 (patch)
tree16bc8fc55d5ef86f062097a9bd28de6c6e8d0dac /Documentation
parent5d3c28b5a42df5ceaa854901ba2cccb76883c77e (diff)
usb: phy: add a new driver for usb part of control module
Added a new driver for the usb part of control module. This has an API to power on the USB2 phy and an API to write to the mailbox depending on whether MUSB has to act in host mode or in device mode. Writing to control module registers for doing the above task which was previously done in omap glue and in omap-usb2 phy will be removed. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/usb/omap-usb.txt30
-rw-r--r--Documentation/devicetree/bindings/usb/usb-phy.txt5
2 files changed, 34 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/usb/omap-usb.txt b/Documentation/devicetree/bindings/usb/omap-usb.txt
index 29a043ecda52..3d78cc2b486e 100644
--- a/Documentation/devicetree/bindings/usb/omap-usb.txt
+++ b/Documentation/devicetree/bindings/usb/omap-usb.txt
@@ -1,4 +1,4 @@
1OMAP GLUE 1OMAP GLUE AND OTHER OMAP SPECIFIC COMPONENTS
2 2
3OMAP MUSB GLUE 3OMAP MUSB GLUE
4 - compatible : Should be "ti,omap4-musb" or "ti,omap3-musb" 4 - compatible : Should be "ti,omap4-musb" or "ti,omap3-musb"
@@ -16,6 +16,10 @@ OMAP MUSB GLUE
16 - power : Should be "50". This signifies the controller can supply upto 16 - power : Should be "50". This signifies the controller can supply upto
17 100mA when operating in host mode. 17 100mA when operating in host mode.
18 18
19Optional properties:
20 - ctrl-module : phandle of the control module this glue uses to write to
21 mailbox
22
19SOC specific device node entry 23SOC specific device node entry
20usb_otg_hs: usb_otg_hs@4a0ab000 { 24usb_otg_hs: usb_otg_hs@4a0ab000 {
21 compatible = "ti,omap4-musb"; 25 compatible = "ti,omap4-musb";
@@ -23,6 +27,7 @@ usb_otg_hs: usb_otg_hs@4a0ab000 {
23 multipoint = <1>; 27 multipoint = <1>;
24 num_eps = <16>; 28 num_eps = <16>;
25 ram_bits = <12>; 29 ram_bits = <12>;
30 ctrl-module = <&omap_control_usb>;
26}; 31};
27 32
28Board specific device node entry 33Board specific device node entry
@@ -31,3 +36,26 @@ Board specific device node entry
31 mode = <3>; 36 mode = <3>;
32 power = <50>; 37 power = <50>;
33}; 38};
39
40OMAP CONTROL USB
41
42Required properties:
43 - compatible: Should be "ti,omap-control-usb"
44 - reg : Address and length of the register set for the device. It contains
45 the address of "control_dev_conf" and "otghs_control" or "phy_power_usb"
46 depending upon omap4 or omap5.
47 - reg-names: The names of the register addresses corresponding to the registers
48 filled in "reg".
49 - ti,type: This is used to differentiate whether the control module has
50 usb mailbox or usb3 phy power. omap4 has usb mailbox in control module to
51 notify events to the musb core and omap5 has usb3 phy power register to
52 power on usb3 phy. Should be "1" if it has mailbox and "2" if it has usb3
53 phy power.
54
55omap_control_usb: omap-control-usb@4a002300 {
56 compatible = "ti,omap-control-usb";
57 reg = <0x4a002300 0x4>,
58 <0x4a00233c 0x4>;
59 reg-names = "control_dev_conf", "otghs_control";
60 ti,type = <1>;
61};
diff --git a/Documentation/devicetree/bindings/usb/usb-phy.txt b/Documentation/devicetree/bindings/usb/usb-phy.txt
index 80d4148cb661..4234105302db 100644
--- a/Documentation/devicetree/bindings/usb/usb-phy.txt
+++ b/Documentation/devicetree/bindings/usb/usb-phy.txt
@@ -8,10 +8,15 @@ Required properties:
8add the address of control module dev conf register until a driver for 8add the address of control module dev conf register until a driver for
9control module is added 9control module is added
10 10
11Optional properties:
12 - ctrl-module : phandle of the control module used by PHY driver to power on
13 the PHY.
14
11This is usually a subnode of ocp2scp to which it is connected. 15This is usually a subnode of ocp2scp to which it is connected.
12 16
13usb2phy@4a0ad080 { 17usb2phy@4a0ad080 {
14 compatible = "ti,omap-usb2"; 18 compatible = "ti,omap-usb2";
15 reg = <0x4a0ad080 0x58>, 19 reg = <0x4a0ad080 0x58>,
16 <0x4a002300 0x4>; 20 <0x4a002300 0x4>;
21 ctrl-module = <&omap_control_usb>;
17}; 22};