microchip,pic32.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Microchip PIC32 Clock Controller Binding
  2. ----------------------------------------
  3. Microchip clock controller is consists of few oscillators, PLL, multiplexer
  4. and few divider modules.
  5. This binding uses common clock bindings.
  6. [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
  7. Required properties:
  8. - compatible: shall be "microchip,pic32mzda-clk".
  9. - reg: shall contain base address and length of clock registers.
  10. - #clock-cells: shall be 1.
  11. Optional properties:
  12. - microchip,pic32mzda-sosc: shall be added only if platform has
  13. secondary oscillator connected.
  14. Example:
  15. rootclk: clock-controller@1f801200 {
  16. compatible = "microchip,pic32mzda-clk";
  17. reg = <0x1f801200 0x200>;
  18. #clock-cells = <1>;
  19. /* optional */
  20. microchip,pic32mzda-sosc;
  21. };
  22. The clock consumer shall specify the desired clock-output of the clock
  23. controller (as defined in [2]) by specifying output-id in its "clock"
  24. phandle cell.
  25. [2] include/dt-bindings/clock/microchip,pic32-clock.h
  26. For example for UART2:
  27. uart2: serial@2 {
  28. compatible = "microchip,pic32mzda-uart";
  29. reg = <>;
  30. interrupts = <>;
  31. clocks = <&rootclk PB2CLK>;
  32. };