From patchwork Fri Sep 30 21:55:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 9358955 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 16330607D6 for ; Fri, 30 Sep 2016 21:57:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04CF22A0E4 for ; Fri, 30 Sep 2016 21:57:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBB882A0E9; Fri, 30 Sep 2016 21:57:43 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 60DE72A0E4 for ; Fri, 30 Sep 2016 21:57:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933125AbcI3V5l (ORCPT ); Fri, 30 Sep 2016 17:57:41 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:34874 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932883AbcI3V5j (ORCPT ); Fri, 30 Sep 2016 17:57:39 -0400 Received: by mail-pf0-f171.google.com with SMTP id s13so44090013pfd.2 for ; Fri, 30 Sep 2016 14:57:38 -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=hV3iUPPPF20ksEMLnEoh02VUWgfAKUK10T/kpj3+1TQ=; b=S/dY4/lksPRc4wZUFwziPVhvhGsyXPB1oYuPfNtKaDZ6jaRzupZ5iTBulKO1DVNNUj SQtLr+EMRGIsxcfK8DjU7deWIfdYiedRQ4UlUhCW6CRji4lNl/8P4ncMVZWCWw2sXg3Z 14BT8xJY8eO9Wm75KeKnnEAD/PkhsXhVbl7mA= 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=hV3iUPPPF20ksEMLnEoh02VUWgfAKUK10T/kpj3+1TQ=; b=Ms5BQA0PUPH9hD7mfvyNEeeyMb/UuPu3ggnle9lPHEpqBViq72hPgEyADnK4i6eLhI AUWtNNOrn5YMQEnaYCKAzH7t5DNVeXZFRZ1gbMMVaOVNCqKMdYEcOIeGg82Dty2PC4Qe kAFg/moVEfcJkEcw6VoXPXXy4FUenoG86WXQ/VnR31A1DwXOXx+3Z4M4EsCaN4wZUuL5 OjmmdmurUrcTxF/z4xdaCanQnRT3ST+sbjJSa1FguYw1gM4Y1r/4P9iBgndhPbCYVI4h LEW5UWUHbgAYeGk7tJzTV6WJNFheW7z2FMCbPgmR4lRrpNxk8t14HpZlYRjO1IPkfTVU faRg== X-Gm-Message-State: AA6/9RkNBXpfMRgREALK+jPyNqe6txsECN5W3zLnpB2bf7CJgSm+Z6st4YIc+fmAh5pfY2ju X-Received: by 10.98.205.66 with SMTP id o63mr15116413pfg.37.1475272658089; Fri, 30 Sep 2016 14:57:38 -0700 (PDT) Received: from lbrmn-mmayer.lab.lan ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id c64sm23630851pfa.0.2016.09.30.14.57.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Sep 2016 14:57:37 -0700 (PDT) From: Markus Mayer To: Rob Herring , Mark Rutland , "Rafael J . Wysocki" , Viresh Kumar Cc: Broadcom Kernel List , Device Tree List , Power Management List , Linux Kernel Mailing List , Markus Mayer Subject: [RESEND PATCH v2 1/3] dt: cpufreq: brcm: New binding document for brcmstb-avs-cpufreq Date: Fri, 30 Sep 2016 14:55:59 -0700 Message-Id: <1475272561-8446-2-git-send-email-mmayer@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475272561-8446-1-git-send-email-mmayer@broadcom.com> References: <1475272561-8446-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 | 77 ++++++++++++++++++++++ MAINTAINERS | 7 ++ 2 files changed, 84 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..d9ad3d3 --- /dev/null +++ b/Documentation/devicetree/bindings/cpufreq/brcm,stb-avs-cpu-freq.txt @@ -0,0 +1,77 @@ +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 interrrupt +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 20bb1d0..557f839 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2689,6 +2689,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