Skip to content

Commit 73dd5c5

Browse files
committed
Merge tag 'hi6220-dt-for-4.8-2' of git://github.com/hisilicon/linux-hisi into next/late
Merge "ARM64: DT: Hisilicon Hi6220 updates for 4.8" from Wei Xu: - Add pl031 rtc0 and rtc1 support for hi6220 SoC * tag 'hi6220-dt-for-4.8-2' of git://github.com/hisilicon/linux-hisi: arm64: dts: hi6220: Add pl031 RTC support clk: hi6220: Add RTC clock for pl031
2 parents 77938a9 + 810bd15 commit 73dd5c5

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

arch/arm64/boot/dts/hisilicon/hi6220.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,22 @@
336336
clock-names = "timer1", "timer2", "apb_pclk";
337337
};
338338

339+
rtc0: rtc@f8003000 {
340+
compatible = "arm,pl031", "arm,primecell";
341+
reg = <0x0 0xf8003000 0x0 0x1000>;
342+
interrupts = <0 12 4>;
343+
clocks = <&ao_ctrl HI6220_RTC0_PCLK>;
344+
clock-names = "apb_pclk";
345+
};
346+
347+
rtc1: rtc@f8004000 {
348+
compatible = "arm,pl031", "arm,primecell";
349+
reg = <0x0 0xf8004000 0x0 0x1000>;
350+
interrupts = <0 8 4>;
351+
clocks = <&ao_ctrl HI6220_RTC1_PCLK>;
352+
clock-names = "apb_pclk";
353+
};
354+
339355
pmx0: pinmux@f7010000 {
340356
compatible = "pinctrl-single";
341357
reg = <0x0 0xf7010000 0x0 0x27c>;

drivers/clk/hisilicon/clk-hi6220.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ static struct hisi_gate_clock hi6220_separated_gate_clks_ao[] __initdata = {
6868
{ HI6220_TIMER7_PCLK, "timer7_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 22, 0, },
6969
{ HI6220_TIMER8_PCLK, "timer8_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 23, 0, },
7070
{ HI6220_UART0_PCLK, "uart0_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 24, 0, },
71+
{ HI6220_RTC0_PCLK, "rtc0_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 25, 0, },
72+
{ HI6220_RTC1_PCLK, "rtc1_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 26, 0, },
7173
};
7274

7375
static void __init hi6220_clk_ao_init(struct device_node *np)

include/dt-bindings/clock/hi6220-clock.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@
5555
#define HI6220_TIMER7_PCLK 34
5656
#define HI6220_TIMER8_PCLK 35
5757
#define HI6220_UART0_PCLK 36
58-
59-
#define HI6220_AO_NR_CLKS 37
58+
#define HI6220_RTC0_PCLK 37
59+
#define HI6220_RTC1_PCLK 38
60+
#define HI6220_AO_NR_CLKS 39
6061

6162
/* clk in Hi6220 systrl */
6263
/* gate clock */

0 commit comments

Comments
 (0)