1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: "http://devicetree.org/schemas/mailbox/sprd-mailbox.yaml#" 5c66ec88fSEmmanuel Vadot$schema: "http://devicetree.org/meta-schemas/core.yaml#" 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Spreadtrum mailbox controller bindings 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Orson Zhai <orsonzhai@gmail.com> 11c66ec88fSEmmanuel Vadot - Baolin Wang <baolin.wang7@gmail.com> 12c66ec88fSEmmanuel Vadot - Chunyan Zhang <zhang.lyra@gmail.com> 13c66ec88fSEmmanuel Vadot 14c66ec88fSEmmanuel Vadotproperties: 15c66ec88fSEmmanuel Vadot compatible: 16c66ec88fSEmmanuel Vadot enum: 17c66ec88fSEmmanuel Vadot - sprd,sc9860-mailbox 18*2eb4d8dcSEmmanuel Vadot - sprd,sc9863a-mailbox 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot reg: 21c66ec88fSEmmanuel Vadot items: 22c66ec88fSEmmanuel Vadot - description: inbox registers' base address 23c66ec88fSEmmanuel Vadot - description: outbox registers' base address 24c66ec88fSEmmanuel Vadot 25c66ec88fSEmmanuel Vadot interrupts: 26*2eb4d8dcSEmmanuel Vadot minItems: 2 27*2eb4d8dcSEmmanuel Vadot maxItems: 3 28*2eb4d8dcSEmmanuel Vadot 29*2eb4d8dcSEmmanuel Vadot interrupt-names: 30*2eb4d8dcSEmmanuel Vadot minItems: 2 31c66ec88fSEmmanuel Vadot items: 32*2eb4d8dcSEmmanuel Vadot - const: inbox 33*2eb4d8dcSEmmanuel Vadot - const: outbox 34*2eb4d8dcSEmmanuel Vadot - const: supp-outbox 35c66ec88fSEmmanuel Vadot 36c66ec88fSEmmanuel Vadot clocks: 37c66ec88fSEmmanuel Vadot maxItems: 1 38c66ec88fSEmmanuel Vadot 39c66ec88fSEmmanuel Vadot clock-names: 40c66ec88fSEmmanuel Vadot items: 41c66ec88fSEmmanuel Vadot - const: enable 42c66ec88fSEmmanuel Vadot 43c66ec88fSEmmanuel Vadot "#mbox-cells": 44c66ec88fSEmmanuel Vadot const: 1 45c66ec88fSEmmanuel Vadot 46c66ec88fSEmmanuel Vadotrequired: 47c66ec88fSEmmanuel Vadot - compatible 48c66ec88fSEmmanuel Vadot - reg 49c66ec88fSEmmanuel Vadot - interrupts 50*2eb4d8dcSEmmanuel Vadot - interrupt-names 51c66ec88fSEmmanuel Vadot - "#mbox-cells" 52c66ec88fSEmmanuel Vadot - clocks 53c66ec88fSEmmanuel Vadot - clock-names 54c66ec88fSEmmanuel Vadot 55c66ec88fSEmmanuel VadotadditionalProperties: false 56c66ec88fSEmmanuel Vadot 57c66ec88fSEmmanuel Vadotexamples: 58c66ec88fSEmmanuel Vadot - | 59c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 60c66ec88fSEmmanuel Vadot mailbox: mailbox@400a0000 { 61c66ec88fSEmmanuel Vadot compatible = "sprd,sc9860-mailbox"; 62c66ec88fSEmmanuel Vadot reg = <0x400a0000 0x8000>, <0x400a8000 0x8000>; 63c66ec88fSEmmanuel Vadot #mbox-cells = <1>; 64c66ec88fSEmmanuel Vadot clock-names = "enable"; 65c66ec88fSEmmanuel Vadot clocks = <&aon_gate 53>; 66c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; 67*2eb4d8dcSEmmanuel Vadot interrupt-names = "inbox", "outbox"; 68c66ec88fSEmmanuel Vadot }; 69c66ec88fSEmmanuel Vadot... 70