Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4012245ybg; Fri, 25 Oct 2019 12:05:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqw77I2INtoZ9egOqYpoMNfihe4fPPJ50mG0cOYYS8U1Z4/snp1Pe2FD7KCLzObYVYdBPVFq X-Received: by 2002:aa7:cd71:: with SMTP id ca17mr5680630edb.1.1572030302376; Fri, 25 Oct 2019 12:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572030302; cv=none; d=google.com; s=arc-20160816; b=O/AS+7JGOHSSJDmaDm4I5nMuoPHP4H++QRr8QuyCJRBTd8UpuaufrAlxCQ/SkopHHg MzCPfKwZdcsk+tMzIiyM5zzwgFycPCo/e2sonh2pUtc6W4KeVspfpPcg5aBjm/ifizrC MaNDZjVa01/MwqpAeTlhvcI8BZJWngMKMTet/jeFh+bi19HLoj75Hucf8lar6n12qVvm xKaaJwf5Vfinm6xT17Mcpj5CbJ+fZ8IOzmaJaPiBU9Y/ZeDdhIQ1EDmGfTxhu0VoZ46W Flnxo0MW6iP3ETJvZMsv1yj5CLcr+RjXnmsFQRMuoQUlGUEXk0rC2YKmf6q2RXWgALE2 0kqQ== 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=fekHG7D5++NyZEXTN2EG6ytVc3Nese5CZ1bb3QxQ4DoN4B2FfrS5K0Az59qvO8iDHF n37PVVftZNHKjbu5NAHb1pIGMeSbimSRuG7rKGzBiHOf8dOLl4LtSG1TgOYa863Cx0J4 revT/rT84/MuRZGJAveXuRnWx1O3O5ul6VK5PkRXWmD1vZFqXu1i10zMgZFc2zCxc4lW Zs+p7cxcxiQHtYeqWRhjZjSiDGuvL2E38bjJ3SDnXOyAhOGaI91tSp79/a1ADXN5xcKI hLYKjQHW8mfj3MceXYJ5TBqRGzETKae0vhNzz3o0Xe+aOCmwP+OT5sacxL7oAnM1usxl 6ZOQ== 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 e48si1789445edb.370.2019.10.25.12.04.38; Fri, 25 Oct 2019 12:05:02 -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 S1726927AbfJXUNl (ORCPT + 99 others); Thu, 24 Oct 2019 16:13:41 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:57559 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726832AbfJXUNe (ORCPT ); Thu, 24 Oct 2019 16:13:34 -0400 Received: from localhost (unknown [78.193.40.249]) (Authenticated sender: kamel.bouhara@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 343AA240008; Thu, 24 Oct 2019 20:13:32 +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 5/5] ARM: at91/dt: sama5d4: add i2c gpio pinctrl Date: Thu, 24 Oct 2019 22:13:02 +0200 Message-Id: <20191024201302.23376-6-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 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