Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754433AbcL3OhD (ORCPT ); Fri, 30 Dec 2016 09:37:03 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34133 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753959AbcL3OhB (ORCPT ); Fri, 30 Dec 2016 09:37:01 -0500 MIME-Version: 1.0 In-Reply-To: References: <1482413704-17531-1-git-send-email-cedric.madianga@gmail.com> <1482413704-17531-4-git-send-email-cedric.madianga@gmail.com> <20161222191103.vzmfhnrtrzw2ivwa@pengutronix.de> From: "M'boumba Cedric Madianga" Date: Fri, 30 Dec 2016 15:36:53 +0100 Message-ID: Subject: Re: [PATCH v7 3/5] ARM: dts: stm32: Add I2C1 support for STM32F429 SoC To: Linus Walleij Cc: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Wolfram Sang , Rob Herring , Maxime Coquelin , Alexandre Torgue , Patrice Chotard , Russell King , "linux-i2c@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id uBUEbBRT030043 Content-Length: 1522 Lines: 38 Hi Linus, 2016-12-30 10:07 GMT+01:00 Linus Walleij : > On Fri, Dec 23, 2016 at 2:09 PM, M'boumba Cedric Madianga > wrote: >> 2016-12-22 20:11 GMT+01:00 Uwe Kleine-König : >>> On Thu, Dec 22, 2016 at 02:35:02PM +0100, M'boumba Cedric Madianga wrote: >>>> @@ -337,6 +350,16 @@ >>>> slew-rate = <2>; >>>> }; >>>> }; >>>> + >>>> + i2c1_pins_b: i2c1@0 { >>>> + pins1 { >>>> + pinmux = ; >>>> + drive-open-drain; >>>> + }; >>>> + pins2 { >>>> + pinmux = ; >>>> + }; >>> >>> the second doesn't need the open-drain property? Why? >> >> I thought that open-drain was only needed for SDA line. >> But after double-checking I2C specification, it seems that SDA and SCL >> lines need open-drain or open-collector to perform the wired-AND >> function. > > I think I2C SDA/SCL must be open drain by definition. > > It also requires pull-up resistors, I guess you have these mounted on the board > so you do not need pull-up from the pin controller? Yes, I have 1 pull-up resistor of 1,5K ohm for each line (SDA & SCL) on the board > > Yours, > Linus Walleij