From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 282B5C433FE for ; Wed, 9 Nov 2022 14:34:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231588AbiKIOeu (ORCPT ); Wed, 9 Nov 2022 09:34:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231586AbiKIOet (ORCPT ); Wed, 9 Nov 2022 09:34:49 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 275B55F93 for ; Wed, 9 Nov 2022 06:34:48 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id c25so26050062ljr.8 for ; Wed, 09 Nov 2022 06:34:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LHJSPQ2KpVWRh2F/hjyLQ9O/rrarIAVTyAzIqjmkK+Q=; b=hS8jMuM9Pet8reMxHNhi9rZIVXDPD3jUHk7alRI0bEee4KIChuuDJoKCSFip+M6jjh P+kiVAuCE40+85SqJaFvuIMoGUBUNZejgQEx7E7aCrUGy4DaD7VupUlayC5DvZc/0X0D 1EKysOd9Z9OqVpiv5hL+f4hZBaLgA8HQiuEvESZhBRURXFxymByDIYQ/hO7+P18Qyd5C 54igwOJZ33o1e5+vznOlTySJEvBTUUveICTbu+4XfCspnFZb9Xfc/IKhLJZl6/f2juEr qEACdvU9p0Bim6ddDleeW/7fNVePVE9vDNYUG8THYPltcPkEpMPyg8QIOfHHmIaJutOw aFWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LHJSPQ2KpVWRh2F/hjyLQ9O/rrarIAVTyAzIqjmkK+Q=; b=1YHyQoRBuvAbJ7KOycUycwbNFGFr0E31Wur4OPZj2lt3HziIhOHDppyYNS4JX2AFEe TGv4t/R/o2klxTB6a8giI+MBJGr5g0hT2+LbRcg+c3OW1gy/M8GQHRwMuzGjlk2NJut/ vTwq48x4zaB0mfKiufmrUltmPp/6r4Xj8kRlUE8HVf7PiBCE/AovJ5o3m/EGxHYwvX8P L5/KetGg6y4i1fvEqAju3zwpOmMukFBdyjnEu17Ov8mC+/ffb/DF1DZ8DW5SPcC3vIv5 JX9fXWky8jr+gEu4wiyDVvbugSpYSsSVItoLp40mb4TYfg3h3AGTDXJF0sLzwxsZ1kzm eFCw== X-Gm-Message-State: ACrzQf2iZvxqcDB5plCUBhGhVgaw8iCXVjzr71t7jbr2U0AW0x1q4PR9 ZkdyIzI+Myys1fNUZdokQ1LvNg== X-Google-Smtp-Source: AMsMyM5xucvgotaykf4drj5tJEgPzvpUZhqXSSzBWj2WDa22wBUY7Ce1wlpRPyEiC8E3DFcRB66SYg== X-Received: by 2002:a2e:2417:0:b0:277:210:41d1 with SMTP id k23-20020a2e2417000000b00277021041d1mr7563569ljk.507.1668004486394; Wed, 09 Nov 2022 06:34:46 -0800 (PST) Received: from [192.168.0.20] (088156142199.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.199]) by smtp.gmail.com with ESMTPSA id v6-20020a05651203a600b004b40c1f1c70sm719554lfp.212.2022.11.09.06.34.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Nov 2022 06:34:45 -0800 (PST) Message-ID: Date: Wed, 9 Nov 2022 15:34:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] arch/arm64/boot/dts/marvell: add optee FW definitions Content-Language: en-US To: kostap@marvell.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring , Stefan Chulski , Nadav Haklai , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth References: <20221109143054.1440158-1-kostap@marvell.com> From: Krzysztof Kozlowski In-Reply-To: <20221109143054.1440158-1-kostap@marvell.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 09/11/2022 15:30, kostap@marvell.com wrote: > From: Konstantin Porotchkin > > Add reserved memory and ARM firmware definitions for optee > memory region in Marvell Armada SoCs to avoid protected memory > access. > > Signed-off-by: Konstantin Porotchkin Use subject prefixes matching the subsystem (git log --oneline -- ...). > Cc: Andrew Lunn > Cc: Gregory Clement > Cc: Sebastian Hesselbarth > --- > arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 11 +++++++++++ > arch/arm64/boot/dts/marvell/armada-ap80x.dtsi | 13 +++++++++++++ > 2 files changed, 24 insertions(+) > > diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi > index df152c72276b..c7a5a25826ea 100644 > --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi > +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi > @@ -35,6 +35,11 @@ psci-area@4000000 { > reg = <0 0x4000000 0 0x200000>; > no-map; > }; > + > + tee@4400000 { > + reg = <0 0x4400000 0 0x1000000>; > + no-map; > + }; > }; > > cpus { > @@ -531,5 +536,11 @@ armada-3700-rwtm { > mboxes = <&rwtm 0>; > status = "okay"; > }; > + > + optee { > + compatible = "linaro,optee-tz"; > + method = "smc"; > + status = "okay"; Why? It's by default. > + }; > }; > }; > diff --git a/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi b/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi > index a06a0a889c43..abf373b39463 100644 > --- a/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi > +++ b/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi > @@ -41,6 +41,11 @@ psci-area@4000000 { > reg = <0x0 0x4000000 0x0 0x200000>; > no-map; > }; > + > + tee@4400000 { > + reg = <0 0x4400000 0 0x1000000>; > + no-map; > + }; > }; > > AP_NAME { > @@ -461,4 +466,12 @@ map3_emerg: map3-emerg { > }; > }; > }; > + > + firmware { > + optee { > + compatible = "linaro,optee-tz"; > + method = "smc"; > + status = "okay"; Drop. > + }; > + }; > }; Best regards, Krzysztof