clk: rockchip: add clock id for watchdog pclk on rk3328
Subsystems (3)
Heiko Stuebner
maintainerPATCH 1/3 clk: rockchip: add clock id for watchdog pclk on rk3328
Needed to export that added clock.
Signed-off-by Heiko Stuebner <[email protected]>
--- include/dt-bindings/clock/rk3328-cru.h | 1 + 1 file changed, 1 insertion(+)
include/dt-bindings/clock/rk3328-cru.h +1 -0
@@ -164,6 +164,7 @@#define PCLK_DCF 233#define PCLK_SARADC 234#define PCLK_ACODECPHY 235 +#define PCLK_WDT 236/* hclk gates */ #define HCLK_PERI 308
Signature · 1 line
2.20.1
Heiko Stuebner
maintainerPATCH 2/3 clk: rockchip: add watchdog pclk on rk3328
The watchdog pclk is controlled from the secure GRF but we still want to mention it explicitly to not use arbitary parent clocks in the devicetree wdt node, so add a SGRF_GATE for it.
Suggested-by Leonidas P. Papadakos <[email protected]>
Signed-off-by Heiko Stuebner <[email protected]>
--- drivers/clk/rockchip/clk-rk3328.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/clk/rockchip/clk-rk3328.c +3 -0
@@ -791,6 +791,9 @@ static struct rockchip_clk_branch rk3328_clk_branches[] __initdata = {GATE (PCLK_SARADC ,"pclk_saradc" ,"pclk_bus" ,0 ,RK3328_CLKGATE_CON (17 ),15 ,GFLAGS ),GATE (0 ,"pclk_pmu" ,"pclk_bus" ,CLK_IGNORE_UNUSED ,RK3328_CLKGATE_CON (28 ),3 ,GFLAGS ), +/* Watchdog pclk is controlled from the secure GRF */ +SGRF_GATE (PCLK_WDT ,"pclk_wdt" ,"pclk_bus" ), +GATE (PCLK_USB3PHY_OTG ,"pclk_usb3phy_otg" ,"pclk_phy_pre" ,0 ,RK3328_CLKGATE_CON (28 ),1 ,GFLAGS ),GATE (PCLK_USB3PHY_PIPE ,"pclk_usb3phy_pipe" ,"pclk_phy_pre" ,0 ,RK3328_CLKGATE_CON (28 ),2 ,GFLAGS ), GATE(PCLK_USB3_GRF, "pclk_usb3_grf", "pclk_phy_pre", CLK_IGNORE_UNUSED, RK3328_CLKGATE_CON(17), 2, GFLAGS),
Signature · 1 line
2.20.1
Heiko Stuebner
maintainerPATCH 3/3 arm64: dts: rockchip: enable rk3328 watchdog clock
In reply to Heiko StuebnerFrom: Leonidas P. Papadakos <[email protected]>
Add the missing clock property for the watchdog on rk3328.
Signed-off-by Leonidas P. Papadakos <[email protected]>
[set wdt node to always enabled, as it is not board-specific]
Signed-off-by Heiko Stuebner <[email protected]>
--- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/rockchip/rk3328.dtsi +1 -0
@@ -407,6 +407,7 @@ compatible = "snps,dw-wdt"; reg = <0x0 0xff1a0000 0x0 0x100>; interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cru PCLK_WDT>; }; pwm0: pwm@ff1b0000 {
Signature · 1 line
2.20.1
Am Samstag, 15. Juni 2019, 17:30:30 CEST schrieb Heiko Stuebner:
Quoted 3 lines
Needed to export that added clock.
Signed-off-by Heiko Stuebner <[email protected]>
applied all 3 patches to relevant branches for 5.3
Cheers
Heiko