Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3140358imu; Fri, 18 Jan 2019 05:33:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN7q9rGuvs+dyeMXfAavuxeYCiac1WC9qz0Z1Boo5u7moafSNKq+Qfp8mVNUHW3/bVwJ3FYg X-Received: by 2002:a17:902:a60f:: with SMTP id u15mr18392943plq.275.1547818433393; Fri, 18 Jan 2019 05:33:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547818433; cv=none; d=google.com; s=arc-20160816; b=c6GULSa5ve0qhdxTnZzJ42z+MmEOmZKw+uGajxvtiIeZvkHV2B6nTcO+BlAfOCJUww xuVchcW4X73TS5ivQQn52WA++j/CKfjxrrh0MKDKUwP/HDwnUjKICSRbPVCc6u2wNYHv AS8Bs5HHzqUVYEiyd0PzThijbZEO1VP5TPooforwxCAETsNnK3dg0TlV3KvjksaMLD47 OrnWnpCldg6k5ysJHA960dtuB/O/dydCmLV3qPdg1WkO55Vh3lY4SpKyYbBiyKEx2C9a JIh7t3N3BUMWIneMxvFFspLkICcAOFce9AHnSjJsb1clwXWIQbTwZSINnT9afAQEPXXH 14fA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Aik6KQzBZfujviPqUffSwTRj+LLZFOQ4Ed9Tw4Zsw6o=; b=fdn/FsoHrNrUzUNK9+eMIkTQ+UA0YaCsBpgBEtU2oPR4kkpNDpM7zoSeTOroUlo8Xj i5ov0qf34OC/SkuWAaBB/3QhjV0XewqyFASFZj2kNAXFUf6wDW97TWB83DEZ/gFj6WyD aGQs579v5jWmbrCjVukD9Zme8J7kipvluiA/1gam+TLLrtNJBHXDrNp2G8qYfZHCQiWT gvYmgGXWdPJf2WRQqG/QPbqhwmwW2mEJEu9kKF9qhRYdYXvQlvjFQ6ZCQs8dmbEU4pku OzAiSZdyFG1zW4DjzjY8+V1e2GWG5qkEzTX+YvnY8fpKOum4+aBtE0RG73tt8O1G3hNx IAqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=pGMniGur; 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 d14si2733010pgi.158.2019.01.18.05.33.37; Fri, 18 Jan 2019 05:33:53 -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; dkim=pass header.i=@agner.ch header.s=dkim header.b=pGMniGur; 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 S1727346AbfARNbV (ORCPT + 99 others); Fri, 18 Jan 2019 08:31:21 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:36580 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727020AbfARNbV (ORCPT ); Fri, 18 Jan 2019 08:31:21 -0500 Received: from trochilidae.toradex.int (unknown [46.140.72.82]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 9C3975C115F; Fri, 18 Jan 2019 14:31:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1547818278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=Aik6KQzBZfujviPqUffSwTRj+LLZFOQ4Ed9Tw4Zsw6o=; b=pGMniGur4JfF1kfAktUVW5jwykUZyQwFl/V2j2lrpu69j13CkT77glb8j5hVXhEHZsUeRQ YZsplIh7clwwxx8FffR92D3hdqKFTQshSbJQaq7F9AQR6WyfwiRzPhfiqSWeOq4Tm71n/K OsMdVFcfrNXxvus7cSjujLQGXodM2LY= From: Stefan Agner To: shawnguo@kernel.org, s.hauer@pengutronix.de Cc: max.krummenacher@toradex.com, marcel.ziswiler@toradex.com, dev@pschenker.ch, kernel@pengutronix.de, fabio.estevam@nxp.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH] ARM: dts: imx6*-apalis/-colibri: mark I2C recovery GPIOs as open drain Date: Fri, 18 Jan 2019 14:31:13 +0100 Message-Id: <20190118133113.19484-1-stefan@agner.ch> X-Mailer: git-send-email 2.20.1 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 Since commit d2d0ad2aec4a ("i2c: imx: use open drain for recovery GPIO") GPIO lib expects this GPIO to be configured as open drain. Make sure we define this GPIO as open drain in the device tree. This gets rid of the following warning: gpio-81 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file Note that currently the i.MX pinctrl driver does not support enabling open drain directly, so this patch has no effect in practice. Open drain is enabled by the fixed pinmux entry. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 4 ++-- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 4 ++-- arch/arm/boot/dts/imx6ull-colibri.dtsi | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi index cf66f9ececbd..2d0ed199ed20 100644 --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi @@ -429,8 +429,8 @@ pinctrl-names = "default", "recovery"; pinctrl-0 = <&pinctrl_i2c3>; pinctrl-1 = <&pinctrl_i2c3_recovery>; - scl-gpios = <&gpio3 17 GPIO_ACTIVE_HIGH>; - sda-gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>; + scl-gpios = <&gpio3 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + sda-gpios = <&gpio3 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index 87e15e7cb32b..8a27c2a05678 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -298,8 +298,8 @@ pinctrl-names = "default", "recovery"; pinctrl-0 = <&pinctrl_i2c3>; pinctrl-1 = <&pinctrl_i2c3_recovery>; - scl-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; - sda-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; + scl-gpios = <&gpio1 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + sda-gpios = <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi b/arch/arm/boot/dts/imx6ull-colibri.dtsi index 6c63a7384611..9ad1da159768 100644 --- a/arch/arm/boot/dts/imx6ull-colibri.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri.dtsi @@ -94,16 +94,16 @@ pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c1>; pinctrl-1 = <&pinctrl_i2c1_gpio>; - sda-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>; - scl-gpios = <&gpio1 28 GPIO_ACTIVE_LOW>; + sda-gpios = <&gpio1 29 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + scl-gpios = <&gpio1 28 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; }; &i2c2 { pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c2>; pinctrl-1 = <&pinctrl_i2c2_gpio>; - sda-gpios = <&gpio1 31 GPIO_ACTIVE_LOW>; - scl-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>; + sda-gpios = <&gpio1 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + scl-gpios = <&gpio1 30 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "okay"; ad7879@2c { -- 2.20.1