From patchwork Thu Oct 29 12:42:17 2015
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pavel Fedin
X-Patchwork-Id: 7518871
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 C5EA69F750
for ;
Thu, 29 Oct 2015 12:44:49 +0000 (UTC)
Received: from mail.kernel.org (localhost [127.0.0.1])
by mail.kernel.org (Postfix) with ESMTP id E8E522091F
for ;
Thu, 29 Oct 2015 12:44:48 +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 F28FB20905
for ;
Thu, 29 Oct 2015 12:44:47 +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 1ZrmXh-0003Ss-7S; Thu, 29 Oct 2015 12:42:57 +0000
Received: from mailout4.w1.samsung.com ([210.118.77.14])
by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat
Linux)) id 1ZrmXc-0003P3-Tl
for linux-arm-kernel@lists.infradead.org;
Thu, 29 Oct 2015 12:42:54 +0000
Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245])
by mailout4.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTP id <0NWZ003YHFAT9CA0@mailout4.w1.samsung.com> for
linux-arm-kernel@lists.infradead.org;
Thu, 29 Oct 2015 12:42:29 +0000 (GMT)
X-AuditID: cbfec7f5-f794b6d000001495-9f-56321435a8c6
Received: from eusync1.samsung.com ( [203.254.199.211])
by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 58.86.05269.53412365;
Thu, 29 Oct 2015 12:42:29 +0000 (GMT)
Received: from fedinw7x64.rnd.samsung.ru ([106.109.131.169])
by eusync1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTPA id <0NWZ00H0UFAK1CC0@eusync1.samsung.com>; Thu,
29 Oct 2015 12:42:29 +0000 (GMT)
From: Pavel Fedin
To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc
configuration
Date: Thu, 29 Oct 2015 15:42:17 +0300
Message-id:
X-Mailer: git-send-email 2.4.4
In-reply-to:
References:
In-reply-to:
References:
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFjrJLMWRmVeSWpSXmKPExsVy+t/xy7qmIkZhBtdfiljMP3KO1aL/zUJW
i3OvVjJavH5haNH/+DWzxabH11gtLu+aw2Yx4/w+Joul1y8yWUyYvpbFonXvEXYHbo8189Yw
elzu62XyWLn8C5vHplWdbB6bl9R79G1ZxejxeZNcAHsUl01Kak5mWWqRvl0CV8aX5yfYC2YJ
VZy5tZWxgfE+XxcjJ4eEgInExp07WSFsMYkL99azdTFycQgJLGWUOHrgAjuE08YksXZvK1gV
m4C6xOmvH1hAEiIC7YwSxxo3MoE4zAITmSSWTN/PCFIlLBAg0Xn4FROIzSKgKnHq/wmgbg4O
XoFoif+PTCDWyUlcuT6dDcTmFDCXOHb4PtgCIQEzifndq5hxiU9g5F/AyLCKUTS1NLmgOCk9
10ivODG3uDQvXS85P3cTIySAv+5gXHrM6hCjAAejEg/vyhbDMCHWxLLiytxDjBIczEoivHFM
RmFCvCmJlVWpRfnxRaU5qcWHGKU5WJTEeWfueh8iJJCeWJKanZpakFoEk2Xi4JRqYLzFkvjh
7tbZiTePiLhvzNsY1JnmUrMkZqVPldK1Fx+vvmIOdpdYp3w09Atv06zj5ecNFz401Ht38YTD
oRtH+F7Nvlc0g0N7xrcdZ6Z/VM/dF1hlFn3xcOuOOfvDFtmkMZhV1j5gK1htubVlf0ERzwQW
PfkzSWtlGJKcVkf/miRguF69mG2rxEklluKMREMt5qLiRABTnkK/XAIAAA==
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20151029_054253_133587_E788D4B5
X-CRM114-Status: GOOD ( 17.37 )
X-Spam-Score: -6.9 (------)
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: Mark Rutland ,
Krzysztof Kozlowski ,
Pawel Moll ,
Ian Campbell ,
Rob Herring ,
Kukjin Kim , Kumar Gala
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.2 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 documentation for new subnode properties, allowing bank configuration.
Based on u-boot implementation, but heavily reworked.
Signed-off-by: Pavel Fedin
---
.../bindings/arm/samsung/exynos-srom.txt | 50 +++++++++++++++++++++-
1 file changed, 48 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt b/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt
index 33886d5..02ecc7f 100644
--- a/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt
+++ b/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt
@@ -5,8 +5,54 @@ Required properties:
- reg: offset and length of the register set
-Example:
+- #address-cells, #size-cells : should be '1' if the device has sub-nodes
+ with 'reg' property.
+- ranges: allows valid 1:1 translation between child's address space and
+ parent's address space
+
+Sub-nodes:
+The SROM controller can be used to attach external peripherials. In this case
+device nodes should be added as subnodes to the SROMc node. These subnodes,
+except regular device specification, should contain the following properties,
+describing configuration of the relevant SROM bank:
+
+Required properties:
+- samsung,srom-bank : bank number (0 - 3)
+
+- samsung,srom-timing : array of 7 integers: PMC, Tacp, Tcah, Tcoh, Tacc, Tcos,
+ Tacs
+
+Optional properties:
+- samsung,srom-data-width : data width in bytes (1 or 2). If omitted, default
+ of 1 is used.
+
+Example: basic definition, no banks are configured
sromc@12570000 {
compatible = "samsung,exynos-srom";
- reg = <0x12570000 0x10>;
+ reg = <0x12570000 0x14>;
+ };
+
+Example: SROMc with smsc 911x ethernet chip on bank 3
+ sromc@12570000 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ compatible = "samsung,exynos-srom";
+ reg = <0x12570000 0x14>;
+
+ 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;
+
+ samsung,srom-bank = <3>;
+ samsung,srom-data-width = <2>;
+ samsung,srom-timing = <1 9 12 1 9 1 1>;
+ };
};