From patchwork Thu Dec 8 08:26:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: M'boumba Cedric Madianga X-Patchwork-Id: 9465997 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C629560231 for ; Thu, 8 Dec 2016 08:29:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3FE028534 for ; Thu, 8 Dec 2016 08:29:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5D0028537; Thu, 8 Dec 2016 08:29:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4BC3228534 for ; Thu, 8 Dec 2016 08:29:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEu31-0001Ik-Ed; Thu, 08 Dec 2016 08:27:23 +0000 Received: from mail-wj0-x244.google.com ([2a00:1450:400c:c01::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEu2N-0000sC-BB for linux-arm-kernel@lists.infradead.org; Thu, 08 Dec 2016 08:26:44 +0000 Received: by mail-wj0-x244.google.com with SMTP id xy5so53284086wjc.1 for ; Thu, 08 Dec 2016 00:26:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/3rLJkbzRqGJp0KdhGblqmiMsRnXXbvgQNG4iy61UZk=; b=mVY8rBx1OW+0xWv8gl/4t1h4E6Z8/mTD/sqlIRyTa27m+7e1zfrpRy7lw2Gqcm2zLw XtU3CtbHmXu6zhCcBh/a8eAD2YnyMOKMDyDzk5VLBRH9Jc5YA9zQQzB4S/VrleDAHYXB SUhFBbdfa3mQ/vx1rT+4xpXo+aeBFsKwvA8p3XxobOMJsYmYbFYv05d0PyjbpIy2/bN6 rkkskaZSrItCDXrndoRLIfMswKylTjB1/L6/70pImtAD/Qk9w58QkypoTlhKKvEYzzfP ai1h3lm0aPQ15ftLqeU3e8aQGrWj7grquwLWqzeK1GenAtyIqRMcx8FZB9Eatb1RlXZE QeHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/3rLJkbzRqGJp0KdhGblqmiMsRnXXbvgQNG4iy61UZk=; b=hFDl4UyM7ObqO/cd38zgUcD42am/6A5puFOa/rJQjclUGI6IdX+2jTZYmnOWvRKmRh R1tYzg2KK0G7OGdgaCVfUwPZ4UWqEHeslKDDirFF6TYChF5+xcV0qPpioIT9CRB6bXrL gcq9hJJ4F4LCnnjip/hffSJNt8JxaDVkWeC0cD2XqSQL3lsY6VM7fvIOz0QPMoNUpzOe ur9i3CvXt64ZTksvUk0stfilSavrmYdDH78YEPN0RT1jUQC0p7LSA1k/NYJcYZmQNRzz RhrwMuhqGKgbrzIheWkakruI5XsnMm7AbC3+B//3RuI2ZMTixg/xixbOp5tz1sZBEp3O esiA== X-Gm-Message-State: AKaTC01tAvt0ZxvRFdEvVabU1HILrL9ZN+W3g3YYF7UKvDMgALy+Ito1jWNPG2BgB15c8Q== X-Received: by 10.194.55.199 with SMTP id u7mr62409530wjp.72.1481185581505; Thu, 08 Dec 2016 00:26:21 -0800 (PST) Received: from lmenx29w.st.com. ([80.214.120.172]) by smtp.gmail.com with ESMTPSA id pd2sm35618795wjb.31.2016.12.08.00.26.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Dec 2016 00:26:20 -0800 (PST) From: M'boumba Cedric Madianga To: wsa@the-dreams.de, robh+dt@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linus.walleij@linaro.org, patrice.chotard@st.com, linux@armlinux.org.uk, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 3/5] ARM: dts: Add I2C1 support for STM32F429 SoC Date: Thu, 8 Dec 2016 09:26:01 +0100 Message-Id: <1481185563-8735-4-git-send-email-cedric.madianga@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1481185563-8735-1-git-send-email-cedric.madianga@gmail.com> References: <1481185563-8735-1-git-send-email-cedric.madianga@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161208_002643_660314_7256727A X-CRM114-Status: GOOD ( 10.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: M'boumba Cedric Madianga MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Patrice Chotard Signed-off-by: M'boumba Cedric Madianga --- arch/arm/boot/dts/stm32f429.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index 7de52ee..cbdece7 100644 --- a/arch/arm/boot/dts/stm32f429.dtsi +++ b/arch/arm/boot/dts/stm32f429.dtsi @@ -48,6 +48,7 @@ #include "skeleton.dtsi" #include "armv7-m.dtsi" #include +#include / { clocks { @@ -337,6 +338,16 @@ slew-rate = <2>; }; }; + + i2c1_pins_b: i2c1@0 { + pins1 { + pinmux = ; + drive-open-drain; + }; + pins2 { + pinmux = ; + }; + }; }; rcc: rcc@40023810 { @@ -409,6 +420,18 @@ interrupts = <80>; clocks = <&rcc 0 38>; }; + + i2c1: i2c@40005400 { + compatible = "st,stm32f4-i2c"; + reg = <0x40005400 0x400>; + interrupts = <31>, + <32>; + resets = <&rcc STM32F4_APB1_RESET(I2C1)>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(I2C1)>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; }; };