ARM: at91/dt: define RTT nodes
Subsystems (2)
cover ARM: at91/dt: define RTT nodes
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(+)
Signature · 1 line
1.9.1
PATCH 1/4 ARM: at91/dt: add RTT nodes to at91 dtsis
at91sam926x, at91sam9g45 and at91sam9rl SoCs all have at least one RTT block.
--- 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(+)
arch/arm/boot/dts/at91sam9260.dtsi +8 -0
@@ -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>;
arch/arm/boot/dts/at91sam9261.dtsi +8 -0
@@ -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>;
arch/arm/boot/dts/at91sam9263.dtsi +15 -0
@@ -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"; }; };
arch/arm/boot/dts/at91sam9g45.dtsi +8 -0
@@ -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>;
arch/arm/boot/dts/at91sam9rl.dtsi +8 -0
@@ -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"; + }; }; };
Signature · 1 line
1.9.1
PATCH 2/4 ARM: at91/dt: add GPBR nodes
In reply to Boris BrezillonAdd GPBR (General Purpose Block Backup Registers) nodes.
--- 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(+)
arch/arm/boot/dts/at91sam9260.dtsi +6 -0
@@ -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 {
arch/arm/boot/dts/at91sam9261.dtsi +6 -0
@@ -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"; + }; }; };
arch/arm/boot/dts/at91sam9263.dtsi +6 -0
@@ -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 {
arch/arm/boot/dts/at91sam9g45.dtsi +6 -0
@@ -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 {
arch/arm/boot/dts/at91sam9rl.dtsi +6 -0
@@ -1067,6 +1067,12 @@ clocks = <&clk32k>; status = "disabled"; }; + + gpbr: syscon at fffffd60 { + compatible = "atmel,at91sam9260-gpbr", "syscon"; + reg = <0xfffffd60 0x10>; + status = "disabled"; + }; }; };
Signature · 1 line
1.9.1
PATCH 3/4 ARM: at91/dt: enable the RTT block on the sam9g20ek board
In reply to Boris BrezillonEnable 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.
--- arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm/boot/dts/at91sam9g20ek_common.dtsi +14 -0
@@ -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 {
Signature · 1 line
1.9.1
PATCH 4/4 ARM: at91/dt: enable the RTT block on the at91sam9m10g45ek board
In reply to Boris BrezillonEnable the RTT and GPBR devices and specify the general purpose register used to store the current time.
--- arch/arm/boot/dts/at91sam9m10g45ek.dts | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/boot/dts/at91sam9m10g45ek.dts +9 -0
@@ -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"; };
Signature · 1 line
1.9.1
cover ARM: at91/dt: define RTT nodes
In reply to Boris BrezillonOn 14/11/2014 11:08, Boris Brezillon :
Quoted 8 lines
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,
Quoted 7 lines
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:
and stacked up on top of at91-3.19-dt2
Bye,
Quoted 9 lines
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(+)
Signature · 1 line
Nicolas Ferre