[PATCH v2 5/5] arm64: dts: meson: a1: support USB controller in OTG mode
Martin Blumenstingl
martin.blumenstingl at googlemail.com
Sun Apr 23 10:51:31 PDT 2023
On Tue, Apr 18, 2023 at 1:16 PM Dmitry Rokosov <ddrokosov at sberdevices.ru> wrote:
[...]
> + usb2_phy1: phy at 4000 {
> + compatible = "amlogic,a1-usb2-phy";
> + clocks = <&clkc CLKID_USB_PHY_IN>;
> + clock-names = "xtal";
Out of curiosity since there's also a CLKID_USB_PHY clock (which is
used for the dwc3 controller below):
Do we know that this part of the clock hierarchy is correct? I have no
way to check this myself, so I'm curious if you could verify this
somehow.
[...]
> + dwc2: usb at ff500000 {
> + compatible = "amlogic,meson-a1-usb", "snps,dwc2";
> + reg = <0x0 0xff500000 0x0 0x40000>;
> + interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
> + phys = <&usb2_phy1>;
> + phy-names = "usb2_phy";
Documentation/devicetree/bindings/usb/dwc2.yaml only allows a
"usb2-phy" (dash instead of underscore).
[...]
> + dwc3: usb at ff400000 {
> + compatible = "snps,dwc3";
> + reg = <0x0 0xff400000 0x0 0x100000>;
Note to self: interesting that Amlogic swapped the register location
of the dwc2 and dwc3 controllers since the G12 generation.
More information about the linux-amlogic
mailing list