From patchwork Wed Apr 2 16:46:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Kan X-Patchwork-Id: 3929651 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C9BDE9F334 for ; Wed, 2 Apr 2014 16:47:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BC6020279 for ; Wed, 2 Apr 2014 16:47:05 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 10B2D2025B for ; Wed, 2 Apr 2014 16:47:04 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WVOJS-0007tq-CZ; Wed, 02 Apr 2014 16:46:54 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WVOJP-0001aU-Ta; Wed, 02 Apr 2014 16:46:51 +0000 Received: from [192.195.68.30] (helo=denmail01.apm.com) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WVOJM-0001ZY-UD for linux-arm-kernel@lists.infradead.org; Wed, 02 Apr 2014 16:46:49 +0000 Received: from amcc.com (svdclab154.amcc.com [10.66.12.74]) by denmail01.apm.com (8.13.8/8.13.8) with ESMTP id s32GkGDa010166; Wed, 2 Apr 2014 10:46:16 -0600 Received: (from fkan@localhost) by amcc.com (8.13.8/8.12.2/Submit) id s32GkBTm026096; Wed, 2 Apr 2014 09:46:11 -0700 From: Feng Kan To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, patches@apm.com Subject: [PATCH 1/1] arm64:dts: Add I2C DTS node entry for APM SoC X-Gene platform Date: Wed, 2 Apr 2014 09:46:08 -0700 Message-Id: <1396457168-26024-1-git-send-email-fkan@apm.com> X-Mailer: git-send-email 1.7.6.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140402_124649_048956_3D493E02 X-CRM114-Status: UNSURE ( 7.50 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.4 (/) Cc: Feng Kan X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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.8 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 Add I2C DTS node entry for APM SoC X-Gene platform. Signed-off-by: Feng Kan --- arch/arm64/boot/dts/apm-storm.dtsi | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index d37d736..f90d34c 100644 --- a/arch/arm64/boot/dts/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm-storm.dtsi @@ -176,6 +176,33 @@ reg-names = "csr-reg"; clock-output-names = "eth8clk"; }; + + i2cclk: i2cclk@17000000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + reg = <0x0 0x17000000 0x0 0x2000>; + reg-names = "csr-reg"; + csr-offset = <0x0>; + csr-mask = <0x2>; + enable-offset = <0x10>; + enable-mask = <0x4>; + divider-offset = <0x168>; + divider-width = <0x5>; + divider-shift = <0x0>; + clock-output-names = "i2cclk"; + }; + }; + + i2c0: i2c@10512000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,designware-i2c"; + reg = <0x0 0x10512000 0x0 0x1000>; + interrupts = <0 0x44 0x4>; + #clock-cells = <1>; + clocks = <&i2cclk 0>; + bus_num = <0>; }; serial0: serial@1c020000 {