diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2021-06-07 20:39:04 +0300 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2021-07-19 11:51:34 +0300 |
commit | d18fb00dd0885d547ca67eab88f72e4cc382a4e5 (patch) | |
tree | acc7bdaf5c116def7112b810359311d298e204cc /arch/arm64/boot/dts/renesas/salvator-common.dtsi | |
parent | 90a4ee4ba5cf5aae491bae4ad6fe75e05d28cc22 (diff) | |
download | linux-d18fb00dd0885d547ca67eab88f72e4cc382a4e5.tar.xz |
arm64: dts: renesas: salvator-x(s): Factor out USB ch2 parts
Move the common parts related to the third USB2 interface on
Salvator-X(S) boards to salvator-common.dtsi, to reduce current and
avoid future duplication of board descriptions.
As this interface is not present on all SoCs that can be found on
Salvator-X(S), but only on R-Car H3, its descriptions are protected by
the preprocessor symbol SOC_HAS_USB2_CH2, defined in r8a77951.dtsi.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/ebc434502fc899b1f9d9640f560c3eaab6bb0927.1623087028.git.geert+renesas@glider.be
Diffstat (limited to 'arch/arm64/boot/dts/renesas/salvator-common.dtsi')
-rw-r--r-- | arch/arm64/boot/dts/renesas/salvator-common.dtsi | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/renesas/salvator-common.dtsi b/arch/arm64/boot/dts/renesas/salvator-common.dtsi index 848563d93546..eb1f3b82300b 100644 --- a/arch/arm64/boot/dts/renesas/salvator-common.dtsi +++ b/arch/arm64/boot/dts/renesas/salvator-common.dtsi @@ -1023,3 +1023,27 @@ status = "okay"; }; + +#ifdef SOC_HAS_USB2_CH2 +&ehci2 { + status = "okay"; +}; + +&ohci2 { + status = "okay"; +}; + +&pfc { + usb2_pins: usb2 { + groups = "usb2"; + function = "usb2"; + }; +}; + +&usb2_phy2 { + pinctrl-0 = <&usb2_pins>; + pinctrl-names = "default"; + + status = "okay"; +}; +#endif /* SOC_HAS_USB2_CH2 */ |