mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
984df54e43
This patch adds clocks and clocks-names properties, which are used to do power management for our UART driver. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Lanqing Liu <lanqing.liu@unisoc.com> Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
27 lines
838 B
Plaintext
27 lines
838 B
Plaintext
* Spreadtrum serial UART
|
|
|
|
Required properties:
|
|
- compatible: must be one of:
|
|
* "sprd,sc9836-uart"
|
|
* "sprd,sc9860-uart", "sprd,sc9836-uart"
|
|
|
|
- reg: offset and length of the register set for the device
|
|
- interrupts: exactly one interrupt specifier
|
|
- clock-names: Should contain following entries:
|
|
"enable" for UART module enable clock,
|
|
"uart" for UART clock,
|
|
"source" for UART source (parent) clock.
|
|
- clocks: Should contain a clock specifier for each entry in clock-names.
|
|
UART clock and source clock are optional properties, but enable clock
|
|
is required.
|
|
|
|
Example:
|
|
uart0: serial@0 {
|
|
compatible = "sprd,sc9860-uart",
|
|
"sprd,sc9836-uart";
|
|
reg = <0x0 0x100>;
|
|
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
|
|
clock-names = "enable", "uart", "source";
|
|
clocks = <&clk_ap_apb_gates 9>, <&clk_uart0>, <&ext_26m>;
|
|
};
|