xref: /freebsd-src/sys/contrib/device-tree/src/arm/st/stm32mp157c-dk2-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-dk2.dts"
10f126890aSEmmanuel Vadot#include "stm32mp15-scmi.dtsi"
11f126890aSEmmanuel Vadot
12f126890aSEmmanuel Vadot/ {
13f126890aSEmmanuel Vadot	model = "STMicroelectronics STM32MP157C-DK2 SCMI Discovery Board";
148d13bc63SEmmanuel Vadot	compatible = "st,stm32mp157c-dk2-scmi", "st,stm32mp157";
15f126890aSEmmanuel Vadot
16f126890aSEmmanuel Vadot	reserved-memory {
17f126890aSEmmanuel Vadot		optee@de000000 {
18f126890aSEmmanuel Vadot			reg = <0xde000000 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 {
38f126890aSEmmanuel Vadot	phy-dsi-supply = <&scmi_reg18>;
3901950c46SEmmanuel Vadot	clocks = <&rcc DSI>, <&scmi_clk CK_SCMI_HSE>, <&rcc DSI_PX>;
40f126890aSEmmanuel Vadot};
41f126890aSEmmanuel Vadot
42f126890aSEmmanuel Vadot&gpioz {
43f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_GPIOZ>;
44f126890aSEmmanuel Vadot};
45f126890aSEmmanuel Vadot
46f126890aSEmmanuel Vadot&hash1 {
47f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_HASH1>;
48f126890aSEmmanuel Vadot	resets = <&scmi_reset RST_SCMI_HASH1>;
49f126890aSEmmanuel Vadot};
50f126890aSEmmanuel Vadot
51f126890aSEmmanuel Vadot&i2c4 {
52f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_I2C4>;
53f126890aSEmmanuel Vadot	resets = <&scmi_reset RST_SCMI_I2C4>;
54f126890aSEmmanuel Vadot};
55f126890aSEmmanuel Vadot
56f126890aSEmmanuel Vadot&iwdg2 {
57f126890aSEmmanuel Vadot	clocks = <&rcc IWDG2>, <&scmi_clk CK_SCMI_LSI>;
58f126890aSEmmanuel Vadot};
59f126890aSEmmanuel Vadot
60f126890aSEmmanuel Vadot&mdma1 {
61f126890aSEmmanuel Vadot	resets = <&scmi_reset RST_SCMI_MDMA>;
62f126890aSEmmanuel Vadot};
63f126890aSEmmanuel Vadot
64f126890aSEmmanuel Vadot&m4_rproc {
65f126890aSEmmanuel Vadot	/delete-property/ st,syscfg-holdboot;
66f126890aSEmmanuel Vadot	resets = <&scmi_reset RST_SCMI_MCU>,
67f126890aSEmmanuel Vadot		 <&scmi_reset RST_SCMI_MCU_HOLD_BOOT>;
68f126890aSEmmanuel Vadot	reset-names = "mcu_rst", "hold_boot";
69f126890aSEmmanuel Vadot};
70f126890aSEmmanuel Vadot
71*0e8011faSEmmanuel Vadot&optee {
72*0e8011faSEmmanuel Vadot	interrupt-parent = <&intc>;
73*0e8011faSEmmanuel Vadot	interrupts = <GIC_PPI 15 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
74*0e8011faSEmmanuel Vadot};
75*0e8011faSEmmanuel Vadot
76f126890aSEmmanuel Vadot&rcc {
77f126890aSEmmanuel Vadot	compatible = "st,stm32mp1-rcc-secure", "syscon";
78f126890aSEmmanuel Vadot	clock-names = "hse", "hsi", "csi", "lse", "lsi";
79f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_HSE>,
80f126890aSEmmanuel Vadot		 <&scmi_clk CK_SCMI_HSI>,
81f126890aSEmmanuel Vadot		 <&scmi_clk CK_SCMI_CSI>,
82f126890aSEmmanuel Vadot		 <&scmi_clk CK_SCMI_LSE>,
83f126890aSEmmanuel Vadot		 <&scmi_clk CK_SCMI_LSI>;
84f126890aSEmmanuel Vadot};
85f126890aSEmmanuel Vadot
86f126890aSEmmanuel Vadot&rng1 {
87f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_RNG1>;
88f126890aSEmmanuel Vadot	resets = <&scmi_reset RST_SCMI_RNG1>;
89f126890aSEmmanuel Vadot};
90f126890aSEmmanuel Vadot
91f126890aSEmmanuel Vadot&rtc {
92f126890aSEmmanuel Vadot	clocks = <&scmi_clk CK_SCMI_RTCAPB>, <&scmi_clk CK_SCMI_RTC>;
93f126890aSEmmanuel Vadot};
94