From patchwork Fri Oct 7 23:21:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 9367813 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8F161600C8 for ; Fri, 7 Oct 2016 23:22:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78CB0297FD for ; Fri, 7 Oct 2016 23:22:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D23F2984C; Fri, 7 Oct 2016 23:22:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1EC1297FD for ; Fri, 7 Oct 2016 23:22:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753920AbcJGXWw (ORCPT ); Fri, 7 Oct 2016 19:22:52 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:32919 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932718AbcJGXWu (ORCPT ); Fri, 7 Oct 2016 19:22:50 -0400 Received: by mail-pf0-f181.google.com with SMTP id 190so29759633pfv.0 for ; Fri, 07 Oct 2016 16:22:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SWdNlSdnKcHhrE1qy6r2ySjAO5PWl4f7DSHZ2gdMT74=; b=VGqBJdKdTrjgGSv/LxR93d6cYO4JJ/dl5kYRHVvVAwOazulVaQKb/eCKIV93wCeT45 43ifxgXNDOrZXj4rSlyIQcyM3HjOXyqUt/njmP3za4Xz9eIQ9ey2Nko/eOgFfzCA7KKz Ot+4QlQXZffK3O9hyVzz1yRnH0dKijmIFq178= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SWdNlSdnKcHhrE1qy6r2ySjAO5PWl4f7DSHZ2gdMT74=; b=Q5WzeWaPLvFXMw4BhqbcC3ouF6ykZvJeTJS9LCoyzDSpJTUUJIOzQr9S609UxR2Vkl p/CHUAJ3pQA2VcTVdwxvCfxtueofi6ifxv0LuBRDS/tWCZ3FFYuz+QWVXTq0Tu5r23py t4dJQq2NS3JOhGy7/A3TsHS8NSE96V2O06bUI+eO0a3UGM90yi8GXWKviCoGoNPbFhX+ JYhfysvnyLa2EoopIFMQREBpcf2YhQI932884drE5yDKOxFNFgKFUVfwMZllpQ1t5T8/ G/ah1p+XiK6lJ3gADwRDiViln+s9lP2rLVH35TW2NfWmFbacRiNvZLG1XtC9dPv/f4NI 8whQ== X-Gm-Message-State: AA6/9RmAqEX23xVagDEsZ+qKOxz322yR1ZLZ2DHX2FTWgIp3IoPw+qRhE+1+Xp7FFbzVYHgx X-Received: by 10.98.68.8 with SMTP id r8mr41174017pfa.0.1475882564366; Fri, 07 Oct 2016 16:22:44 -0700 (PDT) Received: from lbrmn-mmayer.lab.lan ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id h82sm16567526pfh.22.2016.10.07.16.22.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Oct 2016 16:22:43 -0700 (PDT) From: Markus Mayer To: "Rafael J . Wysocki" , Viresh Kumar , Rob Herring , Mark Rutland Cc: Broadcom Kernel List , Device Tree List , Power Management List , Linux Kernel Mailing List , Markus Mayer Subject: [PATCH v3 1/3] dt: cpufreq: brcm: New binding document for brcmstb-avs-cpufreq Date: Fri, 7 Oct 2016 16:21:25 -0700 Message-Id: <1475882487-2155-2-git-send-email-mmayer@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475882487-2155-1-git-send-email-mmayer@broadcom.com> References: <1475882487-2155-1-git-send-email-mmayer@broadcom.com> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the binding document for the new brcmstb-avs-cpufreq driver. Signed-off-by: Markus Mayer Acked-by: Viresh Kumar --- .../bindings/cpufreq/brcm,stb-avs-cpu-freq.txt | 76 ++++++++++++++++++++++ MAINTAINERS | 7 ++ 2 files changed, 83 insertions(+) create mode 100644 Documentation/devicetree/bindings/cpufreq/brcm,stb-avs-cpu-freq.txt diff --git a/Documentation/devicetree/bindings/cpufreq/brcm,stb-avs-cpu-freq.txt b/Documentation/devicetree/bindings/cpufreq/brcm,stb-avs-cpu-freq.txt new file mode 100644 index 0000000..23a2c3d --- /dev/null +++ b/Documentation/devicetree/bindings/cpufreq/brcm,stb-avs-cpu-freq.txt @@ -0,0 +1,76 @@ +Broadcom STB AVS CPUfreq driver bindings +======================================== + +A total of three DT nodes are required. One node (brcm,avs-cpu-data-mem) +references the mailbox register used to communicate with the AVS CPU[1]. The +second node (brcm,avs-cpu-l2-intr) is required to trigger an interrupt on +the AVS CPU. The interrupt tells the AVS CPU that it needs to process a +command sent to it by a driver. Interrupting the AVS CPU is mandatory for +commands to be processed. + +The interface also requires a reference to the AVS host interrupt controller, +so a driver can react to interrupts generated by the AVS CPU whenever a command +has been processed. See [2] for more information on the brcm,l2-intc node. + +[1] The AVS CPU is an independent co-processor that runs proprietary +firmware. On some SoCs, this firmware supports DFS and DVFS in addition to +Adaptive Voltage Scaling. + +[2] Documentation/devicetree/bindings/interrupt-controller/brcm,l2-intc.txt + + +Node brcm,avs-cpu-data-mem +-------------------------- + +Required properties: +- compatible: Sould be one of: brcm,avs-cpu-data-mem, + brcm,bcm7271-avs-cpu-data-mem or brcm,bcm7268-avs-cpu-data-mem +- reg: Specifies base physical address and size of the registers. +- interrupts: The interrupt that the AVS CPU will use to interrupt the host + when a command completed. +- interrupt-parent: The interrupt controller the above interrupt is routed + through. +- interrupt-names: The name of the interrupt used to interrupt the host. + +Optional properties: +- None + +Node brcm,avs-cpu-l2-intr +------------------------- + +Required properties: +- compatible: Sould be one of: brcm,avs-cpu-l2-intr, + brcm,bcm7271-avs-cpu-l2-intr or brcm,bcm7268-avs-cpu-l2-intr +- reg: Specifies base physical address and size of the registers. + +Optional properties: +- None + + +Example +======= + + avs_host_l2_intc: interrupt-controller@f04d1200 { + #interrupt-cells = <1>; + compatible = "brcm,l2-intc"; + interrupt-parent = <&intc>; + reg = <0xf04d1200 0x48>; + interrupt-controller; + interrupts = <0x0 0x19 0x0>; + interrupt-names = "avs"; + }; + + avs-cpu-data-mem@f04c4000 { + compatible = "brcm,bcm7271-avs-cpu-data-mem", + "brcm,avs-cpu-data-mem"; + reg = <0xf04c4000 0x60>; + interrupts = <0x1a>; + interrupt-parent = <&avs_host_l2_intc>; + interrupt-names = "sw_intr"; + }; + + avs-cpu-l2-intr@f04d1100 { + compatible = "brcm,bcm7271-avs-cpu-l2-intr", + "brcm,avs-cpu-l2-intr"; + reg = <0xf04d1100 0x10>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index f593300..75accd5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2701,6 +2701,13 @@ L: bcm-kernel-feedback-list@broadcom.com S: Maintained F: drivers/mtd/nand/brcmnand/ +BROADCOM STB AVS CPUFREQ DRIVER +M: Markus Mayer +M: bcm-kernel-feedback-list@broadcom.com +L: linux-pm@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/cpufreq/brcm,stb-avs-cpu-freq.txt + BROADCOM SPECIFIC AMBA DRIVER (BCMA) M: Rafał Miłecki L: linux-wireless@vger.kernel.org