linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] ARM: at91: Add Special Function Registers binding documentation
@ 2014-11-10 15:14 Alexandre Belloni
  2014-11-10 15:14 ` [PATCH 2/3] ARM: at91: sama5d3: Add SFR Alexandre Belloni
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alexandre Belloni @ 2014-11-10 15:14 UTC (permalink / raw)
  To: linux-arm-kernel

The special function registers gather some registers that allow to tweak
features provided by IPs controlled through another register range.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 Documentation/devicetree/bindings/arm/atmel-at91.txt | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.txt b/Documentation/devicetree/bindings/arm/atmel-at91.txt
index 562cda9d86d9..a6427de45785 100644
--- a/Documentation/devicetree/bindings/arm/atmel-at91.txt
+++ b/Documentation/devicetree/bindings/arm/atmel-at91.txt
@@ -136,3 +136,20 @@ Example:
 		compatible = "atmel,at91sam9260-rstc";
 		reg = <0xfffffd00 0x10>;
 	};
+
+Special Function Registers (SFR)
+
+Special Function Registers (SFR) manage specific aspects of the integrated
+memory, bridge implementations, processor and other functionality not controlled
+elsewhere.
+
+required properties:
+- compatible: Should be "atmel,<chip>-sfr", "syscon".
+  <chip> can be "at91sam9260", "at91sam9rl" or "at91sam9x5".
+- reg: Should contain registers location and length
+
+	sfr at f0038000 {
+		compatible = "atmel,sama5d3-sfr", "syscon";
+		reg = <0xf0038000 0x4000>;
+	};
+
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] ARM: at91: sama5d3: Add SFR
  2014-11-10 15:14 [PATCH 1/3] ARM: at91: Add Special Function Registers binding documentation Alexandre Belloni
@ 2014-11-10 15:14 ` Alexandre Belloni
  2014-11-10 15:14 ` [PATCH 3/3] ARM: at91: sama5d4: " Alexandre Belloni
  2014-11-13  9:48 ` [PATCH 1/3] ARM: at91: Add Special Function Registers binding documentation Boris Brezillon
  2 siblings, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2014-11-10 15:14 UTC (permalink / raw)
  To: linux-arm-kernel

The sama5d3 has Special Function Registers that allow to manage OHCI, EBI and
the UTMI clock.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 arch/arm/boot/dts/sama5d3.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi
index 5f4144d1e3a1..499b59f48055 100644
--- a/arch/arm/boot/dts/sama5d3.dtsi
+++ b/arch/arm/boot/dts/sama5d3.dtsi
@@ -217,6 +217,11 @@
 				status = "disabled";
 			};
 
+			sfr: sfr at f0038000 {
+				compatible = "atmel,sama5d3-sfr", "syscon";
+				reg = <0xf0038000 0x4000>;
+			};
+
 			mmc1: mmc at f8000000 {
 				compatible = "atmel,hsmci";
 				reg = <0xf8000000 0x600>;
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] ARM: at91: sama5d4: Add SFR
  2014-11-10 15:14 [PATCH 1/3] ARM: at91: Add Special Function Registers binding documentation Alexandre Belloni
  2014-11-10 15:14 ` [PATCH 2/3] ARM: at91: sama5d3: Add SFR Alexandre Belloni
@ 2014-11-10 15:14 ` Alexandre Belloni
  2014-11-10 15:39   ` Alexandre Belloni
  2014-11-13  9:48 ` [PATCH 1/3] ARM: at91: Add Special Function Registers binding documentation Boris Brezillon
  2 siblings, 1 reply; 5+ messages in thread
From: Alexandre Belloni @ 2014-11-10 15:14 UTC (permalink / raw)
  To: linux-arm-kernel

The sama4d4 has Special Function Registers that allow to manage DDR, OHCI, EBI
and AIC interrupt redirection.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 arch/arm/boot/dts/sama5d4.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/sama5d4.dtsi b/arch/arm/boot/dts/sama5d4.dtsi
index e0157b0f075c..580486b056fc 100644
--- a/arch/arm/boot/dts/sama5d4.dtsi
+++ b/arch/arm/boot/dts/sama5d4.dtsi
@@ -826,6 +826,11 @@
 				status = "disabled";
 			};
 
