[U-Boot] [PATCH v3 09/16] tegra: usb: fdt: Add additional device tree definitions for USB ports

Simon Glass sjg at chromium.org
Wed Dec 7 02:24:08 CET 2011


This adds peripheral IDs to the USB part of the device tree for U-Boot.

The peripheral IDs provide easy access to clock registers. We will likely
remove this in favor of a full clock tree when it is available in the
kernel (but probably still retain the peripheral ID, just move it into
a clock node).

The USB timing information may vary between boards sometimes, but for
now we hard-code it in C. This is because all current T2x boards use
the same values, we will deal with T3x later and we first need to agree
on the format for this timing information in the fdt and may in fact
decide that it has no place there.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/arm/dts/tegra20.dtsi |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/dts/tegra20.dtsi b/arch/arm/dts/tegra20.dtsi
index 6146d24..27e3127 100644
--- a/arch/arm/dts/tegra20.dtsi
+++ b/arch/arm/dts/tegra20.dtsi
@@ -149,6 +149,7 @@
 		reg = <0xc5000000 0x4000>;
 		interrupts = < 52 >;
 		phy_type = "utmi";
+		u-boot,periph-id = <22>;	// PERIPH_ID_USBD
 	};
 
 	usb at c5004000 {
@@ -156,6 +157,7 @@
 		reg = <0xc5004000 0x4000>;
 		interrupts = < 53 >;
 		phy_type = "ulpi";
+		u-boot,periph-id = <58>;	// PERIPH_ID_USB2
 	};
 
 	usb at c5008000 {
@@ -163,6 +165,7 @@
 		reg = <0xc5008000 0x4000>;
 		interrupts = < 129 >;
 		phy_type = "utmi";
+		u-boot,periph-id = <59>;	// PERIPH_ID_USB3
 	};
 
 };
-- 
1.7.3.1



More information about the U-Boot mailing list