From patchwork Mon Aug 14 22:46:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 110071 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4938592qge; Mon, 14 Aug 2017 15:47:08 -0700 (PDT) X-Received: by 10.98.24.21 with SMTP id 21mr26236218pfy.190.1502750828321; Mon, 14 Aug 2017 15:47:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502750828; cv=none; d=google.com; s=arc-20160816; b=WFClkuBFmeZb/r/iKE8bK9GiGtmipY4pm/DeNixl20TRZyQnMae1oqiKMV/ue6PWvD yXCXp7JSGXTG8giBxniEMzBf4v1W3EdHilTrhDPiFCJJhqr8Ct4JXsX5OetaagMb68YT LsqhZN67jdpBLPan1hKIAwHrs4dk/X5INa746eYAMUILuo5Rw+3A1dSx0J+o6yQfh3M3 p4ebuMSpLLM9YpkAsfqi33Y4gjYj/INFe+qfWVcqUZmtcj13XVWcY3fzhQnjuTEF+EO6 1JaBsZ0/x1aNMrwr3xVmBl2W1FLzRK35aqd6FJmFMKNctJkKNxcaRCu6H4Ndn18UxXLn BUYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=p1QWHKb4uCIkp/YmjKaOQboiliYugbuxWbZdGLBKsHg=; b=KbthDzN3OY3A8Oth5FuSivdV/4BsgU0UnlfnWgYpOAd/ffaoP92wL801U3G5ZM71O1 BpEXW4JTdP3MIONayFP5TmDlzVgRpYpdhxSv4rqgZjHSxFIle8d0zlDUv9hZ3EooVDEY Hh3R0Ol1peqRqeShHwrBBcFNB6PzgYglzygOvQaenpMFz8X4DkfoOOJGVbHr/BBP4MSP N9VuI7Zt+Kr133l5DnCnvAV/neO6dHn95wYVOykGTZhy/mf1SwTIV4oTV2VkGjYTPkWz AXsJpZi3LDDfUc5p7rGhWhUzhDIJw+/67/GLxGl5FZq6oYFQiAABGXOgB/RKk8zr9JsR m7pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UdKt6JRY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4si4626384pgd.352.2017.08.14.15.47.07; Mon, 14 Aug 2017 15:47:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UdKt6JRY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752832AbdHNWq3 (ORCPT + 25 others); Mon, 14 Aug 2017 18:46:29 -0400 Received: from mail-pg0-f46.google.com ([74.125.83.46]:36061 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752806AbdHNWq1 (ORCPT ); Mon, 14 Aug 2017 18:46:27 -0400 Received: by mail-pg0-f46.google.com with SMTP id i12so5021334pgr.3 for ; Mon, 14 Aug 2017 15:46:27 -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=p1QWHKb4uCIkp/YmjKaOQboiliYugbuxWbZdGLBKsHg=; b=UdKt6JRYm/YmdifpPwzqiBUo1a+tWKKt6dbGAneypoWibZyPdVNNkWiwFquLWk20Tm RPvtVkl4h9/rbxCH+vfUs1WC7ncrcqooPPthWVY3A02iEvq0ypGzYz4ZiuDcj57QA9Cd fN4HNQfBVTC8Xqo6KiNHRBDb8TOhiICLMXP3c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=p1QWHKb4uCIkp/YmjKaOQboiliYugbuxWbZdGLBKsHg=; b=VvV745DDKwzxTBW/XAWTQkdfyf3FRXKG5Alzd09lVxXqDTZ81QjB12VEdzSl9s2MPT DKQqe7LMenSV+6BvXOt0ULBybCTChYwwp1DhFwaw/uxJ6GmozS4LIX/yb8tWqc8zXXyT Wf/KAPtXVPeG4AtrxvFSHSMwED4YdCT5MlCRiS3qZ3uTjvqr/uRLSan3cpjZpcOPMJQS ay/SuCoDpnsnsXB/Li9OgPJu2pCdUMCxVKUDHp4d6iPw4mNpcCNH0VdGYtnfbo7Wi/fg EVQWDZY+GlCnYpSyERgA09Ahv79DiXAvrFZlskqU6jMZAiEDw9Gokh+Z613VphKsIoKq jCXQ== X-Gm-Message-State: AHYfb5jQ4GX/qcPpcQKF84ne1rO3nvTeRsWMn6fAvA3rQkiuEHRAzV7U TdOmKKUZy0mxOdrb X-Received: by 10.84.238.199 with SMTP id l7mr29192913pln.267.1502750786894; Mon, 14 Aug 2017 15:46:26 -0700 (PDT) Received: from localhost.localdomain (ip68-111-217-79.sd.sd.cox.net. [68.111.217.79]) by smtp.gmail.com with ESMTPSA id 15sm19839428pfo.57.2017.08.14.15.46.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Aug 2017 15:46:26 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , David Brown Cc: Rob Herring , Mark Rutland , Stephen Boyd , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org Subject: [PATCH v4 3/3] arm64: dts: qcom: Specify dload address for msm8916 and msm8996 Date: Mon, 14 Aug 2017 15:46:19 -0700 Message-Id: <20170814224619.29256-4-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170814224619.29256-1-bjorn.andersson@linaro.org> References: <20170814224619.29256-1-bjorn.andersson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On msm8916 and msm8996 boards a secure io-write is used to write the magic for selecting "download mode", specify this address in the DeviceTree. Note that qcom_scm.download_mode=1 must be specified on the kernel command line for the kernel to attempt selecting download mode. Signed-off-by: Bjorn Andersson --- Changes since v3: - Added tcsr offsets - Corrected node address of tcsr arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 ++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 7 +++++++ 2 files changed, 9 insertions(+) -- 2.12.0 diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 039991f80831..ecc0775d78a9 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -241,6 +241,8 @@ clocks = <&gcc GCC_CRYPTO_CLK>, <&gcc GCC_CRYPTO_AXI_CLK>, <&gcc GCC_CRYPTO_AHB_CLK>; clock-names = "core", "bus", "iface"; #reset-cells = <1>; + + qcom,dload-mode = <&tcsr 0x6100>; }; }; diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 8f085716e258..a6d1d01df670 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -261,6 +261,8 @@ firmware { scm { compatible = "qcom,scm-msm8996"; + + qcom,dload-mode = <&tcsr 0x13000>; }; }; @@ -287,6 +289,11 @@ reg = <0x740000 0x20000>; }; + tcsr: syscon@7a0000 { + compatible = "qcom,tcsr-msm8996", "syscon"; + reg = <0x7a0000 0x18000>; + }; + intc: interrupt-controller@9bc0000 { compatible = "arm,gic-v3"; #interrupt-cells = <3>;