From patchwork Sat Jan 7 20:54:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 712291 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3twtwn5Nnlz9sfH for ; Sun, 8 Jan 2017 07:55:37 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 52BCDA765B; Sat, 7 Jan 2017 21:55:20 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11A2Hk0xiQpy; Sat, 7 Jan 2017 21:55:20 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 39868B39A0; Sat, 7 Jan 2017 21:55:04 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 01798B397B for ; Sat, 7 Jan 2017 21:54:56 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bkwVB45eEgx8 for ; Sat, 7 Jan 2017 21:54:55 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wj0-f195.google.com (mail-wj0-f195.google.com [209.85.210.195]) by theia.denx.de (Postfix) with ESMTPS id 17873B3956 for ; Sat, 7 Jan 2017 21:54:46 +0100 (CET) Received: by mail-wj0-f195.google.com with SMTP id kp2so81989498wjc.0 for ; Sat, 07 Jan 2017 12:54:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Be2TACLk+1wm6Bawky/mweJyMxgvMR0ccdYKPYDsy3k=; b=M49ahhAoEuLnucSwN9Y4efoa24KX4SJU1iBYdvGVLLvudc8IubAIYKI2BAJSWwzLDa QSMwyjpdkZxrlUy7YZJFDgi2yd5jOVhN9Q2nHoa1rZjiXNPKFqx5MeWGslV++EFV6Gr7 SKYigEWdcUQ4lao0CCruCss5D8momgCad0DRsd+NUZT0F0+ZN8ZgYG0iWv84p99034vA mlZg6DBN3DLrSBPlD4668nd1nMBtYHRBQIoDXAbWV5TQBK9vhuaatECzxInHYkVPl/If dm61gcuQ1xzDujsS6YOdzvRyZGDsbFTfIHkL9UBWPHO8T2D+eW+JIOjFedKBUh2vE1aG ZSOQ== X-Gm-Message-State: AIkVDXKxotGNlcbW7C8KHtBHkfWcJ9GUtpae/r5hm1ZiDk/DMJ5Eu2+Yb0DUyjD5S+5oiw== X-Received: by 10.194.134.66 with SMTP id pi2mr60819752wjb.61.1483822486436; Sat, 07 Jan 2017 12:54:46 -0800 (PST) Received: from localhost.localdomain ([185.97.14.22]) by smtp.gmail.com with ESMTPSA id y3sm85485093wjy.34.2017.01.07.12.54.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 07 Jan 2017 12:54:45 -0800 (PST) From: Jagan Teki To: Stefano Babic Date: Sat, 7 Jan 2017 21:54:23 +0100 Message-Id: <1483822468-21710-5-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1483822468-21710-1-git-send-email-jagan@openedev.com> References: <1483822468-21710-1-git-send-email-jagan@openedev.com> Cc: u-boot@lists.denx.de, Matteo Lisi Subject: [U-Boot] [PATCH 4/9] imx6: isiotmx6ul: Add I2C support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Jagan Teki Add I2C support for Engicam Is.IoT MX6UL module. isiotmx6ul> i2c bus Bus 0: i2c@021a0000 Bus 1: i2c@021a4000 isiotmx6ul> i2c dev 0 Setting bus to 0 isiotmx6ul> i2c dev Current bus is 0 isiotmx6ul> i2c speed 100000 Setting bus speed to 100000 Hz isiotmx6ul> i2c probe Valid chip addresses: 00 2C 44 78 isiotmx6ul> i2c md 2C 0xff 00ff: 00 00 00 00 0f f0 01 64 ff ff 00 00 00 00 00 00 .......d........ Cc: Stefano Babic Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/cpu/armv7/mx6/Kconfig | 1 + configs/imx6ul_isiot_mmc_defconfig | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/Kconfig b/arch/arm/cpu/armv7/mx6/Kconfig index 72780d7..b81e18c 100644 --- a/arch/arm/cpu/armv7/mx6/Kconfig +++ b/arch/arm/cpu/armv7/mx6/Kconfig @@ -211,6 +211,7 @@ config TARGET_MX6UL_ISIOT select OF_CONTROL select DM select DM_GPIO + select DM_I2C select DM_MMC select DM_THERMAL select SUPPORT_SPL diff --git a/configs/imx6ul_isiot_mmc_defconfig b/configs/imx6ul_isiot_mmc_defconfig index 3aa88ac..05241d4 100644 --- a/configs/imx6ul_isiot_mmc_defconfig +++ b/configs/imx6ul_isiot_mmc_defconfig @@ -21,6 +21,7 @@ CONFIG_SYS_PROMPT="isiotmx6ul> " # CONFIG_CMD_IMLS is not set CONFIG_CMD_MEMTEST=y CONFIG_CMD_MMC=y +CONFIG_CMD_I2C=y CONFIG_CMD_GPIO=y CONFIG_CMD_CACHE=y CONFIG_CMD_EXT2=y @@ -29,6 +30,7 @@ CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y # CONFIG_BLK is not set +CONFIG_SYS_I2C_MXC=y # CONFIG_DM_MMC_OPS is not set CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX6=y