From patchwork Sun Jan 17 18:35:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Ferre X-Patchwork-Id: 12025669 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49936C433E0 for ; Sun, 17 Jan 2021 18:37:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 05841224D2 for ; Sun, 17 Jan 2021 18:37:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 05841224D2 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=PG/9qpYELCMBigSxltKsBsU0BCb0pBrUgiif4UdauYs=; b=1HLPhVeZq/MCUKvjHtHJeCSrTE zs08GAAAHDDG0yEtd+G3rz4fuyv1930qSY+AZvI5livRlotkF81I/ES4BDTxm5LL90cR1KxPMxgN0 5D+qgWUR7S5yqEdNIpr/seQLAc2jU1Qm2+laxE9rsSiMcxtTBN6r/9z8VsDw6SHp39VM/oHBAwl5e Dl9HjhQHlNUd3YZobnlWe32B/ZlY5gQyGONzpxql8HyMcrVmxgYOdhOkWaCivYOC+HfG+dA3JA8sG YX7ZyRN9BRvQHvuFvVK+rDH68aCvEGmVVz/DwScUeri17eQGGZ9TqAfP8qy5ONs6JFjaKNKlpJsx3 CE7XmTKA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1Cua-00069A-T1; Sun, 17 Jan 2021 18:36:29 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1CuX-00068f-Mz for linux-arm-kernel@lists.infradead.org; Sun, 17 Jan 2021 18:36:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1610908585; x=1642444585; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5zEtVXUtLNSl7Itit1n2Vbnz8QdINdtV9kRZRL9aMTo=; b=nbWjZxyUmAsf2NMi8Z1EF1sNSnrB1D8s12ogNhaEwrPChi845MbhRu7z mzHGbTMnpD9hhBums1Q49YcWa5qeOvjG6/wu03tZ0ozb/SO6aVXrfO+j3 kSLetafi5Pw1XdHMO+xnYLpiBR9ltgUUjQzzTt2FpcYyQ4V6iVGLEvpKy OGf64BI7pXEwb4uEQDJ3dtDTtagbf7SdQ1FLs0rL0lKBjoZZXdRRWCVGM FJK9jcqz/t0XYtE8tObp3gj4yz30XSvvp1MToKGKuB8cv0HjZ20A/YzGJ UNFjf/08gMTcnBYc6VRbPdPzx6mNSOpruXlp/rQLbmKHFOpMWY0KwAl0C Q==; IronPort-SDR: yWjOMqHUnzQemjZ4spKMTavd5xNjDCVMKqSHjMv7rjrfxiwD93wOFzCnA2DPfgXGshMegp2tTX Cbq6tsUfXAmhM3ptiN1SYI/gyDYViLB5NCRwaX4/L1d6V9IZ2/QXIPvijaTr1BwiXrOzSgKvra m4a/ksSfaoPmZg/UZITnuktinFwp86ENNSJr/BOOfOW/aJQ40xr9h5JtZ8PR3TJMyYta0NtbXI ZrUWUhjsORtBoGawCa026ECWEddLw5qxH1H33pPJ3uPWEfSVTUT/O1temMHcNKrNk24c/oieFm Dzg= X-IronPort-AV: E=Sophos;i="5.79,354,1602572400"; d="scan'208";a="40702894" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 17 Jan 2021 11:36:22 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Sun, 17 Jan 2021 11:36:18 -0700 Received: from ness.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Sun, 17 Jan 2021 11:36:15 -0700 From: To: Alexandre Belloni , Ludovic Desroches Subject: [PATCH] ARM: dts: at91-sama5d27_wlsom1: add i2c recovery Date: Sun, 17 Jan 2021 19:35:58 +0100 Message-ID: <20210117183558.5369-1-nicolas.ferre@microchip.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210117_133626_063188_170F2051 X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Codrin Ciubotariu , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Nicolas Ferre Add the i2c gpio pinctrls to support the i2c bus recovery on this board. Signed-off-by: Nicolas Ferre Reviewed-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi | 22 +++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi b/arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi index a06700e53e4c..025a78310e3a 100644 --- a/arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi +++ b/arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi @@ -43,14 +43,20 @@ uart6: serial@200 { &i2c0 { pinctrl-0 = <&pinctrl_i2c0_default>; - pinctrl-names = "default"; + pinctrl-1 = <&pinctrl_i2c0_gpio>; + pinctrl-names = "default", "gpio"; + sda-gpios = <&pioA PIN_PD21 GPIO_ACTIVE_HIGH>; + scl-gpios = <&pioA PIN_PD22 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "okay"; }; &i2c1 { dmas = <0>, <0>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c1_default>; + pinctrl-1 = <&pinctrl_i2c1_gpio>; + sda-gpios = <&pioA PIN_PD19 GPIO_ACTIVE_HIGH>; + scl-gpios = <&pioA PIN_PD20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "okay"; mcp16502@5b { @@ -258,12 +264,24 @@ pinctrl_i2c0_default: i2c0_default { bias-disable; }; + pinctrl_i2c0_gpio: i2c0_gpio { + pinmux = , + ; + bias-disable; + }; + pinctrl_i2c1_default: i2c1_default { pinmux = , ; bias-disable; }; + pinctrl_i2c1_gpio: i2c1_gpio { + pinmux = , + ; + bias-disable; + }; + pinctrl_macb0_default: macb0_default { pinmux = , ,