Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp909235ybn; Wed, 2 Oct 2019 08:04:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNvtfoh5+BY+YhVhJyXDQAm5FeZvtOOTGOKUNZcvXcCi/V8jRyxKTf3fUDFWTG1Kq+2/f7 X-Received: by 2002:a17:906:5c16:: with SMTP id e22mr3423713ejq.105.1570028673730; Wed, 02 Oct 2019 08:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570028673; cv=none; d=google.com; s=arc-20160816; b=IU4WYUf/OQhj5gxyqR3Mzjp1srbo8EWBV3YPLW4/LVh3NcXNDXwV2dKAZ69OUFJv7p uOw8c0ZIl9nnFy7Rk8t0xMk2P/FM74D4GunpjlBwjTczAX+aktg3J+BM2yGLy2cKdkCW IyBziiXRfhPNox6RAQFdnXB2DYWAhOth9t/I3FxSvdZ9VmX8CjuXoJKescxyquBZq5/H es5/FzZLzpIPPdx8eS0B6O2yTenHiXWrZCwgzSrPuQLmR4fKiluDVUGc7VZUuUapdqx2 sHcsjvTkFWYd0lT1a15q5VuAKlmVo+Kx/GxjPjWj3kvLQJF8ahRmcQr+qxblmCNOeF9x rTdg== 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=odL+cBp4WSRe95HOmcrytg/xXxSbVebLrFNUF5YqwiJ8wIIRF+ctEpcVFCvAvsI2fV 5FJ//+tZFQnEmJ3EPNWUvqEo4QF98jcQOCsAzZOJxvGTtNKaIHe+ryXh6uovi3nBEAyM Yjc0CheNntXo8R61z1WdnB9MttRXA6u9qzdAF3TJDyClClPzG+KEwBBjpmEeVKEyXpNt XPKHmz4I8vAKYZ4Z7YvT5vd4mgwB5vz+GWWGXDR/VzLVAD1r3sCWng+XYDrz8Qa+NTnu INw3S/e4u/bbUR8TiEoA241Z7fMz6rR8VF7598I9KdWfxB9FCMKmJ8CCZ7+Jo/CDhw8B BFYw== 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 p22si10366252ejf.278.2019.10.02.08.04.09; Wed, 02 Oct 2019 08:04:33 -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 S1728443AbfJBOrL (ORCPT + 99 others); Wed, 2 Oct 2019 10:47:11 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:55399 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725975AbfJBOrK (ORCPT ); Wed, 2 Oct 2019 10:47:10 -0400 X-Originating-IP: 86.207.98.53 Received: from localhost (aclermont-ferrand-651-1-259-53.w86-207.abo.wanadoo.fr [86.207.98.53]) (Authenticated sender: kamel.bouhara@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 4BAD520013; Wed, 2 Oct 2019 14:47:07 +0000 (UTC) From: Kamel Bouhara To: Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org, Thomas Petazzoni , Kamel Bouhara Subject: [PATCH 3/4] ARM: at91/dt: sama5d3: add i2c gpio pinctrl Date: Wed, 2 Oct 2019 16:46:57 +0200 Message-Id: <20191002144658.7718-4-kamel.bouhara@bootlin.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191002144658.7718-1-kamel.bouhara@bootlin.com> References: <20191002144658.7718-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