Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: mvebu-uart: update documentation with extended UART

Update the device tree binding documentation for the Marvell EBU UART,
in order to allow describing the extended UART IP block, in addition to
the already supported standard UART IP. This requires adding a new
compatible string, the introduction of a clocks property, and extensions
to the interrupts property.

Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Miquel Raynal and committed by
Greg Kroah-Hartman
d160c341 5c305539

+45 -5
+45 -5
Documentation/devicetree/bindings/serial/mvebu-uart.txt
··· 1 - * Marvell UART : Non standard UART used in some of Marvell EBU SoCs (e.g., Armada-3700) 1 + * Marvell UART : Non standard UART used in some of Marvell EBU SoCs 2 + e.g., Armada-3700. 2 3 3 4 Required properties: 4 - - compatible: "marvell,armada-3700-uart" 5 + - compatible: 6 + - "marvell,armada-3700-uart" for the standard variant of the UART 7 + (32 bytes FIFO, no DMA, level interrupts, 8-bit access to the 8 + FIFO, baudrate limited to 230400). 9 + - "marvell,armada-3700-uart-ext" for the extended variant of the 10 + UART (128 bytes FIFO, DMA, front interrupts, 8-bit or 32-bit 11 + accesses to the FIFO, baudrate unlimited by the dividers). 5 12 - reg: offset and length of the register set for the device. 6 - - interrupts: device interrupt 13 + - clocks: UART reference clock used to derive the baudrate. If no clock 14 + is provided (possible only with the "marvell,armada-3700-uart" 15 + compatible string for backward compatibility), it will only work 16 + if the baudrate was initialized by the bootloader and no baudrate 17 + change will then be possible. 18 + - interrupts: 19 + - Must contain three elements for the standard variant of the IP 20 + (marvell,armada-3700-uart): "uart-sum", "uart-tx" and "uart-rx", 21 + respectively the UART sum interrupt, the UART TX interrupt and 22 + UART RX interrupt. A corresponding interrupt-names property must 23 + be defined. 24 + - Must contain two elements for the extended variant of the IP 25 + (marvell,armada-3700-uart-ext): "uart-tx" and "uart-rx", 26 + respectively the UART TX interrupt and the UART RX interrupt. A 27 + corresponding interrupts-names property must be defined. 28 + - For backward compatibility reasons, a single element interrupts 29 + property is also supported for the standard variant of the IP, 30 + containing only the UART sum interrupt. This form is deprecated 31 + and should no longer be used. 7 32 8 33 Example: 9 - serial@12000 { 34 + uart0: serial@12000 { 10 35 compatible = "marvell,armada-3700-uart"; 11 36 reg = <0x12000 0x200>; 12 - interrupts = <43>; 37 + clocks = <&xtalclk>; 38 + interrupts = 39 + <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, 40 + <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>, 41 + <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; 42 + interrupt-names = "uart-sum", "uart-tx", "uart-rx"; 43 + }; 44 + 45 + uart1: serial@12200 { 46 + compatible = "marvell,armada-3700-uart-ext"; 47 + reg = <0x12200 0x30>; 48 + clocks = <&xtalclk>; 49 + interrupts = 50 + <GIC_SPI 30 IRQ_TYPE_EDGE_RISING>, 51 + <GIC_SPI 31 IRQ_TYPE_EDGE_RISING>; 52 + interrupt-names = "uart-tx", "uart-rx"; 13 53 };