brintos

brintos / linux-shallow public Read only

0
0
Text · 2.5 KiB · ce91a91 Raw
77 lines · plain
1Broadcom AVS mail box and interrupt register bindings2=====================================================3 4A total of three DT nodes are required. One node (brcm,avs-cpu-data-mem)5references the mailbox register used to communicate with the AVS CPU[1]. The6second node (brcm,avs-cpu-l2-intr) is required to trigger an interrupt on7the AVS CPU. The interrupt tells the AVS CPU that it needs to process a8command sent to it by a driver. Interrupting the AVS CPU is mandatory for9commands to be processed.10 11The interface also requires a reference to the AVS host interrupt controller,12so a driver can react to interrupts generated by the AVS CPU whenever a command13has been processed. See [2] for more information on the brcm,l2-intc node.14 15[1] The AVS CPU is an independent co-processor that runs proprietary16firmware. On some SoCs, this firmware supports DFS and DVFS in addition to17Adaptive Voltage Scaling.18 19[2] Documentation/devicetree/bindings/interrupt-controller/brcm,l2-intc.yaml20 21 22Node brcm,avs-cpu-data-mem23--------------------------24 25Required properties:26- compatible: must include: brcm,avs-cpu-data-mem and27              should include: one of brcm,bcm7271-avs-cpu-data-mem or28                              brcm,bcm7268-avs-cpu-data-mem29- reg: Specifies base physical address and size of the registers.30- interrupts: The interrupt that the AVS CPU will use to interrupt the host31              when a command completed.32- interrupt-names: The name of the interrupt used to interrupt the host.33 34Optional properties:35- None36 37Node brcm,avs-cpu-l2-intr38-------------------------39 40Required properties:41- compatible: must include: brcm,avs-cpu-l2-intr and42              should include: one of brcm,bcm7271-avs-cpu-l2-intr or43                              brcm,bcm7268-avs-cpu-l2-intr44- reg: Specifies base physical address and size of the registers.45 46Optional properties:47- None48 49 50Example51=======52 53	avs_host_l2_intc: interrupt-controller@f04d1200 {54		#interrupt-cells = <1>;55		compatible = "brcm,l2-intc";56		interrupt-parent = <&intc>;57		reg = <0xf04d1200 0x48>;58		interrupt-controller;59		interrupts = <0x0 0x19 0x0>;60		interrupt-names = "avs";61	};62 63	avs-cpu-data-mem@f04c4000 {64		compatible = "brcm,bcm7271-avs-cpu-data-mem",65				"brcm,avs-cpu-data-mem";66		reg = <0xf04c4000 0x60>;67		interrupts = <0x1a>;68		interrupt-parent = <&avs_host_l2_intc>;69		interrupt-names = "sw_intr";70	};71 72	avs-cpu-l2-intr@f04d1100 {73		compatible = "brcm,bcm7271-avs-cpu-l2-intr",74				"brcm,avs-cpu-l2-intr";75		reg = <0xf04d1100 0x10>;76	};77