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

dt-bindings: serial: tegra-tcu: Convert to json-schema

Convert the Tegra TCU device tree bindings to json-schema.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>

+56 -35
-35
Documentation/devicetree/bindings/serial/nvidia,tegra194-tcu.txt
··· 1 - NVIDIA Tegra Combined UART (TCU) 2 - 3 - The TCU is a system for sharing a hardware UART instance among multiple 4 - systems within the Tegra SoC. It is implemented through a mailbox- 5 - based protocol where each "virtual UART" has a pair of mailboxes, one 6 - for transmitting and one for receiving, that is used to communicate 7 - with the hardware implementing the TCU. 8 - 9 - Required properties: 10 - - name : Should be tcu 11 - - compatible 12 - Array of strings 13 - One of: 14 - - "nvidia,tegra194-tcu" 15 - - mbox-names: 16 - "rx" - Mailbox for receiving data from hardware UART 17 - "tx" - Mailbox for transmitting data to hardware UART 18 - - mboxes: Mailboxes corresponding to the mbox-names. 19 - 20 - This node is a mailbox consumer. See the following files for details of 21 - the mailbox subsystem, and the specifiers implemented by the relevant 22 - provider(s): 23 - 24 - - .../mailbox/mailbox.txt 25 - - .../mailbox/nvidia,tegra186-hsp.txt 26 - 27 - Example bindings: 28 - ----------------- 29 - 30 - tcu: tcu { 31 - compatible = "nvidia,tegra194-tcu"; 32 - mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_SM 0>, 33 - <&hsp_aon TEGRA_HSP_MBOX_TYPE_SM 1>; 34 - mbox-names = "rx", "tx"; 35 - };
+56
Documentation/devicetree/bindings/serial/nvidia,tegra194-tcu.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/serial/nvidia,tegra194-tcu.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NVIDIA Tegra Combined UART (TCU) 8 + 9 + maintainers: 10 + - Thierry Reding <thierry.reding@gmail.com> 11 + - Jonathan Hunter <jonathanh@nvidia.com> 12 + 13 + description: 14 + The TCU is a system for sharing a hardware UART instance among multiple 15 + systems within the Tegra SoC. It is implemented through a mailbox- 16 + based protocol where each "virtual UART" has a pair of mailboxes, one 17 + for transmitting and one for receiving, that is used to communicate 18 + with the hardware implementing the TCU. 19 + 20 + properties: 21 + $nodename: 22 + pattern: "^serial(@.*)?$" 23 + 24 + compatible: 25 + const: nvidia,tegra194-tcu 26 + 27 + mbox-names: 28 + items: 29 + - const: rx 30 + - const: tx 31 + 32 + mboxes: 33 + description: | 34 + List of phandles to mailbox channels used for receiving and 35 + transmitting data from and to the hardware UART. 36 + items: 37 + - description: mailbox for receiving data from hardware UART 38 + - description: mailbox for transmitting data to hardware UART 39 + 40 + required: 41 + - compatible 42 + - mbox-names 43 + - mboxes 44 + 45 + additionalProperties: false 46 + 47 + examples: 48 + - | 49 + #include <dt-bindings/mailbox/tegra186-hsp.h> 50 + 51 + tcu: serial { 52 + compatible = "nvidia,tegra194-tcu"; 53 + mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_SM 0>, 54 + <&hsp_aon TEGRA_HSP_MBOX_TYPE_SM 1>; 55 + mbox-names = "rx", "tx"; 56 + };