# \[PATCH v2 0/3\] Extend rtc-armada38x support for Armada 7K/8K

- Subsystems: ARM/Marvell Kirkwood and Armada 370, 375, 38x, 39x, XP, 3700, 7K/8K, CN9130 SOC support, OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, REAL TIME CLOCK (RTC) SUBSYSTEM, THE REST
- Maintainers: Andrew Lunn, Gregory Clement, Sebastian Hesselbarth, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alexandre Belloni, Linus Torvalds
- Series: 3 patches touching 6 files, +202/-56
- Status: SUPERSEDED (Superseded by v3 posted 2017-02-20)
- Superseded by v3 (posted 2017-02-20).
- Revision v2 (3 revisions archived).
- List: linux-arm-kernel
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-arm-kernel/2017/02/8748718/t

## \[PATCH v2 0/3\] Extend rtc-armada38x support for Armada 7K/8K

- From: Gregory CLEMENT \<hidden\>
- Date: 2017-02-20 17:36:33 
- Message: https://ratatoskr.run/linux-arm-kernel/2017/02/8748718.md

```text
Hi Russell King,
 
 On lun., f?vr. 20 2017, Russell King - ARM Linux [ref] wrote:

> On Mon, Feb 20, 2017 at 06:06:11PM +0100, Gregory CLEMENT wrote:
>> I saw on IRC than Russell managed to have a more coherent date with this
>> series on his 8040 based board. For the record, as the U-Boot on this
>> board didn't provide a "date reset" command for the RTC located on CP
>> slave, then Russell needed to do the following:
>> 
>> devmem2 0xf428401c w 0
>> devmem2 0xf4284018 w 0x2000
>> followed by:
>> date 021612342017; ntpdate ...; hwclock -uw
>> 
>> But this issue was related to the bootloader not to the kernel. The
>> other potential issue seen by Russell was about the GIC mapping for the
>> interrupt, but here again this mapping was done by the 1st stage
>> bootloader.
>> 
>> Given this information would it be OK to applied this series?
>
> No it is not.  As I already pointed out, the interrupt for the 8040 is
> GIC_SPI 71 _not_ GIC_SPI 77 as you have it in this series.
>
> Both CP110's on Armada 8040 have a default mapping of ICU 77 to GIC
> 71.

OK so I am sending a v2 with this fix.

Thanks,

Gregory

>
> -- 
> RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
> FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
> according to speedtest.net.

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
```
