Message ID | 1602818835-19149-1-git-send-email-mingming.lee@mediatek.com |
---|---|
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mediatek.com header.i=@mediatek.com header.a=rsa-sha256 header.s=dk header.b=iXqGe0Tx; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CCBSS2pRLz9sTD for <incoming@patchwork.ozlabs.org>; Fri, 16 Oct 2020 14:28:24 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E036282413; Fri, 16 Oct 2020 05:27:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mediatek.com header.i=@mediatek.com header.b="iXqGe0Tx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7F210806C5; Fri, 16 Oct 2020 05:27:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,MIME_BASE64_TEXT,RDNS_NONE, SPF_HELO_NONE,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from mailgw01.mediatek.com (unknown [1.203.163.78]) by phobos.denx.de (Postfix) with ESMTP id 23910821DB for <u-boot@lists.denx.de>; Fri, 16 Oct 2020 05:27:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=mediatek.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mingming.lee@mediatek.com X-UUID: a9cafcc8b7a24eafaf814200aa5e54af-20201016 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=kXl/PcY0ckWDH5YzwdVNPnkIkcIzYu/opjQaz9GDSOQ=; b=iXqGe0TxrJhkBu+VrUL/2iA8ILlgdFckE8X7fXzr5de7ZXD042kJwiERNnTADtsrEs24veHvUrQXc+FzzkDcHXhqp5KXv6/V1k+M1sB35YAzJGw//UlP0ryzpf0synAOXfXNYpH2D0AM1NYA1xxv6TsBlkPrAP8IKD45tay4JDc=; X-UUID: a9cafcc8b7a24eafaf814200aa5e54af-20201016 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from <mingming.lee@mediatek.com>) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 820357702; Fri, 16 Oct 2020 11:27:21 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS32N1.mediatek.inc (172.27.4.71) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 16 Oct 2020 11:27:18 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 16 Oct 2020 11:27:16 +0800 From: mingming lee <mingming.lee@mediatek.com> To: Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>, Heiko Schocher <hs@denx.de> CC: GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>, <u-boot@lists.denx.de>, Mingming Lee <Mingming.Lee@mediatek.com> Subject: [PATCH v3 0/5] Add i2c support for MediaTek mt8512 Date: Fri, 16 Oct 2020 11:27:10 +0800 Message-ID: <1602818835-19149-1-git-send-email-mingming.lee@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty MIME-Version: 1.0 X-TM-SNTS-SMTP: 148A915E4433A81D2284635B61EC8F37089F2D18D69BF066538F8E467F96414D2000:8 Content-Type: text/plain Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
Add i2c support for MediaTek mt8512
|
expand
|
From: Mingming Lee <Mingming.Lee@mediatek.com> This patch series adds basic i2c support for MediaTek MT8512 EMMC boards. --- Changes for v3: - fixed code veriew note in v2. - optimize the dma read/write flow in mtk_i2c_do_transfer(). - add Reviewed-by info. Changes for v2: - using error number defined in include/linux/errno.h. - add Mediatek i2c controller driver to ARM MEDIATEK in MAINTAINERS. - add bindings for mediatek i2c driver. Mingming Lee (5): i2c: mediatek: add basic driver support ARM: dts: Mediatek: add i2c node support for mt8512 configs: mt8512: Enable I2C related configs dt-binding: i2c: add bindings for mediatek i2c driver MAINTAINERS: add i2c driver to ARM MEDIATEK MAINTAINERS | 2 + arch/arm/dts/mt8512-bm1-emmc.dts | 12 + arch/arm/dts/mt8512.dtsi | 38 +- configs/mt8512_bm1_emmc_defconfig | 8 +- doc/device-tree-bindings/i2c/i2c-mtk.txt | 39 ++ drivers/i2c/Kconfig | 8 + drivers/i2c/Makefile | 1 + drivers/i2c/mt_i2c.c | 713 +++++++++++++++++++++++++++++++ 8 files changed, 819 insertions(+), 2 deletions(-) create mode 100644 doc/device-tree-bindings/i2c/i2c-mtk.txt create mode 100644 drivers/i2c/mt_i2c.c