Skip to content

Commit c8f26c2

Browse files
Cyrille PitchenNicolas Ferre
authored andcommitted
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>
1 parent f55532a commit c8f26c2

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

‎Documentation/devicetree/bindings/arm/atmel-at91.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ elsewhere.
155155

156156
required properties:
157157
- compatible: Should be "atmel,<chip>-sfr", "syscon".
158-
<chip> can be "sama5d3" or "sama5d4".
158+
<chip> can be "sama5d3", "sama5d4" or "sama5d2".
159159
- reg: Should contain registers location and length
160160

161161
sfr@f0038000 {

‎arch/arm/boot/dts/sama5d2.dtsi‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,11 @@
973973
status = "disabled";
974974
};
975975

976+
sfr: sfr@f8030000 {
977+
compatible = "atmel,sama5d2-sfr", "syscon";
978+
reg = <0xf8030000 0x98>;
979+
};
980+
976981
flx0: flexcom@f8034000 {
977982
compatible = "atmel,sama5d2-flexcom";
978983
reg = <0xf8034000 0x200>;

‎include/soc/at91/atmel-sfr.h‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 */

0 commit comments

Comments
 (0)