ARM: tegra: Add clocks property to TWD node
Subsystems (2)
PATCH 1/1 ARM: tegra: Add clocks property to TWD node
The generic ARM TWD code has recently gained support for looking up the clock from DT. Adding the appropriate clocks property allows the driver to successfully register the clock event device.
---
Note that the binding documentation says that the twd clock is 132 on Tegra20, but according to drivers/clk/tegra/clk-tegra20.c it is in fact
130. The patch doesn't update the binding documentation because some other offsets are probably also wrong and I didn't have the time to go through all of them.
--- arch/arm/boot/dts/tegra20.dtsi | 1 + arch/arm/boot/dts/tegra30.dtsi | 1 + 2 files changed, 2 insertions(+)
arch/arm/boot/dts/tegra20.dtsi +1 -0
@@ -118,6 +118,7 @@ compatible = "arm,cortex-a9-twd-timer"; reg = <0x50040600 0x20>; interrupts = <1 13 0x304>; + clocks = <&tegra_car 130>; }; intc: interrupt-controller {
arch/arm/boot/dts/tegra30.dtsi +1 -0
@@ -119,6 +119,7 @@ compatible = "arm,cortex-a9-twd-timer"; reg = <0x50040600 0x20>; interrupts = <1 13 0xf04>; + clocks = <&tegra_car 214>; }; intc: interrupt-controller {
Signature · 1 line
1.8.1.2
A message that is not in the archive (sent off-list or not yet received): 1360684611-11152-1-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org
Quoted 11 lines · Thierry Reding
The generic ARM TWD code has recently gained support for looking up the clock from DT. Adding the appropriate clocks property allows the driver to successfully register the clock event device.
Signed-off-by Thierry Reding <[email protected]>---
Note that the binding documentation says that the twd clock is 132 on Tegra20, but according todrivers/clk/tegra/clk-tegra20.cit is in fact
130. The patch doesn't update the binding documentation because some other offsets are probably also wrong and I didn't have the time to go through all of them.
The driver is buggy in that it doesn't match the DT bindings. I'll send a patch to fix that up very soon. Then this patch can be rebased.