Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6388468ybl; Wed, 15 Jan 2020 03:56:20 -0800 (PST) X-Google-Smtp-Source: APXvYqx/mb++QhRAsVCj0Zm1LBOCin494ZMkGq07eau1Lh79PY1zO9EUImtAF6USxTqa8g2F92Ho X-Received: by 2002:a9d:674f:: with SMTP id w15mr2455131otm.243.1579089379924; Wed, 15 Jan 2020 03:56:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579089379; cv=none; d=google.com; s=arc-20160816; b=KRnZ5I2pYI3y2k9RJXTurh1U/qjxFxFyB5IbT9laJ4/BZ+uJ1CKn5mqooHHEWg3Bcu oWBzq4Z7O20AqCHFoUR0ArDgbPdwaSEU0aWNSRvnQg0Ya8wj8fh178iElYCDJWxW6YwQ aqkoVLuiqaD5on+s/E10M5qLU8yKdCuSM43wV0IinedMIQFdMORvxLRLTotFWt+u1VeX hyJK3eIwKHQfOHv9DIXR6BnWmLMknRvhzKuSSIeFGIlcAd2bAzdidFUFUS1L/tpLpUsQ i/monw23F/5jmivY2Woyc+QSEDZjh1aYtJyXnbd7qgyL32tOviELWxPmZ7UxvLtehoVc jKWw== 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=/n3kVxFNWz7Pfyw8h5bTJhMYvf7o4VcCWcRDD6GZqvc=; b=MGRuSV6iTKafXblb8CzH+qXRdQQPSR9Szej+HwPYu+KvWJ+ubXip/FkSUDwBI62w45 swwfRH3/xPabrOIuTS8A5JMk46a+sG2W4MO/SXniZPVn3e572zH8R9MFMVmeExp10KwX eItFoM0TaS8J/mIJZjgr9P4Xg6yoSeXF7UPG7JOthaq9YJG+gCRA1Fw8rh53aXRiYZVK UaTZ3swH3iG2qQ+ARq1rgHKO3GJo+rHhAza+EWCWnj9KlKpP+gwTiFMjJgchHRG7ziA9 1GO6fHfl1LcnMzpfeDN3lc3ESSpnnVoCSSEwZ/Ny8BcMbnTqE9aOKsOEJGXwMTCjD8tD xD8w== 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 w81si9377286oig.107.2020.01.15.03.56.07; Wed, 15 Jan 2020 03:56:19 -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 S1730336AbgAOLy7 (ORCPT + 99 others); Wed, 15 Jan 2020 06:54:59 -0500 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:59204 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730297AbgAOLy6 (ORCPT ); Wed, 15 Jan 2020 06:54:58 -0500 Received-SPF: Pass (esa5.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=esa5.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 (esa5.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa5.microchip.iphmx.com; envelope-from="Codrin.Ciubotariu@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa5.microchip.iphmx.com; dkim=none (message not signed) header.i=none; 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: Z1V6XRZxr7RKtlza2gdtfeUtb23fprAtN78ZJ4Qy/5r7UhIIxlgmRl07Rle3m3GYac0BITqu0Y 3e4ciba7pzUnGJBBpVSDD0tIeDJxEkafETSuSOnOm1zk8D3RM9fRhBjgCxXLsRzBXPcAf187vV 43XzDx9vvEUUoZ97jexTwJuJNYKpbJHMRsFBMmzg1aRqTBt6WquWtAQYvt8DHB+GU58RoLlVuh NtE0yGof4hEZV4ze58p6pydGbhn/CbViXxuCJ8847VO1a+5lCGBKptaRiy34FjvUeT8kai7MPl Sw4= X-IronPort-AV: E=Sophos;i="5.70,322,1574146800"; d="scan'208";a="61997847" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Jan 2020 04:54:57 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 15 Jan 2020 04:54:56 -0700 Received: from rob-ult-m19940.microchip.com (10.10.85.251) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Wed, 15 Jan 2020 04:54:53 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , , Codrin Ciubotariu Subject: [PATCH v3 5/6] ARM: at91/dt: sama5d4: add i2c gpio pinctrl Date: Wed, 15 Jan 2020 13:54:21 +0200 Message-ID: <20200115115422.17097-6-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200115115422.17097-1-codrin.ciubotariu@microchip.com> References: <20200115115422.17097-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 --- 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