From: Lubomir Rintel <lkundrak@v3.sk>
To: Olivier Blin <dev@blino.org>
Cc: linux-rpi-kernel@lists.infradead.org, devicetree@vger.kernel.org,
Arnd Bergmann <arnd@arndb.de>,
linux-kernel@vger.kernel.org,
Peter Chen <peter.chen@freescale.com>,
Stephen Warren <swarren@wwwdotorg.org>,
popcornmix <popcornmix@gmail.com>
Subject: Re: [PATCH v2 1/2] ARM: bcm2835: dt: Add the ethernet to the device trees
Date: Fri, 05 Feb 2016 15:55:26 +0100 [thread overview]
Message-ID: <1454684126.2779.2.camel@v3.sk> (raw)
In-Reply-To: <m3fux76xqa.fsf@euphor.blino.org>
Hi Olivier,
On Fri, 2016-02-05 at 15:25 +0100, Olivier Blin wrote:
> Lubomir Rintel <lkundrak@v3.sk> writes:
>
> > diff --git a/arch/arm/boot/dts/bcm2836-rpi-2-b.dts
> > b/arch/arm/boot/dts/bcm2836-rpi-2-b.dts
> [...]
> > @@ -33,3 +37,17 @@
> > brcm,function = <BCM2835_FSEL_ALT0>;
> > };
> > };
> > +
> > +&usb {
> > + usb1@1 {
> > + compatible = "usb0424,9514";
> > + reg = <01>;
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > +
> > + ethernet: usbether@1 {
> > + compatible = "usb0424,ec00";
> > + reg = <01>;
> > + };
> > + };
> > +};
>
> Hi,
>
> This works for me, after making sure that your u-boot patch gets a
> chance to be run (unset usbethaddr from u-boot).
Thanks for that.
> Though, I am not really DT-literate, but shouldn't the ethernet block
> use the PID from the ethernet device?
> The usbether device is 9514 on RPi2, while ec00 is the hub.
Are you sure? I didn't check on RPi2, but I check the Models B and B+
and the ethernet device was 0xec00 on both. The driver attaches to that
product ID:
[lkundrak@odvarok linux]$ modinfo smsc95xx |grep EC
alias: usb:v0424pEC00d*dc*dsc*dp*ic*isc*ip*in*
[lkundrak@odvarok linux]$ modinfo smsc95xx |grep 9514
[lkundrak@odvarok linux]$
> Your patch works, but this works as well after swapping the PIDs.
>
> Thanks
Take care
Lubo
next prev parent reply other threads:[~2016-02-05 14:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-04 7:36 [PATCH v2 0/2] Set the Raspberry Pi Ethernet MAC address Lubomir Rintel
2016-02-04 7:36 ` [PATCH v2 1/2] ARM: bcm2835: dt: Add the ethernet to the device trees Lubomir Rintel
2016-02-04 8:22 ` Peter Chen
2016-02-05 14:25 ` Olivier Blin
2016-02-05 14:55 ` Lubomir Rintel [this message]
2016-02-05 15:07 ` Olivier Blin
2016-02-06 4:13 ` Stephen Warren
2016-04-28 12:52 ` Olivier Blin
2016-04-28 16:26 ` Stefan Wahren
2016-04-28 16:29 ` Lubomir Rintel
2016-02-04 7:36 ` [PATCH 2/2] net/smscx5xx: use the device tree for mac address Lubomir Rintel
2016-02-04 8:24 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1454684126.2779.2.camel@v3.sk \
--to=lkundrak@v3.sk \
--cc=arnd@arndb.de \
--cc=dev@blino.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=peter.chen@freescale.com \
--cc=popcornmix@gmail.com \
--cc=swarren@wwwdotorg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome