Commit 8f385b67 authored by Neil Armstrong's avatar Neil Armstrong Committed by Felipe Balbi

dt-bindings: usb: amlogic,meson-g12a-usb-ctrl: add the Amlogic GXL and GXM...

dt-bindings: usb: amlogic,meson-g12a-usb-ctrl: add the Amlogic GXL and GXM Families USB Glue Bindings

The Amlogic GXL and GXM is slightly different from the Amlogic G12A Glue.

The GXL SoCs only embeds 2 USB2 PHYs and no USB3 PHYs, and the GXM SoCs
embeds 3 USB2 PHYs.
Reviewed-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent b8803562
...@@ -25,9 +25,13 @@ description: | ...@@ -25,9 +25,13 @@ description: |
The Amlogic A1 embeds a DWC3 USB IP Core configured for USB2 in The Amlogic A1 embeds a DWC3 USB IP Core configured for USB2 in
host-only mode. host-only mode.
The Amlogic GXL & GXM SoCs doesn't embed an USB3 PHY.
properties: properties:
compatible: compatible:
enum: enum:
- amlogic,meson-gxl-usb-ctrl
- amlogic,meson-gxm-usb-ctrl
- amlogic,meson-g12a-usb-ctrl - amlogic,meson-g12a-usb-ctrl
- amlogic,meson-a1-usb-ctrl - amlogic,meson-a1-usb-ctrl
...@@ -41,6 +45,11 @@ properties: ...@@ -41,6 +45,11 @@ properties:
clocks: clocks:
minItems: 1 minItems: 1
maxItems: 3
clock-names:
minItems: 1
maxItems: 3
resets: resets:
minItems: 1 minItems: 1
...@@ -52,10 +61,8 @@ properties: ...@@ -52,10 +61,8 @@ properties:
maxItems: 1 maxItems: 1
phy-names: phy-names:
items: minItems: 1
- const: usb2-phy0 # USB2 PHY0 if USBHOST_A port is used maxItems: 3
- const: usb2-phy1 # USB2 PHY1 if USBOTG_B port is used
- const: usb3-phy0 # USB3 PHY if USB3_0 is used
phys: phys:
minItems: 1 minItems: 1
...@@ -89,6 +96,61 @@ required: ...@@ -89,6 +96,61 @@ required:
- dr_mode - dr_mode
allOf: allOf:
- if:
properties:
compatible:
enum:
- amlogic,meson-g12a-usb-ctrl
then:
properties:
phy-names:
items:
- const: usb2-phy0 # USB2 PHY0 if USBHOST_A port is used
- const: usb2-phy1 # USB2 PHY1 if USBOTG_B port is used
- const: usb3-phy0 # USB3 PHY if USB3_0 is used
- if:
properties:
compatible:
enum:
- amlogic,meson-gxl-usb-ctrl
then:
properties:
clocks:
minItems: 2
clock-names:
items:
- const: usb_ctrl
- const: ddr
phy-names:
items:
- const: usb2-phy0 # USB2 PHY0 if USBHOST_A port is used
- const: usb2-phy1 # USB2 PHY1 if USBOTG_B port is used
required:
- clock-names
- if:
properties:
compatible:
enum:
- amlogic,meson-gxm-usb-ctrl
then:
properties:
clocks:
minItems: 2
clock-names:
items:
- const: usb_ctrl
- const: ddr
phy-names:
items:
- const: usb2-phy0 # USB2 PHY0 if USBHOST_A port is used
- const: usb2-phy1 # USB2 PHY1 if USBOTG_B port is used
- const: usb2-phy2 # USB2 PHY2 if USBOTG_C port is used
required:
- clock-names
- if: - if:
properties: properties:
compatible: compatible:
...@@ -97,6 +159,9 @@ allOf: ...@@ -97,6 +159,9 @@ allOf:
then: then:
properties: properties:
phy-names:
items:
- const: usb2-phy1 # USB2 PHY1 if USBOTG_B port is used
clocks: clocks:
minItems: 3 minItems: 3
clock-names: clock-names:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment