mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
Document the devicetree bindings for the clock driver found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal <[email protected]> Acked-by: Rob Herring <[email protected]> Acked-by: Michael Turquette <[email protected]> Cc: Stephen Boyd <[email protected]> Cc: Purna Chandra Mandal <[email protected]> Cc: Kumar Gala <[email protected]> Cc: Ian Campbell <[email protected]> Cc: Pawel Moll <[email protected]> Cc: Mark Rutland <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/13246/ Signed-off-by: Ralf Baechle <[email protected]>
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
Microchip PIC32 Clock Controller Binding
|
|
----------------------------------------
|
|
Microchip clock controller is consists of few oscillators, PLL, multiplexer
|
|
and few divider modules.
|
|
|
|
This binding uses common clock bindings.
|
|
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
|
|
|
|
Required properties:
|
|
- compatible: shall be "microchip,pic32mzda-clk".
|
|
- reg: shall contain base address and length of clock registers.
|
|
- #clock-cells: shall be 1.
|
|
|
|
Optional properties:
|
|
- microchip,pic32mzda-sosc: shall be added only if platform has
|
|
secondary oscillator connected.
|
|
|
|
Example:
|
|
rootclk: clock-controller@1f801200 {
|
|
compatible = "microchip,pic32mzda-clk";
|
|
reg = <0x1f801200 0x200>;
|
|
#clock-cells = <1>;
|
|
/* optional */
|
|
microchip,pic32mzda-sosc;
|
|
};
|
|
|
|
|
|
The clock consumer shall specify the desired clock-output of the clock
|
|
controller (as defined in [2]) by specifying output-id in its "clock"
|
|
phandle cell.
|
|
[2] include/dt-bindings/clock/microchip,pic32-clock.h
|
|
|
|
For example for UART2:
|
|
uart2: serial@2 {
|
|
compatible = "microchip,pic32mzda-uart";
|
|
reg = <>;
|
|
interrupts = <>;
|
|
clocks = <&rootclk PB2CLK>;
|
|
};
|