Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp284862pxb; Mon, 25 Apr 2022 09:58:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIq2Zg7cBRYXnbMGMDCYQH3yQxp78SbgZlN0UK6I6O10KIDRprdZdCErRPKH+UCTYxqQZY X-Received: by 2002:a63:1510:0:b0:39d:7212:8500 with SMTP id v16-20020a631510000000b0039d72128500mr15594112pgl.377.1650905889708; Mon, 25 Apr 2022 09:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650905889; cv=none; d=google.com; s=arc-20160816; b=DL7qagphhKb2FO2SkVsFg+oQ67YVCgZrzvKeb7ImoQUvHaUID2epMzMXzy0EN4uVL8 5f4tyOilhTSiG1gowFWqX4sxQ8rHGJnhrIiIPic8VBKUgTMQQM5/USI8MvkEvmNrX8yV P3JqpvbsKaaBcgT9+jCA+wliDOLiKunDUSiCKHTFZQZAlxYw8uFYWdnU/GEIPpND+DkC IIDeLF29j1REFQm9evVlyYa7nA11dNdrkN/6BYZrcTpR1jF3+fUA6dZz5D0+tziovBPE GYupnSt7bIuiwl6OCKIjZqAIfIdlt+mLd3CznxQMia5ftfEtWwRdydE1bSPdFGas14G9 6apQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:organization:references:in-reply-to:date :cc:to:from:subject:message-id; bh=yzT/MXvGgX8+BdF4pHbz5RVBGMb251VdmZ44u9kw2y8=; b=bXaOaCITSvxnO5/MhVy9w0l5hj+Ng8ofx+0gaZXyGqmRZlyU3OkoCn7Lwfp71M/ym2 eBpB+avRQe4IAz3XN0oNjgmiVBT9YALfeZ4kxM/xwYBSWWYcyQsOwBL4SrFQ3j91CrmS wUGCqVdoq62tldEArxzKi1ZG6M6xhVDgHls8dEMk0yza77QH75KloUz+PC/A47Q+1bAR qCg3LwgixyHPFmC2nM6h4Qu8D54dS03S+7SNXqJuBp9F2ECZNCr35mgMvhgOuJf+dN55 0xihILfOLyMaLmUY3iCBbNEhgb2+PxIYz8b5wzDgobCda4oveqTvREYyzVoSfGmTTwPB sYXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t5-20020a17090a510500b001d6d8ba05a5si13116654pjh.125.2022.04.25.09.57.53; Mon, 25 Apr 2022 09:58:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235372AbiDYKeN convert rfc822-to-8bit (ORCPT + 99 others); Mon, 25 Apr 2022 06:34:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235723AbiDYKdw (ORCPT ); Mon, 25 Apr 2022 06:33:52 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F4121110 for ; Mon, 25 Apr 2022 03:30:47 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nivzH-0005Ci-Ci; Mon, 25 Apr 2022 12:30:35 +0200 Message-ID: <72c1f0b80e76b7f4ab1c59f09e6edeffe892fbdc.camel@pengutronix.de> Subject: Re: [PATCH 6/8] ARM: dts: stm32: enable optee firmware and SCMI support on STM32MP15 From: Rouven Czerwinski To: Marek Vasut , Etienne CARRIERE , Alexandre TORGUE - foss , "arnd@arndb.de" , "robh+dt@kernel.org" , Krzysztof Kozlowski , "soc@kernel.org" , Stephen Boyd , Philipp Zabel Cc: "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-kernel@vger.kernel.org" , Ahmad Fatoum Date: Mon, 25 Apr 2022 12:30:32 +0200 In-Reply-To: <71c0dd94-8cd3-9ca0-f06d-ee13ad063618@denx.de> References: <20220422150952.20587-1-alexandre.torgue@foss.st.com> <20220422150952.20587-7-alexandre.torgue@foss.st.com> <174bea56-3e99-e01c-4133-f1350d34448d@denx.de> <71c0dd94-8cd3-9ca0-f06d-ee13ad063618@denx.de> Organization: Pengutronix e.K. Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.0 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: r.czerwinski@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, 2022-04-25 at 12:25 +0200, Marek Vasut wrote: > On 4/25/22 12:19, Etienne CARRIERE wrote: > > Hello Marek, > > Hi, > > > > From: Marek Vasut > > > > > > > On 4/22/22 17:09, Alexandre Torgue wrote: > > > > Enable optee and SCMI clocks/reset protocols support. > > > > > > > > Signed-off-by: Alexandre Torgue > > > > > > > > diff --git a/arch/arm/boot/dts/stm32mp151.dtsi > > > > b/arch/arm/boot/dts/stm32mp151.dtsi > > > > index 7fdc324b3cf9..1b2fd3426a81 100644 > > > > --- a/arch/arm/boot/dts/stm32mp151.dtsi > > > > +++ b/arch/arm/boot/dts/stm32mp151.dtsi > > > > @@ -115,6 +115,33 @@ > > > >                 status = "disabled"; > > > >         }; > > > > > > > > +     firmware { > > > > +             optee: optee { > > > > +                     compatible = "linaro,optee-tz"; > > > > +                     method = "smc"; > > > > +                     status = "disabled"; > > > > +             }; > > > > > > Doesn't this TEE node get automatically generated and patched into DT by > > > the TEE ? I think OpTee-OS does that. > > > > OP-TEE OS does that if it gets passed the DT from early boot stage which is not always the case. > > Shouldn't that be something to fix ? > > I think R-Car3 does that already. FWIW it's also possible for OP-TEE to generate a device tree overlay which can be applied by later boot stages. Drawback is that you either need an additional parameter to pass between boot stages (address of the DT overlay) or it needs to be hardcoded. Hardcoding has it's own bag of drawbacks, but it's what we do for some i.MX6 platforms within barebox. However there is no TF-A there, so only OP-TEE and Barebox need to agree on the fixed location beforehand. Best regards, Rouven Czerwinski -- Pengutronix e.K. | Rouven Czerwinski | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |