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

dt-bindings: mailbox: meson-mhu: convert to yaml

Now that we have the DT validation in place, let's convert the device tree
bindings for the Amlogic MHU controller over to a YAML schemas.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Neil Armstrong and committed by
Rob Herring
8d63f971 cdea0121

+52 -34
+52
Documentation/devicetree/bindings/mailbox/amlogic,meson-gxbb-mhu.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + # Copyright 2019 BayLibre, SAS 3 + %YAML 1.2 4 + --- 5 + $id: "http://devicetree.org/schemas/mailbox/amlogic,meson-gxbb-mhu.yaml#" 6 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 + 8 + title: Amlogic Meson Message-Handling-Unit Controller 9 + 10 + maintainers: 11 + - Neil Armstrong <narmstrong@baylibre.com> 12 + 13 + description: | 14 + The Amlogic's Meson SoCs Message-Handling-Unit (MHU) is a mailbox controller 15 + that has 3 independent channels/links to communicate with remote processor(s). 16 + MHU links are hardwired on a platform. A link raises interrupt for any 17 + received data. However, there is no specified way of knowing if the sent 18 + data has been read by the remote. This driver assumes the sender polls 19 + STAT register and the remote clears it after having read the data. 20 + 21 + properties: 22 + compatible: 23 + enum: 24 + - amlogic,meson-gxbb-mhu 25 + 26 + reg: 27 + maxItems: 1 28 + 29 + interrupts: 30 + minItems: 3 31 + description: 32 + Contains the interrupt information corresponding to each of the 3 links 33 + of MHU. 34 + 35 + "#mbox-cells": 36 + const: 1 37 + 38 + required: 39 + - compatible 40 + - reg 41 + - interrupts 42 + - "#mbox-cells" 43 + 44 + examples: 45 + - | 46 + mailbox@c883c404 { 47 + compatible = "amlogic,meson-gxbb-mhu"; 48 + reg = <0xc883c404 0x4c>; 49 + interrupts = <208>, <209>, <210>; 50 + #mbox-cells = <1>; 51 + }; 52 +
-34
Documentation/devicetree/bindings/mailbox/meson-mhu.txt
··· 1 - Amlogic Meson MHU Mailbox Driver 2 - ================================ 3 - 4 - The Amlogic's Meson SoCs Message-Handling-Unit (MHU) is a mailbox controller 5 - that has 3 independent channels/links to communicate with remote processor(s). 6 - MHU links are hardwired on a platform. A link raises interrupt for any 7 - received data. However, there is no specified way of knowing if the sent 8 - data has been read by the remote. This driver assumes the sender polls 9 - STAT register and the remote clears it after having read the data. 10 - 11 - Mailbox Device Node: 12 - ==================== 13 - 14 - Required properties: 15 - -------------------- 16 - - compatible: Shall be "amlogic,meson-gxbb-mhu" 17 - - reg: Contains the mailbox register address range (base 18 - address and length) 19 - - #mbox-cells Shall be 1 - the index of the channel needed. 20 - - interrupts: Contains the interrupt information corresponding to 21 - each of the 2 links of MHU. 22 - 23 - Example: 24 - -------- 25 - 26 - mailbox: mailbox@c883c404 { 27 - #mbox-cells = <1>; 28 - compatible = "amlogic,meson-gxbb-mhu"; 29 - reg = <0 0xc883c404 0 0x4c>; 30 - interrupts = <0 208 IRQ_TYPE_EDGE_RISING>, 31 - <0 209 IRQ_TYPE_EDGE_RISING>, 32 - <0 210 IRQ_TYPE_EDGE_RISING>; 33 - #mbox-cells = <1>; 34 - };