From patchwork Fri Mar 12 23:43:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 398708 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1607430jai; Fri, 12 Mar 2021 15:43:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzu9FnRqrK+WUpmVE+EqgU0Q/+9J/tJl6Dls/91XHB6JlwJEE6LrDgy5UxMcqg0r+BntcM X-Received: by 2002:a05:6402:510b:: with SMTP id m11mr17185429edd.103.1615592585391; Fri, 12 Mar 2021 15:43:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615592585; cv=none; d=google.com; s=arc-20160816; b=qfcO/hsO3vNVbzWJPuyUnZoGhfsswffwk3pbJNSW51oHSMQwyhyFn10KdAfLZ8NeKX GU59cEflGam+0rZOabnf18MVb8DA0Cj+NsyHlI9xo62VJyOQLeddwSTInKGq5Qf1bBw8 LMK2fhdX7cTtK5Jm6WK0GrsZzSjBOZNnuvYYN95ibIH3PBQ7dUUUoUAEFJQyZ7x2n5nW JwPmVzXuGhGub7DRvldkVi+WiHFPlwHy5wf0NMjxC+vSM6miU7Lc4rxVgmc42e2XX/Ay dRniNcp0dsC535pfecu6GCyi5BdCDGLWP4ELD7G9tD/CLRxJQWdnHD+g7DOWlrqk+C/m 6ECw== 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=21zeFFqBGNddK9Mlkb6U9/W5aAS8G3U7m4JdsT+PmgI=; b=QYgAtFtJ1qUTol4o8A8YDXzTsvWIaassefx5c9GkcWGOBLaDoUqr/K3bRy5O6rcFLV non6M5mVgQLxLhWa/fhRZFfMgjon7stS19B1epy5EBIeFF9oE57o5XQXGmkSZSnv8SL/ L0afdpthaVUvfMDbzuiKbWAhexCcXkvXocIZbCIURRoqiiK9/2O4bFhgzAOOoX5Kfx66 ZuArACavjCqFHozLMdABDZ93a1cNnac3hqvkCVq0QeitPdwwQRVMBgYdLDeRSJeJnK2T coIBSWTvQlAC8Nfveb0y8htkp70KIZEoIr0+FTqkjHgw/sdaJnXiKyHbMqtkzKckVA7l 941g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gwBmuyq3; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 d6si5366289ede.192.2021.03.12.15.43.05; Fri, 12 Mar 2021 15:43:05 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=gwBmuyq3; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S235805AbhCLXma (ORCPT + 6 others); Fri, 12 Mar 2021 18:42:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235703AbhCLXmJ (ORCPT ); Fri, 12 Mar 2021 18:42:09 -0500 Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEE4FC061763 for ; Fri, 12 Mar 2021 15:42:08 -0800 (PST) Received: by mail-oo1-xc29.google.com with SMTP id r17-20020a4acb110000b02901b657f28cdcso1956964ooq.6 for ; Fri, 12 Mar 2021 15:42:08 -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=21zeFFqBGNddK9Mlkb6U9/W5aAS8G3U7m4JdsT+PmgI=; b=gwBmuyq3TEG2mDz2JBBDSbAmrKnyut6h3xCSJmWI9udOrP/IHHjepA1wRDSYlMrl0z tCImgv+wn7F3F9d9dmpfSLBHsq74RSaQsA1beIb62xfXqf6CFrkC1YPNn9MCPkrrbZ+m YRhQBC3bVQYxEBRuSR1pP6SsJuT9KK7nOniOuIrsh2lGE6jKz+7ZZ0c3aIPkQHbAGThe R3PnxFZEVfOLyFWWafDrA4fMLuXeHDMPiNmzBchqbhf7SaUvaT0whBieOhmEjAZrzkR7 GFp9NHsoFCP8X3vdOA2jc9LpzVi/Wce4AwTt/Kov5+h6GdXXRB2fphTJlkRFbimaI/5W wf3Q== 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=21zeFFqBGNddK9Mlkb6U9/W5aAS8G3U7m4JdsT+PmgI=; b=Wkb/TJUBl1wzRrET8+0w0T4Gb9ysXcAbUwqfae0Y9PwZiqYLia7YM4LJSTqhLDhGrs S6JsSnTP/i/9KN39pPVTm4ul658VjmVbpilJZG7LpOykkAiRgVOZwDCBNX4KZhMwRoPr iF3pd8EqW9Ws03eidKbNmA8+O5wa59GZvqQfSaOrFRgNpO9uFrOyuA3GKcrxcOK9PAr0 zrWZ9FGQQ8cLYJe2qBERNeiW2rs5+ROmTjL/4DPWMJyLMR0Pbc12FnB/e78F+x9javjj g1O60zUo/dq28uEVED73jr1Rb0quZA57Q8nQq/dPNNBtf1a18oayN98o7JGHurbFrRA/ tRWQ== X-Gm-Message-State: AOAM532jjco46Rzn/tLsYMD3P824s63Akzyb2Ke46MAHnWmgNTiT0Ohn +BGZlFuKFlf781WcoYppDiJQfQ== X-Received: by 2002:a4a:b987:: with SMTP id e7mr5142060oop.92.1615592528332; Fri, 12 Mar 2021 15:42:08 -0800 (PST) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id p20sm2030554oot.30.2021.03.12.15.42.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 15:42:08 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Doug Anderson Subject: [PATCH v2 2/2] arm64: dts: qcom: sdm850-yoga: Enable IPA Date: Fri, 12 Mar 2021 15:43:10 -0800 Message-Id: <20210312234310.3490809-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210312234310.3490809-1-bjorn.andersson@linaro.org> References: <20210312234310.3490809-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 --- Changes since v1: - None .../boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) -- 2.29.2 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 7d84f8a2db4d..f40fcd5d08d3 100644 --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts @@ -73,28 +73,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; }; @@ -486,6 +481,11 @@ ecsh: hid@5c { }; }; +&ipa { + status = "okay"; + memory-region = <&ipa_fw_mem>; +}; + &mdss { status = "okay"; };