ARM: dts: exynos: fix RTC interrupt for exynos5410
Subsystems (2)
PATCH 1/1 ARM: dts: exynos: fix RTC interrupt for exynos5410
According to the comment added to exynos_dt_pmu_match[] in commit 8b283c025443 ("ARM: exynos4/5: convert pmu wakeup to stacked domains"), the RTC is not able to wake up the system through the PMU on Exynos5410, unlike Exynos5420.
However, when the RTC DT node got added, it was a straight copy of the Exynos5420 node, which now causes a warning from dtc.
This removes the incorrect interrupt-parent, which should get the interrupt working and avoid the warning.
--- arch/arm/boot/dts/exynos5410.dtsi | 1 - 1 file changed, 1 deletion(-)
arch/arm/boot/dts/exynos5410.dtsi +0 -1
@@ -333,7 +333,6 @@ &rtc { clocks = <&clock CLK_RTC>; clock-names = "rtc"; - interrupt-parent = <&pmu_system_controller>; status = "disabled"; };
Signature · 1 line
2.9.0
Krzysztof Kozlowski
maintainerQuoted 8 lines · Arnd Bergmann
According to the comment added to exynos_dt_pmu_match[] in commit
8b283c025443("ARM: exynos4/5: convert pmu wakeup to stacked domains"), the RTC is not able to wake up the system through the PMU on Exynos5410, unlike Exynos5420.However, when the RTC DT node got added, it was a straight copy of the Exynos5420 node, which now causes a warning from dtc.
Quoted 8 lines
This removes the incorrect interrupt-parent, which should get the interrupt working and avoid the warning.
Fixes e1e146b1b062 ("ARM: dts: exynos: Add RTC and I2C to Exynos5410")Signed-off-by Arnd Bergmann <[email protected]>--- arch/arm/boot/dts/exynos5410.dtsi | 1 - 1 file changed, 1 deletion(-)
In my pull request thread [1] you mentioned that PMU should not be interrupt controller for Exynos5410. Yes, I think you are right. Regardless whether Exynos5410 really supports Suspend to RAM or not, now it is not configured as IRQ controller so the RTC's should go straight to GIC. I think your fix is correct and I should drop my patch.
I do not have Exynos5410 anymore (Odroid XU was left at Samsung Poland) so I cannot test it. Maybe guys in Poland can test it? Marek? Sylwester? Bartlomiej?
BTW,
It annoys me so much that it is so difficult to get Samsung boards. I was writing to Samsung many times - to HQ, Open Source Group, LSI, Artik and nothing. They do not have any boards... or they do not want to share. This is how Samsung's support for Open Source really looks like.
Quoted 1 line
From the three boards I have, two of them I bought myself by my own
money, one was donated to me by Markus Reichl (Odroid U3, thanks!). When I was working in Samsung Poland they provided me with boards (thanks guys!) but only for the time of work there and I am not Samsung employee anymore.
So except this board from Markus, all infrastructure I have was built by my own money. Eh, it is not that expensive, one board costs like 50-70 USD with shipment, but come on! Seriously, damn big company, with damn big marketing budget and plenty of people and they cannot provide their own boards to open-source... It really pisses me off sometimes...
Back to the topic - thanks for the patch!
Best regards,
Krzysztof
[1] https://www.spinics.net/lists/arm-kernel/msg624966.html
Quoted 16 lines
arch/arm/boot/dts/exynos5410.dtsi +0
-2@@ -333,7 +333,6 @@ &rtc { clocks = <&clock CLK_RTC>; clock-names = "rtc"; - interrupt-parent = <&pmu_system_controller>; status = "disabled"; }; --2.9.0
Krzysztof Kozlowski
maintainerQuoted 8 lines · Arnd Bergmann
According to the comment added to exynos_dt_pmu_match[] in commit
8b283c025443("ARM: exynos4/5: convert pmu wakeup to stacked domains"), the RTC is not able to wake up the system through the PMU on Exynos5410, unlike Exynos5420.However, when the RTC DT node got added, it was a straight copy of the Exynos5420 node, which now causes a warning from dtc.
Quoted 9 lines
This removes the incorrect interrupt-parent, which should get the interrupt working and avoid the warning.
Fixes e1e146b1b062 ("ARM: dts: exynos: Add RTC and I2C to Exynos5410")Signed-off-by Arnd Bergmann <[email protected]>--- arch/arm/boot/dts/exynos5410.dtsi | 1 - 1 file changed, 1 deletion(-)
I reverted my commit [1] and applied yours. What is interesting... RTC works fine in any combination (so even routing interrupts through non-interrupt-controller PMU).
Best regards,
Krzysztof