From patchwork Fri Apr 22 15:09:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre TORGUE X-Patchwork-Id: 12823667 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 42E7AC433EF for ; Fri, 22 Apr 2022 15:17:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2lGbcptO1KUIczlNYWNpCBYOLe4PzLxRd0YaPHC3ofM=; b=Sz6xDN3Yo3WEvp 9WCJl3LUYLN+JNZ5CUqp3dSkF+F6OtiISc+yFwyluNpCraw4l5jOpF8lLutwIBXIJJ4VgEcf1XWWG fD95HnxbprualYSqeBCbjQySCxV3uK2ILC4zZ+MhuhLh6sYzEOiAcs/JU3Z1SzDSpwpsM/WnKqwJE kTB7MIjUWxw6pqLybAyGq377+NUXOXU0dxoPjwTXE7OzxHSvHALyu30Fe9h4s/hqPNruRgWzf+X8N jJZipae0u68g6DeHFW7uFaiVtJVwYlxWCU+kJwlj4LL9XMEiLw91snWyTxIQXTjzbN/0Vecd02g0G Mb0wS6A05JVjhVYxoZLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhv18-0013BO-3e; Fri, 22 Apr 2022 15:16:18 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhuvE-00111M-1M for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2022 15:10:15 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23MEwj20006781; Fri, 22 Apr 2022 17:09:55 +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-type; s=selector1; bh=qntsBUku//AI5Nch4VT1ASqySX8P0QSy2neo7hBxy8E=; b=2SFSZCYzEbtJLWELwSD2KXAiey89kwJ7f/ow7heOep5g4+8hq2FdZIGB/xiGp4E2qNLQ 6DL6NGAE9fBx6b4CBc62m12fLJPA3AgQYuefu47JPQqqlbxXAnEEN6PRUWrxhPmoszHD hEHbKVmNnQWceM6xMF0c9QFWiwEr9C988urHmOW7NDJ8aLDjaLhOdsYEywvNdnZTzfi0 RPQIE197lV89c9FiwO5Fcg7S4fi9UXVsxQBc+ULbKQoiAHrYM5WPvU6iuJlUslwWkx6L itQnx8V4+jurSxdxBnavmSd1SpN3FFpRhg4RZwq3fY/zYoXtBLQW/CxqDsDJuW31ZLN6 vQ== 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 3ffpqh9mcc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Apr 2022 17:09:55 +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 C4DEF10002A; Fri, 22 Apr 2022 17:09:54 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id ABAA6233C62; Fri, 22 Apr 2022 17:09:54 +0200 (CEST) Received: from localhost (10.75.127.49) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Fri, 22 Apr 2022 17:09:54 +0200 From: Alexandre Torgue To: , , Krzysztof Kozlowski , , Stephen Boyd , Philipp Zabel CC: , , Alexandre Torgue , , , Marek Vasut , Ahmad Fatoum , Subject: [PATCH 0/8] Add SCMI version of ST boards Date: Fri, 22 Apr 2022 17:09:44 +0200 Message-ID: <20220422150952.20587-1-alexandre.torgue@foss.st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-22_04,2022-04-22_01,2022-02-23_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220422_081012_896624_5725AC9A X-CRM114-Status: GOOD ( 14.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The aim of this series is to add OPTEE and SCMI support for STM32 boards in order to enable secure services for clocks and resets. New boards have been added to enable this support in order to not break boot of current STM32 boards users. This series targets only boards provided by ST which are: -STM32MP157A-DK1 -STM32MP157C-DK2 -STM32MP157C-ED1 -STM32MP157C-EV1 Some modifications in bindings files (yaml and .h) was needed and OPTEE/TEE configs are now enabled by default for ARCH_STM32 architecture. Note that patch [1] "dt-bindings: rcc: Add optional external ethernet RX clock properties" done by Marek has been already merged in Rob tree. Thanks Alex Alexandre Torgue (7): dt-bindings: clock: stm32mp1: describes clocks if "st,stm32mp1-rcc-secure" dt-bindings: clock: stm32mp15: rename CK_SCMI define dt-bindings: reset: stm32mp15: rename RST_SCMI define ARM: stm32: select OPTEE on MPU family ARM: dts: stm32: enable optee firmware and SCMI support on STM32MP15 dt-bindings: arm: stm32: Add SCMI version of STM32 boards (DK1/DK2/ED1/EV1) ARM: dts: stm32: Add SCMI version of STM32 boards (DK1/DK2/ED1/EV1) Marek Vasut (1): dt-bindings: rcc: Add optional external ethernet RX clock properties .../devicetree/bindings/arm/stm32/stm32.yaml | 17 +++ .../bindings/clock/st,stm32mp1-rcc.yaml | 34 ++++++ arch/arm/boot/dts/Makefile | 4 + arch/arm/boot/dts/stm32mp151.dtsi | 41 +++++++ arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts | 86 +++++++++++++++ arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts | 95 +++++++++++++++++ arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts | 91 ++++++++++++++++ arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts | 100 ++++++++++++++++++ arch/arm/mach-stm32/Kconfig | 2 + include/dt-bindings/clock/stm32mp1-clks.h | 46 ++++---- include/dt-bindings/reset/stm32mp1-resets.h | 24 ++--- 11 files changed, 503 insertions(+), 37 deletions(-) create mode 100644 arch/arm/boot/dts/stm32mp157a-dk1-scmi.dts create mode 100644 arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts create mode 100644 arch/arm/boot/dts/stm32mp157c-ed1-scmi.dts create mode 100644 arch/arm/boot/dts/stm32mp157c-ev1-scmi.dts