ARM: tegra: enable I2C buses for P2771-0000
authorBryan Wu <pengw@nvidia.com>
Wed, 27 Jul 2016 21:48:22 +0000 (15:48 -0600)
committerTom Warren <twarren@nvidia.com>
Mon, 15 Aug 2016 17:26:13 +0000 (10:26 -0700)
Enable I2C devices in DT and enable building tegra_i2c.c driver.

Signed-off-by: Bryan Wu <pengw@nvidia.com>
(swarren, commit msg rework, fixed DT node sort order)
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/dts/tegra186-p2771-0000.dtsi
include/configs/p2771-0000.h

index 87f0427e80c1c85ee2479013fe160d4a07330519..4e2b6fbf97f80456e644b7cd390048c2e8485b9e 100644 (file)
 
        aliases {
                sdhci0 = "/sdhci@3460000";
+               i2c1 = "/i2c@3160000";
+               i2c2 = "/i2c@c240000";
+               i2c3 = "/i2c@3180000";
+               i2c4 = "/i2c@3190000";
+               i2c5 = "/i2c@31c0000";
+               i2c6 = "/i2c@c250000";
+               i2c7 = "/i2c@31e0000";
        };
 
        memory {
                reg = <0x0 0x80000000 0x0 0x60000000>;
        };
 
+       i2c@3160000 {
+               status = "okay";
+       };
+
+       i2c@3180000 {
+               status = "okay";
+       };
+
+       i2c@3190000 {
+               status = "okay";
+       };
+
+       i2c@31c0000 {
+               status = "okay";
+       };
+
        sdhci@3460000 {
                status = "okay";
                bus-width = <8>;
        };
+
+       i2c@c240000 {
+               status = "okay";
+       };
+
+       i2c@c250000 {
+               status = "okay";
+       };
+
+       i2c@31e0000 {
+               status = "okay";
+       };
 };
index 257283f3b93775b78187991e88b89a4dcfd4b409..3ce72086ce9c5ad0c2184871aa6b254e194e267a 100644 (file)
@@ -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