summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2012-11-23 03:24:52 +0000
committergonzo <gonzo@FreeBSD.org>2012-11-23 03:24:52 +0000
commit95bc8dafff374fff4905028e6ee60b67a3ac295e (patch)
tree6d71a206e172dd691fd3fb2197c7c4d5ac4b943a
parent748c98fc62710e6e068b1ac97fe79668aa6fe7d4 (diff)
downloadFreeBSD-src-95bc8dafff374fff4905028e6ee60b67a3ac295e.zip
FreeBSD-src-95bc8dafff374fff4905028e6ee60b67a3ac295e.tar.gz
Make FDT blob compatible with Raspberry Pi firmware.
Rasperry Pi firmware has a set of hardcoded pathes it uses to fill FDT with system-specific information like display resolution, memory size, UART and SDHCI clocks, ethernet MAC address. Handle two of them: - Add placeholder for ethernet MAC address - Move display node out of "axi" node
-rw-r--r--sys/boot/fdt/dts/bcm2835-rpi-b.dts33
1 files changed, 22 insertions, 11 deletions
diff --git a/sys/boot/fdt/dts/bcm2835-rpi-b.dts b/sys/boot/fdt/dts/bcm2835-rpi-b.dts
index 58d99fb..d91459c 100644
--- a/sys/boot/fdt/dts/bcm2835-rpi-b.dts
+++ b/sys/boot/fdt/dts/bcm2835-rpi-b.dts
@@ -478,26 +478,37 @@
interrupt-parent = <&intc>;
#address-cells = <1>;
#size-cells = <0>;
+ hub {
+ compatible = "usb,hub", "usb,device";
+ reg = <0x00000001>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ ethernet {
+ compatible = "net,ethernet", "usb,device";
+ reg = <0x00000001>;
+ mac-address = [00 00 00 00 00 00];
+ };
+ };
};
- display {
- compatible = "broadcom,bcm2835-fb", "broadcom,bcm2708-fb";
-
- broadcom,vc-mailbox = <&vc_mbox>;
- broadcom,vc-channel = <1>;
-
- broadcom,width = <0>; /* Set by VideoCore */
- broadcom,height = <0>; /* Set by VideoCore */
- broadcom,depth = <0>; /* Set by VideoCore */
- };
};
-
memory {
device_type = "memory";
reg = <0 0x08000000>; /* 128MB */
};
+ display {
+ compatible = "broadcom,bcm2835-fb", "broadcom,bcm2708-fb";
+
+ broadcom,vc-mailbox = <&vc_mbox>;
+ broadcom,vc-channel = <1>;
+
+ broadcom,width = <0>; /* Set by VideoCore */
+ broadcom,height = <0>; /* Set by VideoCore */
+ broadcom,depth = <0>; /* Set by VideoCore */
+ };
+
leds {
compatible = "gpio-leds";
OpenPOWER on IntegriCloud