Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp909393ybn; Wed, 2 Oct 2019 08:04:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLUvIV5CwyfRvK0Ate3npzVmzd1hiaE4TJvaoXivHLtb1VF/MGm1i5/kVbhDrlSzYLpGkb X-Received: by 2002:a17:907:441d:: with SMTP id om21mr3567693ejb.188.1570028679819; Wed, 02 Oct 2019 08:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570028679; cv=none; d=google.com; s=arc-20160816; b=RU8FZvJytPcWxLt4TDy553+Jhridq3uLWktBWrrLyekdgZdAj8rwgoGD1hUQ39RI93 9CdI6mFIIKmnf7X/ERAuZDUKvYtMPnsqzppZi33y8LSOsFecyf2PHZG+hB++amDVi7y+ 8K9FWpiEJdtXusjcxPDLsoPQHFuB1ba3cAzfOUD0Kid0BGQpqS0LSgl4wRQluftqM/ng zqt1vV08ErhDtB428PIJdIrBV2oL5tYk4RysTRbwNUfbW3obrPX3WQWL68VA22BDlRkI 9p1lSxD8faHGRPxrsp0t6SPRdfgmCHifRaZd5rfZRcqkYGm1h0kQmvm+V3bvJqi4WLhx 1oMQ== 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=uxGRJJOzd2cy6ybP4GMHEpwBirpUXlTv22zJTpAA/3o=; b=bcLVRRvCv8G1phrkTX1e8d+Gk0t+t3Tb5Mh2XxLlkSHZQllT2hNHE+cVGQn/+Awo7e Gv+EMwVMCC1F9i4KFbRMJKJ5svsKyLNoM6ERK3mjeKeXc4BHXZXDjs0idHAUy6Uhq3Sm kdYo+xeZ2lpjuAkPy7fZRUeKr9Xw8XsgSDd3eIptnbArmV9rMr9JCjHdZrTVeAfL/kjv 99/yI/fgsESaTTDIEdtCOsfGxlup9PYbU4VzuHmbumpdak+rLZzracq9p2DwQ3omD+0N /inlTGI7Ax2hxvO7p46o5QQsTAjZ30J6n7y4SEN36Aih81vNcN1JHYtsImFpazWzcLcZ Ykig== 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 p18si11550557ejn.370.2019.10.02.08.04.14; Wed, 02 Oct 2019 08:04:39 -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 S1728460AbfJBOrN (ORCPT + 99 others); Wed, 2 Oct 2019 10:47:13 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:39765 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727427AbfJBOrM (ORCPT ); Wed, 2 Oct 2019 10:47:12 -0400 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 relay12.mail.gandi.net (Postfix) with ESMTPSA id 83FB220000C; Wed, 2 Oct 2019 14:47:09 +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 4/4] ARM: at91/dt: sama5d4: add i2c gpio pinctrl Date: Wed, 2 Oct 2019 16:46:58 +0200 Message-Id: <20191002144658.7718-5-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 so the i2c bus recovery option can be enabled Signed-off-by: Kamel Bouhara --- arch/arm/boot/dts/sama5d4.dtsi | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/sama5d4.dtsi b/arch/arm/boot/dts/sama5d4.dtsi index 6ab27a7b388d..34351baab985 100644 --- a/arch/arm/boot/dts/sama5d4.dtsi +++ b/arch/arm/boot/dts/sama5d4.dtsi @@ -458,8 +458,11 @@ (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | AT91_XDMAC_DT_PERID(3))>; 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 = <&pmc PMC_TYPE_PERIPHERAL 32>; @@ -477,8 +480,11 @@ (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | AT91_XDMAC_DT_PERID(5))>; dma-names = "tx", "rx"; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c1>; + pinctrl-1 = <&pinctrl_i2c1_gpio>; + sda-gpios = <&pioE 29 GPIO_ACTIVE_HIGH>; + scl-gpios = <&pioE 30 GPIO_ACTIVE_HIGH>; #address-cells = <1>; #size-cells = <0>; clocks = <&pmc PMC_TYPE_PERIPHERAL 33>; @@ -519,8 +525,11 @@ (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | AT91_XDMAC_DT_PERID(7))>; dma-names = "tx", "rx"; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c2>; + pinctrl-1 = <&pinctrl_i2c2_gpio>; + sda-gpios = <&pioB 29 GPIO_ACTIVE_HIGH>; + scl-gpios = <&pioB 30 GPIO_ACTIVE_HIGH>; #address-cells = <1>; #size-cells = <0>; clocks = <&pmc PMC_TYPE_PERIPHERAL 34>; @@ -1122,6 +1131,12 @@ ; }; + + pinctrl_i2c0_gpio: i2c0-gpio { + atmel,pins = + ; + }; }; i2c1 { @@ -1130,6 +1145,12 @@ ; /* TWCK1, conflicts with UART0 TX and DIBN */ }; + + pinctrl_i2c1_gpio: i2c1-gpio { + atmel,pins = + ; + }; }; i2c2 { @@ -1138,6 +1159,12 @@ ; /* TWCK2, conflicts with RF0 */ }; + + pinctrl_i2c2_gpio: i2c2-gpio { + atmel,pins = + ; + }; }; isi { -- 2.23.0