From patchwork Tue Oct 27 08:43:54 2015
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pavel Fedin
X-Patchwork-Id: 7494701
Return-Path:
X-Original-To: patchwork-linux-samsung-soc@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 8B1259F36A
for ;
Tue, 27 Oct 2015 08:44:20 +0000 (UTC)
Received: from mail.kernel.org (localhost [127.0.0.1])
by mail.kernel.org (Postfix) with ESMTP id B2A1D20881
for ;
Tue, 27 Oct 2015 08:44:19 +0000 (UTC)
Received: from vger.kernel.org (vger.kernel.org [209.132.180.67])
by mail.kernel.org (Postfix) with ESMTP id AD55E2087B
for ;
Tue, 27 Oct 2015 08:44:18 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S1754439AbbJ0IoK (ORCPT
);
Tue, 27 Oct 2015 04:44:10 -0400
Received: from mailout2.w1.samsung.com ([210.118.77.12]:11029 "EHLO
mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S1751005AbbJ0IoH (ORCPT
);
Tue, 27 Oct 2015 04:44:07 -0400
Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245])
by mailout2.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTP id <0NWV00IMGEXFL260@mailout2.w1.samsung.com> for
linux-samsung-soc@vger.kernel.org;
Tue, 27 Oct 2015 08:44:03 +0000 (GMT)
X-AuditID: cbfec7f5-f794b6d000001495-7b-562f39532a91
Received: from eusync3.samsung.com ( [203.254.199.213])
by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id DC.83.05269.3593F265;
Tue, 27 Oct 2015 08:44:03 +0000 (GMT)
Received: from fedinw7x64.rnd.samsung.ru ([106.109.131.169])
by eusync3.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTPA id <0NWV00G65EX7R240@eusync3.samsung.com>; Tue,
27 Oct 2015 08:44:03 +0000 (GMT)
From: Pavel Fedin
To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Cc: Kukjin Kim ,
Krzysztof Kozlowski ,
Pankaj Dubey
Subject: [PATCH v2 3/4] ARM: dts: Add Ethernet chip to SMDK5410
Date: Tue, 27 Oct 2015 11:43:54 +0300
Message-id:
<17645207bc6822bfe6b8e2e1f90053e2d9c00c7b.1445935215.git.p.fedin@samsung.com>
X-Mailer: git-send-email 2.4.4
In-reply-to:
References:
In-reply-to:
References:
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFprFLMWRmVeSWpSXmKPExsVy+t/xq7rBlvphBuu/sFi8fmFo0f/4NbPF
psfXWC1mnN/HZLFo6xd2B1aPTas62Tw2L6n36NuyitHj8ya5AJYoLpuU1JzMstQifbsEroyu
qbIFM/kqvi3dztjA2MLdxcjJISFgInGg9w8bhC0mceHeeiCbi0NIYCmjxJelZ1ggnDYmib7d
k1hAqtgE1CVOf/0AZosIeEtMPvOXHcRmFqiVWHPwIFhcWMBeYu/HJ0wgNouAqsSMqfPBangF
oiUerelkgdgmJ3Hl+nSwzZwC5hJv338CiwsJmEnsv/+HGZf4BEb+BYwMqxhFU0uTC4qT0nON
9IoTc4tL89L1kvNzNzFCQuzrDsalx6wOMQpwMCrx8BpU6IUJsSaWFVfmHmKU4GBWEuEV1NEP
E+JNSaysSi3Kjy8qzUktPsQozcGiJM47c9f7ECGB9MSS1OzU1ILUIpgsEwenVAOjuksTb/bC
/FnzvnxbNevQij2+yfMUXVcvkOX99O/VK86lU3neXJe9mXjzfXvxxDli0XdYnXsvsggtn/Qw
ea6lzanfMs/P3Z70grvJr0nT8totXs5bn32j6vOd9igqfjuxbLKmhSnv70dhb/tT1XZqB9x1
3bLuaZWMlYup3rG9rFtYVCdrxMuUKLEUZyQaajEXFScCAD6TzxQtAgAA
Sender: linux-samsung-soc-owner@vger.kernel.org
Precedence: bulk
List-ID:
X-Mailing-List: linux-samsung-soc@vger.kernel.org
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI,
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
The chip is smsc9115, connected via SROMc bank 3. Additionally, some GPIO
initialization is required.
Signed-off-by: Pavel Fedin
---
arch/arm/boot/dts/exynos5410-smdk5410.dts | 42 +++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5410-smdk5410.dts b/arch/arm/boot/dts/exynos5410-smdk5410.dts
index cebeaab..2a6a5ac 100644
--- a/arch/arm/boot/dts/exynos5410-smdk5410.dts
+++ b/arch/arm/boot/dts/exynos5410-smdk5410.dts
@@ -35,6 +35,17 @@
reg = <0x02037000 0x1000>;
};
+ ethernet@07000000 {
+ compatible = "smsc,lan9115";
+ reg = <0x07000000 0x10000>;
+ phy-mode = "mii";
+ interrupt-parent = <&gpx0>;
+ interrupts = <5 8>;
+ reg-io-width = <2>;
+ smsc,irq-push-pull;
+ smsc,force-internal-phy;
+ };
+
};
&mmc_0 {
@@ -61,6 +72,27 @@
disable-wp;
};
+&pinctrl_0 {
+ srom_ctl: srom-ctl {
+ samsung,pins = "gpy0-3", "gpy0-4", "gpy0-5",
+ "gpy1-0", "gpy1-1", "gpy1-2", "gpy1-3";
+ samsung,pin-function = <2>;
+ samsung,pin-drv = <0>;
+ };
+
+ srom_ebi: srom-ebi {
+ samsung,pins = "gpy3-0", "gpy3-1", "gpy3-2", "gpy3-3",
+ "gpy3-4", "gpy3-5", "gpy3-6", "gpy3-7",
+ "gpy5-0", "gpy5-1", "gpy5-2", "gpy5-3",
+ "gpy5-4", "gpy5-5", "gpy5-6", "gpy5-7",
+ "gpy6-0", "gpy6-1", "gpy6-2", "gpy6-3",
+ "gpy6-4", "gpy6-5", "gpy6-6", "gpy6-7";
+ samsung,pin-function = <2>;
+ samsung,pin-pud = <3>;
+ samsung,pin-drv = <0>;
+ };
+};
+
&uart0 {
status = "okay";
};
@@ -72,3 +104,13 @@
&uart2 {
status = "okay";
};
+
+&sromc {
+ pinctrl-names = "default";
+ pinctrl-0 = <&srom_ctl>, <&srom_ebi>;
+ bank@3 {
+ bank = <3>;
+ width = <2>;
+ srom-timing = <1 9 12 1 9 1 1>;
+ };
+};