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: 7518791
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 8E6899F327
for ;
Thu, 29 Oct 2015 12:42:37 +0000 (UTC)
Received: from mail.kernel.org (localhost [127.0.0.1])
by mail.kernel.org (Postfix) with ESMTP id 9A9F820906
for ;
Thu, 29 Oct 2015 12:42:36 +0000 (UTC)
Received: from vger.kernel.org (vger.kernel.org [209.132.180.67])
by mail.kernel.org (Postfix) with ESMTP id 969D220926
for ;
Thu, 29 Oct 2015 12:42:35 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S1752025AbbJ2Mme (ORCPT
);
Thu, 29 Oct 2015 08:42:34 -0400
Received: from mailout4.w1.samsung.com ([210.118.77.14]:24043 "EHLO
mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S1751171AbbJ2Mmc (ORCPT
);
Thu, 29 Oct 2015 08:42:32 -0400
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>; 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
Cc: Rob Herring , Pawel Moll ,
Mark Rutland ,
Ian Campbell ,
Kumar Gala , Kukjin Kim ,
Krzysztof Kozlowski
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==
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
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>;
+ };
};