From patchwork Thu Mar 22 12:58:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sricharan Ramabadhran X-Patchwork-Id: 10301449 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 C517C60216 for ; Thu, 22 Mar 2018 13:01:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB53729DC7 for ; Thu, 22 Mar 2018 13:01:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A845829C6D; Thu, 22 Mar 2018 13:01:55 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 190F829C6D for ; Thu, 22 Mar 2018 13:00:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Tj7dLaK4AzLzQCM71q+prI16xjk5UAH5wzZBNr4uyA8=; b=ENVH7iZfODHBJcArCpmVf8tLuA LNORuH4WCRY0LXkcRRoM5+blxkkjPtMwQ2MLcE8iEuRXHQOTCK7aqjygVvP+TWM/THDnvZz88flZY 9FKHKdChL6TGBAzUgBbJ1i+AM4rtksvVYQRkwyRqN0Ly1S8t7gYhwihnlbegwOhBpMFnWyL98icJb xP5XHttSZCm4AZwGcWMWG5OFyIJ0JyJdd28/fOAew4xNIIenCRJBNlod2PFYgETUmZk88O0mFbQdX 6lIT7BncnIN2I3Dyumx6xEyXsCBpl/Zlb4O62KxHlRk8HVQnAacGlJvwRJuw3mOPiAAXIxtLKTFzj k1I6vF9g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1eyzpe-0003Xj-Gi; Thu, 22 Mar 2018 13:00:38 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1eyzoc-0002La-0N for linux-arm-kernel@lists.infradead.org; Thu, 22 Mar 2018 12:59:41 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A482E60F5C; Thu, 22 Mar 2018 12:59:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521723563; bh=ZRuBZl10sBZvZ1IiMTFyQFSH6bmmCkL35ezKF/nA5Us=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IWkHh4oqmkwDJD7fa6CoZXsyOHZciETUlD4wo7f/tR3XgnFD22cdzc2vcksMwsK9G bNxgrVi+ypXZVG71PcpJaPnUzCPYgmr1i9X8E+rPFfEwQx97XcSl6F/wJsUIRFy+yl TnpAAMF7F3Ve4n4CagpaL84OKqdnWYPVjDqrz5+4= Received: from srichara-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sricharan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 4141A601D3; Thu, 22 Mar 2018 12:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521723563; bh=ZRuBZl10sBZvZ1IiMTFyQFSH6bmmCkL35ezKF/nA5Us=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IWkHh4oqmkwDJD7fa6CoZXsyOHZciETUlD4wo7f/tR3XgnFD22cdzc2vcksMwsK9G bNxgrVi+ypXZVG71PcpJaPnUzCPYgmr1i9X8E+rPFfEwQx97XcSl6F/wJsUIRFy+yl TnpAAMF7F3Ve4n4CagpaL84OKqdnWYPVjDqrz5+4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4141A601D3 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sricharan@codeaurora.org From: Sricharan R To: robh+dt@kernel.org, robh@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, andy.gross@linaro.org, david.brown@linaro.org, catalin.marinas@arm.com, will.deacon@arm.com, sboyd@codeaurora.org, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, absahu@codeaurora.org, marc.zyngier@arm.com, richardcochran@gmail.com Subject: [PATCH v4 01/13] firmware: qcom: scm: Add ipq4019 soc compatible Date: Thu, 22 Mar 2018 18:28:40 +0530 Message-Id: <1521723532-28361-2-git-send-email-sricharan@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521723532-28361-1-git-send-email-sricharan@codeaurora.org> References: <1521723532-28361-1-git-send-email-sricharan@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180322_055934_868026_B770C3DA X-CRM114-Status: GOOD ( 12.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sricharan@codeaurora.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-Virus-Scanned: ClamAV using ClamSMTP Add the compatible for ipq4019. This does not need clocks to do scm calls. Reviewed-by: Rob Herring Signed-off-by: Sricharan R --- Documentation/devicetree/bindings/firmware/qcom,scm.txt | 3 ++- drivers/firmware/qcom_scm.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.txt b/Documentation/devicetree/bindings/firmware/qcom,scm.txt index 7b40054..fcf6979 100644 --- a/Documentation/devicetree/bindings/firmware/qcom,scm.txt +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.txt @@ -11,9 +11,10 @@ Required properties: * "qcom,scm-msm8660" for MSM8660 platforms * "qcom,scm-msm8690" for MSM8690 platforms * "qcom,scm-msm8996" for MSM8996 platforms + * "qcom,scm-ipq4019" for IPQ4019 platforms * "qcom,scm" for later processors (MSM8916, APQ8084, MSM8974, etc) - clocks: One to three clocks may be required based on compatible. - * No clock required for "qcom,scm-msm8996" + * No clock required for "qcom,scm-msm8996", "qcom,scm-ipq4019" * 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 diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index 5a7d6930..e778af7 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -603,6 +603,9 @@ static void qcom_scm_shutdown(struct platform_device *pdev) { .compatible = "qcom,scm-msm8996", .data = NULL, /* no clocks */ }, + { .compatible = "qcom,scm-ipq4019", + .data = NULL, /* no clocks */ + }, { .compatible = "qcom,scm", .data = (void *)(SCM_HAS_CORE_CLK | SCM_HAS_IFACE_CLK