xref: /optee_os/core/arch/arm/dts/stm32mp135f-dk.dts (revision 078e2ad44acd29c573e51358a473cd9b73c59aff)
140cc9401SGatien Chevallier// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
240cc9401SGatien Chevallier/*
341115447SGatien Chevallier * Copyright (C) STMicroelectronics 2021-2024 - All Rights Reserved
440cc9401SGatien Chevallier * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
540cc9401SGatien Chevallier */
640cc9401SGatien Chevallier
740cc9401SGatien Chevallier/dts-v1/;
840cc9401SGatien Chevallier
940cc9401SGatien Chevallier#include <dt-bindings/clock/stm32mp13-clksrc.h>
1078363cc5SGatien Chevallier#include <dt-bindings/firewall/stm32mp13-tzc400.h>
11f55e624aSEtienne Carriere#include <dt-bindings/gpio/gpio.h>
12e89ae2caSGatien Chevallier#include <dt-bindings/gpio/stm32mp_gpio.h>
13f55e624aSEtienne Carriere#include <dt-bindings/regulator/st,stm32mp13-regulator.h>
14*506dc87bSGatien Chevallier#include <dt-bindings/tamper/st,stm32mp13-tamp.h>
1540cc9401SGatien Chevallier#include "stm32mp135.dtsi"
1640cc9401SGatien Chevallier#include "stm32mp13xf.dtsi"
1740cc9401SGatien Chevallier#include "stm32mp13-pinctrl.dtsi"
1840cc9401SGatien Chevallier
1940cc9401SGatien Chevallier/ {
2040cc9401SGatien Chevallier	model = "STMicroelectronics STM32MP135F-DK Discovery Board";
2140cc9401SGatien Chevallier	compatible = "st,stm32mp135f-dk", "st,stm32mp135";
2240cc9401SGatien Chevallier
2340cc9401SGatien Chevallier	aliases {
2440cc9401SGatien Chevallier		serial0 = &uart4;
2540cc9401SGatien Chevallier		serial1 = &usart1;
2640cc9401SGatien Chevallier	};
2740cc9401SGatien Chevallier
2840cc9401SGatien Chevallier	chosen {
2940cc9401SGatien Chevallier		stdout-path = "serial0:115200n8";
3040cc9401SGatien Chevallier	};
3140cc9401SGatien Chevallier
3240cc9401SGatien Chevallier	memory@c0000000 {
3340cc9401SGatien Chevallier		device_type = "memory";
3440cc9401SGatien Chevallier		reg = <0xc0000000 0x20000000>;
3540cc9401SGatien Chevallier	};
3640cc9401SGatien Chevallier
3740cc9401SGatien Chevallier	reserved-memory {
3840cc9401SGatien Chevallier		#address-cells = <1>;
3940cc9401SGatien Chevallier		#size-cells = <1>;
4040cc9401SGatien Chevallier		ranges;
4140cc9401SGatien Chevallier
4240cc9401SGatien Chevallier		optee_framebuffer: optee-framebuffer@dd000000 {
4340cc9401SGatien Chevallier			/* Secure framebuffer memory */
4440cc9401SGatien Chevallier			reg = <0xdd000000 0x1000000>;
4578363cc5SGatien Chevallier			st,protreg = <DT_TZC_REGION_S_RDWR 0>;
4640cc9401SGatien Chevallier			no-map;
4740cc9401SGatien Chevallier		};
4840cc9401SGatien Chevallier	};
4940cc9401SGatien Chevallier
5040cc9401SGatien Chevallier	vin: vin {
5140cc9401SGatien Chevallier		compatible = "regulator-fixed";
5240cc9401SGatien Chevallier		regulator-name = "vin";
5340cc9401SGatien Chevallier		regulator-min-microvolt = <5000000>;
5440cc9401SGatien Chevallier		regulator-max-microvolt = <5000000>;
5540cc9401SGatien Chevallier		regulator-always-on;
5640cc9401SGatien Chevallier	};
5740cc9401SGatien Chevallier
5840cc9401SGatien Chevallier	v3v3_ao: v3v3_ao {
5940cc9401SGatien Chevallier		compatible = "regulator-fixed";
6040cc9401SGatien Chevallier		regulator-name = "v3v3_ao";
6140cc9401SGatien Chevallier		regulator-min-microvolt = <3300000>;
6240cc9401SGatien Chevallier		regulator-max-microvolt = <3300000>;
6340cc9401SGatien Chevallier		regulator-always-on;
6440cc9401SGatien Chevallier	};
6540cc9401SGatien Chevallier};
6640cc9401SGatien Chevallier
67b867b07eSGatien Chevallier&bsec {
68b867b07eSGatien Chevallier	board_id: board_id@f0 {
69b867b07eSGatien Chevallier		reg = <0xf0 0x4>;
70b867b07eSGatien Chevallier		st,non-secure-otp;
71b867b07eSGatien Chevallier	};
72b867b07eSGatien Chevallier};
73b867b07eSGatien Chevallier
74fb484158SPascal Paillet&cpu0 {
75fb484158SPascal Paillet	cpu-supply = <&vddcpu>;
76fb484158SPascal Paillet};
77fb484158SPascal Paillet
7841115447SGatien Chevallier&etzpc {
7941115447SGatien Chevallier	st,decprot =
8041115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_ADC1_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
8141115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_ADC2_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
8241115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_BKPSRAM_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
8341115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_CRYP_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
8441115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_DCMIPP_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
8541115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_DDRCTRLPHY_ID, DECPROT_NS_R_S_W, DECPROT_UNLOCK)>,
8641115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_ETH1_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
8741115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_ETH2_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
8841115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_FMC_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
8941115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_HASH_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
9041115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_I2C3_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
9141115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_I2C4_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
9241115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_I2C5_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
9341115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_IWDG1_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
9441115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_LPTIM2_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
9541115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_LPTIM3_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
9641115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_LTDC_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
9741115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_MCE_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
9841115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_OTG_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
9941115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_PKA_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
10041115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_QSPI_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
10141115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_RNG_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
10241115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_SAES_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
10341115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_SDMMC1_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
10441115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_SDMMC2_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
10541115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_SPI4_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
10641115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_SPI5_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
10741115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_SRAM1_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
10841115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_SRAM2_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
10941115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_SRAM3_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
11041115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_STGENC_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
11141115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_TIM12_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
11241115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_TIM13_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
11341115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_TIM14_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
11441115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_TIM15_ID, DECPROT_S_RW, DECPROT_UNLOCK)>,
11541115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_TIM16_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
11641115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_TIM17_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
11741115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_USART1_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
11841115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_USART2_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
11941115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_USBPHYCTRL_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>,
12041115447SGatien Chevallier		<DECPROT(STM32MP1_ETZPC_VREFBUF_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>;
12141115447SGatien Chevallier};
12241115447SGatien Chevallier
123*506dc87bSGatien Chevallier&gpioa {
124*506dc87bSGatien Chevallier	st,protreg = <TZPROT(6)>;
125*506dc87bSGatien Chevallier};
126*506dc87bSGatien Chevallier
127e89ae2caSGatien Chevallier&gpiob {
128e89ae2caSGatien Chevallier	st,protreg = <TZPROT(9)>;
129e89ae2caSGatien Chevallier};
130e89ae2caSGatien Chevallier
131e89ae2caSGatien Chevallier&gpiod {
132e89ae2caSGatien Chevallier	st,protreg = <TZPROT(7)>;
133e89ae2caSGatien Chevallier};
134e89ae2caSGatien Chevallier
135e89ae2caSGatien Chevallier&gpioe {
136e89ae2caSGatien Chevallier	st,protreg = <TZPROT(15)>;
137e89ae2caSGatien Chevallier};
138e89ae2caSGatien Chevallier
139fc3dc05aSThomas Bourgoin&hash {
140fc3dc05aSThomas Bourgoin	status = "okay";
141fc3dc05aSThomas Bourgoin};
142fc3dc05aSThomas Bourgoin
143f55e624aSEtienne Carriere&i2c4 {
144f55e624aSEtienne Carriere	pinctrl-names = "default";
145f55e624aSEtienne Carriere	pinctrl-0 = <&i2c4_pins_a>;
146f55e624aSEtienne Carriere	i2c-scl-rising-time-ns = <185>;
147f55e624aSEtienne Carriere	i2c-scl-falling-time-ns = <20>;
148f55e624aSEtienne Carriere	clock-frequency = <400000>;
149f55e624aSEtienne Carriere	status = "okay";
150f55e624aSEtienne Carriere
151f55e624aSEtienne Carriere	pmic: stpmic@33 {
152f55e624aSEtienne Carriere		compatible = "st,stpmic1";
153f55e624aSEtienne Carriere		reg = <0x33>;
154f55e624aSEtienne Carriere		status = "okay";
155f55e624aSEtienne Carriere		st,wakeup-pin-number = <1>;
156f55e624aSEtienne Carriere		st,notif-it-id = <0>;
157f55e624aSEtienne Carriere
158f55e624aSEtienne Carriere		regulators {
159f55e624aSEtienne Carriere			compatible = "st,stpmic1-regulators";
160f55e624aSEtienne Carriere			buck1-supply = <&vin>;
161f55e624aSEtienne Carriere			buck2-supply = <&vin>;
162f55e624aSEtienne Carriere			buck3-supply = <&vin>;
163f55e624aSEtienne Carriere			buck4-supply = <&vin>;
164f55e624aSEtienne Carriere			ldo1-supply = <&vin>;
165f55e624aSEtienne Carriere			ldo4-supply = <&vin>;
166f55e624aSEtienne Carriere			ldo5-supply = <&vin>;
167f55e624aSEtienne Carriere			ldo6-supply = <&vin>;
168f55e624aSEtienne Carriere			vref_ddr-supply = <&vin>;
169f55e624aSEtienne Carriere			pwr_sw1-supply = <&bst_out>;
170f55e624aSEtienne Carriere			pwr_sw2-supply = <&v3v3_ao>;
171f55e624aSEtienne Carriere
172f55e624aSEtienne Carriere			vddcpu: buck1 {
173f55e624aSEtienne Carriere				regulator-name = "vddcpu";
174f55e624aSEtienne Carriere				regulator-min-microvolt = <1250000>;
175f55e624aSEtienne Carriere				regulator-max-microvolt = <1350000>;
176f55e624aSEtienne Carriere				regulator-always-on;
177f55e624aSEtienne Carriere				regulator-over-current-protection;
178f55e624aSEtienne Carriere
179f55e624aSEtienne Carriere				lp-stop {
180f55e624aSEtienne Carriere					regulator-suspend-microvolt = <1250000>;
181f55e624aSEtienne Carriere				};
182f55e624aSEtienne Carriere				lplv-stop {
183f55e624aSEtienne Carriere					regulator-suspend-microvolt = <900000>;
184f55e624aSEtienne Carriere				};
185f55e624aSEtienne Carriere				lplv-stop2 {
186f55e624aSEtienne Carriere					regulator-off-in-suspend;
187f55e624aSEtienne Carriere				};
188f55e624aSEtienne Carriere				standby-ddr-sr {
189f55e624aSEtienne Carriere					regulator-off-in-suspend;
190f55e624aSEtienne Carriere				};
191f55e624aSEtienne Carriere				standby-ddr-off {
192f55e624aSEtienne Carriere					regulator-off-in-suspend;
193f55e624aSEtienne Carriere				};
194f55e624aSEtienne Carriere			};
195f55e624aSEtienne Carriere
196f55e624aSEtienne Carriere			vdd_ddr: buck2 {
197f55e624aSEtienne Carriere				regulator-name = "vdd_ddr";
198f55e624aSEtienne Carriere				regulator-min-microvolt = <1350000>;
199f55e624aSEtienne Carriere				regulator-max-microvolt = <1350000>;
200f55e624aSEtienne Carriere				regulator-always-on;
201f55e624aSEtienne Carriere				regulator-over-current-protection;
202f55e624aSEtienne Carriere
203f55e624aSEtienne Carriere				standby-ddr-off {
204f55e624aSEtienne Carriere					regulator-off-in-suspend;
205f55e624aSEtienne Carriere				};
206f55e624aSEtienne Carriere			};
207f55e624aSEtienne Carriere
208f55e624aSEtienne Carriere			vdd: buck3 {
209f55e624aSEtienne Carriere				regulator-name = "vdd";
210f55e624aSEtienne Carriere				regulator-min-microvolt = <3300000>;
211f55e624aSEtienne Carriere				regulator-max-microvolt = <3300000>;
212f55e624aSEtienne Carriere				regulator-always-on;
213f55e624aSEtienne Carriere				st,mask-reset;
214f55e624aSEtienne Carriere				regulator-over-current-protection;
215f55e624aSEtienne Carriere			};
216f55e624aSEtienne Carriere
217f55e624aSEtienne Carriere			vddcore: buck4 {
218f55e624aSEtienne Carriere				regulator-name = "vddcore";
219f55e624aSEtienne Carriere				regulator-min-microvolt = <1250000>;
220f55e624aSEtienne Carriere				regulator-max-microvolt = <1250000>;
221f55e624aSEtienne Carriere				regulator-always-on;
222f55e624aSEtienne Carriere				regulator-over-current-protection;
223f55e624aSEtienne Carriere
224f55e624aSEtienne Carriere				lplv-stop {
225f55e624aSEtienne Carriere					regulator-suspend-microvolt = <900000>;
226f55e624aSEtienne Carriere				};
227f55e624aSEtienne Carriere				lplv-stop2 {
228f55e624aSEtienne Carriere					regulator-suspend-microvolt = <900000>;
229f55e624aSEtienne Carriere				};
230f55e624aSEtienne Carriere				standby-ddr-sr {
231f55e624aSEtienne Carriere					regulator-off-in-suspend;
232f55e624aSEtienne Carriere				};
233f55e624aSEtienne Carriere				standby-ddr-off {
234f55e624aSEtienne Carriere					regulator-off-in-suspend;
235f55e624aSEtienne Carriere				};
236f55e624aSEtienne Carriere			};
237f55e624aSEtienne Carriere
238f55e624aSEtienne Carriere			vdd_adc: ldo1 {
239f55e624aSEtienne Carriere				regulator-name = "vdd_adc";
240f55e624aSEtienne Carriere				regulator-min-microvolt = <3300000>;
241f55e624aSEtienne Carriere				regulator-max-microvolt = <3300000>;
242f55e624aSEtienne Carriere
243f55e624aSEtienne Carriere				standby-ddr-sr {
244f55e624aSEtienne Carriere					regulator-off-in-suspend;
245f55e624aSEtienne Carriere				};
246f55e624aSEtienne Carriere				standby-ddr-off {
247f55e624aSEtienne Carriere					regulator-off-in-suspend;
248f55e624aSEtienne Carriere				};
249f55e624aSEtienne Carriere			};
250f55e624aSEtienne Carriere
251f55e624aSEtienne Carriere			unused1: ldo2 {
252f55e624aSEtienne Carriere				regulator-name = "ldo2";
253f55e624aSEtienne Carriere			};
254f55e624aSEtienne Carriere
255f55e624aSEtienne Carriere			unused2: ldo3 {
256f55e624aSEtienne Carriere				regulator-name = "ldo3";
257f55e624aSEtienne Carriere			};
258f55e624aSEtienne Carriere
259f55e624aSEtienne Carriere			vdd_usb: ldo4 {
260f55e624aSEtienne Carriere				regulator-name = "vdd_usb";
261f55e624aSEtienne Carriere				regulator-min-microvolt = <3300000>;
262f55e624aSEtienne Carriere				regulator-max-microvolt = <3300000>;
263f55e624aSEtienne Carriere
264f55e624aSEtienne Carriere				standby-ddr-sr {
265f55e624aSEtienne Carriere					regulator-off-in-suspend;
266f55e624aSEtienne Carriere				};
267f55e624aSEtienne Carriere				standby-ddr-off {
268f55e624aSEtienne Carriere					regulator-off-in-suspend;
269f55e624aSEtienne Carriere				};
270f55e624aSEtienne Carriere			};
271f55e624aSEtienne Carriere
272f55e624aSEtienne Carriere			vdd_sd: ldo5 {
273f55e624aSEtienne Carriere				regulator-name = "vdd_sd";
274f55e624aSEtienne Carriere				regulator-min-microvolt = <3300000>;
275f55e624aSEtienne Carriere				regulator-max-microvolt = <3300000>;
276f55e624aSEtienne Carriere				regulator-boot-on;
277f55e624aSEtienne Carriere
278f55e624aSEtienne Carriere				standby-ddr-sr {
279f55e624aSEtienne Carriere					regulator-off-in-suspend;
280f55e624aSEtienne Carriere				};
281f55e624aSEtienne Carriere				standby-ddr-off {
282f55e624aSEtienne Carriere					regulator-off-in-suspend;
283f55e624aSEtienne Carriere				};
284f55e624aSEtienne Carriere			};
285f55e624aSEtienne Carriere
286f55e624aSEtienne Carriere			v1v8_periph: ldo6 {
287f55e624aSEtienne Carriere				regulator-name = "v1v8_periph";
288f55e624aSEtienne Carriere				regulator-min-microvolt = <1800000>;
289f55e624aSEtienne Carriere				regulator-max-microvolt = <1800000>;
290f55e624aSEtienne Carriere
291f55e624aSEtienne Carriere				standby-ddr-sr {
292f55e624aSEtienne Carriere					regulator-off-in-suspend;
293f55e624aSEtienne Carriere				};
294f55e624aSEtienne Carriere				standby-ddr-off {
295f55e624aSEtienne Carriere					regulator-off-in-suspend;
296f55e624aSEtienne Carriere				};
297f55e624aSEtienne Carriere			};
298f55e624aSEtienne Carriere
299f55e624aSEtienne Carriere			vref_ddr: vref_ddr {
300f55e624aSEtienne Carriere				regulator-name = "vref_ddr";
301f55e624aSEtienne Carriere				regulator-always-on;
302f55e624aSEtienne Carriere
303f55e624aSEtienne Carriere				standby-ddr-sr {
304f55e624aSEtienne Carriere					regulator-off-in-suspend;
305f55e624aSEtienne Carriere				};
306f55e624aSEtienne Carriere				standby-ddr-off {
307f55e624aSEtienne Carriere					regulator-off-in-suspend;
308f55e624aSEtienne Carriere				};
309f55e624aSEtienne Carriere			};
310f55e624aSEtienne Carriere
311f55e624aSEtienne Carriere			bst_out: boost {
312f55e624aSEtienne Carriere				regulator-name = "bst_out";
313f55e624aSEtienne Carriere			};
314f55e624aSEtienne Carriere
315f55e624aSEtienne Carriere			v3v3_sw: pwr_sw2 {
316f55e624aSEtienne Carriere				regulator-name = "v3v3_sw";
317f55e624aSEtienne Carriere				regulator-active-discharge = <1>;
318f55e624aSEtienne Carriere				regulator-min-microvolt = <3300000>;
319f55e624aSEtienne Carriere				regulator-max-microvolt = <3300000>;
320f55e624aSEtienne Carriere			};
321f55e624aSEtienne Carriere		};
322f55e624aSEtienne Carriere	};
323f55e624aSEtienne Carriere};
324f55e624aSEtienne Carriere
325f55e624aSEtienne Carriere&iwdg1 {
326f55e624aSEtienne Carriere	timeout-sec = <32>;
327f55e624aSEtienne Carriere	status = "okay";
328f55e624aSEtienne Carriere};
329f55e624aSEtienne Carriere
3300ec45216SGatien Chevallier&oem_enc_key {
3310ec45216SGatien Chevallier	st,non-secure-otp-provisioning;
3320ec45216SGatien Chevallier};
3330ec45216SGatien Chevallier
33414744162SThomas Bourgoin&pka {
33514744162SThomas Bourgoin	status = "okay";
33614744162SThomas Bourgoin};
33714744162SThomas Bourgoin
338f55e624aSEtienne Carriere&pwr_regulators {
339f55e624aSEtienne Carriere	vdd-supply = <&vdd>;
340f55e624aSEtienne Carriere	vdd_3v3_usbfs-supply = <&vdd_usb>;
341f55e624aSEtienne Carriere};
342f55e624aSEtienne Carriere
34340cc9401SGatien Chevallier&rcc {
34440cc9401SGatien Chevallier	compatible = "st,stm32mp13-rcc", "syscon";
34540cc9401SGatien Chevallier
34640cc9401SGatien Chevallier	st,clksrc = <
34740cc9401SGatien Chevallier		CLK_MPU_PLL1P
34840cc9401SGatien Chevallier		CLK_AXI_PLL2P
34940cc9401SGatien Chevallier		CLK_MLAHBS_PLL3
35040cc9401SGatien Chevallier		CLK_RTC_LSE
35140cc9401SGatien Chevallier		CLK_MCO1_HSE
35240cc9401SGatien Chevallier		CLK_MCO2_DISABLED
35340cc9401SGatien Chevallier		CLK_CKPER_HSE
35440cc9401SGatien Chevallier		CLK_ETH1_PLL4P
35540cc9401SGatien Chevallier		CLK_ETH2_PLL4P
35640cc9401SGatien Chevallier		CLK_SDMMC1_PLL4P
35740cc9401SGatien Chevallier		CLK_SDMMC2_PLL4P
35840cc9401SGatien Chevallier		CLK_STGEN_HSE
35940cc9401SGatien Chevallier		CLK_USBPHY_HSE
36040cc9401SGatien Chevallier		CLK_I2C4_HSI
361f55e624aSEtienne Carriere		CLK_I2C5_HSI
36240cc9401SGatien Chevallier		CLK_USBO_USBPHY
36340cc9401SGatien Chevallier		CLK_ADC2_CKPER
36440cc9401SGatien Chevallier		CLK_I2C12_HSI
36540cc9401SGatien Chevallier		CLK_UART1_HSI
36640cc9401SGatien Chevallier		CLK_UART2_HSI
36740cc9401SGatien Chevallier		CLK_UART35_HSI
36840cc9401SGatien Chevallier		CLK_UART4_HSI
36940cc9401SGatien Chevallier		CLK_UART6_HSI
37040cc9401SGatien Chevallier		CLK_UART78_HSI
37140cc9401SGatien Chevallier		CLK_SAES_AXI
37240cc9401SGatien Chevallier		CLK_DCMIPP_PLL2Q
37340cc9401SGatien Chevallier		CLK_LPTIM3_PCLK3
37440cc9401SGatien Chevallier		CLK_RNG1_PLL4R
37540cc9401SGatien Chevallier	>;
37640cc9401SGatien Chevallier
37740cc9401SGatien Chevallier	st,clkdiv = <
37840cc9401SGatien Chevallier		DIV(DIV_MPU, 1)
37940cc9401SGatien Chevallier		DIV(DIV_AXI, 0)
38040cc9401SGatien Chevallier		DIV(DIV_MLAHB, 0)
38140cc9401SGatien Chevallier		DIV(DIV_APB1, 1)
38240cc9401SGatien Chevallier		DIV(DIV_APB2, 1)
38340cc9401SGatien Chevallier		DIV(DIV_APB3, 1)
38440cc9401SGatien Chevallier		DIV(DIV_APB4, 1)
38540cc9401SGatien Chevallier		DIV(DIV_APB5, 2)
38640cc9401SGatien Chevallier		DIV(DIV_APB6, 1)
38740cc9401SGatien Chevallier		DIV(DIV_RTC, 0)
38840cc9401SGatien Chevallier		DIV(DIV_MCO1, 0)
38940cc9401SGatien Chevallier		DIV(DIV_MCO2, 0)
39040cc9401SGatien Chevallier	>;
39140cc9401SGatien Chevallier
39240cc9401SGatien Chevallier	st,pll_vco {
39340cc9401SGatien Chevallier		pll1_vco_2000Mhz: pll1-vco-2000Mhz {
39440cc9401SGatien Chevallier			src = <CLK_PLL12_HSE>;
39540cc9401SGatien Chevallier			divmn = <1 82>;
39640cc9401SGatien Chevallier			frac = <0xAAA>;
39740cc9401SGatien Chevallier		};
39840cc9401SGatien Chevallier
399fb484158SPascal Paillet		pll1_vco_1800Mhz: pll1-vco-1800Mhz {
400fb484158SPascal Paillet			src = <CLK_PLL12_HSE>;
401fb484158SPascal Paillet			divmn = <1 74>;
402fb484158SPascal Paillet			frac = <0>;
403fb484158SPascal Paillet		};
404fb484158SPascal Paillet
40540cc9401SGatien Chevallier		pll1_vco_1300Mhz: pll1-vco-1300Mhz {
40640cc9401SGatien Chevallier			src = <CLK_PLL12_HSE>;
40740cc9401SGatien Chevallier			divmn = <2 80>;
40840cc9401SGatien Chevallier			frac = <0x800>;
40940cc9401SGatien Chevallier		};
41040cc9401SGatien Chevallier
41140cc9401SGatien Chevallier		pll2_vco_1066Mhz: pll2-vco-1066Mhz {
41240cc9401SGatien Chevallier			src = <CLK_PLL12_HSE>;
41340cc9401SGatien Chevallier			divmn = <2 65>;
41440cc9401SGatien Chevallier			frac = <0x1400>;
41540cc9401SGatien Chevallier		};
41640cc9401SGatien Chevallier
417f55e624aSEtienne Carriere		pll3_vco_417Mhz: pll3-vco-417Mhz {
41840cc9401SGatien Chevallier			src = <CLK_PLL3_HSE>;
41940cc9401SGatien Chevallier			divmn = <1 33>;
42040cc9401SGatien Chevallier			frac = <0x1a04>;
42140cc9401SGatien Chevallier		};
42240cc9401SGatien Chevallier
42340cc9401SGatien Chevallier		pll4_vco_600Mhz: pll4-vco-600Mhz {
42440cc9401SGatien Chevallier			src = <CLK_PLL4_HSE>;
42540cc9401SGatien Chevallier			divmn = <1 49>;
42640cc9401SGatien Chevallier		};
42740cc9401SGatien Chevallier	};
42840cc9401SGatien Chevallier
42940cc9401SGatien Chevallier	/* VCO = 1300.0 MHz => P = 650 (CPU) */
43040cc9401SGatien Chevallier	pll1: st,pll@0 {
43140cc9401SGatien Chevallier		compatible = "st,stm32mp1-pll";
43240cc9401SGatien Chevallier		reg = <0>;
43340cc9401SGatien Chevallier
43440cc9401SGatien Chevallier		st,pll = <&pll1_cfg1>;
43540cc9401SGatien Chevallier
43640cc9401SGatien Chevallier		pll1_cfg1: pll1_cfg1 {
43740cc9401SGatien Chevallier			st,pll_vco = <&pll1_vco_1300Mhz>;
43840cc9401SGatien Chevallier			st,pll_div_pqr = <0 1 1>;
43940cc9401SGatien Chevallier		};
44040cc9401SGatien Chevallier
44140cc9401SGatien Chevallier		pll1_cfg2: pll1_cfg2 {
44240cc9401SGatien Chevallier			st,pll_vco = <&pll1_vco_2000Mhz>;
44340cc9401SGatien Chevallier			st,pll_div_pqr = <0 1 1>;
44440cc9401SGatien Chevallier		};
445fb484158SPascal Paillet
446fb484158SPascal Paillet		pll1_cfg3: pll1_cfg3 {
447fb484158SPascal Paillet			st,pll_vco = <&pll1_vco_1800Mhz>;
448fb484158SPascal Paillet			st,pll_div_pqr = <0 1 1>;
449fb484158SPascal Paillet		};
45040cc9401SGatien Chevallier	};
45140cc9401SGatien Chevallier
45240cc9401SGatien Chevallier	/* VCO = 1066.0 MHz => P = 266 (AXI), Q = 266, R = 533 (DDR) */
45340cc9401SGatien Chevallier	pll2: st,pll@1 {
45440cc9401SGatien Chevallier		compatible = "st,stm32mp1-pll";
45540cc9401SGatien Chevallier		reg = <1>;
45640cc9401SGatien Chevallier
45740cc9401SGatien Chevallier		st,pll = <&pll2_cfg1>;
45840cc9401SGatien Chevallier
45940cc9401SGatien Chevallier		pll2_cfg1: pll2_cfg1 {
46040cc9401SGatien Chevallier			st,pll_vco = <&pll2_vco_1066Mhz>;
46140cc9401SGatien Chevallier			st,pll_div_pqr = <1 1 0>;
46240cc9401SGatien Chevallier		};
46340cc9401SGatien Chevallier	};
46440cc9401SGatien Chevallier
46540cc9401SGatien Chevallier	/* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
46640cc9401SGatien Chevallier	pll3: st,pll@2 {
46740cc9401SGatien Chevallier		compatible = "st,stm32mp1-pll";
46840cc9401SGatien Chevallier		reg = <2>;
46940cc9401SGatien Chevallier
47040cc9401SGatien Chevallier		st,pll = <&pll3_cfg1>;
47140cc9401SGatien Chevallier
47240cc9401SGatien Chevallier		pll3_cfg1: pll3_cfg1 {
473f55e624aSEtienne Carriere			st,pll_vco = <&pll3_vco_417Mhz>;
47440cc9401SGatien Chevallier			st,pll_div_pqr = <1 16 36>;
47540cc9401SGatien Chevallier		};
47640cc9401SGatien Chevallier	};
47740cc9401SGatien Chevallier
47840cc9401SGatien Chevallier	/* VCO = 600.0 MHz => P = 50, Q = 10, R = 50 */
47940cc9401SGatien Chevallier	pll4: st,pll@3 {
48040cc9401SGatien Chevallier		compatible = "st,stm32mp1-pll";
48140cc9401SGatien Chevallier		reg = <3>;
48240cc9401SGatien Chevallier		st,pll = <&pll4_cfg1>;
48340cc9401SGatien Chevallier
48440cc9401SGatien Chevallier		pll4_cfg1: pll4_cfg1 {
48540cc9401SGatien Chevallier			st,pll_vco = <&pll4_vco_600Mhz>;
48640cc9401SGatien Chevallier			st,pll_div_pqr = <11 59 11>;
48740cc9401SGatien Chevallier		};
48840cc9401SGatien Chevallier	};
48940cc9401SGatien Chevallier
49040cc9401SGatien Chevallier	st,clk_opp {
49140cc9401SGatien Chevallier		/* CK_MPU clock config for MP13 */
49240cc9401SGatien Chevallier		st,ck_mpu {
49340cc9401SGatien Chevallier			cfg_1 {
49440cc9401SGatien Chevallier				hz = <650000000>;
49540cc9401SGatien Chevallier				st,clksrc = <CLK_MPU_PLL1P>;
49640cc9401SGatien Chevallier				st,pll = <&pll1_cfg1>;
49740cc9401SGatien Chevallier			};
498f55e624aSEtienne Carriere
499f55e624aSEtienne Carriere			cfg_2 {
500f55e624aSEtienne Carriere				hz = <1000000000>;
501f55e624aSEtienne Carriere				st,clksrc = <CLK_MPU_PLL1P>;
502f55e624aSEtienne Carriere				st,pll = <&pll1_cfg2>;
503f55e624aSEtienne Carriere			};
504fb484158SPascal Paillet
505fb484158SPascal Paillet			cfg_3 {
506fb484158SPascal Paillet				hz = <900000000>;
507fb484158SPascal Paillet				st,clksrc = <CLK_MPU_PLL1P>;
508fb484158SPascal Paillet				st,pll = <&pll1_cfg3>;
509fb484158SPascal Paillet			};
51040cc9401SGatien Chevallier		};
51140cc9401SGatien Chevallier	};
51240cc9401SGatien Chevallier};
51340cc9401SGatien Chevallier
514eb243bceSGatien Chevallier&rng {
515eb243bceSGatien Chevallier	status = "okay";
516eb243bceSGatien Chevallier	clock-error-detect;
517eb243bceSGatien Chevallier};
518eb243bceSGatien Chevallier
519f55e624aSEtienne Carriere&saes {
520f55e624aSEtienne Carriere	status = "okay";
521f55e624aSEtienne Carriere};
522f55e624aSEtienne Carriere
523053956b0SEtienne Carriere&sdmmc1_io {
524053956b0SEtienne Carriere	vddsd1-supply = <&vdd>;
525053956b0SEtienne Carriere};
526053956b0SEtienne Carriere
527053956b0SEtienne Carriere&sdmmc2_io {
528053956b0SEtienne Carriere	vddsd2-supply = <&vdd>;
529053956b0SEtienne Carriere};
530053956b0SEtienne Carriere
531*506dc87bSGatien Chevallier&tamp {
532*506dc87bSGatien Chevallier	st,tamp-passive-nb-sample = <4>;
533*506dc87bSGatien Chevallier	st,tamp-passive-sample-clk-div = <16384>;
534*506dc87bSGatien Chevallier	wakeup-source;
535*506dc87bSGatien Chevallier
536*506dc87bSGatien Chevallier	/* Tamper button */
537*506dc87bSGatien Chevallier	tamp-button {
538*506dc87bSGatien Chevallier		tamper-gpios = <&gpioa 6 0>;
539*506dc87bSGatien Chevallier		st,tamp-mode = <TAMPER_CONFIRMED_MODE>;
540*506dc87bSGatien Chevallier		st,tamp-id = <2>;
541*506dc87bSGatien Chevallier		status = "okay";
542*506dc87bSGatien Chevallier	};
543*506dc87bSGatien Chevallier
544*506dc87bSGatien Chevallier	/* Connect pin8 and pin22 from CN8 */
545*506dc87bSGatien Chevallier	tamp-active {
546*506dc87bSGatien Chevallier		tamper-gpios = <&gpioc 0 0>, <&gpioi 0 0>;
547*506dc87bSGatien Chevallier		st,tamp-mode = <TAMPER_CONFIRMED_MODE>;
548*506dc87bSGatien Chevallier		st,tamp-id = <3>, <1>;
549*506dc87bSGatien Chevallier		status = "disabled";
550*506dc87bSGatien Chevallier	};
551*506dc87bSGatien Chevallier};
552*506dc87bSGatien Chevallier
55378363cc5SGatien Chevallier&tzc400 {
55478363cc5SGatien Chevallier	memory-region = <&optee_framebuffer>;
55578363cc5SGatien Chevallier};
55678363cc5SGatien Chevallier
55740cc9401SGatien Chevallier&uart4 {
55840cc9401SGatien Chevallier	pinctrl-names = "default";
55940cc9401SGatien Chevallier	pinctrl-0 = <&uart4_pins_a>;
56040cc9401SGatien Chevallier	status = "okay";
56140cc9401SGatien Chevallier};
56240cc9401SGatien Chevallier
56340cc9401SGatien Chevallier&usart1 {
56440cc9401SGatien Chevallier	pinctrl-names = "default";
56540cc9401SGatien Chevallier	pinctrl-0 = <&usart1_pins_a>;
56640cc9401SGatien Chevallier	uart-has-rtscts;
56740cc9401SGatien Chevallier	status = "disabled";
56840cc9401SGatien Chevallier};
569