xref: /freebsd-src/sys/contrib/device-tree/src/arm/st/stm32mp157c-ed1-scmi.dts (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright (C) STMicroelectronics 2022 - All Rights Reserved
4f126890aSEmmanuel Vadot * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
5f126890aSEmmanuel Vadot */
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadot/dts-v1/;
8f126890aSEmmanuel Vadot
9f126890aSEmmanuel Vadot#include "stm32mp157c-ed1.dts"
10f126890aSEmmanuel Vadot#include "stm32mp15-scmi.dtsi"
11f126890aSEmmanuel Vadot
12f126890aSEmmanuel Vadot/ {
13f126890aSEmmanuel Vadot	model = "STMicroelectronics STM32MP157C-ED1 SCMI eval daughter";
148d13bc63SEmmanuel Vadot	compatible = "st,stm32mp157c-ed1-scmi", "st,stm32mp157";
15f126890aSEmmanuel Vadot
16f126890aSEmmanuel Vadot	reserved-memory {
17f126890aSEmmanuel Vadot		optee@fe000000 {
18f126890aSEmmanuel Vadot			reg = <0xfe000000 0x2000000>;
19f126890aSEmmanuel Vadot			no-map;
20f126890aSEmmanuel Vadot		};
21f126890aSEmmanuel Vadot	};
22f126890aSEmmanuel Vadot};
23f126890aSEmmanuel Vadot
24f126890aSEmmanuel Vadot&cpu0 {
25f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_MPU>;
26f126890aSEmmanuel Vadot};
27f126890aSEmmanuel Vadot
28f126890aSEmmanuel Vadot&cpu1 {
29f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_MPU>;
30f126890aSEmmanuel Vadot};
31f126890aSEmmanuel Vadot
32f126890aSEmmanuel Vadot&cryp1 {
33f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_CRYP1>;
34f126890aSEmmanuel Vadot	resets = <&scmi_reset RST_SCMI_CRYP1>;
35f126890aSEmmanuel Vadot};
36f126890aSEmmanuel Vadot
37f126890aSEmmanuel Vadot&dsi {
3801950c46SEmmanuel Vadot	clocks = <&rcc DSI>, <&scmi_clk CK_SCMI_HSE>, <&rcc DSI_PX>;
39f126890aSEmmanuel Vadot};
40f126890aSEmmanuel Vadot
41f126890aSEmmanuel Vadot&gpioz {
42f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_GPIOZ>;
43f126890aSEmmanuel Vadot};
44f126890aSEmmanuel Vadot
45f126890aSEmmanuel Vadot&hash1 {
46f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_HASH1>;
47f126890aSEmmanuel Vadot	resets = <&scmi_reset RST_SCMI_HASH1>;
48f126890aSEmmanuel Vadot};
49f126890aSEmmanuel Vadot
50f126890aSEmmanuel Vadot&i2c4 {
51f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_I2C4>;
52f126890aSEmmanuel Vadot	resets = <&scmi_reset RST_SCMI_I2C4>;
53f126890aSEmmanuel Vadot};
54f126890aSEmmanuel Vadot
55f126890aSEmmanuel Vadot&iwdg2 {
56f126890aSEmmanuel Vadot	clocks = <&rcc IWDG2>, <&scmi_clk CK_SCMI_LSI>;
57f126890aSEmmanuel Vadot};
58f126890aSEmmanuel Vadot
59f126890aSEmmanuel Vadot&mdma1 {
60f126890aSEmmanuel Vadot	resets = <&scmi_reset RST_SCMI_MDMA>;
61f126890aSEmmanuel Vadot};
62f126890aSEmmanuel Vadot
63f126890aSEmmanuel Vadot&m4_rproc {
64f126890aSEmmanuel Vadot	/delete-property/ st,syscfg-holdboot;
65f126890aSEmmanuel Vadot	resets = <&scmi_reset RST_SCMI_MCU>,
66f126890aSEmmanuel Vadot		 <&scmi_reset RST_SCMI_MCU_HOLD_BOOT>;
67f126890aSEmmanuel Vadot	reset-names = "mcu_rst", "hold_boot";
68f126890aSEmmanuel Vadot};
69f126890aSEmmanuel Vadot
70*0e8011faSEmmanuel Vadot&optee {
71*0e8011faSEmmanuel Vadot	interrupt-parent = <&intc>;
72*0e8011faSEmmanuel Vadot	interrupts = <GIC_PPI 15 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
73*0e8011faSEmmanuel Vadot};
74*0e8011faSEmmanuel Vadot
75f126890aSEmmanuel Vadot&rcc {
76f126890aSEmmanuel Vadot	compatible = "st,stm32mp1-rcc-secure", "syscon";
77f126890aSEmmanuel Vadot	clock-names = "hse", "hsi", "csi", "lse", "lsi";
78f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_HSE>,
79f126890aSEmmanuel Vadot		 <&scmi_clk CK_SCMI_HSI>,
80f126890aSEmmanuel Vadot		 <&scmi_clk CK_SCMI_CSI>,
81f126890aSEmmanuel Vadot		 <&scmi_clk CK_SCMI_LSE>,
82f126890aSEmmanuel Vadot		 <&scmi_clk CK_SCMI_LSI>;
83f126890aSEmmanuel Vadot};
84f126890aSEmmanuel Vadot
85f126890aSEmmanuel Vadot&rng1 {
86f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_RNG1>;
87f126890aSEmmanuel Vadot	resets = <&scmi_reset RST_SCMI_RNG1>;
88f126890aSEmmanuel Vadot};
89f126890aSEmmanuel Vadot
90f126890aSEmmanuel Vadot&rtc {
91f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
92f126890aSEmmanuel Vadot};
93