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

dt-bindings: serial: Convert slave-device bindings to json-schema

Convert the serial slave-device Device Tree binding documentation to
json-schema, and incorporate it into the generic serial bindings.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Matthias Brugger <mbrugger@suse.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Geert Uytterhoeven and committed by
Rob Herring
32ced09d 175a7427

+62 -52
+1 -1
Documentation/devicetree/bindings/gnss/gnss.txt
··· 8 8 9 9 Please refer to the following documents for generic properties: 10 10 11 - Documentation/devicetree/bindings/serial/slave-device.txt 11 + Documentation/devicetree/bindings/serial/serial.yaml 12 12 Documentation/devicetree/bindings/spi/spi-bus.txt 13 13 14 14 Required properties:
+1 -1
Documentation/devicetree/bindings/net/broadcom-bluetooth.txt
··· 20 20 21 21 Optional properties: 22 22 23 - - max-speed: see Documentation/devicetree/bindings/serial/slave-device.txt 23 + - max-speed: see Documentation/devicetree/bindings/serial/serial.yaml 24 24 - shutdown-gpios: GPIO specifier, used to enable the BT module 25 25 - device-wakeup-gpios: GPIO specifier, used to wakeup the controller 26 26 - host-wakeup-gpios: GPIO specifier, used to wakeup the host processor.
+1 -1
Documentation/devicetree/bindings/net/mediatek-bluetooth.txt
··· 42 42 43 43 Please refer to the following documents for generic properties: 44 44 45 - Documentation/devicetree/bindings/serial/slave-device.txt 45 + Documentation/devicetree/bindings/serial/serial.yaml 46 46 47 47 Required properties: 48 48
+1 -1
Documentation/devicetree/bindings/net/qca,qca7000.txt
··· 68 68 Optional properties: 69 69 - local-mac-address : see ./ethernet.txt 70 70 - current-speed : current baud rate of QCA7000 which defaults to 115200 71 - if absent, see also ../serial/slave-device.txt 71 + if absent, see also ../serial/serial.yaml 72 72 73 73 UART Example: 74 74
+1 -2
Documentation/devicetree/bindings/net/ti-bluetooth.txt
··· 15 15 TI WiLink devices also have a separate WiFi interface as described in 16 16 wireless/ti,wlcore.txt. 17 17 18 - This bindings follows the UART slave device binding in 19 - ../serial/slave-device.txt. 18 + This bindings follows the UART slave device binding in ../serial/serial.yaml. 20 19 21 20 Required properties: 22 21 - compatible: should be one of the following:
+56
Documentation/devicetree/bindings/serial/serial.yaml
··· 7 7 title: Serial Interface Generic DT Bindings 8 8 9 9 maintainers: 10 + - Rob Herring <robh@kernel.org> 10 11 - Greg Kroah-Hartman <gregkh@linuxfoundation.org> 11 12 12 13 description: ··· 70 69 properties: 71 70 cts-gpios: false 72 71 rts-gpios: false 72 + 73 + patternProperties: 74 + ".*": 75 + if: 76 + type: object 77 + then: 78 + description: 79 + Serial attached devices shall be a child node of the host UART device 80 + the slave device is attached to. It is expected that the attached 81 + device is the only child node of the UART device. The slave device node 82 + name shall reflect the generic type of device for the node. 83 + 84 + properties: 85 + compatible: 86 + description: 87 + Compatible of the device connected to the serial port. 88 + 89 + max-speed: 90 + $ref: /schemas/types.yaml#/definitions/uint32 91 + description: 92 + The maximum baud rate the device operates at. 93 + This should only be present if the maximum is less than the slave 94 + device can support. For example, a particular board has some 95 + signal quality issue or the host processor can't support higher 96 + baud rates. 97 + 98 + current-speed: 99 + $ref: /schemas/types.yaml#/definitions/uint32 100 + description: | 101 + The current baud rate the device operates at. 102 + This should only be present in case a driver has no chance to know 103 + the baud rate of the slave device. 104 + Examples: 105 + * device supports auto-baud 106 + * the rate is setup by a bootloader and there is no way to reset 107 + the device 108 + * device baud rate is configured by its firmware but there is no 109 + way to request the actual settings 110 + 111 + required: 112 + - compatible 113 + 114 + examples: 115 + - | 116 + serial@1234 { 117 + compatible = "ns16550a"; 118 + reg = <0x1234 0x20>; 119 + interrupts = <1>; 120 + 121 + bluetooth { 122 + compatible = "brcm,bcm43341-bt"; 123 + interrupt-parent = <&gpio>; 124 + interrupts = <10>; 125 + }; 126 + };
-45
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 - };
+1 -1
MAINTAINERS
··· 15001 15001 M: Rob Herring <robh@kernel.org> 15002 15002 L: linux-serial@vger.kernel.org 15003 15003 S: Maintained 15004 - F: Documentation/devicetree/bindings/serial/slave-device.txt 15004 + F: Documentation/devicetree/bindings/serial/serial.yaml 15005 15005 F: drivers/tty/serdev/ 15006 15006 F: include/linux/serdev.h 15007 15007