Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1359958
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Ludovic Desroches <ludovic.desroches@atmel.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH] ARM: at91/dt: sama5d2: add SFR node |
| Date | Thu, 17 Mar 2016 16:40:02 +0100 |
| Message-ID | <rdIbL-Jr-7@gated-at.bofh.it> (permalink) |
| X-Original-To | <nicolas.ferre@atmel.com>, <alexandre.belloni@free-electrons.com> |
| X-Mailer | git-send-email 2.5.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| 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 | 69 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | <plagnioj@jcrosoft.com>, <cyrille.pitchen@atmel.com>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <boris.brezillon@free-electrons.com>, Ludovic Desroches <ludovic.desroches@atmel.com> |
| X-Original-Date | Thu, 17 Mar 2016 16:34:22 +0100 |
| X-Original-Message-ID | <1458228862-25582-1-git-send-email-ludovic.desroches@atmel.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1359958 |
Show key headers only | View raw
From: Cyrille Pitchen <cyrille.pitchen@atmel.com>
This SFR node is looked up by the I2S controller driver to tune the
SFR_I2SCLKSEL register.
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
Documentation/devicetree/bindings/arm/atmel-at91.txt | 2 +-
arch/arm/boot/dts/sama5d2.dtsi | 5 +++++
include/linux/mfd/syscon/atmel-sfr.h | 18 ++++++++++++++++++
3 files changed, 24 insertions(+), 1 deletion(-)
create mode 100644 include/linux/mfd/syscon/atmel-sfr.h
diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.txt b/Documentation/devicetree/bindings/arm/atmel-at91.txt
index 7fd64ec..550fd66 100644
--- a/Documentation/devicetree/bindings/arm/atmel-at91.txt
+++ b/Documentation/devicetree/bindings/arm/atmel-at91.txt
@@ -155,7 +155,7 @@ elsewhere.
required properties:
- compatible: Should be "atmel,<chip>-sfr", "syscon".
- <chip> can be "sama5d3" or "sama5d4".
+ <chip> can be "sama5d3", "sama5d4" or "sama5d2".
- reg: Should contain registers location and length
sfr@f0038000 {
diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi
index 78996bd..36bb29c 100644
--- a/arch/arm/boot/dts/sama5d2.dtsi
+++ b/arch/arm/boot/dts/sama5d2.dtsi
@@ -973,6 +973,11 @@
status = "disabled";
};
+ sfr: sfr@f8030000 {
+ compatible = "atmel,sama5d2-sfr", "syscon";
+ reg = <0xf8030000 0x98>;
+ };
+
flx0: flexcom@f8034000 {
compatible = "atmel,sama5d2-flexcom";
reg = <0xf8034000 0x200>;
diff --git a/include/linux/mfd/syscon/atmel-sfr.h b/include/linux/mfd/syscon/atmel-sfr.h
new file mode 100644
index 0000000..2f9bb98
--- /dev/null
+++ b/include/linux/mfd/syscon/atmel-sfr.h
@@ -0,0 +1,18 @@
+/*
+ * Atmel SFR (Special Function Registers) register offsets and bit definitions.
+ *
+ * Copyright (C) 2016 Atmel
+ *
+ * Author: Ludovic Desroches <ludovic.desroches@atmel.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef _LINUX_MFD_SYSCON_ATMEL_SFR_H
+#define _LINUX_MFD_SYSCON_ATMEL_SFR_H
+
+#define AT91_SFR_I2SCLKSEL 0x90 /* I2SC Register */
+
+#endif /* _LINUX_MFD_SYSCON_ATMEL_SFR_H */
--
2.5.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] ARM: at91/dt: sama5d2: add SFR node Ludovic Desroches <ludovic.desroches@atmel.com> - 2016-03-17 16:40 +0100
csiph-web