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

dt/bindings: Add a serial/UART attached device binding

Add a common binding for describing serial/UART attached devices. Common
examples are Bluetooth, WiFi, NFC and GPS devices.

Serial attached devices are represented as child nodes of a UART node.
This may need to be extended for more complex devices with multiple
interfaces, but for the simple cases a child node is sufficient.

Tested-By: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rob Herring and committed by
Greg Kroah-Hartman
c1c98dad c3485ee0

+36
+36
Documentation/devicetree/bindings/serial/slave-device.txt
··· 1 + Serial Slave Device DT binding 2 + 3 + This documents the binding structure and common properties for serial 4 + attached devices. Common examples include Bluetooth, WiFi, NFC and GPS 5 + devices. 6 + 7 + Serial attached devices shall be a child node of the host UART device the 8 + slave device is attached to. It is expected that the attached device is 9 + the only child node of the UART device. The slave device node name shall 10 + reflect the generic type of device for the node. 11 + 12 + Required Properties: 13 + 14 + - compatible : A string reflecting the vendor and specific device the node 15 + represents. 16 + 17 + Optional Properties: 18 + 19 + - max-speed : The maximum baud rate the device operates at. This should 20 + only be present if the maximum is less than the slave device 21 + can support. For example, a particular board has some signal 22 + quality issue or the host processor can't support higher 23 + baud rates. 24 + 25 + Example: 26 + 27 + serial@1234 { 28 + compatible = "ns16550a"; 29 + interrupts = <1>; 30 + 31 + bluetooth { 32 + compatible = "brcm,bcm43341-bt"; 33 + interrupt-parent = <&gpio>; 34 + interrupts = <10>; 35 + }; 36 + };