+			sfr: sfr at f8028000 {
+				compatible = "atmel,sama5d4-sfr", "syscon";
+				reg = <0xf0038000 0x4000>;
+			};
+
 			mmc1: mmc at fc000000 {
 				compatible = "atmel,hsmci";
 				reg = <0xfc000000 0x600>;
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] ARM: at91: sama5d4: Add SFR
  2014-11-10 15:14 ` [PATCH 3/3] ARM: at91: sama5d4: " Alexandre Belloni
@ 2014-11-10 15:39   ` Alexandre Belloni
  0 siblings, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2014-11-10 15:39 UTC (permalink / raw)
  To: linux-arm-kernel

On 10/11/2014 at 16:14:31 +0100, Alexandre Belloni wrote :
> The sama4d4 has Special Function Registers that allow to manage DDR, OHCI, EBI
> and AIC interrupt redirection.
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> ---
>  arch/arm/boot/dts/sama5d4.dtsi | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/sama5d4.dtsi b/arch/arm/boot/dts/sama5d4.dtsi
> index e0157b0f075c..580486b056fc 100644
> --- a/arch/arm/boot/dts/sama5d4.dtsi
> +++ b/arch/arm/boot/dts/sama5d4.dtsi
> @@ -826,6 +826,11 @@
>  				status = "disabled";
>  			};
>  
> +			sfr: sfr at f8028000 {
> +				compatible = "atmel,sama5d4-sfr", "syscon";
> +				reg = <0xf0038000 0x4000>;

Obviously, that should be reg = <0xf8028000 0x4000>, I'll fix it

> +			};
> +
>  			mmc1: mmc at fc000000 {
>  				compatible = "atmel,hsmci";
>  				reg = <0xfc000000 0x600>;
> -- 
> 2.1.0
> 

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] ARM: at91: Add Special Function Registers binding documentation
  2014-11-10 15:14 [PATCH 1/3] ARM: at91: Add Special Function Registers binding documentation Alexandre Belloni
  2014-11-10 15:14 ` [PATCH 2/3] ARM: at91: sama5d3: Add SFR Alexandre Belloni
  2014-11-10 15:14 ` [PATCH 3/3] ARM: at91: sama5d4: " Alexandre Belloni
@ 2014-11-13  9:48 ` Boris Brezillon
  2 siblings, 0 replies; 5+ messages in thread
From: Boris Brezillon @ 2014-11-13  9:48 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, 10 Nov 2014 16:14:29 +0100
Alexandre Belloni <alexandre.belloni@free-electrons.com> wrote:

> The special function registers gather some registers that allow to tweak
> features provided by IPs controlled through another register range.
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

Once you've fixed your dtsi you can add my

Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>

on the whole series.

> ---
>  Documentation/devicetree/bindings/arm/atmel-at91.txt | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.txt b/Documentation/devicetree/bindings/arm/atmel-at91.txt
> index 562cda9d86d9..a6427de45785 100644
> --- a/Documentation/devicetree/bindings/arm/atmel-at91.txt
> +++ b/Documentation/devicetree/bindings/arm/atmel-at91.txt
> @@ -136,3 +136,20 @@ Example:
>  		compatible = "atmel,at91sam9260-rstc";
>  		reg = <0xfffffd00 0x10>;
>  	};
> +
> +Special Function Registers (SFR)
> +
> +Special Function Registers (SFR) manage specific aspects of the integrated
> +memory, bridge implementations, processor and other functionality not controlled
> +elsewhere.
> +
> +required properties:
> +- compatible: Should be "atmel,<chip>-sfr", "syscon".
> +  <chip> can be "at91sam9260", "at91sam9rl" or "at91sam9x5".
> +- reg: Should contain registers location and length
> +
> +	sfr at f0038000 {
> +		compatible = "atmel,sama5d3-sfr", "syscon";
> +		reg = <0xf0038000 0x4000>;
> +	};
> +



-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-13  9:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-10 15:14 [PATCH 1/3] ARM: at91: Add Special Function Registers binding documentation Alexandre Belloni
2014-11-10 15:14 ` [PATCH 2/3] ARM: at91: sama5d3: Add SFR Alexandre Belloni
2014-11-10 15:14 ` [PATCH 3/3] ARM: at91: sama5d4: " Alexandre Belloni
2014-11-10 15:39   ` Alexandre Belloni
2014-11-13  9:48 ` [PATCH 1/3] ARM: at91: Add Special Function Registers binding documentation Boris Brezillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).