Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2336809pxb; Mon, 19 Apr 2021 03:24:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxW1h6AeEAHCKv6MSNWNMxs3ZT4FeY8Gmz1k0tiZcvOKIdGs3VyYyLu2qPCgaMZwEUUNvBh X-Received: by 2002:a05:6402:c1b:: with SMTP id co27mr24799029edb.61.1618827898332; Mon, 19 Apr 2021 03:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618827898; cv=none; d=google.com; s=arc-20160816; b=UOREt6WiZr5LGm0mTHbC+nvcvgDFUKZNM23ipUwk4LL5AoLov4W79bQm2LIWAZKSU3 BIzDgt/ihMuXjHOn0zXWtQM7EtHG5X1NWwQQCJTlPv3TZMOebOLq4N7xTNlEr5ESnU1+ rHss6Gj3mz6cqkhVe8z8bC0oIALg9cONUGtReN2/4l9S96cGfpTQ3YWbPdk+bOV9AM1R KztvYgIRTkrpaTCJA8hYomza4ceD31Hf1bpxmIRHa3LYU3N31OBDa7rTwhLllTI56P7C 5Hh1bqRyw3iDyXtzKr2qh+ZsnQIhhhHnVt65yz6lwo2tHmOnAr2p1ztpr1ApJWcWdIW8 Ej/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=wOdBXreJaHkgnJPvNm4hYfpoNn+S6pHPol0liOPRIiU=; b=FoHEqDxBAInq3Fry7SmGuLHT8pZ+Pmz7k1UCGNrAkfDzuB0C3SSnhDYA0jxZ1xTC6O tEwf+X7EKKDQPw7vUI0LWaJabL18a1OLrITvBbCu29cNLJlztPZtfclLzMutLFzfmJYL Le74MBfcQW6QYQdBKN6iEZMx548ht5i+rFcwXFayU7CkqaGza3ZejPdR0Ip1l1d8D/Od ypEPUvfpQu6y0/2Xdo12l35cNXZK7WlOf6XTpSj+KWJTdA+Ox4UIjiPSC+pcRGCm/zFr e8uymU5BgeE7sb8UBNwuXYpPDNEuXk+da/+sopw6wlpNhl91JRkLbF/XvRFsY/8vb0v4 qwfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Uo86N0X7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si12209641ejm.310.2021.04.19.03.24.35; Mon, 19 Apr 2021 03:24:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Uo86N0X7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S238751AbhDSJkH (ORCPT + 99 others); Mon, 19 Apr 2021 05:40:07 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:21724 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238616AbhDSJj4 (ORCPT ); Mon, 19 Apr 2021 05:39:56 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13J9RIHb027890; Mon, 19 Apr 2021 11:39:06 +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=wOdBXreJaHkgnJPvNm4hYfpoNn+S6pHPol0liOPRIiU=; b=Uo86N0X7eVrHf8AswCNPqmebR9xfEdJiaO01eE/irTjjKYtuoChcMetJeoL4+GbUGy45 P47id3ekrxFkBRVngLJhG9yogUgxx/0m5lBf5GhI/E9qyc8o7UQgCZ6HvBKt1CR+A9Jx EyNovc7lG60qvCKNsiRn3BxhuMFecw5mKy8gwM5VjpZVKC+OPZlxPgtzCfm0XWQOemQ2 umkvGvyKP0HEtYTJimuH41y+Hg/4tWidRR2G1jPYpYjuMrvvrDA+sXrtZzjePKa3YgVq hWiAlPIRzOZOT9UBDd909dNz9IgIUrd+30eYWXNTo3iMdUMgyeld69qtJk+Dy+nfUcrR tQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 380s8c3bfy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Apr 2021 11:39:06 +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 155E410002A; Mon, 19 Apr 2021 11:39:06 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id DEF9820A07F; Mon, 19 Apr 2021 11:39:05 +0200 (CEST) Received: from localhost (10.75.127.49) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 19 Apr 2021 11:39:05 +0200 From: To: Michael Turquette , Stephen Boyd , Rob Herring , Maxime Coquelin , Alexandre Torgue , Philipp Zabel , Etienne Carriere , Gabriel Fernandez , CC: , , , , Subject: [PATCH v3 00/11] Introduce STM32MP1 RCC in secured mode Date: Mon, 19 Apr 2021 11:38:41 +0200 Message-ID: <20210419093852.14978-1-gabriel.fernandez@foss.st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-19_05:2021-04-16,2021-04-19 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clocks and IP resets can relate as secure resources. These resources are moved from a RCC clock/reset handle to a SCMI clock/reset_domain handle. The RCC clock driver is now dependent of the SCMI driver, then we have to manage now the probe defering. v2 -> v3: - use determine_rate op instead of round_rate for ck_rtc - remove DT patches from patchset to keek Kernel device tree as there are in basic boot. We will applied scmi clock phandle thanks dtbo in U-boot. v1 -> v2: - fix yamllint warnings. Gabriel Fernandez (11): clk: stm32mp1: merge 'clk-hsi-div' and 'ck_hsi' into one clock clk: stm32mp1: merge 'ck_hse_rtc' and 'ck_rtc' into one clock clk: stm32mp1: remove intermediate pll clocks clk: stm32mp1: convert to module driver clk: stm32mp1: move RCC reset controller into RCC clock driver reset: stm32mp1: remove stm32mp1 reset dt-bindings: clock: add IDs for SCMI clocks on stm32mp15 dt-bindings: reset: add IDs for SCMI reset domains on stm32mp15 dt-bindings: reset: add MCU HOLD BOOT ID for SCMI reset domains on stm32mp15 dt-bindings: clock: stm32mp1 new compatible for secure rcc clk: stm32mp1: new compatible for secure RCC support .../bindings/clock/st,stm32mp1-rcc.yaml | 6 +- drivers/clk/Kconfig | 10 + drivers/clk/clk-stm32mp1.c | 500 +++++++++++++++--- drivers/reset/Kconfig | 6 - drivers/reset/Makefile | 1 - drivers/reset/reset-stm32mp1.c | 115 ---- include/dt-bindings/clock/stm32mp1-clks.h | 27 + include/dt-bindings/reset/stm32mp1-resets.h | 15 + 8 files changed, 469 insertions(+), 211 deletions(-) delete mode 100644 drivers/reset/reset-stm32mp1.c -- 2.17.1