Skip to content

Commit 0f47027

Browse files
aford173gregkh
authored andcommitted
arm64: dts: renesas: rzg2: Add usb2_clksel to RZ/G2 M/N/H
commit e1076ce upstream Per the reference manual for the RZ/G Series, 2nd Generation, the RZ/G2M, RZ/G2N, and RZ/G2H have a bit that can be set to choose between a crystal oscillator and an external oscillator. Because only boards that need this should enable it, it's marked as disabled by default for backwards compatibility with existing boards. Signed-off-by: Adam Ford <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Sudip Mukherjee <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent eaa7fee commit 0f47027

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

arch/arm64/boot/dts/renesas/r8a774a1.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,21 @@
836836
status = "disabled";
837837
};
838838

839+
usb2_clksel: clock-controller@e6590630 {
840+
compatible = "renesas,r8a774a1-rcar-usb2-clock-sel",
841+
"renesas,rcar-gen3-usb2-clock-sel";
842+
reg = <0 0xe6590630 0 0x02>;
843+
clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>,
844+
<&usb_extal_clk>, <&usb3s0_clk>;
845+
clock-names = "ehci_ohci", "hs-usb-if",
846+
"usb_extal", "usb_xtal";
847+
#clock-cells = <0>;
848+
power-domains = <&sysc R8A774A1_PD_ALWAYS_ON>;
849+
resets = <&cpg 703>, <&cpg 704>;
850+
reset-names = "ehci_ohci", "hs-usb-if";
851+
status = "disabled";
852+
};
853+
839854
usb_dmac0: dma-controller@e65a0000 {
840855
compatible = "renesas,r8a774a1-usb-dmac",
841856
"renesas,usb-dmac";

arch/arm64/boot/dts/renesas/r8a774b1.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,21 @@
709709
status = "disabled";
710710
};
711711

712+
usb2_clksel: clock-controller@e6590630 {
713+
compatible = "renesas,r8a774b1-rcar-usb2-clock-sel",
714+
"renesas,rcar-gen3-usb2-clock-sel";
715+
reg = <0 0xe6590630 0 0x02>;
716+
clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>,
717+
<&usb_extal_clk>, <&usb3s0_clk>;
718+
clock-names = "ehci_ohci", "hs-usb-if",
719+
"usb_extal", "usb_xtal";
720+
#clock-cells = <0>;
721+
power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
722+
resets = <&cpg 703>, <&cpg 704>;
723+
reset-names = "ehci_ohci", "hs-usb-if";
724+
status = "disabled";
725+
};
726+
712727
usb_dmac0: dma-controller@e65a0000 {
713728
compatible = "renesas,r8a774b1-usb-dmac",
714729
"renesas,usb-dmac";

arch/arm64/boot/dts/renesas/r8a774e1.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,21 @@
890890
status = "disabled";
891891
};
892892

893+
usb2_clksel: clock-controller@e6590630 {
894+
compatible = "renesas,r8a774e1-rcar-usb2-clock-sel",
895+
"renesas,rcar-gen3-usb2-clock-sel";
896+
reg = <0 0xe6590630 0 0x02>;
897+
clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>,
898+
<&usb_extal_clk>, <&usb3s0_clk>;
899+
clock-names = "ehci_ohci", "hs-usb-if",
900+
"usb_extal", "usb_xtal";
901+
#clock-cells = <0>;
902+
power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
903+
resets = <&cpg 703>, <&cpg 704>;
904+
reset-names = "ehci_ohci", "hs-usb-if";
905+
status = "disabled";
906+
};
907+
893908
usb_dmac0: dma-controller@e65a0000 {
894909
compatible = "renesas,r8a774e1-usb-dmac",
895910
"renesas,usb-dmac";

0 commit comments

Comments
 (0)