Back to home page

OSCL-LXR

 
 

    


0001 Microchip PIC32 Clock Controller Binding
0002 ----------------------------------------
0003 Microchip clock controller is consists of few oscillators, PLL, multiplexer
0004 and few divider modules.
0005 
0006 This binding uses common clock bindings.
0007 [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
0008 
0009 Required properties:
0010 - compatible: shall be "microchip,pic32mzda-clk".
0011 - reg: shall contain base address and length of clock registers.
0012 - #clock-cells: shall be 1.
0013 
0014 Optional properties:
0015 - microchip,pic32mzda-sosc: shall be added only if platform has
0016   secondary oscillator connected.
0017 
0018 Example:
0019         rootclk: clock-controller@1f801200 {
0020                 compatible = "microchip,pic32mzda-clk";
0021                 reg = <0x1f801200 0x200>;
0022                 #clock-cells = <1>;
0023                 /* optional */
0024                 microchip,pic32mzda-sosc;
0025         };
0026 
0027 
0028 The clock consumer shall specify the desired clock-output of the clock
0029 controller (as defined in [2]) by specifying output-id in its "clock"
0030 phandle cell.
0031 [2] include/dt-bindings/clock/microchip,pic32-clock.h
0032 
0033 For example for UART2:
0034 uart2: serial@2 {
0035         compatible = "microchip,pic32mzda-uart";
0036         reg = <>;
0037         interrupts = <>;
0038         clocks = <&rootclk PB2CLK>;
0039 };