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

dt-bindings: serial: add a new compatible string for SC9860

SC9860 use the same serial device which SC9836 uses, so added a new
compatible string to support SC9860 as well, also added an example
of how to describe this serial device in DT.

Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Chunyan Zhang and committed by
Greg Kroah-Hartman
26b82caa 32680c53

+13 -1
+13 -1
Documentation/devicetree/bindings/serial/sprd-uart.txt
··· 1 1 * Spreadtrum serial UART 2 2 3 3 Required properties: 4 - - compatible: must be "sprd,sc9836-uart" 4 + - compatible: must be one of: 5 + * "sprd,sc9836-uart" 6 + * "sprd,sc9860-uart", "sprd,sc9836-uart" 7 + 5 8 - reg: offset and length of the register set for the device 6 9 - interrupts: exactly one interrupt specifier 7 10 - clocks: phandles to input clocks. 11 + 12 + Example: 13 + uart0: serial@0 { 14 + compatible = "sprd,sc9860-uart", 15 + "sprd,sc9836-uart"; 16 + reg = <0x0 0x100>; 17 + interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; 18 + clocks = <&ext_26m>; 19 + };