]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
spi: meson: Add SPICC bindings
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 23 May 2017 13:39:32 +0000 (15:39 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 24 May 2017 17:19:18 +0000 (18:19 +0100)
Add the SPICC (SPI Communications Controller) bindings variant.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/spi-meson.txt

index dc6d0313324aae5614d131165f1758157eca3610..825c39cae74a1522645729f3b77b47c18dba72ae 100644 (file)
@@ -20,3 +20,34 @@ Required properties:
                #address-cells = <1>;
                #size-cells = <0>;
        };
+
+* SPICC (SPI Communication Controller)
+
+The Meson SPICC is generic SPI controller for general purpose Full-Duplex
+communications with dedicated 16 words RX/TX PIO FIFOs.
+
+Required properties:
+ - compatible: should be "amlogic,meson-gx-spicc" on Amlogic GX SoCs.
+ - reg: physical base address and length of the controller registers
+ - interrupts: The interrupt specifier
+ - clock-names: Must contain "core"
+ - clocks: phandle of the input clock for the baud rate generator
+ - #address-cells: should be 1
+ - #size-cells: should be 0
+
+Optional properties:
+ - resets: phandle of the internal reset line
+
+See ../spi/spi-bus.txt for more details on SPI bus master and slave devices
+required and optional properties.
+
+Example :
+       spi@c1108d80 {
+               compatible = "amlogic,meson-gx-spicc";
+               reg = <0xc1108d80 0x80>;
+               interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
+               clock-names = "core";
+               clocks = <&clk81>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+       };