Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1375553
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Pankaj Dubey <pankaj.dubey@samsung.com> |
| Newsgroups | linux.kernel |
| Subject | [RESPIN v2 1/6] dt-bindings: EXYNOS: Add exynos-srom device tree binding |
| Date | Mon, 11 Apr 2016 09:50:03 +0200 |
| Message-ID | <rmELF-2aR-33@gated-at.bofh.it> (permalink) |
| References | <rmELD-2aR-5@gated-at.bofh.it> |
| X-Auditid | cbfee691-f795a6d0000012b5-4e-570b55055fde |
| X-Mailer | git-send-email 1.9.1 |
| X-Brightmail-Tracker | H4sIAAAAAAAAA+NgFmpikeLIzCtJLcpLzFFi42I5/e+ZsS5rKHe4wdUzfBbnXq1ktHj9wtCi d8FVNov+x6+ZLTY9vsZqcXnXHDaLGef3MVksvX6RyeLU9c9sFq8urWKzWLT1C7tF694j7BYd yxgdeD3WzFvD6LFy+Rc2j02rOtk8Ni+p97hyoonVo2/LKkaPz5vkAtijuGxSUnMyy1KL9O0S uDL23vnDUvBSseJ7w0emBsY+qS5GTg4JAROJJZsns0LYYhIX7q1n62Lk4hASWMkocXb2fUaY onMnzjBCJGYxSnybuwqq6iejxOzZ/SwgVWwCuhJP3s9lBrFFBLIlJq99xAJSxCywmUni97MN bCAJYYFgiTuzT4E1sAioSpz/ewCsgVfAQ2LyyuMsEOvkJE4eg7iJU8BTonPLDTBbCKjmw6vF 7CBDJQSusUscmDCRDWKQgMS3yYeAmjmAErISmyBmSghIShxccYNlAqPwAkaGVYyiqQXJBcVJ 6UWmesWJucWleel6yfm5mxghUTNxB+P9A9aHGAU4GJV4eB2ucYULsSaWFVfmHmI0BdowkVlK NDkfGJt5JfGGxmZGFqYmpsZG5pZmSuK8OtI/g4UE0hNLUrNTUwtSi+KLSnNSiw8xMnFwSjUw Bh9hMT/0lktX/tL0Ladq/96/8n7H4fsSIq1sXvw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Eg21mIuKEwFv7wfJ4gIAAA== |
| Dlp-Filter | Pass |
| X-Mtr | 20000000000000000@CPGS |
| X-Cfilter-Loop | Reflected |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 106 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | kgene.kim@samsung.com, k.kozlowski@samsung.com, p.fedin@samsung.com, olof@lixom.net, thomas.ab@samsung.com, Pankaj Dubey <pankaj.dubey@samsung.com>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Ian Campbell <ijc+devicetree@hellion.org.uk>, Kukjin Kim <kgene@kernel.org> |
| X-Original-Date | Mon, 11 Apr 2016 13:12:23 +0530 |
| X-Original-Message-ID | <1460360548-32127-2-git-send-email-pankaj.dubey@samsung.com> |
| X-Original-References | <1460360548-32127-1-git-send-email-pankaj.dubey@samsung.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1375553 |
Show key headers only | View raw
This patch adds exynos-srom binding information for SROM Controller
driver on Exynos SoCs. Documentation for new subnode properties,
allowing bank configuration are added based on u-boot implementation,
but heavily reworked.
CC: Rob Herring <robh+dt@kernel.org>
CC: Mark Rutland <mark.rutland@arm.com>
CC: Ian Campbell <ijc+devicetree@hellion.org.uk>
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
[p.fedin: Added SROMc configuration description and fixed SROMc mapping]
Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
---
.../bindings/memory-controllers/exynos-srom.txt | 79 ++++++++++++++++++++++
1 file changed, 79 insertions(+)
create mode 100644 Documentation/devicetree/bindings/memory-controllers/exynos-srom.txt
diff --git a/Documentation/devicetree/bindings/memory-controllers/exynos-srom.txt b/Documentation/devicetree/bindings/memory-controllers/exynos-srom.txt
new file mode 100644
index 0000000..f633b5d
--- /dev/null
+++ b/Documentation/devicetree/bindings/memory-controllers/exynos-srom.txt
@@ -0,0 +1,79 @@
+SAMSUNG Exynos SoCs SROM Controller driver.
+
+Required properties:
+- compatible : Should contain "samsung,exynos4210-srom".
+
+- reg: offset and length of the register set
+
+Optional properties:
+The SROM controller can be used to attach external peripherals. In this case
+extra properties, describing the bus behind it, should be specified as below:
+
+- #address-cells: Must be set to 2 to allow device address translation.
+ Address is specified as (bank#, offset).
+
+- #size-cells: Must be set to 1 to allow device size passing
+
+- ranges: Must be set up to reflect the memory layout with four integer values
+ per bank:
+ <bank-number> 0 <parent address of bank> <size>
+
+Sub-nodes:
+The actual device nodes should be added as subnodes to the SROMc node. These
+subnodes, in addition to regular device specification, should contain the following
+properties, describing configuration of the relevant SROM bank:
+
+Required properties:
+- reg: bank number, base address (relative to start of the bank) and size of
+ the memory mapped for the device. Note that base address will be
+ typically 0 as this is the start of the bank.
+
+- samsung,srom-timing : array of 6 integers, specifying bank timings in the
+ following order: Tacp, Tcah, Tcoh, Tacc, Tcos, Tacs.
+ Each value is specified in cycles and has the following
+ meaning and valid range:
+ Tacp : Page mode access cycle at Page mode (0 - 15)
+ Tcah : Address holding time after CSn (0 - 15)
+ Tcoh : Chip selection hold on OEn (0 - 15)
+ Tacc : Access cycle (0 - 31, the actual time is N + 1)
+ Tcos : Chip selection set-up before OEn (0 - 15)
+ Tacs : Address set-up before CSn (0 - 15)
+
+Optional properties:
+- reg-io-width : data width in bytes (1 or 2). If omitted, default of 1 is used.
+
+- samsung,srom-page-mode : if page mode is set, 4 data page mode will be configured,
+ else normal (1 data) page mode will be set.
+
+Example: basic definition, no banks are configured
+ memory-controller@12570000 {
+ compatible = "samsung,exynos4210-srom";
+ reg = <0x12570000 0x14>;
+ };
+
+Example: SROMc with SMSC911x ethernet chip on bank 3
+ memory-controller@12570000 {
+ #address-cells = <2>;
+ #size-cells = <1>;
+ ranges = <0 0 0x04000000 0x20000 // Bank0
+ 1 0 0x05000000 0x20000 // Bank1
+ 2 0 0x06000000 0x20000 // Bank2
+ 3 0 0x07000000 0x20000>; // Bank3
+
+ compatible = "samsung,exynos4210-srom";
+ reg = <0x12570000 0x14>;
+
+ ethernet@3,0 {
+ compatible = "smsc,lan9115";
+ reg = <3 0 0x10000>; // Bank 3, offset = 0
+ phy-mode = "mii";
+ interrupt-parent = <&gpx0>;
+ interrupts = <5 8>;
+ reg-io-width = <2>;
+ smsc,irq-push-pull;
+ smsc,force-internal-phy;
+
+ samsung,srom-page-mode;
+ samsung,srom-timing = <9 12 1 9 1 1>;
+ };
+ };
--
2.4.5
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[RESPIN v2 1/6] dt-bindings: EXYNOS: Add exynos-srom device tree binding Pankaj Dubey <pankaj.dubey@samsung.com> - 2016-04-11 09:50 +0200
csiph-web