From patchwork Thu Nov 14 17:53:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 179463 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp11386604ilf; Thu, 14 Nov 2019 09:56:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzhHfgwBFCmQ/jCfLi1e71fRdLJhPJ2Ql3llbcZ75c4QsMrCxeNMn2qvRRFIwvO+ej+ayP8 X-Received: by 2002:a05:600c:506:: with SMTP id i6mr9456549wmc.153.1573754216369; Thu, 14 Nov 2019 09:56:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573754216; cv=none; d=google.com; s=arc-20160816; b=b4ckPgJekFZ4oWSLe5V4IpFYkYonww3LaGrSUIid28aiazAFS96Q2JFSwqENBBAFvK WKvTA0ECuUWiRwASFFoYK8ONYZNHZa7H8x5XocikKDe4Yzn3w7omFX8/C3uwgB6x+oLs 7Z6yA8r15IbAejB6DYfDSrgiAFZri2HzyMM2uqye0qbZOkHgpLuRe+84d3lKlZivHVhX 7ZTC80US9tozXzuqFh/UXWHVde4ADqpGabWllRefTryN214wicPLCpYF0G62/gZCam5/ /dZnKrA+91mIX66cZ+XrydtWfQ0Cbv2LBdug0L4lw5YnU2LLvoe2RyLicAORCJfhNXZ+ vpOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=uzEcE4Ghg12L4ZVimoOK0UvjfAGPqJobLZzcvIoKO9s=; b=wSwalY4ftThWyv4/BVk9CqlTGckCF8H9+rVcCN8s5LSV+seKM2VUQ6aXr2KQeJ/meU sN/pIO9CAwMuh3cjQFyfbEvj2G8Jqq4+yvI4no9x/7zSGfCaOKJ6CN+lFxVXcd3VRbKJ dU5GhpIvGA1LBQLaerYc0dayfijvLf7tO1SyvLdfon5wLYDmWp+YeKa+Ef5JDM3O0HTH 1cwtBlPvhxH+tktMJnUNPeXItoPIDffeOKoZd/M2ekxC0Q4U48YwoBOMMtxigzWhKjMB xRUJgUuNogN3nbkMQI+mKTWmp2DIC5DJRbmpqCszuzPFVurPg0G5YAmOrRrrlFpVtGD/ biVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=LdCERzXg; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s35si4840357edd.261.2019.11.14.09.56.56; Thu, 14 Nov 2019 09:56:56 -0800 (PST) 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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=LdCERzXg; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727199AbfKNR4y (ORCPT + 26 others); Thu, 14 Nov 2019 12:56:54 -0500 Received: from mail.z3ntu.xyz ([128.199.32.197]:53100 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbfKNR4x (ORCPT ); Thu, 14 Nov 2019 12:56:53 -0500 Received: from localhost.localdomain (unknown [10.0.11.2]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 327F2C9911; Thu, 14 Nov 2019 17:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1573754210; bh=xKF5IEKM8Xl2wXlayf1TOim4t3nqonKziZ/IAPjsGm0=; h=From:To:Cc:Subject:Date; b=LdCERzXgaDHPeTxRkGC4jw4zaAzmgdzHbziWvmoPyTY9Ya1JKDpdhrqxnuo3ww68K bqNviie877BsUOwILNjwHBkmgAMYEFvPCd8sitnkgWm9w91XgwwJeKQKOzqrkE9e4H NwlU9heD2/bhoDEKaPxIFc6AO04sOVxmo/C6rEsQ= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: Bjorn Andersson , Luca Weiss , Andy Gross , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ARM: dts: msm8974: Add modem remoteproc node Date: Thu, 14 Nov 2019 18:53:48 +0100 Message-Id: <20191114175348.288976-1-luca@z3ntu.xyz> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bjorn Andersson Add the remoteproc node for the modem on msm8974. Signed-off-by: Bjorn Andersson [luca@z3ntu.xyz: cleanups, add label to smd-edge node] Signed-off-by: Luca Weiss --- Note: This patch needs "remoteproc: qcom_q6v5_mss: Validate each segment during loading" from the mailing list to be functional. arch/arm/boot/dts/qcom-msm8974.dtsi | 63 ++++++++++++++++++++++++----- 1 file changed, 54 insertions(+), 9 deletions(-) -- 2.24.0 diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 6f24dc9a7924..b357cb51c0fb 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -21,12 +21,12 @@ reserved-memory { #size-cells = <1>; ranges; - mpss@8000000 { + mpss_region: mpss@8000000 { reg = <0x08000000 0x5100000>; no-map; }; - mba@d100000 { + mba_region: mba@d100000 { reg = <0x0d100000 0x100000>; no-map; }; @@ -62,8 +62,11 @@ rfsa@fd60000 { }; rmtfs@fd80000 { + compatible = "qcom,rmtfs-mem"; reg = <0x0fd80000 0x180000>; no-map; + + qcom,client-id = <1>; }; }; @@ -807,6 +810,55 @@ rng@f9bff000 { clock-names = "core"; }; + remoteproc@fc880000 { + compatible = "qcom,msm8974-mss-pil"; + reg = <0xfc880000 0x100>, <0xfc820000 0x020>; + reg-names = "qdsp6", "rmb"; + + interrupts-extended = <&intc GIC_SPI 24 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; + + clocks = <&gcc GCC_MSS_Q6_BIMC_AXI_CLK>, + <&gcc GCC_MSS_CFG_AHB_CLK>, + <&gcc GCC_BOOT_ROM_AHB_CLK>, + <&xo_board>; + clock-names = "iface", "bus", "mem", "xo"; + + resets = <&gcc GCC_MSS_RESTART>; + reset-names = "mss_restart"; + + cx-supply = <&pm8841_s2>; + mss-supply = <&pm8841_s3>; + mx-supply = <&pm8841_s1>; + pll-supply = <&pm8941_l12>; + + qcom,halt-regs = <&tcsr_mutex_block 0x1180 0x1200 0x1280>; + + qcom,smem-states = <&modem_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + mba { + memory-region = <&mba_region>; + }; + + mpss { + memory-region = <&mpss_region>; + }; + + smd-edge { + interrupts = ; + + qcom,ipc = <&apcs 8 12>; + qcom,smd-edge = <0>; + + label = "modem"; + }; + }; + pronto: remoteproc@fb21b000 { compatible = "qcom,pronto-v2-pil", "qcom,pronto"; reg = <0xfb204000 0x2000>, <0xfb202000 0x1000>, <0xfb21b000 0x3000>; @@ -1524,13 +1576,6 @@ adsp { qcom,smd-edge = <1>; }; - modem { - interrupts = ; - - qcom,ipc = <&apcs 8 12>; - qcom,smd-edge = <0>; - }; - rpm { interrupts = ; qcom,ipc = <&apcs 8 0>;