Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3839021ybv; Tue, 25 Feb 2020 08:12:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxQnMCRofJ1AmilNXQtSHRkOhc1BwpsTXvnYEa6QRCmKDqIvsKgWw5Z1W4dCW83j9TaSdkk X-Received: by 2002:a9d:1284:: with SMTP id g4mr42390551otg.47.1582647153552; Tue, 25 Feb 2020 08:12:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582647153; cv=none; d=google.com; s=arc-20160816; b=k0iquWKFy+c6YSEXzXpCipw4/wcaigg7S7lVh3Qk5amY4v2KEwp4r+NcnKlq+B9Ar2 549ffmbWByxlnigssrviKvFVJzc1mKeBdQJEY+3HIvvvi5IaNu5Y4AA+SKZalG4QlLP+ FZgwXFgf4cmMDq4l4YRn36kZ2baC8bN45WRLZnVhTijA4dTiRYSoGAsGGlZG4EoCl59X fsklbKhHla9uMbmVkZB5EWyj/4iK4cBljX2tgpvHScNTorx5BRwmpcNUD8NZz1CP1pKN N19iS+ExPqy89TLjEwhE+yB5gReF61rCjRWkNBxOWyXTcUQ1zf9/JlsmSqbRnZ4kHl6L /ifg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr; bh=Kj/+cY2nm21Hv1Qk1p7woAaRbWTLlWOCOVmfUk+oR98=; b=dCV628QhyQc/CT9fEV/CSaDs8puTVnrLCw9b6uO9+tMwDtoO7EZME2aUc3D0uPEpVL CaETHPGq8LOXhn+t9cIBt0t9QUl2uCveR+L/6hLKsXtQl+CUig15rORNM2aRtGgps9vy 8cA5Y+EHaav1YVFlDN8lY1tZVPg6sYoMsgx8MptmyK0gVRPQgeSEUbZ/2jzbbr10NNaf MphFKgaK1iPchya6Y8u040ugbA20NBoE6I99MwbuW3or6jUY7zFNYfMRBZ8CwaxhTZAA m7nZ2rpU05WM+/6ALRc0dVvQc5+DcYVkuwuN9/dbVRx7Ihex6esG3B4FXP0ObPW3h8gU 8CPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v21si2958085otp.189.2020.02.25.08.12.21; Tue, 25 Feb 2020 08:12:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731149AbgBYPub (ORCPT + 99 others); Tue, 25 Feb 2020 10:50:31 -0500 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:50154 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729181AbgBYPub (ORCPT ); Tue, 25 Feb 2020 10:50:31 -0500 Received-SPF: Pass (esa5.microchip.iphmx.com: domain of Codrin.Ciubotariu@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa5.microchip.iphmx.com; envelope-from="Codrin.Ciubotariu@microchip.com"; x-sender="Codrin.Ciubotariu@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com -exists:%{i}.spf.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa5.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa5.microchip.iphmx.com; envelope-from="Codrin.Ciubotariu@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa5.microchip.iphmx.com; spf=Pass smtp.mailfrom=Codrin.Ciubotariu@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: IkbmceOaygJjke/hs1EmwM2AKJxP+2XwcgLSJMb+xVfq8OfnJkicMxQ2rOc6oVX/Y6vusFkJPU PtVGPKabt77xBY7reClNZP7rEMF3NIHo6fsqDqopJQ9QwhCEC40DNLK/wwohtKUayDVotv/cif yonlfFJgQJFNgEiywkPZbNvgp03BhQOd9sqnaJSsnz35/SBRzxD7hPv1Z5QETEtFfwlpSZ6yaf QiboPBK9EU4TOaCkwbLhx5B8ym16RTpvZbIL5dqCJNhI7jFn+XG0ks/r8rmPrtbmHagE8qc4JU NJI= X-IronPort-AV: E=Sophos;i="5.70,484,1574146800"; d="scan'208";a="66666934" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Feb 2020 08:50:30 -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.1713.5; Tue, 25 Feb 2020 08:50:24 -0700 Received: from rob-ult-m19940.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Tue, 25 Feb 2020 08:50:30 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , Kamel Bouhara , Codrin Ciubotariu Subject: [PATCH v4 2/4] ARM: at91/dt: sama5d3: add i2c gpio pinctrl Date: Tue, 25 Feb 2020 17:50:10 +0200 Message-ID: <20200225155012.22764-2-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200225155012.22764-1-codrin.ciubotariu@microchip.com> References: <20200225155012.22764-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kamel Bouhara Add the i2c gpio pinctrls to support the i2c bus recovery Signed-off-by: Kamel Bouhara [codrin.ciubotariu@microchip.com: removed gpio pull-ups] Signed-off-by: Codrin Ciubotariu Acked-by: Ludovic Desroches --- Changes in v4: - added Acked-by tag from Ludovic; Changes in v3: - removed gpio pull-ups; Changes in v2: - none; arch/arm/boot/dts/sama5d3.dtsi | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi index 203d40be70a5..f11b018e9173 100644 --- a/arch/arm/boot/dts/sama5d3.dtsi +++ b/arch/arm/boot/dts/sama5d3.dtsi @@ -159,8 +159,11 @@ dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(7)>, <&dma0 2 AT91_DMA_CFG_PER_ID(8)>; dma-names = "tx", "rx"; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c0>; + pinctrl-1 = <&pinctrl_i2c0_gpio>; + sda-gpios = <&pioA 30 GPIO_ACTIVE_HIGH>; + scl-gpios = <&pioA 31 GPIO_ACTIVE_HIGH>; #address-cells = <1>; #size-cells = <0>; clocks = <&twi0_clk>; @@ -174,8 +177,11 @@ dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(9)>, <&dma0 2 AT91_DMA_CFG_PER_ID(10)>; dma-names = "tx", "rx"; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c1>; + pinctrl-1 = <&pinctrl_i2c1_gpio>; + sda-gpios = <&pioC 26 GPIO_ACTIVE_HIGH>; + scl-gpios = <&pioC 27 GPIO_ACTIVE_HIGH>; #address-cells = <1>; #size-cells = <0>; clocks = <&twi1_clk>; @@ -357,8 +363,11 @@ dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(11)>, <&dma1 2 AT91_DMA_CFG_PER_ID(12)>; dma-names = "tx", "rx"; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c2>; + pinctrl-1 = <&pinctrl_i2c2_gpio>; + sda-gpios = <&pioA 18 GPIO_ACTIVE_HIGH>; + scl-gpios = <&pioA 19 GPIO_ACTIVE_HIGH>; #address-cells = <1>; #size-cells = <0>; clocks = <&twi2_clk>; @@ -639,6 +648,12 @@ ; /* PA31 periph A TWCK0 pin, conflicts with UTXD1, ISI_HSYNC */ }; + + pinctrl_i2c0_gpio: i2c0-gpio { + atmel,pins = + ; + }; }; i2c1 { @@ -647,6 +662,12 @@ ; /* PC27 periph B TWCK1 pin, conflicts with SPI1_NPCS2, ISI_D10 */ }; + + pinctrl_i2c1_gpio: i2c1-gpio { + atmel,pins = + ; + }; }; i2c2 { @@ -655,6 +676,12 @@ ; /* TWCK2 pin, conflicts with LCDDAT19, ISI_D3 */ }; + + pinctrl_i2c2_gpio: i2c2-gpio { + atmel,pins = + ; + }; }; isi { -- 2.20.1