xref: /freebsd/sys/contrib/device-tree/Bindings/clock/maxim,max9485.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*833e5d42SEmmanuel Vadot%YAML 1.2
3*833e5d42SEmmanuel Vadot---
4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/clock/maxim,max9485.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: Maxim MAX9485 Programmable Audio Clock Generator
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotmaintainers:
10*833e5d42SEmmanuel Vadot  - Daniel Mack <daniel@zonque.org>
11*833e5d42SEmmanuel Vadot
12*833e5d42SEmmanuel Vadotdescription: >
13*833e5d42SEmmanuel Vadot  Maxim MAX9485 Programmable Audio Clock Generator exposes 4 clocks in total:
14*833e5d42SEmmanuel Vadot
15*833e5d42SEmmanuel Vadot    - MAX9485_MCLKOUT:  A gated, buffered output of the input clock of 27 MHz
16*833e5d42SEmmanuel Vadot    - MAX9485_CLKOUT:   A PLL that can be configured to 16 different discrete
17*833e5d42SEmmanuel Vadot                        frequencies
18*833e5d42SEmmanuel Vadot    - MAX9485_CLKOUT[1,2]:  Two gated outputs for MAX9485_CLKOUT
19*833e5d42SEmmanuel Vadot
20*833e5d42SEmmanuel Vadot  MAX9485_CLKOUT[1,2] are children of MAX9485_CLKOUT which upchain all rate set
21*833e5d42SEmmanuel Vadot  requests.
22*833e5d42SEmmanuel Vadot
23*833e5d42SEmmanuel Vadotproperties:
24*833e5d42SEmmanuel Vadot  compatible:
25*833e5d42SEmmanuel Vadot    const: maxim,max9485
26*833e5d42SEmmanuel Vadot
27*833e5d42SEmmanuel Vadot  reg:
28*833e5d42SEmmanuel Vadot    maxItems: 1
29*833e5d42SEmmanuel Vadot
30*833e5d42SEmmanuel Vadot  clocks:
31*833e5d42SEmmanuel Vadot    description: Input clock. Must provide 27 MHz
32*833e5d42SEmmanuel Vadot    maxItems: 1
33*833e5d42SEmmanuel Vadot
34*833e5d42SEmmanuel Vadot  clock-names:
35*833e5d42SEmmanuel Vadot    items:
36*833e5d42SEmmanuel Vadot      - const: xclk
37*833e5d42SEmmanuel Vadot
38*833e5d42SEmmanuel Vadot  '#clock-cells':
39*833e5d42SEmmanuel Vadot    const: 1
40*833e5d42SEmmanuel Vadot
41*833e5d42SEmmanuel Vadot  reset-gpios:
42*833e5d42SEmmanuel Vadot    description: >
43*833e5d42SEmmanuel Vadot      GPIO descriptor connected to the #RESET input pin
44*833e5d42SEmmanuel Vadot
45*833e5d42SEmmanuel Vadot  vdd-supply:
46*833e5d42SEmmanuel Vadot    description: A regulator node for Vdd
47*833e5d42SEmmanuel Vadot
48*833e5d42SEmmanuel Vadot  clock-output-names:
49*833e5d42SEmmanuel Vadot    description: Name of output clocks, as defined in common clock bindings
50*833e5d42SEmmanuel Vadot    items:
51*833e5d42SEmmanuel Vadot      - const: mclkout
52*833e5d42SEmmanuel Vadot      - const: clkout
53*833e5d42SEmmanuel Vadot      - const: clkout1
54*833e5d42SEmmanuel Vadot      - const: clkout2
55*833e5d42SEmmanuel Vadot
56*833e5d42SEmmanuel Vadotrequired:
57*833e5d42SEmmanuel Vadot  - compatible
58*833e5d42SEmmanuel Vadot  - reg
59*833e5d42SEmmanuel Vadot  - clocks
60*833e5d42SEmmanuel Vadot  - clock-names
61*833e5d42SEmmanuel Vadot  - '#clock-cells'
62*833e5d42SEmmanuel Vadot
63*833e5d42SEmmanuel VadotadditionalProperties: false
64*833e5d42SEmmanuel Vadot
65*833e5d42SEmmanuel Vadotexamples:
66*833e5d42SEmmanuel Vadot  - |
67*833e5d42SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
68*833e5d42SEmmanuel Vadot
69*833e5d42SEmmanuel Vadot    i2c {
70*833e5d42SEmmanuel Vadot        #address-cells = <1>;
71*833e5d42SEmmanuel Vadot        #size-cells = <0>;
72*833e5d42SEmmanuel Vadot
73*833e5d42SEmmanuel Vadot        clock-controller@63 {
74*833e5d42SEmmanuel Vadot            compatible = "maxim,max9485";
75*833e5d42SEmmanuel Vadot            reg = <0x63>;
76*833e5d42SEmmanuel Vadot            #clock-cells = <1>;
77*833e5d42SEmmanuel Vadot            clock-names = "xclk";
78*833e5d42SEmmanuel Vadot            clocks = <&xo_27mhz>;
79*833e5d42SEmmanuel Vadot            reset-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
80*833e5d42SEmmanuel Vadot            vdd-supply = <&reg_3v3>;
81*833e5d42SEmmanuel Vadot        };
82*833e5d42SEmmanuel Vadot    };
83