Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2012 03:24:53 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243420 - head/sys/boot/fdt/dts
Message-ID:  <201211230324.qAN3OreT026757@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Fri Nov 23 03:24:52 2012
New Revision: 243420
URL: http://svnweb.freebsd.org/changeset/base/243420

Log:
  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

Modified:
  head/sys/boot/fdt/dts/bcm2835-rpi-b.dts

Modified: head/sys/boot/fdt/dts/bcm2835-rpi-b.dts
==============================================================================
--- head/sys/boot/fdt/dts/bcm2835-rpi-b.dts	Fri Nov 23 01:48:31 2012	(r243419)
+++ head/sys/boot/fdt/dts/bcm2835-rpi-b.dts	Fri Nov 23 03:24:52 2012	(r243420)
@@ -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";
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211230324.qAN3OreT026757>