Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1617078

Re: [PATCH] ARM: dts: armada-38x: label USB and SATA nodes

From Gregory CLEMENT <gregory.clement@free-electrons.com>
Newsgroups linux.kernel
Subject Re: [PATCH] ARM: dts: armada-38x: label USB and SATA nodes
Date 2017-04-05 18:00 +0200
Message-ID <tsVvH-4x0-3@gated-at.bofh.it> (permalink)
References <tqZtM-1Du-27@gated-at.bofh.it> <tr842-7ax-15@gated-at.bofh.it> <tr8GJ-7Fk-13@gated-at.bofh.it> <tr9t7-8dB-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Andrew,
 
 On ven., mars 31 2017, Andrew Lunn <andrew@lunn.ch> wrote:

> On Fri, Mar 31, 2017 at 07:39:20PM +0200, Ralph Sennhauser wrote:
>> On Fri, 31 Mar 2017 18:50:15 +0200
>> Andrew Lunn <andrew@lunn.ch> wrote:
>> 
>> > > -			sata@a8000 {
>> > > +			satac0: sata@a8000 {  
>> > 
>> > Hi Ralph
>> > 
>> > Why the c in satac0?
>> 
>> For controller and to not conflict with a use case of sata0 for a port,
>> similarly to pciec and pcie1. See armada-385-synology-ds116.dts.
>
> :~/linux/arch/arm/boot/dts$ ls *ds116*
> ls: cannot access '*ds116*': No such file or directory
>
> But anyway, a few boards seem to solve this by calling the controller
> node ahci0: and the port sata0:
>
>> > > -			usb3@f0000 {
>> > > +			usb3_0: usb3@f0000 {
>> > >  				compatible =
>> > > "marvell,armada-380-xhci"; reg = <0xf0000 0x4000>,<0xf4000 0x4000>;
>> > >  				interrupts = <GIC_SPI 16
>> > > IRQ_TYPE_LEVEL_HIGH>; @@ -598,7 +598,7 @@
>> > >  				status = "disabled";
>> > >  			};
>> > >  
>> > > -			usb3@f8000 {
>> > > +			usb3_1: usb3@f8000 {
>> > >  				compatible =
>> > > "marvell,armada-380-xhci"; reg = <0xf8000 0x4000>,<0xfc000 0x4000>;
>> > >  				interrupts = <GIC_SPI 17
>> > > IRQ_TYPE_LEVEL_HIGH>;  
>> > 
>> > I can understand what you are saying. But does anybody else care? Are
>> > there other .dtsi files differentiating between USB 1.1, 2 and 3?
>> 
>> It's handled differently where ever I looked, some do some don't. A
>> case for distinguishing USB 2.0 and USB 3.0 like this is
>> armada-388-gp.dts.

Actually I care and I found confusing calling usb2 the second usb port if
it is controlled by an USB3 controller.

>
> Humm...
>
>                         /* CON4 */
>                         usb@58000 {
>                                 vcc-supply = <&reg_usb2_0_vbus>;
>                                 status = "okay";
>                         };
>
>
> 			/* CON5 */
>                         usb3@f0000 {
>                                 usb-phy = <&usb2_1_phy>;
>                                 status = "okay";
>                         };
>
>                         /* CON7 */
>                         usb3@f8000 {
>                                 usb-phy = <&usb3_phy>;
>                                 status = "okay";
>                         };
>
> Is this clear? Is CON5 a USB 3 host, but has a USB 2 PHY connected to
> it? CON7 is the only true USB 3 port? I think some comments written in

I can answer it: CON5 is indeed an USB3 host with a USB2 PHY connected
to it so we can use it only as an USB2. And indeed CON7 is the only true
USB3 port.

> schwiizerdütsch would be clearre.:-)

Actually all your assumption were correct so maybe it is not as
confusing as it looks! :)  But I can add a comment if needed.

Gregory

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] ARM: dts: armada-38x: label USB and SATA nodes Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-31 09:50 +0200
  Re: [PATCH] ARM: dts: armada-38x: label USB and SATA nodes Andrew Lunn <andrew@lunn.ch> - 2017-03-31 19:00 +0200
    Re: [PATCH] ARM: dts: armada-38x: label USB and SATA nodes Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-31 19:40 +0200
      Re: [PATCH] ARM: dts: armada-38x: label USB and SATA nodes Andrew Lunn <andrew@lunn.ch> - 2017-03-31 20:30 +0200
        Re: [PATCH] ARM: dts: armada-38x: label USB and SATA nodes Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-04-01 10:20 +0200
        Re: [PATCH] ARM: dts: armada-38x: label USB and SATA nodes Gregory CLEMENT <gregory.clement@free-electrons.com> - 2017-04-05 18:00 +0200

csiph-web