Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1325523
| From | Lubomir Rintel <lkundrak@v3.sk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] ARM: bcm2835: dt: Add the ethernet to the device tree |
| Date | 2016-02-03 16:10 +0100 |
| Message-ID | <qY7ea-3y7-27@gated-at.bofh.it> (permalink) |
| References | <qY7ea-3y7-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The hub and the ethernet in its port 1 are hardwired on the board.
Compared to the adapters that can be plugged into the USB ports, this
one has no serial EEPROM to store its MAC. Nevertheless, the Raspberry Pi
has the MAC address for this adapter in its ROM, accessible from its
firmware.
U-Boot can read out the address and set the local-mac-address property of the
node with "ethernet" alias. Let's add the node so that U-Boot can do its
business.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
---
arch/arm/boot/dts/bcm2835-rpi-b-plus.dts | 18 ++++++++++++++++++
arch/arm/boot/dts/bcm283x.dtsi | 4 +++-
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts b/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
index ef54050..32bbd2a 100644
--- a/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
+++ b/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
@@ -6,6 +6,10 @@
compatible = "raspberrypi,model-b-plus", "brcm,bcm2835";
model = "Raspberry Pi Model B+";
+ aliases {
+ ethernet = ðernet;
+ }
+
leds {
act {
gpios = <&gpio 47 0>;
@@ -29,3 +33,17 @@
brcm,function = <BCM2835_FSEL_ALT0>;
};
};
+
+&usb {
+ usb1@01 {
+ compatible = "usb1d6b,0002";
+ reg = <01>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethernet: usbether@01 {
+ compatible = "usb0424,9514";
+ reg = <01>;
+ };
+ };
+};
diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
index 971e741..bc5fde1 100644
--- a/arch/arm/boot/dts/bcm283x.dtsi
+++ b/arch/arm/boot/dts/bcm283x.dtsi
@@ -187,10 +187,12 @@
status = "disabled";
};
- usb@7e980000 {
+ usb: usb@7e980000 {
compatible = "brcm,bcm2835-usb";
reg = <0x7e980000 0x10000>;
interrupts = <1 9>;
+ #address-cells = <1>;
+ #size-cells = <0>;
};
};
--
2.5.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] Set the Raspberry Pi Ethernet MAC address Lubomir Rintel <lkundrak@v3.sk> - 2016-02-03 16:10 +0100
[PATCH 2/2] ARM: bcm2835: dt: Add the ethernet to the device tree Lubomir Rintel <lkundrak@v3.sk> - 2016-02-03 16:10 +0100
Re: [PATCH 2/2] ARM: bcm2835: dt: Add the ethernet to the device tree Lubomir Rintel <lkundrak@v3.sk> - 2016-02-03 16:20 +0100
Re: [PATCH 2/2] ARM: bcm2835: dt: Add the ethernet to the device tree Stephen Warren <swarren@wwwdotorg.org> - 2016-02-03 17:20 +0100
Re: [PATCH 2/2] ARM: bcm2835: dt: Add the ethernet to the device tree Lubomir Rintel <lkundrak@v3.sk> - 2016-02-03 17:40 +0100
Re: [PATCH 2/2] ARM: bcm2835: dt: Add the ethernet to the device tree Olivier Blin <dev@blino.org> - 2016-02-04 00:50 +0100
Re: [PATCH 2/2] ARM: bcm2835: dt: Add the ethernet to the device tree Lubomir Rintel <lkundrak@v3.sk> - 2016-02-04 08:20 +0100
RE: [PATCH 2/2] ARM: bcm2835: dt: Add the ethernet to the device tree Peter Chen <peter.chen@nxp.com> - 2016-02-04 09:10 +0100
csiph-web