Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1953235ybc; Wed, 20 Nov 2019 06:44:15 -0800 (PST) X-Google-Smtp-Source: APXvYqylhxcUbGKDj46pWcSvjTHl5L4cTWfS9BBjepNkv1sLxTKWvtaKuEaAnX+hG0bZVd5WhDFL X-Received: by 2002:a17:906:7a47:: with SMTP id i7mr5899417ejo.22.1574261055040; Wed, 20 Nov 2019 06:44:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574261055; cv=none; d=google.com; s=arc-20160816; b=WmoO/aYs7Rn0rytUZrpjt4mEAFT79htNQvolrW+vnrBuLRDeuNTthqliOE4cUVJKCl iLVAc0Jmj3EmcMYzAzC7PxI0uomzf0yLZAdYqc9uI/WvsGunpXuum5mdEY27QbkLKABQ nWrE67cYQBK4bBcJlPIkQrvgSm7b55HQfVbFhaTwTpqcdQBRh/NpM+8rLLrtqO8V/CJ6 qlw4Vew1KM3kEbi63reZm2u7f8aZmRQzLX7sPRJDPrp+pqPo6IdjS9JvpB3JaezVF8JT 1aJO8kwA0satYa07TvrfVIBmQzDfVcFwUMM+BgY0HTCbI1VC/Z/hN3FeYSd75c3CouLS WMWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=CqTqqQisL0mVfRLeJ/Q6yUnUr6jBevycXIRNZu4CnYo=; b=mkCLLNamQql2GGBph0Sv6ifw8Xb4ObgVy/AZkrEfpI85MHD7IK4cjB3n/M/oaTaQjg qvcZgCIwkBPZtipyRUANhcTSOVBIvKjwaL8+9a9iVRDlC6+Z44NT53jWdX8ql8W/hP6O ZG/WirjzM+jkHTnNifaLGrqXdKiORgD/rB4n9iYujf0WXFvLpXlC/lS8Et4VQK8r0Hmj h20fotZjXEM9PvVhCXMfsq0s6U889Mt+aC+C2fypXRWLDOgFwT4H9G7ODqpPV619GZ8O MMpFMe4g4CAGBS5DjQ5+/gOw4VtPakIeQ1pfOeG4J3A0xBN53GmfsZKV4kbxt+sF5yEL rI6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=iU7lx468; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k26si16158303eja.58.2019.11.20.06.43.49; Wed, 20 Nov 2019 06:44:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=iU7lx468; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731724AbfKTOl1 (ORCPT + 99 others); Wed, 20 Nov 2019 09:41:27 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:59325 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728407AbfKTOl1 (ORCPT ); Wed, 20 Nov 2019 09:41:27 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xAKEcCTV026254; Wed, 20 Nov 2019 15:41:15 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=CqTqqQisL0mVfRLeJ/Q6yUnUr6jBevycXIRNZu4CnYo=; b=iU7lx468m/bCnR+8OKR5BO86s7Th4b7LjdY7mOtNVl0IhinVpFrQAPbIPi0u5ofGzxD1 UF8yk15V9LQ1yQbZuz9ffqG6SuHKWbvDTb0t1UmUd5fHZXf0Cpg5JC55Mgqor2RKlLxJ a0xTWnkYzBfuxAhsWbwPCiw+nsyXO/KmcuK7T7B0dQn18X+rryJM8GBHuOpReiS3CXHI sR1sLthUrRYAwyFGSzII3W2SXX/l14BnW+JxK3so8zmdF1+BbApZFENV0UnUlqYcpnjL RZHa/MjcUWHXlzva6G+OZbMPMyfLAuXNHyK5V9ZmW0B3b9UuRh75IJOXSea5TlAkfW93 Mg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2wa9use7vv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Nov 2019 15:41:14 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 47F89100038; Wed, 20 Nov 2019 15:41:14 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 3BAA32BE24C; Wed, 20 Nov 2019 15:41:14 +0100 (CET) Received: from localhost (10.75.127.45) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 20 Nov 2019 15:41:13 +0100 From: Alexandre Torgue To: Maxime Coquelin , , , CC: , , Alexandre Torgue , , , Manivannan Sadhasivam Subject: [PATCH 4/6] ARM: dts: stm32: Manage security diversity for STM32M15x SOCs Date: Wed, 20 Nov 2019 15:41:07 +0100 Message-ID: <20191120144109.25321-5-alexandre.torgue@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191120144109.25321-1-alexandre.torgue@st.com> References: <20191120144109.25321-1-alexandre.torgue@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG8NODE2.st.com (10.75.127.23) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-20_04:2019-11-15,2019-11-20 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit creates a new file to manage security diversity on STM32MP15x SOCs. On STM32MP15xY, "Y" gives information: -Y = A means no cryp IP and no secure boot. -Y = C means cryp IP + secure boot. Signed-off-by: Alexandre Torgue diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi index 9a0b55be134d..072fc7025987 100644 --- a/arch/arm/boot/dts/stm32mp151.dtsi +++ b/arch/arm/boot/dts/stm32mp151.dtsi @@ -1255,15 +1255,6 @@ status = "disabled"; }; - cryp1: cryp@54001000 { - compatible = "st,stm32mp1-cryp"; - reg = <0x54001000 0x400>; - interrupts = ; - clocks = <&rcc CRYP1>; - resets = <&rcc CRYP1_R>; - status = "disabled"; - }; - hash1: hash@54002000 { compatible = "st,stm32f756-hash"; reg = <0x54002000 0x400>; diff --git a/arch/arm/boot/dts/stm32mp15xc.dtsi b/arch/arm/boot/dts/stm32mp15xc.dtsi new file mode 100644 index 000000000000..b06a55a2fa18 --- /dev/null +++ b/arch/arm/boot/dts/stm32mp15xc.dtsi @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * Copyright (C) STMicroelectronics 2019 - All Rights Reserved + * Author: Alexandre Torgue for STMicroelectronics. + */ + +/ { + soc { + cryp1: cryp@54001000 { + compatible = "st,stm32mp1-cryp"; + reg = <0x54001000 0x400>; + interrupts = ; + clocks = <&rcc CRYP1>; + resets = <&rcc CRYP1_R>; + status = "disabled"; + }; + }; +}; -- 2.17.1