xref: /linux/scripts/dtc/include-prefixes/arm64/st/stm32mp211.dtsi (revision 7a57b1bb1afbfbb21d0445f68a032c8591b7c9c1)
1*7a57b1bbSAlexandre Torgue// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2*7a57b1bbSAlexandre Torgue/*
3*7a57b1bbSAlexandre Torgue * Copyright (C) STMicroelectronics 2025 - All Rights Reserved
4*7a57b1bbSAlexandre Torgue * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
5*7a57b1bbSAlexandre Torgue */
6*7a57b1bbSAlexandre Torgue#include <dt-bindings/interrupt-controller/arm-gic.h>
7*7a57b1bbSAlexandre Torgue
8*7a57b1bbSAlexandre Torgue/ {
9*7a57b1bbSAlexandre Torgue	#address-cells = <2>;
10*7a57b1bbSAlexandre Torgue	#size-cells = <2>;
11*7a57b1bbSAlexandre Torgue
12*7a57b1bbSAlexandre Torgue	cpus {
13*7a57b1bbSAlexandre Torgue		#address-cells = <1>;
14*7a57b1bbSAlexandre Torgue		#size-cells = <0>;
15*7a57b1bbSAlexandre Torgue
16*7a57b1bbSAlexandre Torgue		cpu0: cpu@0 {
17*7a57b1bbSAlexandre Torgue			compatible = "arm,cortex-a35";
18*7a57b1bbSAlexandre Torgue			reg = <0>;
19*7a57b1bbSAlexandre Torgue			device_type = "cpu";
20*7a57b1bbSAlexandre Torgue			enable-method = "psci";
21*7a57b1bbSAlexandre Torgue		};
22*7a57b1bbSAlexandre Torgue	};
23*7a57b1bbSAlexandre Torgue
24*7a57b1bbSAlexandre Torgue	arm-pmu {
25*7a57b1bbSAlexandre Torgue		compatible = "arm,cortex-a35-pmu";
26*7a57b1bbSAlexandre Torgue		interrupts = <GIC_SPI 368 IRQ_TYPE_LEVEL_HIGH>;
27*7a57b1bbSAlexandre Torgue		interrupt-affinity = <&cpu0>;
28*7a57b1bbSAlexandre Torgue		interrupt-parent = <&intc>;
29*7a57b1bbSAlexandre Torgue	};
30*7a57b1bbSAlexandre Torgue
31*7a57b1bbSAlexandre Torgue	arm_wdt: watchdog {
32*7a57b1bbSAlexandre Torgue		compatible = "arm,smc-wdt";
33*7a57b1bbSAlexandre Torgue		arm,smc-id = <0xbc000000>;
34*7a57b1bbSAlexandre Torgue		status = "disabled";
35*7a57b1bbSAlexandre Torgue	};
36*7a57b1bbSAlexandre Torgue
37*7a57b1bbSAlexandre Torgue	ck_flexgen_08: clock-64000000 {
38*7a57b1bbSAlexandre Torgue		compatible = "fixed-clock";
39*7a57b1bbSAlexandre Torgue		#clock-cells = <0>;
40*7a57b1bbSAlexandre Torgue		clock-frequency = <64000000>;
41*7a57b1bbSAlexandre Torgue	};
42*7a57b1bbSAlexandre Torgue
43*7a57b1bbSAlexandre Torgue	ck_flexgen_51: clock-200000000 {
44*7a57b1bbSAlexandre Torgue		compatible = "fixed-clock";
45*7a57b1bbSAlexandre Torgue		#clock-cells = <0>;
46*7a57b1bbSAlexandre Torgue		clock-frequency = <200000000>;
47*7a57b1bbSAlexandre Torgue	};
48*7a57b1bbSAlexandre Torgue
49*7a57b1bbSAlexandre Torgue	firmware {
50*7a57b1bbSAlexandre Torgue		optee {
51*7a57b1bbSAlexandre Torgue			compatible = "linaro,optee-tz";
52*7a57b1bbSAlexandre Torgue			method = "smc";
53*7a57b1bbSAlexandre Torgue		};
54*7a57b1bbSAlexandre Torgue
55*7a57b1bbSAlexandre Torgue		scmi: scmi {
56*7a57b1bbSAlexandre Torgue			compatible = "linaro,scmi-optee";
57*7a57b1bbSAlexandre Torgue			#address-cells = <1>;
58*7a57b1bbSAlexandre Torgue			#size-cells = <0>;
59*7a57b1bbSAlexandre Torgue			linaro,optee-channel-id = <0>;
60*7a57b1bbSAlexandre Torgue
61*7a57b1bbSAlexandre Torgue			scmi_clk: protocol@14 {
62*7a57b1bbSAlexandre Torgue				reg = <0x14>;
63*7a57b1bbSAlexandre Torgue				#clock-cells = <1>;
64*7a57b1bbSAlexandre Torgue			};
65*7a57b1bbSAlexandre Torgue
66*7a57b1bbSAlexandre Torgue			scmi_reset: protocol@16 {
67*7a57b1bbSAlexandre Torgue				reg = <0x16>;
68*7a57b1bbSAlexandre Torgue				#reset-cells = <1>;
69*7a57b1bbSAlexandre Torgue			};
70*7a57b1bbSAlexandre Torgue		};
71*7a57b1bbSAlexandre Torgue	};
72*7a57b1bbSAlexandre Torgue
73*7a57b1bbSAlexandre Torgue	psci {
74*7a57b1bbSAlexandre Torgue		compatible = "arm,psci-1.0";
75*7a57b1bbSAlexandre Torgue		method = "smc";
76*7a57b1bbSAlexandre Torgue	};
77*7a57b1bbSAlexandre Torgue
78*7a57b1bbSAlexandre Torgue	timer {
79*7a57b1bbSAlexandre Torgue		compatible = "arm,armv8-timer";
80*7a57b1bbSAlexandre Torgue		interrupt-parent = <&intc>;
81*7a57b1bbSAlexandre Torgue		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
82*7a57b1bbSAlexandre Torgue			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
83*7a57b1bbSAlexandre Torgue			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
84*7a57b1bbSAlexandre Torgue			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>;
85*7a57b1bbSAlexandre Torgue		arm,no-tick-in-suspend;
86*7a57b1bbSAlexandre Torgue	};
87*7a57b1bbSAlexandre Torgue
88*7a57b1bbSAlexandre Torgue	soc@0 {
89*7a57b1bbSAlexandre Torgue		compatible = "simple-bus";
90*7a57b1bbSAlexandre Torgue		ranges = <0x0 0x0 0x0 0x0 0x80000000>;
91*7a57b1bbSAlexandre Torgue		dma-ranges = <0x0 0x0 0x80000000 0x1 0x0>;
92*7a57b1bbSAlexandre Torgue		interrupt-parent = <&intc>;
93*7a57b1bbSAlexandre Torgue		#address-cells = <1>;
94*7a57b1bbSAlexandre Torgue		#size-cells = <2>;
95*7a57b1bbSAlexandre Torgue
96*7a57b1bbSAlexandre Torgue		rifsc: bus@42080000 {
97*7a57b1bbSAlexandre Torgue			compatible = "simple-bus";
98*7a57b1bbSAlexandre Torgue			reg = <0x42080000 0x0 0x1000>;
99*7a57b1bbSAlexandre Torgue			ranges;
100*7a57b1bbSAlexandre Torgue			dma-ranges;
101*7a57b1bbSAlexandre Torgue			#address-cells = <1>;
102*7a57b1bbSAlexandre Torgue			#size-cells = <2>;
103*7a57b1bbSAlexandre Torgue
104*7a57b1bbSAlexandre Torgue			usart2: serial@400e0000 {
105*7a57b1bbSAlexandre Torgue				compatible = "st,stm32h7-uart";
106*7a57b1bbSAlexandre Torgue				reg = <0x400e0000 0x0 0x400>;
107*7a57b1bbSAlexandre Torgue				interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
108*7a57b1bbSAlexandre Torgue				clocks = <&ck_flexgen_08>;
109*7a57b1bbSAlexandre Torgue				status = "disabled";
110*7a57b1bbSAlexandre Torgue			};
111*7a57b1bbSAlexandre Torgue		};
112*7a57b1bbSAlexandre Torgue
113*7a57b1bbSAlexandre Torgue		syscfg: syscon@44230000 {
114*7a57b1bbSAlexandre Torgue			compatible = "st,stm32mp21-syscfg", "syscon";
115*7a57b1bbSAlexandre Torgue			reg = <0x44230000 0x0 0x10000>;
116*7a57b1bbSAlexandre Torgue		};
117*7a57b1bbSAlexandre Torgue
118*7a57b1bbSAlexandre Torgue		intc: interrupt-controller@4ac10000 {
119*7a57b1bbSAlexandre Torgue			compatible = "arm,cortex-a7-gic";
120*7a57b1bbSAlexandre Torgue			reg = <0x4ac10000 0x0 0x1000>,
121*7a57b1bbSAlexandre Torgue			      <0x4ac20000 0x0 0x2000>,
122*7a57b1bbSAlexandre Torgue			      <0x4ac40000 0x0 0x2000>,
123*7a57b1bbSAlexandre Torgue			      <0x4ac60000 0x0 0x2000>;
124*7a57b1bbSAlexandre Torgue			      #interrupt-cells = <3>;
125*7a57b1bbSAlexandre Torgue			      interrupt-controller;
126*7a57b1bbSAlexandre Torgue		};
127*7a57b1bbSAlexandre Torgue	};
128*7a57b1bbSAlexandre Torgue};
129