From patchwork Mon Jun 15 00:19:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cory Tusar X-Patchwork-Id: 6605661 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AD481C0020 for ; Mon, 15 Jun 2015 00:23:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D93C62050B for ; Mon, 15 Jun 2015 00:23:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0A85520504 for ; Mon, 15 Jun 2015 00:23:18 +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 1Z4I8u-0007tB-8w; Mon, 15 Jun 2015 00:20:48 +0000 Received: from mail-qk0-f171.google.com ([209.85.220.171]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z4I8r-0007sK-Gh for linux-arm-kernel@lists.infradead.org; Mon, 15 Jun 2015 00:20:45 +0000 Received: by qkhq76 with SMTP id q76so46064967qkh.2 for ; Sun, 14 Jun 2015 17:20:22 -0700 (PDT) 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; bh=D9iqpKDnmq1BnBkp0sBVqGaQqvgOJjPgyJ3ozFnvlMA=; b=Zj1yPZYVJOovO0fTCYGwxnjBTMTrDILZBRj49iM/m+AQNBvbs26SXCeJ/04YaIVWe2 GjWChYs01Ga0FaKdfsi5udPvVHxB0VJRBpUWEvUNpOyAwu7NStu58iOx8ZSQo+CDAI3u K6ldDlQWVeIAUf6LXGSSXAsUz1X2Sh9kjdThJoQYrmoZHB6csH0M+N0uS4ID8+rrsBLD ACDXyMnBZ8v/LLDyVmVPqXQsVPdKcYeNCN1qsG30GD2pvVGfh3SYNOLtxgfeDYUUkoos iwJDXq1eNNmXIDEA5+iHfUJjDfmHFso+nQdcFuUFznyC3n9nTTUv4Rm+iRwpkpEk4hQy rOfQ== X-Gm-Message-State: ALoCoQkwJzO2E3X5N8CXhy6FH/4o9YnuOZhqjqZh6JGEpsEjR9oyV+YzPUF/8nUnjFSpI4j9nY4f X-Received: by 10.140.238.22 with SMTP id j22mr33593997qhc.98.1434327622183; Sun, 14 Jun 2015 17:20:22 -0700 (PDT) Received: from localhost.localdomain (c-71-58-209-198.hsd1.pa.comcast.net. [71.58.209.198]) by mx.google.com with ESMTPSA id i197sm5435941qhc.36.2015.06.14.17.20.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 14 Jun 2015 17:20:20 -0700 (PDT) From: Cory Tusar To: shawn.guo@linaro.org, kernel@pengutronix.de, stefan@agner.ch Subject: [PATCH] ARM: dts: vf610: Extend I2C support to all available buses. Date: Sun, 14 Jun 2015 20:19:59 -0400 Message-Id: <1434327599-3739-1-git-send-email-cory.tusar@pid1solutions.com> X-Mailer: git-send-email 2.3.6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150614_172045_642435_64228D99 X-CRM114-Status: UNSURE ( 8.11 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux@arm.linux.org.uk, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, linux-kernel@vger.kernel.org, robh+dt@kernel.org, andrew@lunn.ch, galak@codeaurora.org, Cory Tusar , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 This commit extends the existing Vybrid I2C support to cover buses i2c1, i2c2, and i2c3. Based in (very) large part on an initial patch by Stefan Agner that was just lacking a couple of DMA assignments. Signed-off-by: Cory Tusar Acked-by: Stefan Agner --- arch/arm/boot/dts/vfxxx.dtsi | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 4aa3351..25f2615 100644 --- a/arch/arm/boot/dts/vfxxx.dtsi +++ b/arch/arm/boot/dts/vfxxx.dtsi @@ -347,6 +347,20 @@ status = "disabled"; }; + i2c1: i2c@40067000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,vf610-i2c"; + reg = <0x40067000 0x1000>; + interrupts = <72 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clks VF610_CLK_I2C1>; + clock-names = "ipg"; + dmas = <&edma0 0 52>, + <&edma0 0 53>; + dma-names = "rx","tx"; + status = "disabled"; + }; + clks: ccm@4006b000 { compatible = "fsl,vf610-ccm"; reg = <0x4006b000 0x1000>; @@ -520,6 +534,33 @@ status = "disabled"; }; + i2c2: i2c@400e6000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,vf610-i2c"; + reg = <0x400e6000 0x1000>; + interrupts = <73 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clks VF610_CLK_I2C2>; + clock-names = "ipg"; + dmas = <&edma0 1 36>, + <&edma0 1 37>; + dma-names = "rx","tx"; + status = "disabled"; + }; + + i2c3: i2c@400e7000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,vf610-i2c"; + reg = <0x400e7000 0x1000>; + interrupts = <74 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clks VF610_CLK_I2C3>; + clock-names = "ipg"; + dmas = <&edma0 1 38>, + <&edma0 1 39>; + dma-names = "rx","tx"; + status = "disabled"; + }; }; }; };