| Binding for clock multiplexer requiring global Meta locking. |
| |
| This binding uses the common clock binding[1]. |
| |
| [1] Documentation/devicetree/bindings/clock/clock-bindings.txt |
| |
| Required properties: |
| - compatible : Shall be "img,meta-mux-clock". |
| - #clock-cells : From common clock binding; shall be set to 0. |
| - reg : Address of configuration register. |
| - shift : Shift of mux value field in configuration register. |
| - width : Width of mux value field in configuration register. |
| - clocks : From common clock binding. |
| |
| Required source clocks: |
| - 0..(1<<width)-1 : Input clocks to multiplex (don't have to be named). |
| |
| Optional properties: |
| - clock-output-names : From common clock binding. |
| - default-clock : Mux value to set initially. |
| - linux,clk-set-rate-parent : Allow modification of parent clock. |
| - linux,clk-set-rate-remux : Allow remux in response to rate change. |
| |
| Example: |
| clock { |
| compatible = "img,meta-mux-clock"; |
| #clock-cells = <0>; |
| clocks = <&xtal1>, |
| <&xtal2>; |
| reg = <0x02005908 0x4>; |
| shift = <0>; |
| width = <1>; |
| clock-output-names = "sysclk0_sw"; |
| default-clock = <1>; /* default to xtal2 */ |
| }; |