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

dt: cpufreq: brcm: New binding document for brcmstb-avs-cpufreq

Add the binding document for the new brcmstb-avs-cpufreq driver.

Signed-off-by: Markus Mayer <mmayer@broadcom.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Markus Mayer and committed by
Rafael J. Wysocki
bb446b57 1758b337

+85
+78
Documentation/devicetree/bindings/cpufreq/brcm,stb-avs-cpu-freq.txt
··· 1 + Broadcom AVS mail box and interrupt register bindings 2 + ===================================================== 3 + 4 + A total of three DT nodes are required. One node (brcm,avs-cpu-data-mem) 5 + references the mailbox register used to communicate with the AVS CPU[1]. The 6 + second node (brcm,avs-cpu-l2-intr) is required to trigger an interrupt on 7 + the AVS CPU. The interrupt tells the AVS CPU that it needs to process a 8 + command sent to it by a driver. Interrupting the AVS CPU is mandatory for 9 + commands to be processed. 10 + 11 + The interface also requires a reference to the AVS host interrupt controller, 12 + so a driver can react to interrupts generated by the AVS CPU whenever a command 13 + has 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 proprietary 16 + firmware. On some SoCs, this firmware supports DFS and DVFS in addition to 17 + Adaptive Voltage Scaling. 18 + 19 + [2] Documentation/devicetree/bindings/interrupt-controller/brcm,l2-intc.txt 20 + 21 + 22 + Node brcm,avs-cpu-data-mem 23 + -------------------------- 24 + 25 + Required properties: 26 + - compatible: must include: brcm,avs-cpu-data-mem and 27 + should include: one of brcm,bcm7271-avs-cpu-data-mem or 28 + brcm,bcm7268-avs-cpu-data-mem 29 + - reg: Specifies base physical address and size of the registers. 30 + - interrupts: The interrupt that the AVS CPU will use to interrupt the host 31 + when a command completed. 32 + - interrupt-parent: The interrupt controller the above interrupt is routed 33 + through. 34 + - interrupt-names: The name of the interrupt used to interrupt the host. 35 + 36 + Optional properties: 37 + - None 38 + 39 + Node brcm,avs-cpu-l2-intr 40 + ------------------------- 41 + 42 + Required properties: 43 + - compatible: must include: brcm,avs-cpu-l2-intr and 44 + should include: one of brcm,bcm7271-avs-cpu-l2-intr or 45 + brcm,bcm7268-avs-cpu-l2-intr 46 + - reg: Specifies base physical address and size of the registers. 47 + 48 + Optional properties: 49 + - None 50 + 51 + 52 + Example 53 + ======= 54 + 55 + avs_host_l2_intc: interrupt-controller@f04d1200 { 56 + #interrupt-cells = <1>; 57 + compatible = "brcm,l2-intc"; 58 + interrupt-parent = <&intc>; 59 + reg = <0xf04d1200 0x48>; 60 + interrupt-controller; 61 + interrupts = <0x0 0x19 0x0>; 62 + interrupt-names = "avs"; 63 + }; 64 + 65 + avs-cpu-data-mem@f04c4000 { 66 + compatible = "brcm,bcm7271-avs-cpu-data-mem", 67 + "brcm,avs-cpu-data-mem"; 68 + reg = <0xf04c4000 0x60>; 69 + interrupts = <0x1a>; 70 + interrupt-parent = <&avs_host_l2_intc>; 71 + interrupt-names = "sw_intr"; 72 + }; 73 + 74 + avs-cpu-l2-intr@f04d1100 { 75 + compatible = "brcm,bcm7271-avs-cpu-l2-intr", 76 + "brcm,avs-cpu-l2-intr"; 77 + reg = <0xf04d1100 0x10>; 78 + };
+7
MAINTAINERS
··· 2738 2738 S: Maintained 2739 2739 F: drivers/mtd/nand/brcmnand/ 2740 2740 2741 + BROADCOM STB AVS CPUFREQ DRIVER 2742 + M: Markus Mayer <mmayer@broadcom.com> 2743 + M: bcm-kernel-feedback-list@broadcom.com 2744 + L: linux-pm@vger.kernel.org 2745 + S: Maintained 2746 + F: Documentation/devicetree/bindings/cpufreq/brcm,stb-avs-cpu-freq.txt 2747 + 2741 2748 BROADCOM SPECIFIC AMBA DRIVER (BCMA) 2742 2749 M: Rafał Miłecki <zajec5@gmail.com> 2743 2750 L: linux-wireless@vger.kernel.org