Samsung Exynos SoC USB 3.0 DRD PHY USB 2.0 PHY
Schema identifier ($id): "http://devicetree.org/schemas/phy/samsung,usb3-drd-phy.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Marek Szyprowski <m.szyprowski@samsung.com>", "Sylwester Nawrocki <s.nawrocki@samsung.com>"
For samsung,exynos5250-usbdrd-phy and samsung,exynos5420-usbdrd-phy
compatible PHYs, the second cell in the PHY specifier identifies the
PHY id, which is interpreted as follows::
0 - UTMI+ type phy,
1 - PIPE3 type phy.
For SoCs like Exynos5420 having multiple USB 3.0 DRD PHY controllers, 'usbdrd_phy' nodes should have numbered alias in the aliases node, in the form of usbdrdphyN, N = 0, 1... (depending on number of controllers).
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "google,gs101-usb31drd-phy", "samsung,exynos2200-usb32drd-phy", "samsung,exynos5250-usbdrd-phy", "samsung,exynos5420-usbdrd-phy", "samsung,exynos5433-usbdrd-phy", "samsung,exynos7-usbdrd-phy", "samsung,exynos7870-usbdrd-phy", "samsung,exynos850-usbdrd-phy", "samsung,exynos990-usbdrd-phy", "samsung,exynosautov920-usb31drd-combo-ssphy", "samsung,exynosautov920-usbdrd-combo-hsphy", "samsung,exynosautov920-usbdrd-phy"
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
Typically two clocks:
- Main PHY clock (same as USB DRD controller i.e. DWC3 IP clock), used
for register access.
- PHY reference clock (usually crystal clock), used for PHY operations,
associated by phy name. It is used to determine bit values for clock
settings register. For Exynos5420 this is given as 'sclk_usbphy30'
in the CMU. It's not needed for Exynos2200.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
#phy-cells — required here #
Exact value (const): 1
phys — not listed as required here #
Maximum number of items (maxItems): 1
USBDRD-underlying high-speed PHY
phy-names — not listed as required here #
Exact value (const): "hs"
port — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Any connector to the data bus of this controller should be modelled using the OF graph bindings specified.
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
reg-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"phy"
Item 2
Exact value (
const):"pcs"
Item 3
Exact value (
const):"pma"
samsung,pmu-syscon — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to PMU system controller interface.
vbus-supply — not listed as required here #
VBUS power source.
vbus-boost-supply — not listed as required here #
VBUS Boost 5V power source.
pll-supply — not listed as required here #
Power supply for the USB PLL.
dvdd-usb20-supply — not listed as required here #
DVDD power supply for the USB 2.0 phy.
vddh-usb20-supply — not listed as required here #
VDDh power supply for the USB 2.0 phy.
vdd33-usb20-supply — not listed as required here #
3.3V power supply for the USB 2.0 phy.
vdda-usbdp-supply — not listed as required here #
VDDa power supply for the USB DP phy.
vddh-usbdp-supply — not listed as required here #
VDDh power supply for the USB DP phy.
dvdd-supply — not listed as required here #
0.75V power supply for the USB phy.
vdd18-supply — not listed as required here #
1.8V power supply for the USB phy.
vdd33-supply — not listed as required here #
3.3V power supply for the USB phy.
Required in this object (required): "compatible", "clocks", "clock-names", "#phy-cells", "reg", "samsung,pmu-syscon"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"google,gs101-usb31drd-phy"When the condition matches (
then) #All of these rules must match (
allOf)Rule 1
Shared schema rule (
$ref):/schemas/usb/usb-switch.yaml#Rule 2
Shared schema rule (
$ref):/schemas/usb/usb-switch-ports.yaml#Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
Gate of main PHY clock
Item 2
Gate of PHY reference clock
Item 3
Gate of control interface AXI clock
Item 4
Gate of control interface APB clock
Item 5
Gate of SCL APB clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"phy"Item 2
Exact value (
const):"ref"Item 3
Exact value (
const):"ctrl_aclk"Item 4
Exact value (
const):"ctrl_pclk"Item 5
Exact value (
const):"scl_pclk"
reg— not listed as required hereMinimum number of items (
minItems):3
reg-names— required hereMinimum number of items (
minItems):3Required in this object (
required):"reg-names","orientation-switch","port","pll-supply","dvdd-usb20-supply","vddh-usb20-supply","vdd33-usb20-supply","vdda-usbdp-supply","vddh-usbdp-supply"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"phy"
reg— not listed as required hereMaximum number of items (
maxItems):1
reg-names— not listed as required hereMaximum number of items (
maxItems):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"samsung,exynos5433-usbdrd-phy","samsung,exynos7-usbdrd-phy"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):5Maximum number of items (
maxItems):5
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"phy"Item 2
Exact value (
const):"ref"Item 3
Exact value (
const):"phy_utmi"Item 4
Exact value (
const):"phy_pipe"Item 5
Exact value (
const):"itp"
reg— not listed as required hereMaximum number of items (
maxItems):1
reg-names— not listed as required hereMaximum number of items (
maxItems):1
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"samsung,exynos5250-usbdrd-phy","samsung,exynos5420-usbdrd-phy","samsung,exynos7870-usbdrd-phy","samsung,exynos850-usbdrd-phy","samsung,exynos990-usbdrd-phy","samsung,exynosautov920-usb31drd-combo-ssphy","samsung,exynosautov920-usbdrd-combo-hsphy","samsung,exynosautov920-usbdrd-phy"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"phy"Item 2
Exact value (
const):"ref"
reg— not listed as required hereMaximum number of items (
maxItems):1
reg-names— not listed as required hereMaximum number of items (
maxItems):1
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"samsung,exynosautov920-usb31drd-combo-ssphy","samsung,exynosautov920-usbdrd-combo-hsphy","samsung,exynosautov920-usbdrd-phy"When the condition matches (
then) #Required in this object (
required):"dvdd-supply","vdd18-supply"When the condition does not match (
else) #Properties and child nodes (
properties)
dvdd-supply— not listed as required here
false— Not permitted by this property rule.
vdd18-supply— not listed as required here
false— Not permitted by this property rule.
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"samsung,exynosautov920-usbdrd-combo-hsphy","samsung,exynosautov920-usbdrd-phy"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
vdd33-supply— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/exynos5420.h>
phy@12100000 {
compatible = "samsung,exynos5420-usbdrd-phy";
reg = <0x12100000 0x100>;
#phy-cells = <1>;
clocks = <&clock CLK_USBD300>, <&clock CLK_SCLK_USBPHY300>;
clock-names = "phy", "ref";
samsung,pmu-syscon = <&pmu_system_controller>;
vbus-supply = <&usb300_vbus_reg>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause