linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] ARM: at91/dt: define RTT nodes
@ 2014-11-14 10:08 Boris Brezillon
  2014-11-14 10:08 ` [PATCH 1/4] ARM: at91/dt: add RTT nodes to at91 dtsis Boris Brezillon
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Boris Brezillon @ 2014-11-14 10:08 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

This patch series define RTT and GPBR devices on all at91 SoCs
embedding those blocks and enable them on the at91sam9g20ek and
at91sam9m10g45ek boards (which are the boards I tested on).

Best Regards,

Boris

Boris Brezillon (4):
  ARM: at91/dt: add RTT nodes to at91 dtsis
  ARM: at91/dt: add GPBR nodes
  ARM: at91/dt: enable the RTT block on the sam9g20ek board
  ARM: at91/dt: enable the RTT block on the at91sam9m10g45ek board

 arch/arm/boot/dts/at91sam9260.dtsi          | 14 ++++++++++++++
 arch/arm/boot/dts/at91sam9261.dtsi          | 14 ++++++++++++++
 arch/arm/boot/dts/at91sam9263.dtsi          | 21 +++++++++++++++++++++
 arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 14 ++++++++++++++
 arch/arm/boot/dts/at91sam9g45.dtsi          | 14 ++++++++++++++
 arch/arm/boot/dts/at91sam9m10g45ek.dts      |  9 +++++++++
 arch/arm/boot/dts/at91sam9rl.dtsi           | 14 ++++++++++++++
 7 files changed, 100 insertions(+)

-- 
1.9.1

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

* [PATCH 1/4] ARM: at91/dt: add RTT nodes to at91 dtsis
  2014-11-14 10:08 [PATCH 0/4] ARM: at91/dt: define RTT nodes Boris Brezillon
@ 2014-11-14 10:08 ` Boris Brezillon
  2014-11-14 10:08 ` [PATCH 2/4] ARM: at91/dt: add GPBR nodes Boris Brezillon
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Boris Brezillon @ 2014-11-14 10:08 UTC (permalink / raw)
  To: linux-arm-kernel

at91sam926x, at91sam9g45 and at91sam9rl SoCs all have at least one RTT
block.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
---
 arch/arm/boot/dts/at91sam9260.dtsi |  8 ++++++++
 arch/arm/boot/dts/at91sam9261.dtsi |  8 ++++++++
 arch/arm/boot/dts/at91sam9263.dtsi | 15 +++++++++++++++
 arch/arm/boot/dts/at91sam9g45.dtsi |  8 ++++++++
 arch/arm/boot/dts/at91sam9rl.dtsi  |  8 ++++++++
 5 files changed, 47 insertions(+)

diff --git a/arch/arm/boot/dts/at91sam9260.dtsi b/arch/arm/boot/dts/at91sam9260.dtsi
index cb100b0..9ea824e 100644
--- a/arch/arm/boot/dts/at91sam9260.dtsi
+++ b/arch/arm/boot/dts/at91sam9260.dtsi
@@ -956,6 +956,14 @@
 				};
 			};
 
+			rtc at fffffd20 {
+				compatible = "atmel,at91sam9260-rtt";
+				reg = <0xfffffd20 0x10>;
+				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+				clocks = <&clk32k>;
+				status = "disabled";
+			};
+
 			watchdog at fffffd40 {
 				compatible = "atmel,at91sam9260-wdt";
 				reg = <0xfffffd40 0x10>;
diff --git a/arch/arm/boot/dts/at91sam9261.dtsi b/arch/arm/boot/dts/at91sam9261.dtsi
index a81aab4..06b11fc 100644
--- a/arch/arm/boot/dts/at91sam9261.dtsi
+++ b/arch/arm/boot/dts/at91sam9261.dtsi
@@ -828,6 +828,14 @@
 				clocks = <&mck>;
 			};
 
+			rtc at fffffd20 {
+				compatible = "atmel,at91sam9260-rtt";
+				reg = <0xfffffd20 0x10>;
+				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+				clocks = <&slow_xtal>;
+				status = "disabled";
+			};
+
 			watchdog at fffffd40 {
 				compatible = "atmel,at91sam9260-wdt";
 				reg = <0xfffffd40 0x10>;
diff --git a/arch/arm/boot/dts/at91sam9263.dtsi b/arch/arm/boot/dts/at91sam9263.dtsi
index 653e439..7f37b7e 100644
--- a/arch/arm/boot/dts/at91sam9263.dtsi
+++ b/arch/arm/boot/dts/at91sam9263.dtsi
@@ -922,6 +922,21 @@
 				pinctrl-0 = <&pinctrl_can_rx_tx>;
 				clocks = <&can_clk>;
 				clock-names = "can_clk";
+			};
+
+			rtc at fffffd20 {
+				compatible = "atmel,at91sam9260-rtt";
+				reg = <0xfffffd20 0x10>;
+				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+				clocks = <&slow_xtal>;
+				status = "disabled";
+			};
+
+			rtc at fffffd50 {
+				compatible = "atmel,at91sam9260-rtt";
+				reg = <0xfffffd50 0x10>;
+				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+				clocks = <&slow_xtal>;
 				status = "disabled";
 			};
 		};
diff --git a/arch/arm/boot/dts/at91sam9g45.dtsi b/arch/arm/boot/dts/at91sam9g45.dtsi
index d3f6513..3771088 100644
--- a/arch/arm/boot/dts/at91sam9g45.dtsi
+++ b/arch/arm/boot/dts/at91sam9g45.dtsi
@@ -1192,6 +1192,14 @@
 				};
 			};
 
+			rtc at fffffd20 {
+				compatible = "atmel,at91sam9260-rtt";
+				reg = <0xfffffd20 0x10>;
+				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+				clocks = <&clk32k>;
+				status = "disabled";
+			};
+
 			rtc at fffffdb0 {
 				compatible = "atmel,at91rm9200-rtc";
 				reg = <0xfffffdb0 0x30>;
diff --git a/arch/arm/boot/dts/at91sam9rl.dtsi b/arch/arm/boot/dts/at91sam9rl.dtsi
index f0b4352..6d77b02 100644
--- a/arch/arm/boot/dts/at91sam9rl.dtsi
+++ b/arch/arm/boot/dts/at91sam9rl.dtsi
@@ -1059,6 +1059,14 @@
 					clocks = <&slow_rc_osc &slow_osc>;
 				};
 			};
+
+			rtc at fffffd20 {
+				compatible = "atmel,at91sam9260-rtt";
+				reg = <0xfffffd20 0x10>;
+				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+				clocks = <&clk32k>;
+				status = "disabled";
+			};
 		};
 	};
 
-- 
1.9.1

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

* [PATCH 2/4] ARM: at91/dt: add GPBR nodes
  2014-11-14 10:08 [PATCH 0/4] ARM: at91/dt: define RTT nodes Boris Brezillon
  2014-11-14 10:08 ` [PATCH 1/4] ARM: at91/dt: add RTT nodes to at91 dtsis Boris Brezillon
