Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6388422ybl; Wed, 15 Jan 2020 03:56:16 -0800 (PST) X-Google-Smtp-Source: APXvYqxFHq9gYWo/bmBSZB+Bazsmj3OCD8/FH0jMEjkU0gyznFlWPhLPf9unQSxGQ/0NNf7uHdy+ X-Received: by 2002:a05:6808:8d5:: with SMTP id k21mr21264879oij.121.1579089375980; Wed, 15 Jan 2020 03:56:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579089375; cv=none; d=google.com; s=arc-20160816; b=m5O24DJC9sMLlyOcwRW77rE0Z8rhcMR68IqKj6E6uBpZg+yhsMNPTYxIMB3g9Ndbw8 7bp7uOJmACCFyeEa5ChG1h4jI6vf3yMPghQYNaWOl0SI6CYKufxesIYvUi7ajDPNRER+ eiA0bs1WxqOLW++bmbLjN2y4gdYxOX/dh9ZCjwo918ZTbbOH5G3Ye+6J0vXQO/940qwA zdVcshGkkIksJsdgOqlijoxDtzHstDUbyN9ytlp2ldiTskzijy1sZh81OgQkMjN1553I cT7AASWEZWHP+jB9wskUIdTtdXYh8Kdl/WE/YyjyAb6dzqO5UFiyKk/m3URKYnJGHqnY u4Fg== 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=pk6A/gp2hg6IZJ5dgiHJ9MEZcpwArMEEtMFWbOyvvP4=; b=x9lDoycgOmNY8MdUmpR21egM2uwI0sEPeU/oRcDKTG99O5X8vlPCue77zl6HxLidHA xQeFqMdPvzYu0D6Be9AgR2gckWMCS4v+JK3E6bhOBu7MvDh9psBu1MVk+S494Ek72XRM dtE564sa5vmZlOpsM3JjRyHMHxpWrGdfbQgj0mj2Hv337pqrVXuHu7vZHTyEFMVIT6oK dyTW7gHYr9hipuHzRKbRCE2VD1ydTmZ1MGZw2G9/Q2SnK+onbGzIt9fAPbzLg8GKftJE Nwj+7A7byxrGXbWHtRHvwj+MBCnGE+dUSGx0aF4WOaJgSBIYT4x4SdyhM8Dr1+KOBS7U pmnw== 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 h203si9910671oif.3.2020.01.15.03.56.03; Wed, 15 Jan 2020 03:56:15 -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 S1730313AbgAOLyz (ORCPT + 99 others); Wed, 15 Jan 2020 06:54:55 -0500 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:17814 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730297AbgAOLyy (ORCPT ); Wed, 15 Jan 2020 06:54:54 -0500 Received-SPF: Pass (esa1.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=esa1.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 (esa1.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa1.microchip.iphmx.com; envelope-from="Codrin.Ciubotariu@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa1.microchip.iphmx.com; dkim=none (message not signed) header.i=none; 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: Fj0d/j4SK3yEwxLseF9SjrZHOfi8tRjvWmY7LDmslAxHhroq0i1kYHVBZ3Cs7qE3iFR7OpJbvz cRiDVYEHsPapI1eD/Ny60p3KuKLd8T8TRvbX07H0P0vNCQiX36aaTBtwMnLGIDhyGWn2L1lljR awZ/f80EJfHANYAjiqpYqTB/jDOxXUA54LaObeStunmBmDaKSQnjBk7fGvQhKfV52oSXhBsbK9 Zs8NDtHhQzZOWwT4tF3ry9W9U+BQMq0l5tjdwc0FnNqN89JGlbw2skLe/83pghCm5cnwGcHDQI QUI= X-IronPort-AV: E=Sophos;i="5.70,322,1574146800"; d="scan'208";a="64802519" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Jan 2020 04:54:53 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 15 Jan 2020 04:54:53 -0700 Received: from rob-ult-m19940.microchip.com (10.10.85.251) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Wed, 15 Jan 2020 04:54:50 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , , Codrin Ciubotariu Subject: [PATCH v3 4/6] ARM: at91/dt: sama5d3: add i2c gpio pinctrl Date: Wed, 15 Jan 2020 13:54:20 +0200 Message-ID: <20200115115422.17097-5-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200115115422.17097-1-codrin.ciubotariu@microchip.com> References: <20200115115422.17097-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 --- 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 f770aace0efd..1cea2137decf 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