Skip to content

Commit

Permalink
dt-bindings: clk: Hi3660: Document stub clock
Browse files Browse the repository at this point in the history
Document the DT binding for stub clock which is used for CPU,
GPU and DDR frequency scaling.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
  • Loading branch information
Leo Yan authored and Stephen Boyd committed Dec 7, 2017
1 parent 4fbd8d1 commit a4a124c
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Documentation/devicetree/bindings/clock/hi3660-clock.txt
Original file line number Diff line number Diff line change
@@ -13,12 +13,18 @@ Required Properties:
- "hisilicon,hi3660-pmuctrl"
- "hisilicon,hi3660-sctrl"
- "hisilicon,hi3660-iomcu"
- "hisilicon,hi3660-stub-clk"

- reg: physical base address of the controller and length of memory mapped
region.

- #clock-cells: should be 1.

Optional Properties:

- mboxes: Phandle to the mailbox for sending message to MCU.
(See: ../mailbox/hisilicon,hi3660-mailbox.txt for more info)

Each clock is assigned an identifier and client nodes use this identifier
to specify the clock which they consume.

7 changes: 7 additions & 0 deletions include/dt-bindings/clock/hi3660-clock.h
Original file line number Diff line number Diff line change
@@ -208,4 +208,11 @@
#define HI3660_CLK_I2C6_IOMCU 3
#define HI3660_CLK_IOMCU_PERI0 4

/* clk in stub clock */
#define HI3660_CLK_STUB_CLUSTER0 0
#define HI3660_CLK_STUB_CLUSTER1 1
#define HI3660_CLK_STUB_GPU 2
#define HI3660_CLK_STUB_DDR 3
#define HI3660_CLK_STUB_NUM 4

#endif /* __DTS_HI3660_CLOCK_H */

0 comments on commit a4a124c

Please sign in to comment.