@ 2014-11-14 10:08 ` Boris Brezillon
  2014-11-14 10:08 ` [PATCH 3/4] ARM: at91/dt: enable the RTT block on the sam9g20ek board Boris Brezillon
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Boris Brezillon @ 2014-11-14 10:08 UTC (permalink / raw)
  To: linux-arm-kernel

Add GPBR (General Purpose Block Backup Registers) nodes.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
---
 arch/arm/boot/dts/at91sam9260.dtsi | 6 ++++++
 arch/arm/boot/dts/at91sam9261.dtsi | 6 ++++++
 arch/arm/boot/dts/at91sam9263.dtsi | 6 ++++++
 arch/arm/boot/dts/at91sam9g45.dtsi | 6 ++++++
 arch/arm/boot/dts/at91sam9rl.dtsi  | 6 ++++++
 5 files changed, 30 insertions(+)

diff --git a/arch/arm/boot/dts/at91sam9260.dtsi b/arch/arm/boot/dts/at91sam9260.dtsi
index 9ea824e..dd1313c 100644
--- a/arch/arm/boot/dts/at91sam9260.dtsi
+++ b/arch/arm/boot/dts/at91sam9260.dtsi
@@ -974,6 +974,12 @@
 				atmel,idle-halt;
 				status = "disabled";
 			};
+
+			gpbr: syscon at fffffd50 {
+				compatible = "atmel,at91sam9260-gpbr", "syscon";
+				reg = <0xfffffd50 0x10>;
+				status = "disabled";
+			};
 		};
 
 		nand0: nand at 40000000 {
diff --git a/arch/arm/boot/dts/at91sam9261.dtsi b/arch/arm/boot/dts/at91sam9261.dtsi
index 06b11fc..cdb9ed6 100644
--- a/arch/arm/boot/dts/at91sam9261.dtsi
+++ b/arch/arm/boot/dts/at91sam9261.dtsi
@@ -842,6 +842,12 @@
 				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
 				status = "disabled";
 			};
