doc: lpspi: Document DT bindings for LPSPI clocks
authorClark Wang <xiaoning.wang@nxp.com>
Wed, 6 Mar 2019 06:30:36 +0000 (06:30 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 18 Mar 2019 12:16:51 +0000 (12:16 +0000)
Add introductions of clocks and clock-names strings.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/spi-fsl-lpspi.txt

index 6cc3c6f..e71b81a 100644 (file)
@@ -7,7 +7,11 @@ Required properties:
 - reg : address and length of the lpspi master registers
 - interrupt-parent : core interrupt controller
 - interrupts : lpspi interrupt
-- clocks : lpspi clock specifier
+- clocks : lpspi clock specifier. Its number and order need to correspond to the
+          value in clock-names.
+- clock-names : Corresponding to per clock and ipg clock in "clocks"
+               respectively. In i.MX7ULP, it only has per clk, so use CLK_DUMMY
+               to fill the "ipg" blank.
 - spi-slave : spi slave mode support. In slave mode, add this attribute without
              value. In master mode, remove it.
 
@@ -18,6 +22,8 @@ lpspi2: lpspi@40290000 {
        reg = <0x40290000 0x10000>;
        interrupt-parent = <&intc>;
        interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
-       clocks = <&clks IMX7ULP_CLK_LPSPI2>;
+       clocks = <&clks IMX7ULP_CLK_LPSPI2>,
+                <&clks IMX7ULP_CLK_DUMMY>;
+       clock-names = "per", "ipg";
        spi-slave;
 };