From patchwork Fri May 13 03:46:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Gross X-Patchwork-Id: 9087701 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9EEA59F1C3 for ; Fri, 13 May 2016 03:49:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CEFC42021A for ; Fri, 13 May 2016 03:49:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 080D72012D for ; Fri, 13 May 2016 03:49:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b1451-00046B-JR; Fri, 13 May 2016 03:47:59 +0000 Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b144j-0003zW-UG for linux-arm-kernel@lists.infradead.org; Fri, 13 May 2016 03:47:43 +0000 Received: by mail-oi0-x22b.google.com with SMTP id k142so152317671oib.1 for ; Thu, 12 May 2016 20:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YdQLx1v+8jd7Q5JOSpPW3NR+seFjoEwJIySXeov/Qho=; b=XBfhyT0CMBi2z/9yYxvFFM3sPuDoorPyy+jY8NjEJvTH4ons2spPWk18dVSFvdAfVf m7oKmaF214MrPDNXLlItnYWjAH83o7WGl7CWWBqINHwpbIGUiga7DD8Uia1v3j7FwK7F B8Zw7VFIj+bUd5RBG4U2mS9ePBqdwfhf+mNlM= 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; bh=YdQLx1v+8jd7Q5JOSpPW3NR+seFjoEwJIySXeov/Qho=; b=Qb6pl02JpFj79mxqxg8vcVS+GE/TtBmTGz13ycDN+M7U6U92C+JEXijj6d33WL1UNS 4AjIPR4716eh4HOLwe9Aa7QANi4MpXFxlYZ20V9rVUBc8BvkDZa+vKNw12LXjyVUAWNF Y7EZ+Y+lAmEGvmMF3JrhswcOcXHMx6vRW6oB+Jfrn7JLtK4gWa+VZ/3CKcFE6lLIPQdt 2BFAC5JKtz3Swp8zVPN/1SpJ7rgmIneUC2/eM4/CLQt+AEBVOq0EIvD5/5hGFRLRtWwb 4gymPGs41IlakhB0qYhHxHDuahGZ95IAYllSR+7eUeI92EYBX2ORS/66Lf42xiUIhA5R 8K9g== X-Gm-Message-State: AOPr4FUhcuAJeYlF2Nmc9hSh30Q5P9IFhPzdkcc87qIpIbNGg4wZ7O8vzVxwQBdRxnJkNAus X-Received: by 10.202.66.135 with SMTP id p129mr7781805oia.153.1463111241144; Thu, 12 May 2016 20:47:21 -0700 (PDT) Received: from localhost (108-85-129-155.lightspeed.austtx.sbcglobal.net. [108.85.129.155]) by smtp.gmail.com with ESMTPSA id h9sm4799676otb.17.2016.05.12.20.47.20 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 12 May 2016 20:47:20 -0700 (PDT) From: Andy Gross To: linux-arm-msm@vger.kernel.org Subject: [Patch v5 1/8] dt/bindings: firmware: Add Qualcomm SCM binding Date: Thu, 12 May 2016 22:46:54 -0500 Message-Id: <1463111221-6963-2-git-send-email-andy.gross@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1463111221-6963-1-git-send-email-andy.gross@linaro.org> References: <1463111221-6963-1-git-send-email-andy.gross@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160512_204742_027735_CC839370 X-CRM114-Status: GOOD ( 12.65 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Stephen Boyd , linux-kernel@vger.kernel.org, Bjorn Andersson , Andy Gross , jilai wang , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the device tree support for the Qualcomm SCM firmware. Signed-off-by: Andy Gross Acked-by: Bjorn Andersson Acked-by: Rob Herring Reviewed-by: Stephen Boyd --- .../devicetree/bindings/firmware/qcom,scm.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/qcom,scm.txt diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.txt b/Documentation/devicetree/bindings/firmware/qcom,scm.txt new file mode 100644 index 0000000..3b4436e --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.txt @@ -0,0 +1,28 @@ +QCOM Secure Channel Manager (SCM) + +Qualcomm processors include an interface to communicate to the secure firmware. +This interface allows for clients to request different types of actions. These +can include CPU power up/down, HDCP requests, loading of firmware, and other +assorted actions. + +Required properties: +- compatible: must contain one of the following: + * "qcom,scm-apq8064" for APQ8064 platforms + * "qcom,scm-msm8660" for MSM8660 platforms + * "qcom,scm-msm8690" for MSM8690 platforms + * "qcom,scm" for later processors (MSM8916, APQ8084, MSM8974, etc) +- clocks: One to three clocks may be required based on compatible. + * Only core clock required for "qcom,scm-apq8064", "qcom,scm-msm8660", and "qcom,scm-msm8960" + * Core, iface, and bus clocks required for "qcom,scm" +- clock-names: Must contain "core" for the core clock, "iface" for the interface + clock and "bus" for the bus clock per the requirements of the compatible. + +Example for MSM8916: + + firmware { + scm { + compatible = "qcom,scm"; + clocks = <&gcc GCC_CRYPTO_CLK> , <&gcc GCC_CRYPTO_AXI_CLK>, <&gcc GCC_CRYPTO_AHB_CLK>; + clock-names = "core", "bus", "iface"; + }; + };