Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3838931ybv; Tue, 25 Feb 2020 08:12:28 -0800 (PST) X-Google-Smtp-Source: APXvYqxnbT5hdYYsTuesleSPLMcPERdDGrDlOLa71fTZ0GFyo67oWaWVTZsngLUBIBFGsAxs0AAc X-Received: by 2002:a05:6808:487:: with SMTP id z7mr4212584oid.59.1582647148568; Tue, 25 Feb 2020 08:12:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582647148; cv=none; d=google.com; s=arc-20160816; b=r6Six6oUgK2+lKIAK4tg4zkCxANyfOgpQdpdHJMk0miXdgbAWgXitL7noBKyD/pIj3 dQOqr3ueOi9/7W4AKItEkWgTliTvCEYmjTCwQEVti9GoM8UnVDbMmIssDwCSrleeaXN0 QKdgCGMzO1/MV7Flf1zlYiB62S0EcIl039B+5ve+HyFShrTHV8/EE/68WwfTgWmAvG+6 AABuNhgSrTcoHTSC6ANOkWfxPtmAZDpxTudQ4oekC71M44sscgOu3jiWwoPuZYGtmRq4 w/GztciE38z22TwY51rMQZIc+52qTOgxpgu0G1C/+RIR+1UoJO6h26le2As9IOIN10hF rdQA== 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 :ironport-sdr; bh=YNFgp8C4e7GqS424+Q6m3V2SXHij79zKGsuwCJJzlig=; b=dU/qa/h6qHQ6JoPFG77Bg7hzBp1c3dEWNK/VqQ93Et/KqlmKFGtpkPfdA9BQwk1Si2 3xa08ws7qn+oKdVQ3kTeZmtAxhnmlUAoWPAoRYi+gg2zY8vMnjPp2q3qxnfzIUh9MC2x mOL9RKau1+vJ9m0kRAes8+ZjDVUk4tyXz96r2H8CluUHGJGbwbob8G5Fr89mY4K9PGoL E2Q5M/Q0xqvuZ286PYWcdpqbExp2SfuvvHoe2lWAXdzTbr6ubhmMP07X6c+ef2unjPbK F+D5kNMa5jCZODEgZ4VHYVzVaYr9RLVwmTXI8bQ3pyV3ciICpwp6ygjuHy5tItS5oq4p mGWw== 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 w13si8031118oti.291.2020.02.25.08.12.16; Tue, 25 Feb 2020 08:12:28 -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 S1731160AbgBYPud (ORCPT + 99 others); Tue, 25 Feb 2020 10:50:33 -0500 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:22584 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731136AbgBYPuc (ORCPT ); Tue, 25 Feb 2020 10:50:32 -0500 Received-SPF: Pass (esa3.microchip.iphmx.com: domain of Codrin.Ciubotariu@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa3.microchip.iphmx.com; envelope-from="Codrin.Ciubotariu@microchip.com"; x-sender="Codrin.Ciubotariu@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 (esa3.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa3.microchip.iphmx.com; envelope-from="Codrin.Ciubotariu@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa3.microchip.iphmx.com; spf=Pass smtp.mailfrom=Codrin.Ciubotariu@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: cwSrmAZ3jtKLqgAWenLG93QbjamnfdjuSbNn+hLJFGk1mBKCO/wBK3ZTFAqsmpm9WkRYT6EqTr /ISc/uLbQaHG+dlha1FmgePkIG6BCsjRpW1ztpMbDcEiDLICswf27sCJs7RXIYVij7axUSUtyA FCuaSnQtz5xeA3pHWruSzUHbiD98EaJCXf6z3xvZduM3d0scTHqY6auQc4Auv+VFqgtn/zXhUl 1aAyehudgQVaVeYTrW8kLtlGbJqYQJSBhbFWU80NMAYgRT15wpyHlBimy127aoVkVBE8UP7KKo UnE= X-IronPort-AV: E=Sophos;i="5.70,484,1574146800"; d="scan'208";a="67909095" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Feb 2020 08:50:30 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 25 Feb 2020 08:50:41 -0700 Received: from rob-ult-m19940.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Tue, 25 Feb 2020 08:50:36 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , Kamel Bouhara , Codrin Ciubotariu Subject: [PATCH v4 3/4] ARM: at91/dt: sama5d4: add i2c gpio pinctrl Date: Tue, 25 Feb 2020 17:50:11 +0200 Message-ID: <20200225155012.22764-3-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200225155012.22764-1-codrin.ciubotariu@microchip.com> References: <20200225155012.22764-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kamel Bouhara Add the i2c gpio pinctrls so the i2c bus recovery option can be enabled Signed-off-by: Kamel Bouhara [codrin.ciubotariu@microchip.com: removed gpio pull-ups] Signed-off-by: Codrin Ciubotariu Acked-by: Ludovic Desroches --- Changes in v4: - added Acked-by tag from Ludovic; Changes in v3: - removed gpio pull-ups; Changes in v2: - none; 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..26ce868096c2 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.20.1