From patchwork Wed May 17 07:48:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud POULIQUEN X-Patchwork-Id: 9441 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:3046:b0:115:7a1d:dabb with SMTP id p6csp846078rwl; Wed, 17 May 2023 01:11:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4jus95f+9yXMo4gA4ac+6IeVlcNZjb/2IVE4xZLwdkQZ45cH0TbQXfTn7lpSUMEuPeTHAx X-Received: by 2002:a05:6a20:3956:b0:106:30c5:3d02 with SMTP id r22-20020a056a20395600b0010630c53d02mr12568949pzg.40.1684311111425; Wed, 17 May 2023 01:11:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684311111; cv=none; d=google.com; s=arc-20160816; b=vYGl6+Hf5dwdElI6KrSS+EkbtgJSCokgoV51vsDLnrkh0+nc3eSPs9w8hxYHbW6ZuS aC0vSMc0QNNkTWLizpuGXtgeyK51d1FHKah4aN8yKgjGL2CpZGgZRV4z6cOW8xHaBANA ypC3qXEOMFqemACKy37AfGR5q2r29GlNtvtVjncAmznZyV74idYsecXL1ru0QI0TcArm 3l2ypcWJ5dMdEf74LI2huMH/rFdFO+lkilTpkwHk6/ItOOExW0bAEh0XO4CuP8LbEvM/ KDGeZu9b9JhtCCfE08riG6XBPfrlkBgQdoB+KjOHplemMRUX/0Gu0/uYkMV5/5DA5x3I 5/4A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=g6ylJKIjeoObejdA+i05VS1mwEI45Pnw3z0EfK5cZQc=; b=SPL2kVN3unTNmZehIQOQVc8zw0RsYMYbi+gXDBO7bQXoiPn+rTCKWgowb7J/szCwdS OeFJcHC9X449oL1M6sweJ4OApRXksdc0FHskfbawg84fHjSz4IGWjeWCPV2q1QS7DGcV 8ThfQwe0RBT/HEF4IPwmKro+FGNuW1Q9okPTVY38Ec9UVaro3nw+Q6+VYs76ruxBENKK 8K58a/njzthWKRVsVcnDRkIM9lvK9fOppq3fR1mXMfDKZtg4Ql1YmyMAgmsM6nMloN7n 50BPR3AhX+kdGMPPZV10o0b6RLCxp72wI9WcuMX7gGqkGXtdjvTUNQBjNLyN4ty6OBQr eyhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=EXKnm0og; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020aa79805000000b0063d48d82e85si21545907pfl.15.2023.05.17.01.11.36; Wed, 17 May 2023 01:11:51 -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=EXKnm0og; 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 S230207AbjEQHtG (ORCPT + 99 others); Wed, 17 May 2023 03:49:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230177AbjEQHtC (ORCPT ); Wed, 17 May 2023 03:49:02 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B78494496; Wed, 17 May 2023 00:48:59 -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 34H6W91U015648; Wed, 17 May 2023 09:48:44 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=g6ylJKIjeoObejdA+i05VS1mwEI45Pnw3z0EfK5cZQc=; b=EXKnm0ogUKOEE+zEiYacJBDHPE56AjIu9Khan15eBrm7sg+w6KinQ0A6Hdke9KVuyVWH 2dGKlbgDyUZlmA14RDW9mehPqBTC2/iKkQZEyOwzLD/5Y51QnT3RksFN3LKXjZPqeFvZ czM5zPBS3jarHJhzhai5ek/ZlelWH/KNTOiby2nm1F2w1tfViAD7+9xSuFmXGIZf+dlI z0mDKQvoxHOoAHmfcIIGt8dW/whpwoaomn4J6JSmRGBEsc6HOnAsIVvXbvtoOdu9I5f4 01yEP2E3awiJpdzL+FBC/Hx0RqZZ6Vk9yQtxllwAIO5Izmb18dIUe+pfvVcyifHxv9jW oQ== 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 3qm7tfe5sw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 May 2023 09:48:44 +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 7382F10002A; Wed, 17 May 2023 09:48:42 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 99FEE2194F3; Wed, 17 May 2023 09:48:42 +0200 (CEST) Received: from localhost (10.252.30.50) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 17 May 2023 09:48:41 +0200 From: Arnaud Pouliquen To: Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Mathieu Poirier , Alexandre Torgue CC: , , , , , Arnaud Pouliquen Subject: [PATCH v4 0/2] stm32mp15: update remoteproc to support SCMI Device tree Date: Wed, 17 May 2023 09:48:28 +0200 Message-ID: <20230517074830.569398-1-arnaud.pouliquen@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.252.30.50] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE2.st.com (10.75.129.70) 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_14,2023-05-16_01,2023-02-09_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766128208209474856?= X-GMAIL-MSGID: =?utf-8?q?1766128208209474856?= Update vs V3[1]: --------------- - remove from the V4 the commits already merged by Mathieu Poirier in the remoteproc next branch: - dt-bindings: remoteproc: st,stm32-rproc: Rework reset declarations - remoteproc: stm32: Allow hold boot management by the SCMI reset controller - rename patch " ARM: dts: stm32: Update reset declarations" to "ARM: dts: stm32: Update Cortex-M4 reset declarations on stm32mp15" - Fix DTS error reported by "make dtbs_check" [1]https://lore.kernel.org/lkml/20230512093926.661509-1-arnaud.pouliquen@foss.st.com/ 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 (2): ARM: dts: stm32: Update Cortex-M4 reset declarations on stm32mp15 ARM: dts: stm32: fix m4_rproc references to use SCMI arch/arm/boot/dts/stm32mp151.dtsi | 2 +- arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts | 7 +++++-- arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts | 7 +++++-- arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts | 7 +++++-- arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts | 7 +++++-- 5 files changed, 21 insertions(+), 9 deletions(-)