Renesas R-Car USB 2.0 clock selector
Schema identifier ($id): "http://devicetree.org/schemas/clock/renesas,rcar-usb2-clock-sel.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>"
If you connect an external clock to the USB_EXTAL pin only, you should set the clock rate to "usb_extal" node only. If you connect an oscillator to both the USB_XTAL and USB_EXTAL, this module is not needed because this is default setting. (Of course, you can set the clock rates to both "usb_extal" and "usb_xtal" nodes.
Case 1: An external clock connects to R-Car SoC
+----------+ +--- R-Car ---------------------+
|External |---|USB_EXTAL ---> all usb channels|
|clock | |USB_XTAL |
+----------+ +-------------------------------+
In this case, we need this driver with "usb_extal" clock.
Case 2: An oscillator connects to R-Car SoC
+----------+ +--- R-Car ---------------------+
|Oscillator|---|USB_EXTAL -+-> all usb channels|
| |---|USB_XTAL --+ |
+----------+ +-------------------------------+
In this case, we don't need this selector.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"renesas,r8a774a1-rcar-usb2-clock-sel","renesas,r8a774b1-rcar-usb2-clock-sel","renesas,r8a774e1-rcar-usb2-clock-sel","renesas,r8a7795-rcar-usb2-clock-sel","renesas,r8a7796-rcar-usb2-clock-sel","renesas,r8a77961-rcar-usb2-clock-sel"
Item 2
Exact value (
const):"renesas,rcar-gen3-usb2-clock-sel"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 4
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ehci_ohci"
Item 2
Exact value (
const):"hs-usb-if"
Item 3
Exact value (
const):"usb_extal"
Item 4
Exact value (
const):"usb_xtal"
#clock-cells — required here #
Exact value (const): 0
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 2
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ehci_ohci"
Item 2
Exact value (
const):"hs-usb-if"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#clock-cells", "power-domains", "resets", "reset-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7795-cpg-mssr.h>
#include <dt-bindings/power/r8a7795-sysc.h>
usb2_clksel: clock-controller@e6590630 {
compatible = "renesas,r8a7795-rcar-usb2-clock-sel",
"renesas,rcar-gen3-usb2-clock-sel";
reg = <0xe6590630 0x02>;
clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>,
<&usb_extal>, <&usb_xtal>;
clock-names = "ehci_ohci", "hs-usb-if", "usb_extal", "usb_xtal";
#clock-cells = <0>;
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
resets = <&cpg 703>, <&cpg 704>;
reset-names = "ehci_ohci", "hs-usb-if";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 38: RZ/G2M
Line 39: RZ/G2N
Line 40: RZ/G2H
Line 41: R-Car H3
Line 42: R-Car M3-W
Line 43: R-Car M3-W+