]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dt-bindings: serial: sprd: Add clocks and clocks-names properties
authorLanqing Liu <lanqing.liu@unisoc.com>
Mon, 4 Mar 2019 08:58:21 +0000 (16:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Mar 2019 15:30:00 +0000 (00:30 +0900)
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>
Documentation/devicetree/bindings/serial/sprd-uart.txt

index cab40f0f6f497ab7bc0b3ab9640bcc0563a8cddb..6eb5863aa548a4f06b52aa6126feb0c5191754fe 100644 (file)
@@ -7,7 +7,13 @@ Required properties:
 
 - reg: offset and length of the register set for the device
 - interrupts: exactly one interrupt specifier
-- clocks: phandles to input clocks.
+- 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 {
@@ -15,5 +21,6 @@ Example:
                             "sprd,sc9836-uart";
                reg = <0x0 0x100>;
                interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
-               clocks = <&ext_26m>;
+               clock-names = "enable", "uart", "source";
+               clocks = <&clk_ap_apb_gates 9>, <&clk_uart0>, <&ext_26m>;
        };