xref: /linux/Documentation/devicetree/bindings/clock/ti/ti,clksel.yaml (revision 9d69d47fd399137d41b744065aab2f9677ccc377)
131fc1c63STony Lindgren# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
231fc1c63STony Lindgren%YAML 1.2
331fc1c63STony Lindgren---
431fc1c63STony Lindgren$id: http://devicetree.org/schemas/clock/ti/ti,clksel.yaml#
531fc1c63STony Lindgren$schema: http://devicetree.org/meta-schemas/core.yaml#
631fc1c63STony Lindgren
7*9d69d47fSKrzysztof Kozlowskititle: TI clksel clock
831fc1c63STony Lindgren
931fc1c63STony Lindgrenmaintainers:
1031fc1c63STony Lindgren  - Tony Lindgren <tony@atomide.com>
1131fc1c63STony Lindgren
1231fc1c63STony Lindgrendescription: |
1331fc1c63STony Lindgren  The TI CLKSEL clocks consist of consist of input clock mux bits, and in some
1431fc1c63STony Lindgren  cases also has divider, multiplier and gate bits.
1531fc1c63STony Lindgren
1631fc1c63STony Lindgrenproperties:
1731fc1c63STony Lindgren  compatible:
1831fc1c63STony Lindgren    const: ti,clksel
1931fc1c63STony Lindgren
2031fc1c63STony Lindgren  reg:
2131fc1c63STony Lindgren    maxItems: 1
2231fc1c63STony Lindgren    description: The CLKSEL register range
2331fc1c63STony Lindgren
2431fc1c63STony Lindgren  '#address-cells':
2531fc1c63STony Lindgren    enum: [ 0, 1, 2 ]
2631fc1c63STony Lindgren
2731fc1c63STony Lindgren  '#size-cells':
2831fc1c63STony Lindgren    enum: [ 0, 1, 2 ]
2931fc1c63STony Lindgren
3031fc1c63STony Lindgren  ranges: true
3131fc1c63STony Lindgren
3231fc1c63STony Lindgren  "#clock-cells":
3331fc1c63STony Lindgren    const: 2
3431fc1c63STony Lindgren    description: The CLKSEL register and bit offset
3531fc1c63STony Lindgren
3631fc1c63STony Lindgrenrequired:
3731fc1c63STony Lindgren  - compatible
3831fc1c63STony Lindgren  - reg
3931fc1c63STony Lindgren  - "#clock-cells"
4031fc1c63STony Lindgren
4131fc1c63STony LindgrenadditionalProperties:
4231fc1c63STony Lindgren  type: object
4331fc1c63STony Lindgren
4431fc1c63STony Lindgrenexamples:
4531fc1c63STony Lindgren  - |
4631fc1c63STony Lindgren    clksel_gfx_fclk: clock@52c {
4731fc1c63STony Lindgren      compatible = "ti,clksel";
4831fc1c63STony Lindgren      reg = <0x25c 0x4>;
4931fc1c63STony Lindgren      #clock-cells = <2>;
5031fc1c63STony Lindgren    };
5131fc1c63STony Lindgren...
52