[U-Boot] [PATCH 5/5] ARM: tegra: enable I2C buses for P2771-0000
Stephen Warren
swarren at wwwdotorg.org
Wed Jul 27 23:48:22 CEST 2016
From: Bryan Wu <pengw at nvidia.com>
Enable I2C devices in DT and enable building tegra_i2c.c driver.
Signed-off-by: Bryan Wu <pengw at nvidia.com>
(swarren, commit msg rework, fixed DT node sort order)
Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
arch/arm/dts/tegra186-p2771-0000.dtsi | 35 +++++++++++++++++++++++++++++++++++
include/configs/p2771-0000.h | 3 +++
2 files changed, 38 insertions(+)
diff --git a/arch/arm/dts/tegra186-p2771-0000.dtsi b/arch/arm/dts/tegra186-p2771-0000.dtsi
index 87f0427e80c1..4e2b6fbf97f8 100644
--- a/arch/arm/dts/tegra186-p2771-0000.dtsi
+++ b/arch/arm/dts/tegra186-p2771-0000.dtsi
@@ -10,14 +10,49 @@
aliases {
sdhci0 = "/sdhci at 3460000";
+ i2c1 = "/i2c at 3160000";
+ i2c2 = "/i2c at c240000";
+ i2c3 = "/i2c at 3180000";
+ i2c4 = "/i2c at 3190000";
+ i2c5 = "/i2c at 31c0000";
+ i2c6 = "/i2c at c250000";
+ i2c7 = "/i2c at 31e0000";
};
memory {
reg = <0x0 0x80000000 0x0 0x60000000>;
};
+ i2c at 3160000 {
+ status = "okay";
+ };
+
+ i2c at 3180000 {
+ status = "okay";
+ };
+
+ i2c at 3190000 {
+ status = "okay";
+ };
+
+ i2c at 31c0000 {
+ status = "okay";
+ };
+
sdhci at 3460000 {
status = "okay";
bus-width = <8>;
};
+
+ i2c at c240000 {
+ status = "okay";
+ };
+
+ i2c at c250000 {
+ status = "okay";
+ };
+
+ i2c at 31e0000 {
+ status = "okay";
+ };
};
diff --git a/include/configs/p2771-0000.h b/include/configs/p2771-0000.h
index 257283f3b937..3ce72086ce9c 100644
--- a/include/configs/p2771-0000.h
+++ b/include/configs/p2771-0000.h
@@ -14,6 +14,9 @@
/* High-level configuration options */
#define CONFIG_TEGRA_BOARD_STRING "NVIDIA P2771-0000"
+/* I2C */
+#define CONFIG_SYS_I2C_TEGRA
+
/* SD/MMC */
#define CONFIG_MMC
#define CONFIG_GENERIC_MMC
--
2.9.2
More information about the U-Boot
mailing list