Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2386061rwd; Mon, 15 May 2023 10:56:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ44+TqU5ZFjb3TA/bn1i2tj/NkKgtsz1umpThyA0p7gtohMrFCK6yg/CMQrVw0LORY+LWAf X-Received: by 2002:a05:6a21:6d84:b0:103:fcd7:544d with SMTP id wl4-20020a056a216d8400b00103fcd7544dmr20071659pzb.47.1684173377922; Mon, 15 May 2023 10:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684173377; cv=none; d=google.com; s=arc-20160816; b=wIVjXkxa6+7DWx55toUMpH0T82Yg3sBpBYEmMDYG8Dk+jkKlpCEAZkdoqIvCEdR5z6 C82Veiw+6fHCtQlgQt7MbglJ5BK5eq3e+xLAQZl5h6Bz0Gu9uA6YQMTLqtXrVFTGYxE1 N0wDjf9XGbTv95RpOD/oCO+uB8AKwQ1HTeeyUQkAqGIpyhobY59vk16G5iRy1sl/U0t+ frvSBluxT2IER8/yKsvJWaKlY283ouv4R3yU6+PxRq4QQi3klP3mPFP6/1XiF2V6BSos A5za4Z1qaBQ/+DHeh1vryGzGDu50a+YN0uICJRDOPyy7VuWRTlYjh7+aV2K2cwBm8e8F P94g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HV5hzOslSr/FLxQgkUOdAb0ubgv7oB3Gzqp0pqYMQsc=; b=ytELgwC/Ay3KgTa427Kf7Souv+GeGq/HCHm2DpjQ8JeZySGG9zXk3t1yx0Vkr1bmRG A05fNtpnIY4prZjeJOMHPUJ6rbDgEC/ATkMRErkU/vBLNRVgefI5Fr2NGiOy/fm880d9 2gGE77uVG7P/5MhUgNY1rb/UgThRZQGeWnIXOKU5yPUzFaU9PgUls+UlhYtbShGKeNTM oLRvDWVubl4rGQ6k5qRqDXCPCYzA89r2VF9ZiY54YkXFabi1NcmYR+RzP/dCoCbmNQZB 6jhCtqVPLGtLvnj08OgWziZjJt2Nej/Ngv4L3AKqcy9t5EIGQO1+I45jWM0gAuNtoM64 2bjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="X/eq65FB"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020a63b343000000b0051f0bd40bb0si16789404pgt.779.2023.05.15.10.56.03; Mon, 15 May 2023 10:56:17 -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; dkim=pass header.i=@linaro.org header.s=google header.b="X/eq65FB"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244167AbjEORbI (ORCPT + 99 others); Mon, 15 May 2023 13:31:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244175AbjEORad (ORCPT ); Mon, 15 May 2023 13:30:33 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ED6510A2B for ; Mon, 15 May 2023 10:27:48 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1aae46e62e9so93227625ad.2 for ; Mon, 15 May 2023 10:27:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684171666; x=1686763666; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=HV5hzOslSr/FLxQgkUOdAb0ubgv7oB3Gzqp0pqYMQsc=; b=X/eq65FBsDIPDo2Wfb1iwHSoJisHGVKTWyP2n3KTfJga69cQVWysciK1ZDjhlavC7r KF0RmdnEOogoZKah/bR6k20VbeKpwafYM9t8+/0zY0xRXIduYg5yKbZ9E6spflp3waIe GHVj0DHBIfvPtm7rnej1OBje66kBLGnnF/lbmDHV3A0dDQxPl5+hmVEmPpmEDv9w3OHh UdmxdlwCJkaUDXTY0670ar+7CIlGLDPLlRePUFxclSKX/9evlhDEUmIW0nfA20CB5udq MKNhHPmvJbbF59DU9avkZkGi6z+FgiUYleHpVpaKex3BexNZMM6HvJcuYogUEAzL7LUs da0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684171666; x=1686763666; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HV5hzOslSr/FLxQgkUOdAb0ubgv7oB3Gzqp0pqYMQsc=; b=YrQf+KauxHSO4N9IK8xQ/Q+JSED7vDi+0kradmg0pnC8JmvhBmY1cFftP3gXKwSF/l tAb5p1SGSHmcuAgkeop961L0YZs2zCW24N/k8B+jAAloIT7orpKCYfI6KA1+zfv+mwFq fyQ4Poo3uqi9gLE+ULpcpHhjMVMrUd+8VHBJQ5wAs2iF6ruOIJpQqrx6Mcbu6cUfIMDE 3wcC3OBdS9Sr6+bQafxKvwj4loJGopk+1mJKUamBysp9MG5Vvsq2hkkvDSoQrnE/rN86 f+CGd9E1TK8Cdd1+kzLFB5d76zfO470c40Qrlu+SmQ+M5B34UHcWnUpx5g9dLAFzly21 acgg== X-Gm-Message-State: AC+VfDyhDnRKkwy10ADm+V6jE5zkc6jF7G7f8ivp8VfCvHauZ1YHqQ6/ IaM0VplCWlaFr72hlcNknCU08A== X-Received: by 2002:a17:902:a516:b0:1ab:1355:1a45 with SMTP id s22-20020a170902a51600b001ab13551a45mr32579411plq.30.1684171665794; Mon, 15 May 2023 10:27:45 -0700 (PDT) Received: from p14s ([2604:3d09:148c:c800:d401:af78:6aa0:cf61]) by smtp.gmail.com with ESMTPSA id d1-20020a170902aa8100b001aafb802efbsm13847316plr.12.2023.05.15.10.27.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 10:27:45 -0700 (PDT) Date: Mon, 15 May 2023 11:27:43 -0600 From: Mathieu Poirier To: Arnaud Pouliquen Cc: Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Alexandre Torgue , devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/4] stm32mp15: update remoteproc to support SCMI Device tree Message-ID: References: <20230512093926.661509-1-arnaud.pouliquen@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230512093926.661509-1-arnaud.pouliquen@foss.st.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Fri, May 12, 2023 at 11:39:22AM +0200, Arnaud Pouliquen wrote: > Update vs V2[1]: > --------------- > - update yaml to remove label in examples > - fix error management for devm_reset_control_get_optional(dev, "hold_boot") > - rebased on commit ac9a78681b92 ("Linux 6.4-rc1") > > [1]https://lore.kernel.org/lkml/20230504094641.870378-1-arnaud.pouliquen@foss.st.com/T/ > > > Description: > ----------- > This series updates the stm32_rproc driver and associated DT node to > support device tree configuration with and without SCMI server. > The impact is mainly on the MCU hold boot management. > > Three configurations have to be supported: > > 1) Configuration without OP-TEE SCMI (legacy): Trusted context not activated > - The MCU reset is controlled through the Linux RCC reset driver. > - The MCU HOLD BOOT is controlled through The RCC sysconf. > > 2) Configuration with SCMI server: Trusted context activated > - The MCU reset is controlled through the SCMI reset service. > - The MCU HOLD BOOT is no more controlled through a SMC call service but > through the SCMI reset service. > > 3) Configuration with OP-TEE SMC call (deprecated): Trusted context activated > - The MCU reset is controlled through the Linux RCC reset driver. > - The MCU HOLD BOOT is controlled through The SMC call. > > In consequence this series: > - adds the use of the SCMI reset service to manage the MCU hold boot, > - determines the configuration to use depending on the presence of the > "reset-names" property > if ( "reset-names" property contains "hold_boot") > then use reset_control services > else use regmap access based on "st,syscfg-holdboot" property. > - set the DT st,syscfg-tz property as deprecated > > Arnaud Pouliquen (4): > dt-bindings: remoteproc: st,stm32-rproc: Rework reset declarations > remoteproc: stm32: Allow hold boot management by the SCMI reset > controller > ARM: dts: stm32: Update reset declarations > ARM: dts: stm32: fix m4_rproc references to use SCMI > > .../bindings/remoteproc/st,stm32-rproc.yaml | 44 +++++++++-- > arch/arm/boot/dts/stm32mp151.dtsi | 2 +- > arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts | 6 +- > arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts | 6 +- > arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts | 6 +- > arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts | 6 +- > drivers/remoteproc/stm32_rproc.c | 76 ++++++++++++++----- > 7 files changed, 111 insertions(+), 35 deletions(-) > I have applied patch 1 and 2. Unless Alexandre wants to proceed differently, patches 3 and 4 should go through his tree. Thanks, Mathieu > -- > 2.25.1 >