brintos

brintos / linux-shallow public Read only

0
0
Text · 1.4 KiB · c4dd93f Raw
49 lines · plain
1Altera Mailbox Driver2=====================3 4Required properties:5- compatible :	"altr,mailbox-1.0".6- reg : 	physical base address of the mailbox and length of7		memory mapped region.8- #mbox-cells:	Common mailbox binding property to identify the number9		of cells required for the mailbox specifier. Should be 1.10 11Optional properties:12- interrupts :		interrupt number. The interrupt specifier format13			depends on the interrupt controller parent.14 15Example:16	mbox_tx: mailbox@100 {17		compatible = "altr,mailbox-1.0";18		reg = <0x100 0x8>;19		interrupt-parent = < &gic_0 >;20		interrupts = <5>;21		#mbox-cells = <1>;22	};23 24	mbox_rx: mailbox@200 {25		compatible = "altr,mailbox-1.0";26		reg = <0x200 0x8>;27		interrupt-parent = < &gic_0 >;28		interrupts = <6>;29		#mbox-cells = <1>;30	};31 32Mailbox client33===============34"mboxes" and the optional "mbox-names" (please see35Documentation/devicetree/bindings/mailbox/mailbox.txt for details). Each value36of the mboxes property should contain a phandle to the mailbox controller37device node and second argument is the channel index. It must be 0 (hardware38support only one channel).The equivalent "mbox-names" property value can be39used to give a name to the communication channel to be used by the client user.40 41Example:42	mclient0: mclient0@400 {43		compatible = "client-1.0";44		reg = <0x400 0x10>;45		mbox-names = "mbox-tx", "mbox-rx";46		mboxes = <&mbox_tx 0>,47			 <&mbox_rx 0>;48	};49