Message ID | 20220513105850.310375-4-herve.codina@bootlin.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | Microchip LAN966x USB device support | expand |
On 13/05/2022 12:58, Herve Codina wrote: > Add UDPHS (the USB High Speed Device Port controller) support. > The UDPHS IP present in the lan966x SOC is the same as the one > present in the SAMA5D3 SOC > > Signed-off-by: Herve Codina <herve.codina@bootlin.com> > --- > arch/arm/boot/dts/lan966x.dtsi | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi > index 7d2869648050..4c09f3166d27 100644 > --- a/arch/arm/boot/dts/lan966x.dtsi > +++ b/arch/arm/boot/dts/lan966x.dtsi > @@ -211,6 +211,17 @@ can0: can@e081c000 { > status = "disabled"; > }; > > + udc: udphs@e0808000 { Generic node names, so it looks like usb. For example HCD schema requires it. I am not sure which bindings are used here, but anyway once they might require usb... Best regards, Krzysztof
Hello! On 5/13/22 1:58 PM, Herve Codina wrote: > Add UDPHS (the USB High Speed Device Port controller) support. > The UDPHS IP present in the lan966x SOC is the same as the one > present in the SAMA5D3 SOC > > Signed-off-by: Herve Codina <herve.codina@bootlin.com> > --- > arch/arm/boot/dts/lan966x.dtsi | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi > index 7d2869648050..4c09f3166d27 100644 > --- a/arch/arm/boot/dts/lan966x.dtsi > +++ b/arch/arm/boot/dts/lan966x.dtsi > @@ -211,6 +211,17 @@ can0: can@e081c000 { > status = "disabled"; > }; > > + udc: udphs@e0808000 { Shouldn't it be: udphs: udc@e0808000 { (as the node names should be generic)? [...] MBR, Sergey
Hi Krzysztof, Sergei On Fri, 13 May 2022 14:54:26 +0200 Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > On 13/05/2022 12:58, Herve Codina wrote: > > Add UDPHS (the USB High Speed Device Port controller) support. > > The UDPHS IP present in the lan966x SOC is the same as the one > > present in the SAMA5D3 SOC > > > > Signed-off-by: Herve Codina <herve.codina@bootlin.com> > > --- > > arch/arm/boot/dts/lan966x.dtsi | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi > > index 7d2869648050..4c09f3166d27 100644 > > --- a/arch/arm/boot/dts/lan966x.dtsi > > +++ b/arch/arm/boot/dts/lan966x.dtsi > > @@ -211,6 +211,17 @@ can0: can@e081c000 { > > status = "disabled"; > > }; > > > > + udc: udphs@e0808000 { > > Generic node names, so it looks like usb. For example HCD schema > requires it. I am not sure which bindings are used here, but anyway once > they might require usb... > HCD are related to the Host controller. Here we are talking about a device. In existing bindings related to USB device (or OTG as an OTG can be a host or a device) on several SOCs, we can find: - usb1: gadget@fffa4000 - usb_otg: usb@1c13000 - usb: usb@47400000 - udc: usb@13040000 - usb_otg_hs: usb_otg_hs@4a0ab000 So I will change to udc: usb@e0808000 Is that ok for you ? Regards, Herve
On 20/05/2022 14:37, Herve Codina wrote: >> Generic node names, so it looks like usb. For example HCD schema >> requires it. I am not sure which bindings are used here, but anyway once >> they might require usb... >> > > HCD are related to the Host controller. > Here we are talking about a device. > > In existing bindings related to USB device (or OTG as an OTG can be a > host or a device) on several SOCs, we can find: > - usb1: gadget@fffa4000 > - usb_otg: usb@1c13000 > - usb: usb@47400000 > - udc: usb@13040000 > - usb_otg_hs: usb_otg_hs@4a0ab000 > > > So I will change to > udc: usb@e0808000 > > Is that ok for you ? Yes, I proposed usb. Best regards, Krzysztof
diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi index 7d2869648050..4c09f3166d27 100644 --- a/arch/arm/boot/dts/lan966x.dtsi +++ b/arch/arm/boot/dts/lan966x.dtsi @@ -211,6 +211,17 @@ can0: can@e081c000 { status = "disabled"; }; + udc: udphs@e0808000 { + compatible = "microchip,lan996x-udc", + "atmel,sama5d3-udc"; + reg = <0x00200000 0x80000>, + <0xe0808000 0x400>; + interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clks GCK_GATE_UDPHS>, <&nic_clk>; + clock-names = "pclk", "hclk"; + status = "disabled"; + }; + gpio: pinctrl@e2004064 { compatible = "microchip,lan966x-pinctrl"; reg = <0xe2004064 0xb4>,
Add UDPHS (the USB High Speed Device Port controller) support. The UDPHS IP present in the lan966x SOC is the same as the one present in the SAMA5D3 SOC Signed-off-by: Herve Codina <herve.codina@bootlin.com> --- arch/arm/boot/dts/lan966x.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)