Add USB PHY device tree support for R8A7790/Lager board
Subsystems (2)
v4 cover Add USB PHY device tree support for R8A7790/Lager board
Hello.
Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20140924-v3.17-rc6' tag. Here we add the USB PHY device tree support on the R8A7790/Lager reference board. The patchset requires the USB PHY driver already merged by Kishon and Greg in order to work, so can be applied at last...
[1/2] ARM: shmobile: r8a7790: add USB PHY DT support [2/2] ARM: shmobile: lager: enable USB PHY
WBR, Sergei
PATCH v4 1/2 ARM: shmobile: r8a7790: add USB PHY DT support
Define the R8A7790 generic part of the USB PHY device node. It is up to the board file to enable the device.
---
Changes in version 4:
- refreshed the patch.
Changes in version 3:
- changed subnodes of the USB PHY node to be per-channel;
- changed "renesas,phy-select" property to "reg" in the subnodes, and thus added "#address-cells" and "#size-cells" properties to the parent node;
- moved "#phy-cells" property from the parent node to the subnodes, changing its value to <1>;
- refreshed the patch.
Changes in version 2:
- added subnodes to the USB PHY node;
- refreshed the patch.
arch/arm/boot/dts/r8a7790.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/arm/boot/dts/r8a7790.dtsi +19 -0
@@ -600,6 +600,25 @@ status = "disabled"; }; + usbphy: usb-phy at e6590100 { + compatible = "renesas,usb-phy-r8a7790"; + reg = <0 0xe6590100 0 0x100>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&mstp7_clks R8A7790_CLK_HSUSB>; + clock-names = "usbhs"; + status = "disabled"; + + usb0: usb-channel at 0 { + reg = <0>; + #phy-cells = <1>; + }; + usb2: usb-channel at 2 { + reg = <2>; + #phy-cells = <1>; + }; + }; + clocks { #address-cells = <2>; #size-cells = <2>;
PATCH v4 2/2 ARM: shmobile: lager: enable USB PHY
In reply to Sergei ShtylyovEnable USB PHY device for the Lager board.
---
Changes in version 4:
- refreshed the patch.
Changes in version 3:
- refreshed the patch.
Changes in version 2:
- refreshed the patch.
arch/arm/boot/dts/r8a7790-lager.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +4 -0
@@ -424,6 +424,10 @@ pinctrl-names = "default"; }; +&usbphy { + status = "okay"; +}; + /* composite video input */ &vin1 { pinctrl-0 = <&vin1_pins>;
v4 cover Add USB PHY device tree support for R8A7790/Lager board
In reply to Sergei ShtylyovQuoted 10 lines · Sergei Shtylyov
Hello.
Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20140924-v3.17-rc6' tag. Here we add the USB PHY device tree support on the R8A7790/Lager reference board. The patchset requires the USB PHY driver already merged by Kishon and Greg in order to work, so can be applied at last...[1/2] ARM: shmobile: r8a7790: add USB PHY DT support [2/2] ARM: shmobile: lager: enable USB PHY
Thanks, I have queued these up.