+
+			gpbr: syscon at fffffd50 {
+				compatible = "atmel,at91sam9260-gpbr", "syscon";
+				reg = <0xfffffd50 0x10>;
+				status = "disabled";
+			};
 		};
 	};
 
diff --git a/arch/arm/boot/dts/at91sam9263.dtsi b/arch/arm/boot/dts/at91sam9263.dtsi
index 7f37b7e..1467750 100644
--- a/arch/arm/boot/dts/at91sam9263.dtsi
+++ b/arch/arm/boot/dts/at91sam9263.dtsi
@@ -939,6 +939,12 @@
 				clocks = <&slow_xtal>;
 				status = "disabled";
 			};
+
+			gpbr: syscon at fffffd60 {
+				compatible = "atmel,at91sam9260-gpbr", "syscon";
+				reg = <0xfffffd60 0x50>;
+				status = "disabled";
+			};
 		};
 
 		fb0: fb at 0x00700000 {
diff --git a/arch/arm/boot/dts/at91sam9g45.dtsi b/arch/arm/boot/dts/at91sam9g45.dtsi
index 3771088..18453d9 100644
--- a/arch/arm/boot/dts/at91sam9g45.dtsi
+++ b/arch/arm/boot/dts/at91sam9g45.dtsi
@@ -1206,6 +1206,12 @@
 				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
 				status = "disabled";
 			};
+
+			gpbr: syscon at fffffd60 {
+				compatible = "atmel,at91sam9260-gpbr", "syscon";
+				reg = <0xfffffd60 0x10>;
+				status = "disabled";
+			};
 		};
 
 		fb0: fb at 0x00500000 {
diff --git a/arch/arm/boot/dts/at91sam9rl.dtsi b/arch/arm/boot/dts/at91sam9rl.dtsi
index 6d77b02..2ff072b 100644
--- a/arch/arm/boot/dts/at91sam9rl.dtsi
+++ b/arch/arm/boot/dts/at91sam9rl.dtsi
@@ -1067,6 +1067,12 @@
 				clocks = <&clk32k>;
 				status = "disabled";
 			};
+
+			gpbr: syscon at fffffd60 {
+				compatible = "atmel,at91sam9260-gpbr", "syscon";
+				reg = <0xfffffd60 0x10>;
+				status = "disabled";
+			};
 		};
 	};
 
-- 
1.9.1

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

* [PATCH 3/4] ARM: at91/dt: enable the RTT block on the sam9g20ek board
  2014-11-14 10:08 [PATCH 0/4] ARM: at91/dt: define RTT nodes Boris Brezillon
  2014-11-14 10:08 ` [PATCH 1/4] ARM: at91/dt: add RTT nodes to at91 dtsis Boris Brezillon
  2014-11-14 10:08 ` [PATCH 2/4] ARM: at91/dt: add GPBR nodes Boris Brezillon
