rockchip: rk3188: add timer3 node
authorKever Yang <kever.yang@rock-chips.com>
Wed, 18 Apr 2018 03:13:45 +0000 (11:13 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 25 Apr 2018 20:20:05 +0000 (22:20 +0200)
Add dts node for timer3.
Because of the rockchip timer can only KNOWN "dtd_rockchip_rk3368_timer"
with OF_PLATDATA enable, so we override its compatible to
"rockchip,rk3368-timer".

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/dts/rk3188-radxarock-u-boot.dtsi
arch/arm/dts/rk3188.dtsi

index 5d650b17ef83fc03d42b7c18af631b37429dd1b5..26f5707bb8ff6c533f7e737a102a9eb8289a9c91 100644 (file)
@@ -16,3 +16,9 @@
        status = "okay";
        u-boot,dm-spl;
 };
+
+&timer3 {
+       compatible = "rockchip,rk3368-timer", "rockchip,rk3288-timer";
+       u-boot,dm-spl;
+       clock-frequency = <24000000>;
+};
index 1a0684320abd440cae2c56a1c4e478e1d1eec913..aeb5b80e144ac8ac906651601ef9df7d465478a1 100644 (file)
                };
        };
 
+       timer3: timer@2000e000 {
+               compatible = "rockchip,rk3188-timer", "rockchip,rk3288-timer";
+               reg = <0x2000e000 0x20>;
+               interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
+       };
+
        usbphy: phy {
                compatible = "rockchip,rk3188-usb-phy", "rockchip,rk3288-usb-phy";
                rockchip,grf = <&grf>;