Message ID | 20250407-b4-k1-usb3-v3-2-v1-1-bf0bcc41c9ba@whut.edu.cn (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Add USB3.0 PHY and host controller support for SpacemiT K1 SoC | expand |
On 07/04/2025 14:38, Ze Huang wrote: > + > +properties: > + compatible: > + const: spacemit,k1-usb2-phy > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + "#phy-cells": > + const: 0 > + No supplies? No resets? Are you sure hardware does not use them? Best regards, Krzysztof
On 4/7/25 9:18 PM, Krzysztof Kozlowski wrote: > On 07/04/2025 14:38, Ze Huang wrote: >> + >> +properties: >> + compatible: >> + const: spacemit,k1-usb2-phy >> + >> + reg: >> + maxItems: 1 >> + >> + clocks: >> + maxItems: 1 >> + >> + "#phy-cells": >> + const: 0 >> + > No supplies? No resets? Are you sure hardware does not use them? No resets are used for the USB 2.0 PHY, but there is a VBUS supply, which I included in the DWC3 glue nodes. > > Best regards, > Krzysztof > >
On Mon, 07 Apr 2025 20:38:46 +0800, Ze Huang wrote: > Add support for USB2 PHY found on SpacemiT K1 SoC. > > Signed-off-by: Ze Huang <huangze@whut.edu.cn> > --- > .../devicetree/bindings/phy/spacemit,usb2-phy.yaml | 40 ++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
diff --git a/Documentation/devicetree/bindings/phy/spacemit,usb2-phy.yaml b/Documentation/devicetree/bindings/phy/spacemit,usb2-phy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ea999cff9c250b144dd049e5ac3c084b22bd56ea --- /dev/null +++ b/Documentation/devicetree/bindings/phy/spacemit,usb2-phy.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/spacemit,usb2-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SpacemiT K1 SoC USB 2.0 PHY + +maintainers: + - Ze Huang <huangze@whut.edu.cn> + +properties: + compatible: + const: spacemit,k1-usb2-phy + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - "#phy-cells" + +additionalProperties: false + +examples: + - | + usb-phy@c09c0000 { + compatible = "spacemit,k1-usb2-phy"; + reg = <0xc09c0000 0x200>; + clocks = <&syscon_apmu 15>; + #phy-cells = <0>; + };
Add support for USB2 PHY found on SpacemiT K1 SoC. Signed-off-by: Ze Huang <huangze@whut.edu.cn> --- .../devicetree/bindings/phy/spacemit,usb2-phy.yaml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+)