]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/serial/slave-device.txt
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi...
[karo-tx-linux.git] / 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 - current-speed : The current baud rate the device operates at. This should
25                   only be present in case a driver has no chance to know
26                   the baud rate of the slave device.
27                   Examples:
28                     * device supports auto-baud
29                     * the rate is setup by a bootloader and there is no
30                       way to reset the device
31                     * device baud rate is configured by its firmware but
32                       there is no way to request the actual settings
33
34 Example:
35
36 serial@1234 {
37         compatible = "ns16550a";
38         interrupts = <1>;
39
40         bluetooth {
41                 compatible = "brcm,bcm43341-bt";
42                 interrupt-parent = <&gpio>;
43                 interrupts = <10>;
44         };
45 };