Skip to content

Commit

Permalink
clk: zx: register ZX296718 clocks
Browse files Browse the repository at this point in the history
The ZX296718 clocks are statically listed and registered. More
clock will be added later.

Signed-off-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
  • Loading branch information
Jun Nie authored and Stephen Boyd committed Sep 14, 2016
1 parent 8d9a086 commit ca02332
Show file tree
Hide file tree
Showing 5 changed files with 1,248 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Documentation/devicetree/bindings/clock/zx296718-clk.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Device Tree Clock bindings for ZTE zx296718

This binding uses the common clock binding[1].

[1] Documentation/devicetree/bindings/clock/clock-bindings.txt

Required properties:
- compatible : shall be one of the following:
"zte,zx296718-topcrm":
zx296718 top clock selection, divider and gating

"zte,zx296718-lsp0crm" and
"zte,zx296718-lsp1crm":
zx296718 device level clock selection and gating

- reg: Address and length of the register set

The clock consumer should specify the desired clock by having the clock
ID in its "clocks" phandle cell. See include/dt-bindings/clock/zx296718-clock.h
for the full list of zx296718 clock IDs.


topclk: topcrm@1461000 {
compatible = "zte,zx296718-topcrm-clk";
reg = <0x01461000 0x1000>;
#clock-cells = <1>;
};

usbphy0:usb-phy0 {
compatible = "zte,zx296718-usb-phy";
#phy-cells = <0>;
clocks = <&topclk USB20_PHY_CLK>;
clock-names = "phyclk";
status = "okay";
};
1 change: 1 addition & 0 deletions drivers/clk/zte/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
obj-y := clk.o
obj-$(CONFIG_SOC_ZX296702) += clk-zx296702.o
obj-$(CONFIG_ARCH_ZX) += clk-zx296718.o
Loading

0 comments on commit ca02332

Please sign in to comment.