From patchwork Thu Oct 1 20:54:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Eastwood X-Patchwork-Id: 7311641 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D22E89F1D5 for ; Thu, 1 Oct 2015 21:00:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B22B20810 for ; Thu, 1 Oct 2015 21:00:32 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 00A58207F1 for ; Thu, 1 Oct 2015 21:00:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zhkvd-0006Q9-BY; Thu, 01 Oct 2015 20:58:13 +0000 Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZhktY-0004Mo-TA for linux-arm-kernel@lists.infradead.org; Thu, 01 Oct 2015 20:56:06 +0000 Received: by labzv5 with SMTP id zv5so82484837lab.1 for ; Thu, 01 Oct 2015 13:55:43 -0700 (PDT) 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=kn+Bnfys1uAokd1YlpE3FlyERaESY+DmtckmHBw7Rlk=; b=WvEvIwnEFAK3zU2D8rnoS0m5s34XMPnFWEzAaJ6EHvwHX9+Ogc83MA6LQxJ0kwsGhQ 6LVZbQmR2AFMtNxuDlXYylaOyUteTigu5vbyQim8mxkWdHkZQC8K5nxEMiG0+owJyr0S C+Ch3dTIztek/uvVP7ZPbtzsafXtaIb4jAAQ7RGNNh7dlOCxQQYsTYfgASfCvioX3Fe8 hy8hz1jfrEyzJdRBHB0GQYrodGoksUA9Y1fJiNZtaTKud7OC8wv6of6fhQdURZVAPF0g 9CjmwdOa0kH9x1U5mhmZs/M5ROczJ08ZBuMNAwcYPCQDpA8fON7GT4FHorCM9oXR3wf3 nXmw== X-Received: by 10.112.200.229 with SMTP id jv5mr3850517lbc.123.1443732943047; Thu, 01 Oct 2015 13:55:43 -0700 (PDT) Received: from localhost.localdomain (141.89-11-213.nextgentel.com. [89.11.213.141]) by smtp.gmail.com with ESMTPSA id c193sm937147lfc.41.2015.10.01.13.55.41 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 Oct 2015 13:55:42 -0700 (PDT) From: Joachim Eastwood To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 15/16] ARM: dts: lpc4350-hitex-eval: add i2c0 and devices Date: Thu, 1 Oct 2015 22:54:52 +0200 Message-Id: <1443732893-17145-16-git-send-email-manabian@gmail.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1443732893-17145-1-git-send-email-manabian@gmail.com> References: <1443732893-17145-1-git-send-email-manabian@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151001_135605_392353_B07918D0 X-CRM114-Status: GOOD ( 10.01 ) X-Spam-Score: -2.7 (--) 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: devicetree@vger.kernel.org, Joachim Eastwood , ezequiel@vanguardiasur.com.ar, Ariel D'Alessandro MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ariel D'Alessandro Add the I2C0 bus and the some of the I2C devices on the Hitex LPC4350 eval board. Signed-off-by: Ariel D'Alessandro Signed-off-by: Joachim Eastwood --- arch/arm/boot/dts/lpc4350-hitex-eval.dts | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/lpc4350-hitex-eval.dts b/arch/arm/boot/dts/lpc4350-hitex-eval.dts index c1dd76e5fc45..5c529f45947b 100644 --- a/arch/arm/boot/dts/lpc4350-hitex-eval.dts +++ b/arch/arm/boot/dts/lpc4350-hitex-eval.dts @@ -186,6 +186,14 @@ }; }; + i2c0_pins: i2c0-pins { + i2c0_pins_cfg { + pins = "i2c0_scl", "i2c0_sda"; + function = "i2c0"; + input-enable; + }; + }; + spifi_pins: spifi-pins { spifi_clk_cfg { pins = "p3_3"; @@ -300,6 +308,31 @@ clock-frequency = <25000000>; }; +&i2c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + clock-frequency = <400000>; + + /* NXP SE97BTP with temperature sensor + eeprom */ + sensor@18 { + compatible = "nxp,jc42"; + reg = <0x18>; + }; + + eeprom@50 { + compatible = "nxp,24c02"; + reg = <0x50>; + }; + + pca_gpio: gpio@24 { + compatible = "nxp,pca9673"; + reg = <0x24>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + &mac { status = "okay"; phy-mode = "mii";