@ 2014-11-14 10:08 ` Boris Brezillon
  2014-11-14 10:08 ` [PATCH 4/4] ARM: at91/dt: enable the RTT block on the at91sam9m10g45ek board Boris Brezillon
  2014-11-19 13:26 ` [PATCH 0/4] ARM: at91/dt: define RTT nodes Nicolas Ferre
  4 siblings, 0 replies; 6+ messages in thread
From: Boris Brezillon @ 2014-11-14 10:08 UTC (permalink / raw)
  To: linux-arm-kernel

Enable the RTT and GPBR devices and specify the general purpose register
used to store the current time.

Enable wakeup on RTT event on the shutdown controller device.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
---
 arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/at91sam9g20ek_common.dtsi b/arch/arm/boot/dts/at91sam9g20ek_common.dtsi
index d291910..dfaacb1 100644
--- a/arch/arm/boot/dts/at91sam9g20ek_common.dtsi
+++ b/arch/arm/boot/dts/at91sam9g20ek_common.dtsi
@@ -112,9 +112,23 @@
 				};
 			};
 
+			shdwc at fffffd10 {
+				atmel,wakeup-counter = <10>;
+				atmel,wakeup-rtt-timer;
+			};
+
+			rtc at fffffd20 {
+				atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
+				status = "okay";
+			};
+
 			watchdog at fffffd40 {
 				status = "okay";
 			};
+
+			gpbr: syscon at fffffd50 {
+				status = "okay";
+			};
 		};
 
 		nand0: nand at 40000000 {
-- 
1.9.1

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

* [PATCH 4/4] ARM: at91/dt: enable the RTT block on the at91sam9m10g45ek board
  2014-11-14 10:08 [PATCH 0/4] ARM: at91/dt: define RTT nodes Boris Brezillon
                   ` (2 preceding siblings ...)
  2014-11-14 10:08 ` [PATCH 3/4] ARM: at91/dt: enable the RTT block on the sam9g20ek board Boris Brezillon
@ 2014-11-14 10:08 ` Boris Brezillon
  2014-11-19 13:26 ` [PATCH 0/4] ARM: at91/dt: define RTT nodes Nicolas Ferre
  4 siblings, 0 replies; 6+ messages in thread
From: Boris Brezillon @ 2014-11-14 10:08 UTC (permalink / raw)
  To: linux-arm-kernel

Enable the RTT and GPBR devices and specify the general purpose register
used to store the current time.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
---
 arch/arm/boot/dts/at91sam9m10g45ek.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/at91sam9m10g45ek.dts b/arch/arm/boot/dts/at91sam9m10g45ek.dts
index d8dd226..33ce7ca 100644
--- a/arch/arm/boot/dts/at91sam9m10g45ek.dts
+++ b/arch/arm/boot/dts/at91sam9m10g45ek.dts
@@ -161,6 +161,15 @@
 				pinctrl-0 = <&pinctrl_pwm_leds>;
 			};
 
+			rtc at fffffd20 {
+				atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
+				status = "okay";
+			};
+
+			gpbr: syscon at fffffd60 {
+				status = "okay";
+			};
+
 			rtc at fffffdb0 {
 				status = "okay";
 			};
-- 
1.9.1

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

* [PATCH 0/4] ARM: at91/dt: define RTT nodes
  2014-11-14 10:08 [PATCH 0/4] ARM: at91/dt: define RTT nodes Boris Brezillon
                   ` (3 preceding siblings ...)
  2014-11-14 10:08 ` [PATCH 4/4] ARM: at91/dt: enable the RTT block on the at91sam9m10g45ek board Boris Brezillon
@ 2014-11-19 13:26 ` Nicolas Ferre
  4 siblings, 0 replies; 6+ messages in thread
From: Nicolas Ferre @ 2014-11-19 13:26 UTC (permalink / raw)
  To: linux-arm-kernel

On 14/11/2014 11:08, Boris Brezillon :
> Hello,
> 
> This patch series define RTT and GPBR devices on all at91 SoCs
> embedding those blocks and enable them on the at91sam9g20ek and
> at91sam9m10g45ek boards (which are the boards I tested on).
> 
> Best Regards,
> 
> Boris
> 
> Boris Brezillon (4):
>   ARM: at91/dt: add RTT nodes to at91 dtsis
>   ARM: at91/dt: add GPBR nodes
>   ARM: at91/dt: enable the RTT block on the sam9g20ek board
>   ARM: at91/dt: enable the RTT block on the at91sam9m10g45ek board

On the whole series:

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>

and stacked up on top of at91-3.19-dt2

Bye,

>  arch/arm/boot/dts/at91sam9260.dtsi          | 14 ++++++++++++++
>  arch/arm/boot/dts/at91sam9261.dtsi          | 14 ++++++++++++++
>  arch/arm/boot/dts/at91sam9263.dtsi          | 21 +++++++++++++++++++++
>  arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 14 ++++++++++++++
>  arch/arm/boot/dts/at91sam9g45.dtsi          | 14 ++++++++++++++
>  arch/arm/boot/dts/at91sam9m10g45ek.dts      |  9 +++++++++
>  arch/arm/boot/dts/at91sam9rl.dtsi           | 14 ++++++++++++++
>  7 files changed, 100 insertions(+)
> 


-- 
Nicolas Ferre

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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-14 10:08 [PATCH 0/4] ARM: at91/dt: define RTT nodes Boris Brezillon
2014-11-14 10:08 ` [PATCH 1/4] ARM: at91/dt: add RTT nodes to at91 dtsis Boris Brezillon
2014-11-14 10:08 ` [PATCH 2/4] ARM: at91/dt: add GPBR nodes Boris Brezillon
2014-11-14 10:08 ` [PATCH 3/4] ARM: at91/dt: enable the RTT block on the sam9g20ek board Boris Brezillon
2014-11-14 10:08 ` [PATCH 4/4] ARM: at91/dt: enable the RTT block on the at91sam9m10g45ek board Boris Brezillon
2014-11-19 13:26 ` [PATCH 0/4] ARM: at91/dt: define RTT nodes Nicolas Ferre

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).