From patchwork Tue Feb 9 16:09:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 379358 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp360688jah; Tue, 9 Feb 2021 08:10:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7jjGIsvRnjF2DpBgf02zvdzoJDN65AUJGBbBdGg84h9vdxsLb/hwYqueFeWSG7anQlm37 X-Received: by 2002:a17:906:3850:: with SMTP id w16mr8216476ejc.286.1612887038804; Tue, 09 Feb 2021 08:10:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612887038; cv=none; d=google.com; s=arc-20160816; b=NFjc/jBhBJtFF5REtMK1l7v/gvtvLpBvV3vzOJBNjwssnZbqrcabOI7PxIWHiLdNTK 9cs0O6PZb3usNrs+JVP7h8hrkiVMOQa6iRzgJKEzdyxOOwOuvs+Zp3AzPg1kA5VMBG0C 1Cld4I0dxGclnosBk3Emo05MKeFWVDFwJN2NjQuK7M33oougvttpWqSRvFLbgsU+N0TF AxvqU3Eu815gHvejjK5ON9nulUv2eZgryBoqOJ/BKWgZTNWoGkK9Cua3gU432OrNNFGh KAA6nMFvaAZ/FzNEncy2WH73SJiR6QLvzGcn+4/SzkZT/yL3ahifNoTvoNxOcj5/42uR NxtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4/inwIB/bagSTME5nAGqiwX4oeNlpTqINvLjf+dIyzg=; b=Qln3Qaw7TCVdfKRLcEVKRRDP6t43yimTF5MiZtvCTMFKHJfYZtxmgHWRDybA+6ihOv IAmAmEy50ilTshrz2k38iXilyVW3X6IsWYC0TGs1dsvg8nEwSEyl63CDJDvFj4pWiUm2 mxywZgKuCXn+j9yT6DQwnYEzdml41Z0JC9FtpFdH3WN0dCe9aCnKaAWcSfzaBtwcWaX9 0K3xaGEyZlgf3QxRmasbFVHxYpkLTGc2NngbsPJnSlfq7wSPcFYL/qFEVttLYZ1UUv+U V9ileoX4S9mio8/UnOtWapJACNuklU8D5ZbRn5O8rRY+rtdXXVf0/4PmNh3r5Ebjo2BK +Y1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aTuaZb6p; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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. [23.128.96.18]) by mx.google.com with ESMTP id ho34si9083012ejc.343.2021.02.09.08.10.36; Tue, 09 Feb 2021 08:10:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aTuaZb6p; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S232630AbhBIQKe (ORCPT + 16 others); Tue, 9 Feb 2021 11:10:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232614AbhBIQKa (ORCPT ); Tue, 9 Feb 2021 11:10:30 -0500 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E095C0613D6 for ; Tue, 9 Feb 2021 08:09:50 -0800 (PST) Received: by mail-ot1-x329.google.com with SMTP id y11so17947477otq.1 for ; Tue, 09 Feb 2021 08:09:50 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=4/inwIB/bagSTME5nAGqiwX4oeNlpTqINvLjf+dIyzg=; b=aTuaZb6pOYgSh7gL+OPQi1FSFbm73knDRD5yGvNdtv8Uacz+GfBTOZQ6Tn5ksK7UN3 b5axrpCr90QYxVSyOP4a1/eOl3Wz5Y7aLKuwF4eqwbNVcERHaIM1mhKr2HY/wGG2UAyD K609NjpuCtYQmznAkIvbat5B2JVeccB7i6uC+CTWS6pOJOPBEVBKC0vZ/qj/R+TPmGGb CgHyMOV6p6tAIWl8/llVLy5P0at8AacIaGShbAaKcMeffgBCiwkdBhw12NWXBMb7l5fT jTRDM68XS6J0MfPge8ogaOdulB9CwCHHlBJvTfBVglCAbVJDuFNa0GXZT7C3KNSv2Uh1 UTQQ== 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:mime-version:content-transfer-encoding; bh=4/inwIB/bagSTME5nAGqiwX4oeNlpTqINvLjf+dIyzg=; b=BVr3ItZCb0d9weTOuipUfjIXRXhKzxu3A0u/J0ggn2AgXEr+b+jwlYB58f2oLbNRT2 L+uufVMeB1IBxprYN0ELyHJPswNKOyX8uoDnzwIqpE9BUPyNP/8y5KBMaRoncT1GRvm8 NnuayXkrndm72h2icQRIhxxTdG/0n03RlbFA31kcbmLK2UNhVdaG1rOHw14SEughQaLo yjM5aQgpBmstzxvnQVFAJc8z60id8hT7yQt0yACbT9yCRc16MdyWfc8DLGMGCfRQbzlg r+CfULHxl30aT24SSn4ru3pApY+Lvp33Ct6A/oq5dpMngAzZP4KGXyfz6OWU3OdCzi8O z/Hw== X-Gm-Message-State: AOAM530MsUd7M6ZBkgFMIzzQsQonAqZeINFHdrfucwZCCTVjIijnxo+p FsiHMivblaMMGRaTL4yIHnY0Lw== X-Received: by 2002:a9d:21ca:: with SMTP id s68mr16333016otb.164.1612886989714; Tue, 09 Feb 2021 08:09:49 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id k4sm2725967ots.24.2021.02.09.08.09.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 08:09:49 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Rob Herring Cc: Doug Anderson , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: sdm850-yoga: Enable IPA Date: Tue, 9 Feb 2021 10:09:46 -0600 Message-Id: <20210209160946.29382-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210209160946.29382-1-bjorn.andersson@linaro.org> References: <20210209160946.29382-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The ipa_fws.elf found in the Lenovo Yoga C630 isn't packed like the one found in e.g. the MTP, so it doesn't fit in the "standard" ipa_fws memory region. Further more, authentication of ipa_fws at the usual base address is rejected by the Peripheral Authentication Service (in TrustZone), so some shuffling and trial and error was used to come up with acceptable regions. With this in order, enable the IPA device. Signed-off-by: Bjorn Andersson --- .../boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) -- 2.30.0 diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts index 9c2ab377faf1..4dd5820b3b31 100644 --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts @@ -74,28 +74,23 @@ rmtfs_mem: memory@88f00000 { qcom,vmid = <15>; }; - ipa_fw_mem: memory@8c400000 { - reg = <0 0x8c400000 0 0x10000>; + wlan_msa_mem: memory@8c400000 { + reg = <0 0x8c400000 0 0x100000>; no-map; }; - ipa_gsi_mem: memory@8c410000 { - reg = <0 0x8c410000 0 0x5000>; + gpu_mem: memory@8c515000 { + reg = <0 0x8c515000 0 0x2000>; no-map; }; - gpu_mem: memory@8c415000 { - reg = <0 0x8c415000 0 0x2000>; + ipa_fw_mem: memory@8c517000 { + reg = <0 0x8c517000 0 0x5a000>; no-map; }; - adsp_mem: memory@8c500000 { - reg = <0 0x8c500000 0 0x1a00000>; - no-map; - }; - - wlan_msa_mem: memory@8df00000 { - reg = <0 0x8df00000 0 0x100000>; + adsp_mem: memory@8c600000 { + reg = <0 0x8c600000 0 0x1a00000>; no-map; }; @@ -500,6 +495,11 @@ ecsh: hid@5c { }; }; +&ipa { + status = "okay"; + memory-region = <&ipa_fw_mem>; +}; + &mdss { status = "okay"; };