maxim,max9485.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Devicetree bindings for Maxim MAX9485 Programmable Audio Clock Generator
  2. This device exposes 4 clocks in total:
  3. - MAX9485_MCLKOUT: A gated, buffered output of the input clock of 27 MHz
  4. - MAX9485_CLKOUT: A PLL that can be configured to 16 different discrete
  5. frequencies
  6. - MAX9485_CLKOUT[1,2]: Two gated outputs for MAX9485_CLKOUT
  7. MAX9485_CLKOUT[1,2] are children of MAX9485_CLKOUT which upchain all rate set
  8. requests.
  9. Required properties:
  10. - compatible: "maxim,max9485"
  11. - clocks: Input clock, must provice 27.000 MHz
  12. - clock-names: Must be set to "xclk"
  13. - #clock-cells: From common clock binding; shall be set to 1
  14. Optional properties:
  15. - reset-gpios: GPIO descriptor connected to the #RESET input pin
  16. - vdd-supply: A regulator node for Vdd
  17. - clock-output-names: Name of output clocks, as defined in common clock
  18. bindings
  19. If not explicitly set, the output names are "mclkout", "clkout", "clkout1"
  20. and "clkout2".
  21. Clocks are defined as preprocessor macros in the dt-binding header.
  22. Example:
  23. #include <dt-bindings/clock/maxim,max9485.h>
  24. xo-27mhz: xo-27mhz {
  25. compatible = "fixed-clock";
  26. #clock-cells = <0>;
  27. clock-frequency = <27000000>;
  28. };
  29. &i2c0 {
  30. max9485: audio-clock@63 {
  31. reg = <0x63>;
  32. compatible = "maxim,max9485";
  33. clock-names = "xclk";
  34. clocks = <&xo-27mhz>;
  35. reset-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
  36. vdd-supply = <&3v3-reg>;
  37. #clock-cells = <1>;
  38. };
  39. };
  40. // Clock consumer node
  41. foo@0 {
  42. compatible = "bar,foo";
  43. /* ... */
  44. clock-names = "foo-input-clk";
  45. clocks = <&max9485 MAX9485_CLKOUT1>;
  46. };