Skip to content

Commit 3328c65

Browse files
Andre-ARMjoyxu
authored andcommitted
ARM: dts: hisilicon: Fix SP805 clocks
The SP805 DT binding requires two clocks to be specified, but Hisilicon platform DTs currently only specify one clock. In practice, Linux would pick a clock named "apb_pclk" for the bus clock, and the Linux and U-Boot SP805 driver would use the first clock to derive the actual watchdog counter frequency. Since currently both are the very same clock, we can just double the clock reference, and add the correct clock-names, to match the binding. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
1 parent c26979a commit 3328c65

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

arch/arm/boot/dts/hisi-x5hd2.dtsi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,9 @@
370370
arm,primecell-periphid = <0x00141805>;
371371
reg = <0xa2c000 0x1000>;
372372
interrupts = <0 29 4>;
373-
clocks = <&clock HIX5HD2_WDG0_RST>;
374-
clock-names = "apb_pclk";
373+
clocks = <&clock HIX5HD2_WDG0_RST>,
374+
<&clock HIX5HD2_WDG0_RST>;
375+
clock-names = "wdog_clk", "apb_pclk";
375376
};
376377
};
377378

0 commit comments

Comments
 (0)