From patchwork Wed Nov 14 09:11:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 12836 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id BEF4323FC0 for ; Wed, 14 Nov 2012 09:30:19 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 74168A19C8F for ; Wed, 14 Nov 2012 09:30:19 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so265858iej.11 for ; Wed, 14 Nov 2012 01:30:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:x-auditid :from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :dlp-filter:x-mtr:x-brightmail-tracker:x-brightmail-tracker :x-cfilter-loop:x-gm-message-state; bh=d8g0KFWKFBxOqTWaH4BsvniWOtiK9RN2/D3cVL0gKwU=; b=ILlTxmtHepiMkVJhRX78ZUzCiv9DFZ4UpbyUMIlOugHGwxTxQfYrVC9yjvZKYf8f1D 5NhgB6ZJaVdXeClSm5g9f3mhRGjfX6blD+u/IitUWowi1nDrAPxBCgucO7G6Bt599kmU KoLn3m1JH3XSiCx54hLwkModO83Zq5CMqbIiue1FLXm8iSoXNtsEQnnMGjmV8jgLMQfb WKFBCfmXVJ6JGcxbvQSoWdOiBFlY9P/NXAC6J/tUbW6H/m7gxT5AZ73C05wZ4+lfeyVy zsqSqAVA4AQkaQqHau58JRz7hRD8+3YqABXtm2FKxpz6nUESDVKORcyYDS3C79XV63g5 vSVg== Received: by 10.50.186.199 with SMTP id fm7mr1219675igc.62.1352885419244; Wed, 14 Nov 2012 01:30:19 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp633895igt; Wed, 14 Nov 2012 01:30:18 -0800 (PST) Received: by 10.68.251.130 with SMTP id zk2mr76559539pbc.19.1352885418686; Wed, 14 Nov 2012 01:30:18 -0800 (PST) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id v5si17402706paz.144.2012.11.14.01.30.17; Wed, 14 Nov 2012 01:30:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.25 as permitted sender) client-ip=203.254.224.25; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.25 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MDG00K2UZYKBMP0@mailout2.samsung.com>; Wed, 14 Nov 2012 18:07:04 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.124]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id F0.3C.12699.83F53A05; Wed, 14 Nov 2012 18:07:04 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-0a-50a35f389782 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id EE.2C.12699.73F53A05; Wed, 14 Nov 2012 18:07:04 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MDG00I7CZWU0Z70@mmp2.samsung.com>; Wed, 14 Nov 2012 18:07:03 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org, hs@denx.de Subject: [PATCH 1/6 V2] EXYNOS5: FDT: Add I2C device node data Date: Wed, 14 Nov 2012 14:41:14 +0530 Message-id: <1352884279-24067-2-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1352884279-24067-1-git-send-email-rajeshwari.s@samsung.com> References: <1352884279-24067-1-git-send-email-rajeshwari.s@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrILMWRmVeSWpSXmKPExsWyRsSkRtcifnGAwafF6hYP199ksZhy+AuL A5PHnWt72AIYo7hsUlJzMstSi/TtErgybnWuZC1Yr1DxtqOBuYHxs2QXIyeHhICJxOp7W1gg bDGJC/fWs3UxcnEICSxllJh2r425i5EDrOjuI12I+HRGie/XtjNBOBOZJDbuvQ7WzSZgJLH1 5DRGEFtEQELiV/9VMJtZIEPi9oclYDXCAnYSyw9OZQOxWQRUJf4sPcIMYvMKeEh0/1rLDHGF gsSxqV9ZQWxOAU+J/w96wGwhoJrJO7ZD9QpIfJt8iAXiOFmJTQeYQe6RELjPJvHsykY2iDmS EgdX3GCZwCi8gJFhFaNoakFyQXFSeq6RXnFibnFpXrpecn7uJkZgOJ7+90x6B+OqBotDjAIc jEo8vAH9iwKEWBPLiitzDzFKcDArifDGWi0OEOJNSaysSi3Kjy8qzUktPsToA3TJRGYp0eR8 YKzklcQbGpuYmxqbWhoZmZma4hBWEudt9kgJEBJITyxJzU5NLUgtghnHxMEp1cC4rEFkzaKo NN4drYIlHRucg2vv7v+dOTdu0dQTK+fUxpzds89Z1v79oqey26cWpWlyLXiyTPb2q1m//ynf OLxtUarwW7/V+gVn+hxUznbZ5t09/bz4hYTNEoeSHaevPw4OMflUypvhHnOp2LpuraYE1899 xg2r5Q/8Z9kj/Pyhmzqb/MOKUzOMlFiKMxINtZiLihMBjDr+UHQCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRmVeSWpSXmKPExsVy+t9jQV2L+MUBBl/usVk8XH+TxWLK4S8s Dkwed67tYQtgjGpgtMlITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLx CdB1y8wBmq2kUJaYUwoUCkgsLlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxhzLjVuZK1YL1C xduOBuYGxs+SXYwcHBICJhJ3H+l2MXICmWISF+6tZ+ti5OIQEpjOKPH92nYmCGcik8TGvddZ QKrYBIwktp6cxghiiwhISPzqvwpmMwtkSNz+sASsRljATmL5walsIDaLgKrEn6VHmEFsXgEP ie5fa5khtilIHJv6lRXE5hTwlPj/oAfMFgKqmbxjO9sERt4FjAyrGEVTC5ILipPSc430ihNz i0vz0vWS83M3MYKD/Zn0DsZVDRaHGAU4GJV4eAP6FwUIsSaWFVfmHmKU4GBWEuGNtVocIMSb klhZlVqUH19UmpNafIjRB+iqicxSosn5wEjMK4k3NDYxNzU2tTSxMDGzxCGsJM7b7JESICSQ nliSmp2aWpBaBDOOiYNTqoFxxZzyn6phx5dOljx+Q6TMXFt9qkzDKU41gQynbee/6DXLHHc5 kT5xzWSWjBNt15kqu5L8FsuItLM+Cl0p6aOyVf1+J78GC6OKwdNujkUrN+f3cpyMXrJap/XE rOge5u/behpjnKZVVJzZFNlzPabFxoNj6g+ty5fPr/0S07dR57XahwMpbpeVWIozEg21mIuK EwF8uhAgowIAAA== X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQlHxhuRaaITNiQLVP7Tkj7YeIwiubvYbM1vXB6vtKonUtMoXNb+ru5Mr/vE6XbKGyUIKUHM Add I2C device node data for exynos Signed-off-by: Rajeshwari Shinde Acked-by: Simon Glass Acked-by: Heiko Schocher --- Changes in V2: Added Periph id to the I2C device node arch/arm/dts/exynos-periph-id.dtsi | 35 +++++++++++++++++ arch/arm/dts/exynos5250.dtsi | 73 ++++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+), 0 deletions(-) create mode 100644 arch/arm/dts/exynos-periph-id.dtsi diff --git a/arch/arm/dts/exynos-periph-id.dtsi b/arch/arm/dts/exynos-periph-id.dtsi new file mode 100644 index 0000000..cfe2c3d --- /dev/null +++ b/arch/arm/dts/exynos-periph-id.dtsi @@ -0,0 +1,35 @@ +/* + * U-Boot Peripheral ID header file for Exynos boards + * + * Copyright (c) 2012 The Chromium OS Authors. + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +/* + * These values come from arch/arm/include/arch-exynos5/periph.h. For + * now they must be manually kept in sync. + */ +/define/ PERIPH_ID_I2C0 <0>; +/define/ PERIPH_ID_I2C1 <1>; +/define/ PERIPH_ID_I2C2 <2>; +/define/ PERIPH_ID_I2C3 <3>; +/define/ PERIPH_ID_I2C4 <4>; +/define/ PERIPH_ID_I2C5 <5>; +/define/ PERIPH_ID_I2C6 <6>; +/define/ PERIPH_ID_I2C7 <7>; diff --git a/arch/arm/dts/exynos5250.dtsi b/arch/arm/dts/exynos5250.dtsi index db22db6..ae71ae4 100644 --- a/arch/arm/dts/exynos5250.dtsi +++ b/arch/arm/dts/exynos5250.dtsi @@ -18,6 +18,7 @@ */ /include/ "skeleton.dtsi" +/include/ "exynos-periph-id.dtsi" / { compatible = "samsung,exynos5250"; @@ -33,4 +34,76 @@ compatible = "samsung,exynos-tmu"; reg = <0x10060000 0xffff>; }; + + i2c@12c60000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,s3c2440-i2c"; + reg = <0x12C60000 0x100>; + samsung,periph-id = ; + interrupts = <0 56 0>; + }; + + i2c@12c70000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,s3c2440-i2c"; + reg = <0x12C70000 0x100>; + samsung,periph-id = ; + interrupts = <0 57 0>; + }; + + i2c@12c80000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,s3c2440-i2c"; + reg = <0x12C80000 0x100>; + samsung,periph-id = ; + interrupts = <0 58 0>; + }; + + i2c@12c90000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,s3c2440-i2c"; + reg = <0x12C90000 0x100>; + samsung,periph-id = ; + interrupts = <0 59 0>; + }; + + i2c@12ca0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,s3c2440-i2c"; + reg = <0x12CA0000 0x100>; + samsung,periph-id = ; + interrupts = <0 60 0>; + }; + + i2c@12cb0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,s3c2440-i2c"; + reg = <0x12CB0000 0x100>; + samsung,periph-id = ; + interrupts = <0 61 0>; + }; + + i2c@12cc0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,s3c2440-i2c"; + reg = <0x12CC0000 0x100>; + samsung,periph-id = ; + interrupts = <0 62 0>; + }; + + i2c@12cd0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,s3c2440-i2c"; + reg = <0x12CD0000 0x100>; + samsung,periph-id = ; + interrupts = <0 63 0>; + }; };