Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3294040ybl; Mon, 27 Jan 2020 00:58:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwKz1Bk87A3uURp3Iw0IwVy0L3/312WsEaE9yHtUm1j5Nu04U1X2qbAYAowS4qVzw0gMkaP X-Received: by 2002:aca:c551:: with SMTP id v78mr6856860oif.161.1580115525879; Mon, 27 Jan 2020 00:58:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580115525; cv=none; d=google.com; s=arc-20160816; b=lxYZKPhtlD1XU6J5rEh/9UIQxupxCpPy0oR+/5Lyqlc9J9oYFFlgGUFQ8FpGy6/gVS j+ND9iGr7nlHvK7SJaWRDkE54m73X5FS9rwy0i8Ru3bTx5hp5FaRaXRZQEf+hmZWliX9 leTex/y6rOMoTEzbYothxQRrgEJ/XwBTU2Rt+dedU0ABBESWRQs2wrpLGoB2sN35k4iL KeYkqSfR9XlAZXF6AKBQ1IOHgwo1Cy7E43ImA7X8uDFIlNsTksaBDsfPCNVS8ImggF3k IgB4hOWVoKZFfM9LI5msWNV9P/pbw17p/bgRJbjVLuflnrdot4hkiDS1BtL4dQJdGyt9 pzEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:ironport-sdr; bh=jJ+fLy6RHRLK+HNjINUhUvHlc7b7/wNfm8EDQCDC9OE=; b=PX8WlhdwWQYHH1fqZAaYqPV1WJGFUkQTl4BauL27/bycy0nA2zYTCFNLh16iJI0hOt 5e/XymV5Zbd9gJnZAe3KJkennqJV3gBElrgx9vqh4kw1gncXEHAEzWbIUUc8wQex0MLr RW4PNajhvcrQu4TioeRVBnIJSqBuGKPISOWzmJHpdjnmaH2NwFgD7sTSJyH20I4pqUue qQ6g69k3u9sBNo6hTeElUG2rQXlBkgq4XpdWa4HwWQ/G44HgTBL4mj3HS0XnPr9kd+xH uqsW5ZCv+DvJt7IL9ndhgYZtDoMykr9hvc0t7cz4+qFGoZAqn9Bb4DahBOSchYQHxVN5 xcKQ== 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 w135si1152705oiw.44.2020.01.27.00.58.34; Mon, 27 Jan 2020 00:58:45 -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 S1729143AbgA0I4Q (ORCPT + 99 others); Mon, 27 Jan 2020 03:56:16 -0500 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:25000 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727312AbgA0I4Q (ORCPT ); Mon, 27 Jan 2020 03:56:16 -0500 Received-SPF: Pass (esa2.microchip.iphmx.com: domain of Ludovic.Desroches@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa2.microchip.iphmx.com; envelope-from="Ludovic.Desroches@microchip.com"; x-sender="Ludovic.Desroches@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 (esa2.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa2.microchip.iphmx.com; envelope-from="Ludovic.Desroches@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa2.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Ludovic.Desroches@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: x+zFQFsYXOi702XMnWwG7iwy/ol2U/EccRcPhvSLiej9ahUlEMUz3AEz4dUAZ73Jw2666oJ3yo MF2noVLtub9u5G2563cM2mU9P+C5LPQ1M89/49qlr1qEVMZyl5LtJz3QdKlGQwamlCivIQ30J5 KnFk6EaRAIAbPzdy/DhbxlIabamW0QQrGwLrBzI1oHDXkKiJuxuwF6RMg9QriY+wQjtNnS+8T3 P7rkk2GHfGiI0MrbiXUEDw+aStPMIV4L4+TLcuS+Kps8bAVgZFUTbfbnf0iGkj0p6DuyDCNQ1Z kjI= X-IronPort-AV: E=Sophos;i="5.70,369,1574146800"; d="scan'208";a="63829598" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 27 Jan 2020 01:55:59 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) 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; Mon, 27 Jan 2020 01:55:59 -0700 Received: from localhost (10.10.85.251) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Mon, 27 Jan 2020 01:56:00 -0700 Date: Mon, 27 Jan 2020 09:55:34 +0100 From: Ludovic Desroches To: Codrin Ciubotariu CC: , , , , , , , , , , Subject: Re: [PATCH v3 4/6] ARM: at91/dt: sama5d3: add i2c gpio pinctrl Message-ID: <20200127085534.gux7rjtr275al4pb@M43218.corp.atmel.com> Mail-Followup-To: Codrin Ciubotariu , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kamel.bouhara@bootlin.com, wsa@the-dreams.de, Nicolas.Ferre@microchip.com, alexandre.belloni@bootlin.com, robh@kernel.org, peda@axentia.se, linux@armlinux.org.uk References: <20200115115422.17097-1-codrin.ciubotariu@microchip.com> <20200115115422.17097-5-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200115115422.17097-5-codrin.ciubotariu@microchip.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 15, 2020 at 01:54:20PM +0200, Codrin Ciubotariu wrote: > 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 Acked-by: Ludovic Desroches > --- > > 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 @@ > AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA31 periph A TWCK0 pin, conflicts with UTXD1, ISI_HSYNC */ > }; > + > + pinctrl_i2c0_gpio: i2c0-gpio { > + atmel,pins = > + + AT91_PIOA 31 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; > + }; > }; > > i2c1 { > @@ -647,6 +662,12 @@ > AT91_PIOC 27 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC27 periph B TWCK1 pin, conflicts with SPI1_NPCS2, ISI_D10 */ > }; > + > + pinctrl_i2c1_gpio: i2c1-gpio { > + atmel,pins = > + + AT91_PIOC 27 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; > + }; > }; > > i2c2 { > @@ -655,6 +676,12 @@ > AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* TWCK2 pin, conflicts with LCDDAT19, ISI_D3 */ > }; > + > + pinctrl_i2c2_gpio: i2c2-gpio { > + atmel,pins = > + + AT91_PIOA 19 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; > + }; > }; > > isi { > -- > 2.20.1 >