From patchwork Fri Sep 23 17:35:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 9348523 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 23A6F601C2 for ; Fri, 23 Sep 2016 17:36:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 180F12AC2D for ; Fri, 23 Sep 2016 17:36:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C7D92AD53; Fri, 23 Sep 2016 17:36:29 +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=unavailable 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 258392AC39 for ; Fri, 23 Sep 2016 17:36:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761847AbcIWRgR (ORCPT ); Fri, 23 Sep 2016 13:36:17 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:35696 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761833AbcIWRgO (ORCPT ); Fri, 23 Sep 2016 13:36:14 -0400 Received: by mail-pa0-f51.google.com with SMTP id oz2so42162318pac.2 for ; Fri, 23 Sep 2016 10:36:13 -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=UgYFz/nGFM2CyAHqP5hjdShnixmyukUnjrcdhrwbe3gU+6Zo4aPmlHCz4x49mX3KFO Ib1i87d0Qw1KEhPsYCgzHMroxR1DypSZovZ+6yuV7QFq8vBmLmCk6sI4PiE2NoaCPuK5 eniP9UC9rRQPELqugPgSOxXsYwlhecNw/GiEM= 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=TkSpn5jCuBLQoD/TNOOX/AI+YWDhlKt1t9hHjEbcQFLeQjyYsg0FJB3wPXR9NiS4q0 cqtjCE5UU2EoOiwzN1GLE3XJVtrlrknoVZIdfDZtI9mtCb569JfbIEjaRNz3uwPiCYJ5 UzMEQC+6fCQDQi1YQ1t3DLzU7bYW5VgkuIlN1otxvSGLt+0BdANTkXV0HVE8wxgvbEZZ bkwBy6VI7qWgLXpSp1/2K+Beq70lHhBhP3cqK3YNBcfmr0Z5DDqLFaElGjl3ZSR0GcCN aA0SIST+tLw2RZubbiWU2QjnhO/RitccN30AqCbZc1WSbHzpTORcidKW6h1DWsBktaOe GN0g== X-Gm-Message-State: AE9vXwNbN/8b7HaAbSjm99Mrj2xWMv3bsPPLoDteJvmrxvRZtwLV/+67eHwOBwUi8jIDOyn6 X-Received: by 10.66.162.165 with SMTP id yb5mr14476551pab.97.1474652168192; Fri, 23 Sep 2016 10:36:08 -0700 (PDT) Received: from lbrmn-mmayer.lab.lan ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id s74sm398490pfs.44.2016.09.23.10.36.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 10:36:07 -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: [PATCH v2 1/3] dt: cpufreq: brcm: New binding document for brcmstb-avs-cpufreq Date: Fri, 23 Sep 2016 10:35:32 -0700 Message-Id: <1474652134-9630-2-git-send-email-mmayer@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474652134-9630-1-git-send-email-mmayer@broadcom.com> References: <1474652134-9630-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 --- .../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