diff options
author | Cyrille Pitchen <cyrille.pitchen@atmel.com> | 2016-03-17 12:04:00 -0400 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2016-03-29 09:37:30 -0400 |
commit | c8f26c2696f42b97bf68b643e59a948cb35fc397 (patch) | |
tree | 4cd88ce26a956c45a5713eb3dc8914f71f80b0e1 | |
parent | f55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff) |
ARM: dts: at91: sama5d2: add SFR node
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>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
-rw-r--r-- | Documentation/devicetree/bindings/arm/atmel-at91.txt | 2 | ||||
-rw-r--r-- | arch/arm/boot/dts/sama5d2.dtsi | 5 | ||||
-rw-r--r-- | include/soc/at91/atmel-sfr.h | 18 |
3 files changed, 24 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.txt b/Documentation/devicetree/bindings/arm/atmel-at91.txt index 7fd64ec9ee1d..550fd6637993 100644 --- a/Documentation/devicetree/bindings/arm/atmel-at91.txt +++ b/Documentation/devicetree/bindings/arm/atmel-at91.txt | |||
@@ -155,7 +155,7 @@ elsewhere. | |||
155 | 155 | ||
156 | required properties: | 156 | required properties: |
157 | - compatible: Should be "atmel,<chip>-sfr", "syscon". | 157 | - compatible: Should be "atmel,<chip>-sfr", "syscon". |
158 | <chip> can be "sama5d3" or "sama5d4". | 158 | <chip> can be "sama5d3", "sama5d4" or "sama5d2". |
159 | - reg: Should contain registers location and length | 159 | - reg: Should contain registers location and length |
160 | 160 | ||
161 | sfr@f0038000 { | 161 | sfr@f0038000 { |
diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index 78996bdbd3df..36bb29cbd603 100644 --- a/arch/arm/boot/dts/sama5d2.dtsi +++ b/arch/arm/boot/dts/sama5d2.dtsi | |||
@@ -973,6 +973,11 @@ | |||
973 | status = "disabled"; | 973 | status = "disabled"; |
974 | }; | 974 | }; |
975 | 975 | ||
976 | sfr: sfr@f8030000 { | ||
977 | compatible = "atmel,sama5d2-sfr", "syscon"; | ||
978 | reg = <0xf8030000 0x98>; | ||
979 | }; | ||
980 | |||
976 | flx0: flexcom@f8034000 { | 981 | flx0: flexcom@f8034000 { |
977 | compatible = "atmel,sama5d2-flexcom"; | 982 | compatible = "atmel,sama5d2-flexcom"; |
978 | reg = <0xf8034000 0x200>; | 983 | reg = <0xf8034000 0x200>; |
diff --git a/include/soc/at91/atmel-sfr.h b/include/soc/at91/atmel-sfr.h new file mode 100644 index 000000000000..2f9bb984a4df --- /dev/null +++ b/include/soc/at91/atmel-sfr.h | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | * Atmel SFR (Special Function Registers) register offsets and bit definitions. | ||
3 | * | ||
4 | * Copyright (C) 2016 Atmel | ||
5 | * | ||
6 | * Author: Ludovic Desroches <ludovic.desroches@atmel.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifndef _LINUX_MFD_SYSCON_ATMEL_SFR_H | ||
14 | #define _LINUX_MFD_SYSCON_ATMEL_SFR_H | ||
15 | |||
16 | #define AT91_SFR_I2SCLKSEL 0x90 /* I2SC Register */ | ||
17 | |||
18 | #endif /* _LINUX_MFD_SYSCON_ATMEL_SFR_H */ | ||