Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4012810ybg; Fri, 25 Oct 2019 12:05:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxulbCg+PRW7/I/QHu4fKhl42AvRIVKUJA9I/YNMRAqi6VzQrc/aHblAIH/U0cdmKyVeXkE X-Received: by 2002:a17:906:2295:: with SMTP id p21mr5007896eja.8.1572030326525; Fri, 25 Oct 2019 12:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572030326; cv=none; d=google.com; s=arc-20160816; b=wGYz9sVMCAuWH6AoGz1ODQz3N4WP79fEPnIoKeW4+9ces3qJPfMBpVtaUWsU9wfvc8 oWYiuKEVbCjjh0SMTZH2AppOkVC1khpei2oLNlIOiKXcLzCQ4jBelNebOHifMmkb/c4m GTUUtmprsfWythvCLSEa3DRZmt4hZgbPoZzsgqJ1Swp6rmXvAf9T9WJp5P/X5GKdFDZg 0w4f4D+KqPAUyRYEU0M8IskoGqDKiPeQZ+XBVfw3PYKNQNqWDKoKU+eFoc9fBeLOHx2O aoJVg368xqVcuQ3iUt8Q/Ww5/kgcolZWzggFywoAjQrcT85Xe4cerjqFgxnSYvmXzPLC Q92A== 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; bh=xvdBXFrGLRWjsUUvMYc1rap8ukAYgylje/GP5OE48DM=; b=NDnuwpCMTFEGozeiRvqOLbgYxoqlGR/c9YkC2hpnNWS1XNEQ6iJH/iIRHwKlXrI2Cv KoJiXs3RZpMyrLKW8qlx6BYiP4rnGnW7KLxg4RJdlmqDEN4zx5MBF9T8wQZiuv94KNyS +QVBt7VTCbFfNMrkiLj9cvhB1xgYnKozNVQV9jipJxR+MijRJZ4DqvYtUjCiHqeOhJCF iT7rojlwBNAHSzo0qG0RGLV6eOIvScNpI6fBGtAlXQC/GxpBK48q+cEEiBDS7Pg/YEr8 cIHrcsT211ZebR45ud3eby+NeiwjGyB8redipphn490r21Quu9EXOAqbVrMp3FXiTO6B aJsw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si1675054ejt.380.2019.10.25.12.05.01; Fri, 25 Oct 2019 12:05:26 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726892AbfJXUNg (ORCPT + 99 others); Thu, 24 Oct 2019 16:13:36 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:40639 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726665AbfJXUNe (ORCPT ); Thu, 24 Oct 2019 16:13:34 -0400 Received: from localhost (unknown [78.193.40.249]) (Authenticated sender: kamel.bouhara@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 46CCF200003; Thu, 24 Oct 2019 20:13:31 +0000 (UTC) From: Kamel Bouhara To: Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , Rob Herring , devicetree@vger.kernel.org, Kamel Bouhara Subject: [PATCH v2 4/5] ARM: at91/dt: sama5d3: add i2c gpio pinctrl Date: Thu, 24 Oct 2019 22:13:01 +0200 Message-Id: <20191024201302.23376-5-kamel.bouhara@bootlin.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191024201302.23376-1-kamel.bouhara@bootlin.com> References: <20191024201302.23376-1-kamel.bouhara@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the i2c gpio pinctrls to support the i2c bus recovery Signed-off-by: Kamel Bouhara --- 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..faf8907d8d7d 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.23.0