Yoshihiro Shimoda | f3b5a8d | 2015-11-30 10:44:30 +0900 | [diff] [blame] | 1 | * Renesas R-Car generation 3 USB 2.0 PHY |
| 2 | |
| 3 | This file provides information on what the device node for the R-Car generation |
| 4 | 3 USB 2.0 PHY contains. |
| 5 | |
| 6 | Required properties: |
| 7 | - compatible: "renesas,usb2-phy-r8a7795" if the device is a part of an R8A7795 |
| 8 | SoC. |
Yoshihiro Shimoda | 800dcc3 | 2016-08-24 15:49:22 +0900 | [diff] [blame] | 9 | "renesas,usb2-phy-r8a7796" if the device is a part of an R8A7796 |
| 10 | SoC. |
Simon Horman | cde7bc3 | 2016-03-07 10:58:41 +0900 | [diff] [blame] | 11 | "renesas,rcar-gen3-usb2-phy" for a generic R-Car Gen3 compatible device. |
| 12 | |
| 13 | When compatible with the generic version, nodes must list the |
| 14 | SoC-specific version corresponding to the platform first |
| 15 | followed by the generic version. |
| 16 | |
Yoshihiro Shimoda | f3b5a8d | 2015-11-30 10:44:30 +0900 | [diff] [blame] | 17 | - reg: offset and length of the partial USB 2.0 Host register block. |
Yoshihiro Shimoda | f3b5a8d | 2015-11-30 10:44:30 +0900 | [diff] [blame] | 18 | - clocks: clock phandle and specifier pair(s). |
| 19 | - #phy-cells: see phy-bindings.txt in the same directory, must be <0>. |
| 20 | |
| 21 | Optional properties: |
| 22 | To use a USB channel where USB 2.0 Host and HSUSB (USB 2.0 Peripheral) are |
Yoshihiro Shimoda | b956401 | 2016-01-07 18:16:44 +0900 | [diff] [blame] | 23 | combined, the device tree node should set interrupt properties to use the |
| 24 | channel as USB OTG: |
Yoshihiro Shimoda | 9f391c5 | 2015-11-30 10:44:32 +0900 | [diff] [blame] | 25 | - interrupts: interrupt specifier for the PHY. |
Yoshihiro Shimoda | 6dcfd7c | 2016-03-03 19:09:05 +0900 | [diff] [blame] | 26 | - vbus-supply: Phandle to a regulator that provides power to the VBUS. This |
| 27 | regulator will be managed during the PHY power on/off sequence. |
Yoshihiro Shimoda | f3b5a8d | 2015-11-30 10:44:30 +0900 | [diff] [blame] | 28 | |
| 29 | Example (R-Car H3): |
| 30 | |
| 31 | usb-phy@ee080200 { |
Simon Horman | cde7bc3 | 2016-03-07 10:58:41 +0900 | [diff] [blame] | 32 | compatible = "renesas,usb2-phy-r8a7795", "renesas,rcar-gen3-usb2-phy"; |
Yoshihiro Shimoda | b956401 | 2016-01-07 18:16:44 +0900 | [diff] [blame] | 33 | reg = <0 0xee080200 0 0x700>; |
Yoshihiro Shimoda | 9f391c5 | 2015-11-30 10:44:32 +0900 | [diff] [blame] | 34 | interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; |
Yoshihiro Shimoda | 8cf1ffe | 2016-08-24 15:49:21 +0900 | [diff] [blame] | 35 | clocks = <&cpg CPG_MOD 703>; |
Yoshihiro Shimoda | f3b5a8d | 2015-11-30 10:44:30 +0900 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | usb-phy@ee0a0200 { |
Simon Horman | cde7bc3 | 2016-03-07 10:58:41 +0900 | [diff] [blame] | 39 | compatible = "renesas,usb2-phy-r8a7795", "renesas,rcar-gen3-usb2-phy"; |
Yoshihiro Shimoda | f3b5a8d | 2015-11-30 10:44:30 +0900 | [diff] [blame] | 40 | reg = <0 0xee0a0200 0 0x700>; |
Yoshihiro Shimoda | 8cf1ffe | 2016-08-24 15:49:21 +0900 | [diff] [blame] | 41 | clocks = <&cpg CPG_MOD 702>; |
Yoshihiro Shimoda | f3b5a8d | 2015-11-30 10:44:30 +0900 | [diff] [blame] | 42 | }; |