Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | Binding for a Clockgen hardware block found on |
| 2 | certain STMicroelectronics consumer electronics SoC devices. |
| 3 | |
| 4 | A Clockgen node can contain pll, diviser or multiplexer nodes. |
| 5 | |
| 6 | We will find only the base address of the Clockgen, this base |
| 7 | address is common of all subnode. |
| 8 | |
| 9 | clockgen_node { |
| 10 | reg = <>; |
| 11 | |
| 12 | pll_node { |
| 13 | ... |
| 14 | }; |
| 15 | |
| 16 | quadfs_node { |
| 17 | ... |
| 18 | }; |
| 19 | |
| 20 | mux_node { |
| 21 | ... |
| 22 | }; |
| 23 | |
| 24 | flexgen_node { |
| 25 | ... |
| 26 | }; |
| 27 | ... |
| 28 | }; |
| 29 | |
| 30 | This binding uses the common clock binding[1]. |
| 31 | Each subnode should use the binding described in [2]..[7] |
| 32 | |
| 33 | [1] Documentation/devicetree/bindings/clock/clock-bindings.txt |
| 34 | [3] Documentation/devicetree/bindings/clock/st/st,clkgen-mux.txt |
| 35 | [4] Documentation/devicetree/bindings/clock/st/st,clkgen-pll.txt |
| 36 | [7] Documentation/devicetree/bindings/clock/st/st,quadfs.txt |
| 37 | [8] Documentation/devicetree/bindings/clock/st/st,flexgen.txt |
| 38 | |
| 39 | |
| 40 | Required properties: |
| 41 | - reg : A Base address and length of the register set. |
| 42 | |
| 43 | Example: |
| 44 | |
| 45 | clockgen-a@90ff000 { |
| 46 | compatible = "st,clkgen-c32"; |
| 47 | reg = <0x90ff000 0x1000>; |
| 48 | |
| 49 | clk_s_a0_pll: clk-s-a0-pll { |
| 50 | #clock-cells = <1>; |
| 51 | compatible = "st,clkgen-pll0"; |
| 52 | |
| 53 | clocks = <&clk_sysin>; |
| 54 | |
| 55 | clock-output-names = "clk-s-a0-pll-ofd-0"; |
| 56 | }; |
| 57 | |
| 58 | clk_s_a0_flexgen: clk-s-a0-flexgen { |
| 59 | compatible = "st,flexgen"; |
| 60 | |
| 61 | #clock-cells = <1>; |
| 62 | |
| 63 | clocks = <&clk_s_a0_pll 0>, |
| 64 | <&clk_sysin>; |
| 65 | |
| 66 | clock-output-names = "clk-ic-lmi0"; |
| 67 | }; |
| 68 | }; |