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

dt-bindings: mailbox: convert bcm2835-mbox bindings to YAML

Convert the DT binding document for bcm2835-mbox from .txt to YAML.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>

authored by

Stefan Wahren and committed by
Jassi Brar
ebb0130d 13ad4b7c

+40 -26
-26
Documentation/devicetree/bindings/mailbox/brcm,bcm2835-mbox.txt
··· 1 - Broadcom BCM2835 VideoCore mailbox IPC 2 - 3 - Required properties: 4 - 5 - - compatible: Should be "brcm,bcm2835-mbox" 6 - - reg: Specifies base physical address and size of the registers 7 - - interrupts: The interrupt number 8 - See bindings/interrupt-controller/brcm,bcm2835-armctrl-ic.txt 9 - - #mbox-cells: Specifies the number of cells needed to encode a mailbox 10 - channel. The value shall be 0, since there is only one 11 - mailbox channel implemented by the device. 12 - 13 - Example: 14 - 15 - mailbox: mailbox@7e00b880 { 16 - compatible = "brcm,bcm2835-mbox"; 17 - reg = <0x7e00b880 0x40>; 18 - interrupts = <0 1>; 19 - #mbox-cells = <0>; 20 - }; 21 - 22 - firmware: firmware { 23 - compatible = "raspberrypi,firmware"; 24 - mboxes = <&mailbox>; 25 - #power-domain-cells = <1>; 26 - };
+40
Documentation/devicetree/bindings/mailbox/brcm,bcm2835-mbox.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mailbox/brcm,bcm2835-mbox.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom BCM2835 VideoCore mailbox IPC 8 + 9 + maintainers: 10 + - Stefan Wahren <stefan.wahren@i2se.com> 11 + 12 + properties: 13 + compatible: 14 + const: brcm,bcm2835-mbox 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + "#mbox-cells": 23 + const: 0 24 + 25 + required: 26 + - compatible 27 + - reg 28 + - interrupts 29 + - "#mbox-cells" 30 + 31 + additionalProperties: false 32 + 33 + examples: 34 + - | 35 + mailbox@7e00b880 { 36 + compatible = "brcm,bcm2835-mbox"; 37 + reg = <0x7e00b880 0x40>; 38 + interrupts = <0 1>; 39 + #mbox-cells = <0>; 40 + };