Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752555AbcL3JHJ (ORCPT ); Fri, 30 Dec 2016 04:07:09 -0500 Received: from mail-qk0-f178.google.com ([209.85.220.178]:32939 "EHLO mail-qk0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752452AbcL3JHH (ORCPT ); Fri, 30 Dec 2016 04:07:07 -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: Linus Walleij Date: Fri, 30 Dec 2016 10:07:01 +0100 Message-ID: Subject: Re: [PATCH v7 3/5] ARM: dts: stm32: Add I2C1 support for STM32F429 SoC To: "M'boumba Cedric Madianga" 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 uBU97L1v003588 Content-Length: 1319 Lines: 32 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? Yours, Linus Walleij