diff options
| author | Michael Turquette <mturquette@baylibre.com> | 2016-06-09 19:20:47 -0400 |
|---|---|---|
| committer | Michael Turquette <mturquette@baylibre.com> | 2016-06-22 21:07:31 -0400 |
| commit | 2cc9e7ec219819db10474160d65837c6c260522a (patch) | |
| tree | 0a54626b53e4433c7e399551cd7de37045e1f526 /Documentation/devicetree/bindings/clock | |
| parent | 4a47295144ddbcf802fcddb3d7c0736d9a1f2e40 (diff) | |
clk: gxbb: Document bindings for the GXBB clock controller
Add documentations for the clock controller.
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Diffstat (limited to 'Documentation/devicetree/bindings/clock')
| -rw-r--r-- | Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt new file mode 100644 index 000000000000..ce06435d28ed --- /dev/null +++ b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | * Amlogic GXBB Clock and Reset Unit | ||
| 2 | |||
| 3 | The Amlogic GXBB clock controller generates and supplies clock to various | ||
| 4 | controllers within the SoC. | ||
| 5 | |||
| 6 | Required Properties: | ||
| 7 | |||
| 8 | - compatible: should be "amlogic,gxbb-clkc" | ||
| 9 | - reg: physical base address of the clock controller and length of memory | ||
| 10 | mapped region. | ||
| 11 | |||
| 12 | - #clock-cells: should be 1. | ||
| 13 | |||
| 14 | Each clock is assigned an identifier and client nodes can use this identifier | ||
| 15 | to specify the clock which they consume. All available clocks are defined as | ||
| 16 | preprocessor macros in the dt-bindings/clock/gxbb-clkc.h header and can be | ||
| 17 | used in device tree sources. | ||
| 18 | |||
| 19 | Example: Clock controller node: | ||
| 20 | |||
| 21 | clkc: clock-controller@c883c000 { | ||
| 22 | #clock-cells = <1>; | ||
| 23 | compatible = "amlogic,gxbb-clkc"; | ||
| 24 | reg = <0x0 0xc883c000 0x0 0x3db>; | ||
| 25 | }; | ||
| 26 | |||
| 27 | Example: UART controller node that consumes the clock generated by the clock | ||
| 28 | controller: | ||
| 29 | |||
| 30 | uart_AO: serial@c81004c0 { | ||
| 31 | compatible = "amlogic,meson-uart"; | ||
| 32 | reg = <0xc81004c0 0x14>; | ||
| 33 | interrupts = <0 90 1>; | ||
| 34 | clocks = <&clkc CLKID_CLK81>; | ||
| 35 | status = "disabled"; | ||
| 36 | }; | ||
