From: Jagan Teki <jagan@openedev.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 12/16] imx6: icorem6_rqs: Add I2C support
Date: Tue, 13 Dec 2016 17:57:02 +0100 [thread overview]
Message-ID: <1481648226-30773-13-git-send-email-jagan@openedev.com> (raw)
In-Reply-To: <1481648226-30773-1-git-send-email-jagan@openedev.com>
From: Jagan Teki <jagan@amarulasolutions.com>
Add I2C support for Engicam i.CoreM6 RQS modules.
icorem6qdl-rqs> i2c bus
Bus 0: i2c at 021a0000
Bus 1: i2c at 021a4000
Bus 2: i2c at 021a8000
icorem6qdl-rqs> i2c dev 0
Setting bus to 0
icorem6qdl-rqs> i2c speed 100000
Setting bus speed to 100000 Hz
icorem6qdl-rqs> i2c probe
Valid chip addresses: 4F
icorem6qdl-rqs> i2c md 4F 0xff
00ff: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
icorem6qdl-rqs> i2c bus
Bus 0: i2c at 021a0000 (active 0)
4f: generic_4f, offset len 1, flags 0
Bus 1: i2c at 021a4000
Bus 2: i2c at 021a8000
Cc: Stefano Babic <sbabic@denx.de>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
arch/arm/cpu/armv7/mx6/Kconfig | 1 +
configs/imx6dl_icore_rqs_mmc_defconfig | 2 ++
configs/imx6q_icore_rqs_mmc_defconfig | 2 ++
3 files changed, 5 insertions(+)
diff --git a/arch/arm/cpu/armv7/mx6/Kconfig b/arch/arm/cpu/armv7/mx6/Kconfig
index a9403bf..50e9b4b 100644
--- a/arch/arm/cpu/armv7/mx6/Kconfig
+++ b/arch/arm/cpu/armv7/mx6/Kconfig
@@ -121,6 +121,7 @@ config TARGET_MX6Q_ICORE_RQS
select OF_CONTROL
select DM
select DM_GPIO
+ select DM_I2C
select DM_MMC
select DM_THERMAL
select SUPPORT_SPL
diff --git a/configs/imx6dl_icore_rqs_mmc_defconfig b/configs/imx6dl_icore_rqs_mmc_defconfig
index 7fc7fa0..19a721c 100644
--- a/configs/imx6dl_icore_rqs_mmc_defconfig
+++ b/configs/imx6dl_icore_rqs_mmc_defconfig
@@ -25,10 +25,12 @@ CONFIG_CMD_EXT4=y
CONFIG_CMD_EXT4_WRITE=y
CONFIG_CMD_FAT=y
CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_I2C=y
CONFIG_OF_LIBFDT=y
CONFIG_MXC_UART=y
CONFIG_PINCTRL=y
CONFIG_PINCTRL_IMX6=y
+CONFIG_SYS_I2C_MXC=y
CONFIG_SPL_LIBDISK_SUPPORT=y
CONFIG_SPL_LIBCOMMON_SUPPORT=y
CONFIG_SPL_LIBGENERIC_SUPPORT=y
diff --git a/configs/imx6q_icore_rqs_mmc_defconfig b/configs/imx6q_icore_rqs_mmc_defconfig
index eeecef8..bbd10af 100644
--- a/configs/imx6q_icore_rqs_mmc_defconfig
+++ b/configs/imx6q_icore_rqs_mmc_defconfig
@@ -25,10 +25,12 @@ CONFIG_CMD_EXT4=y
CONFIG_CMD_EXT4_WRITE=y
CONFIG_CMD_FAT=y
CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_I2C=y
CONFIG_OF_LIBFDT=y
CONFIG_MXC_UART=y
CONFIG_PINCTRL=y
CONFIG_PINCTRL_IMX6=y
+CONFIG_SYS_I2C_MXC=y
CONFIG_SPL_LIBDISK_SUPPORT=y
CONFIG_SPL_LIBCOMMON_SUPPORT=y
CONFIG_SPL_LIBGENERIC_SUPPORT=y
--
1.9.1
next prev parent reply other threads:[~2016-12-13 16:57 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-13 16:56 [U-Boot] [PATCH v4 00/16] imx6: Add Engicam GEAM6UL/i.CoreM6 RQS board support Jagan Teki
2016-12-13 16:56 ` [U-Boot] [PATCH v4 01/16] arm: dts: Add devicetree for i.MX6UL Jagan Teki
2016-12-13 16:56 ` [U-Boot] [PATCH v4 02/16] arm: imx6ul: Add Engicam GEAM6UL Starter Kit initial support Jagan Teki
2016-12-13 16:56 ` [U-Boot] [PATCH v4 03/16] arm: dts: imx6ul-geam: Add I2C nodes Jagan Teki
2016-12-13 16:56 ` [U-Boot] [PATCH v4 04/16] imx6: geam6ul: Add I2C support Jagan Teki
2016-12-13 16:56 ` [U-Boot] [PATCH v4 05/16] imx6: geam6ul: Add NAND support Jagan Teki
2016-12-13 16:56 ` [U-Boot] [PATCH v4 06/16] imx6: geam6ul: Enable MTD device support Jagan Teki
2016-12-13 16:56 ` [U-Boot] [PATCH v4 07/16] imx6: geam6ul: Add default mtd nand partition table Jagan Teki
2016-12-13 16:56 ` [U-Boot] [PATCH v4 08/16] arm: imx6q: Add Engicam i.CoreM6 Quad/Dual RQS Starter Kit initial support Jagan Teki
2016-12-13 16:56 ` [U-Boot] [PATCH v4 09/16] arm: imx6q: Add Engicam i.CoreM6 Solo/Duallite " Jagan Teki
2016-12-13 16:57 ` [U-Boot] [PATCH v4 10/16] imx6: icorem6: Rename engicam icorem6 defconfig files Jagan Teki
2016-12-13 16:57 ` [U-Boot] [PATCH v4 11/16] arm: dts: imx6qdl-icore-rqs: Add I2C node's Jagan Teki
2016-12-13 16:57 ` Jagan Teki [this message]
2016-12-13 16:57 ` [U-Boot] [PATCH v4 13/16] arm: dts: imx6ul-geam: Add FEC node Jagan Teki
2016-12-13 16:57 ` [U-Boot] [PATCH v4 14/16] imx6: geam6ul: Add FEC support Jagan Teki
2016-12-13 16:57 ` [U-Boot] [PATCH v4 15/16] arm: dts: imx6qdl-icore-rqs: Add FEC node Jagan Teki
2016-12-13 16:57 ` [U-Boot] [PATCH v4 16/16] imx6: icorem6_rqs: Add FEC support Jagan Teki
2016-12-16 9:23 ` [U-Boot] [PATCH v4 00/16] imx6: Add Engicam GEAM6UL/i.CoreM6 RQS board support Jagan Teki
2016-12-16 15:42 ` Stefano Babic
2016-12-16 16:00 ` Jagan Teki
2016-12-16 16:08 ` Jagan Teki
2016-12-16 16:29 ` Stefano Babic
2016-12-16 16:52 ` Jagan Teki
2016-12-16 17:27 ` Stefano Babic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1481648226-30773-13-git-send-email-jagan@openedev.com \
--to=jagan@openedev.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox