Skip to content

Commit c675a00

Browse files
Anders BergMike Turquette
authored andcommitted
clk: Add clock driver for AXM55xx SoC
Add clk driver to support clock blocks found on the AXM55xx devices. The driver provides clock implementations for three different types of clock devices on the AXM55xx device: PLL clock, a clock divider and a clock mux. Signed-off-by: Anders Berg <anders.berg@lsi.com> Cc: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
1 parent bb178da commit c675a00

3 files changed

Lines changed: 645 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
AXM5516 clock driver bindings
2+
-----------------------------
3+
4+
Required properties :
5+
- compatible : shall contain "lsi,axm5516-clks"
6+
- reg : shall contain base register location and length
7+
- #clock-cells : shall contain 1
8+
9+
The consumer specifies the desired clock by having the clock ID in its "clocks"
10+
phandle cell. See <dt-bindings/clock/lsi,axxia-clock.h> for the list of
11+
supported clock IDs.
12+
13+
Example:
14+
15+
clks: clock-controller@2010020000 {
16+
compatible = "lsi,axm5516-clks";
17+
#clock-cells = <1>;
18+
reg = <0x20 0x10020000 0 0x20000>;
19+
};
20+
21+
serial0: uart@2010080000 {
22+
compatible = "arm,pl011", "arm,primecell";
23+
reg = <0x20 0x10080000 0 0x1000>;
24+
interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
25+
clocks = <&clks AXXIA_CLK_PER>;
26+
clock-names = "apb_pclk";
27+
};
28+
};
29+

‎drivers/clk/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ obj-$(CONFIG_COMMON_CLK) += clk-composite.o
1212
# hardware specific clock types
1313
# please keep this section sorted lexicographically by file/directory path name
1414
obj-$(CONFIG_COMMON_CLK_AXI_CLKGEN) += clk-axi-clkgen.o
15+
obj-$(CONFIG_ARCH_AXXIA) += clk-axm5516.o
1516
obj-$(CONFIG_ARCH_BCM2835) += clk-bcm2835.o
1617
obj-$(CONFIG_ARCH_EFM32) += clk-efm32gg.o
1718
obj-$(CONFIG_ARCH_HIGHBANK) += clk-highbank.o

0 commit comments

Comments
 (0)