From patchwork Sun Dec 23 06:03:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 10741567 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 94D5F1399 for ; Sun, 23 Dec 2018 06:04:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8126A28932 for ; Sun, 23 Dec 2018 06:04:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 72EB128A03; Sun, 23 Dec 2018 06:04:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2E34F28932 for ; Sun, 23 Dec 2018 06:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=d4gmHjIMTvtlxDGo7gtBkdlkqdTJ43owbSimLrYNp/8=; b=pFPM0TIDF1v3M/AtsWtsUanSgj epXbDtQjidNBfYrlO8nrwtO4RfVYNTxa6UCI0JfNEgkI4zlwr2fhqF52kj8DjfJy7IYtnV4aU+yfn hI+km3ZCS1acWrQh3cR8Jz2mUVdBJ4c+rVUQ1UeShC8j4jVjkt1NLR9G4/2qEpF/7cc/0RVGN/ioD qF3lmvYwjXRln3dPziCGL8HHaC7GGIE8E5TA3wkCZcLP2wCaO7anOD02o12zKRGxfO1m/YsaN6b0M VJluxR6xfLm5IhuwaJYs84D1XUrC4Tna54qqNUUBA2FublOlWp9ptFpZzWYCxIuaqcz/De+oZz9lw KL8jZv3g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gawsf-0008FI-TA; Sun, 23 Dec 2018 06:04:53 +0000 Received: from smtp3.mail.ru ([94.100.179.58]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gawrq-0007an-WD for linux-arm-kernel@lists.infradead.org; Sun, 23 Dec 2018 06:04:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=d6hgJXD72qrys43amOiySQhV05lieoXx4XACgEv42sg=; b=kmsyzr1RgcNXj0brtUvGDu70aKyojPoKLD4qd7zPN9sc1ujeoxs041ScXSCb+eLf2Q5qzYKxduOPNSbsmQlDFSQ7ENXCNgDL5GIAwv0o6pJcAsmXaA4ljK+ip0vcFT14zbfEasN9VIYrRnBLiSYm2p9PHGsB+hjlnU1sgbOBMoU=; Received: by smtp3.mail.ru with esmtpa (envelope-from ) id 1gawrc-0002TA-Nx; Sun, 23 Dec 2018 09:03:49 +0300 From: Alexander Shiyan To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/4] ARM: dts: i.MX51: digi-connectcore-som: Add support for I2C bus recovery Date: Sun, 23 Dec 2018 09:03:42 +0300 Message-Id: <20181223060342.32054-4-shc_work@mail.ru> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20181223060342.32054-1-shc_work@mail.ru> References: <20181223060342.32054-1-shc_work@mail.ru> Authentication-Results: smtp3.mail.ru; auth=pass smtp.auth=shc_work@mail.ru smtp.mailfrom=shc_work@mail.ru X-77F55803: E14BCC6235C710295A78504BD2AC29419868B496DAF47A9FFC309AB5BCA99F4B0CDB658EA8F83BE73A499A265D1D56E6 X-7FA49CB5: 0D63561A33F958A5448D373F30818138E0772031D2666BCE5E74126B30ADA5F78941B15DA834481FA18204E546F3947C0839144E5BB460BAF6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8B55B19328CBC4F849A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249DA33821E755670D83AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE72CE3825EE585899DCD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE7430ED7F324E0B2BE79A30FF140FDA44B75ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC85D9B7C4F32B44FF57285124B2A10EEC6C00306258E7E6ABB4E4A6367B16DE6309 X-Mailru-Sender: 139A7956A63CACCF2A18077BC60D2445071D9EE4167233010AA51E55F5C8CD4F58BF46E4B01B60EA6B3B2BD4812BFD4DC77752E0C033A69E93554C27080790AB3B25A7FBAAF806F0AE208404248635DF X-Mras: OK X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181222_220403_430967_FF4B17FE X-CRM114-Status: GOOD ( 10.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Shiyan , Sascha Hauer , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , Shawn Guo MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Define the required properties to enable I2C bus recovery supported by the I2C subsystem. This patch adds GPIO based I2C fault injector for Digi Connectcore SOM. Signed-off-by: Alexander Shiyan --- arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi b/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi index a2a6408..d90ba5f 100644 --- a/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi +++ b/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi @@ -174,9 +174,12 @@ }; &i2c2 { - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c2>; + pinctrl-1 = <&pinctrl_i2c2_gpio>; clock-frequency = <400000>; + scl-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; status = "okay"; mma7455l@1d { @@ -290,6 +293,13 @@ >; }; + pinctrl_i2c2_gpio: i2c2gpiogrp { + fsl,pins = < + MX51_PAD_GPIO1_2__GPIO1_2 0x400001ed + MX51_PAD_GPIO1_3__GPIO1_3 0x400001ed + >; + }; + pinctrl_nfc: nfcgrp { fsl,pins = < MX51_PAD_NANDF_D0__NANDF_D0 0x80000000