Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp807767rwd; Tue, 16 May 2023 08:00:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58qtqlQhOxcBHxu+cCo1CZ+Kw3vxhP3MhbKmXcxPmkET6s+iWH/RVaiMKDHuobOubRmWnh X-Received: by 2002:a17:902:8685:b0:1ad:f912:c047 with SMTP id g5-20020a170902868500b001adf912c047mr11736941plo.42.1684249253723; Tue, 16 May 2023 08:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684249253; cv=none; d=google.com; s=arc-20160816; b=KNXm7y1M3mS8iGHmsZkuWFmym0pZyNFpQGArA01CJMrwMUGwb2TfoGpfGDwOKDV7TC 6OOq90Phpjm7d55zTfm2O8KPORqrwpxUf5bWoodg4Mqrag1VlyXYhPnpEalCUSXZfAgz BO8MsYpX+S6jkl3NaPNhszKB6z0JpgALAMoH0YuNoSYK34l+pdx8Yv1uJYqStg+ikBBp OoLPQRzqb65QGq3jCU4dKEDZeTiTKdPOFfRtJZSaYfP2UKyYDj10/8pJmEwAPBFlRDUG 4epnoQt5uuTplvgkBHstrtoBlenN5QzJV9zo3p+XULSlqlLAr+OazcRGh7n+H0xVnGp7 4/xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ZOHvPLARUacy7nqUqtK+6md229aHrzcf8Fijn/GrLZ0=; b=azYrdOYC4PzmDi3JZ8pL9RugDCK7Cm+rEuG7H2xhiLoKLQN3OIr09OiiI6r3akiiRE sD1d/mUYaAN4VYWqvEMfe55o1x7Yc3/WkB2tlIroTw8vAcVGf1PSm8XYq7/CjlWSyG4u x9YknLVx0z6Gk7WBqfuo+d196NEidWSU2Bt+jiTz1bE5cacFHDbApwRVktAncx6FwOKx UjCp4IFb82R5Moe1/mpTt2S1Ge7EaJ191n7wAoUHZua8rLcJZUhgjK2Moq9dcUtDsbqp 8vX15r/5wpUmZmdWInwaf8E1WOVp2AQIZp2sPALXSBbCvGQBrqLVKVKC4sNSN8cr0ePU 18oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=4wbhNw0W; 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=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z131-20020a633389000000b00530728f83cfsi13036360pgz.190.2023.05.16.08.00.37; Tue, 16 May 2023 08:00:53 -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=@foss.st.com header.s=selector1 header.b=4wbhNw0W; 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=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233943AbjEPOeA (ORCPT + 99 others); Tue, 16 May 2023 10:34:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232958AbjEPOd5 (ORCPT ); Tue, 16 May 2023 10:33:57 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11416A8; Tue, 16 May 2023 07:33:53 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34GE580o015630; Tue, 16 May 2023 16:33:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=ZOHvPLARUacy7nqUqtK+6md229aHrzcf8Fijn/GrLZ0=; b=4wbhNw0Wxskx9jw7OBPD+h22nH8hiUjzHbNF6Gper4o5/ee7ZUt1SmMJfy8z4uEKWWoL Q7+TYpLoiKuURW2wDlky0vC86RisTmTX9pXWE1EujcUt9ixB83wjHhqzxQAhPsQVfZ2F Dm5A8Z5okS02KDlMXR9ugIiMlwdXHp3qtc1iK8vZA10VSqgxa5oW84uL4Dda0RfzDGjQ CPwKJmt7JcQV/yGbSBr4NYDuvBqRLYaZGQSig9WOFBv5DOq+2MVFbMJllrTmHuXFa53L 1uLkNA1LlIL9YrwXZuskVe0yzvwEknYGN8wL6YD4o9yKHjM9xCEFIqvISMiw3OtumSej Qg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3qm7tf9qb9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 16:33:38 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C71EC10002A; Tue, 16 May 2023 16:33:37 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id C02FB229A97; Tue, 16 May 2023 16:33:37 +0200 (CEST) Received: from [10.252.0.230] (10.252.0.230) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 16 May 2023 16:33:34 +0200 Message-ID: <6f146b61-4386-1f2f-f16b-55148b74bb6a@foss.st.com> Date: Tue, 16 May 2023 16:33:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v3 0/4] stm32mp15: update remoteproc to support SCMI Device tree Content-Language: en-US To: Mathieu Poirier , Arnaud Pouliquen CC: Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , , , , , References: <20230512093926.661509-1-arnaud.pouliquen@foss.st.com> From: Alexandre TORGUE In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.252.0.230] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-16_07,2023-05-16_01,2023-02-09_01 X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Mathieu On 5/15/23 19:27, Mathieu Poirier wrote: > 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. I will merge DT patches in STM32 tree. cheers Alex > > Thanks, > Mathieu > >> -- >> 2.25.1 >>