xref: /linux/arch/arm64/boot/dts/st/stm32mp211.dtsi (revision 7b26feb436d2ef5db1e8ba82c7ecb4c1cc869502)
17a57b1bbSAlexandre Torgue// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
27a57b1bbSAlexandre Torgue/*
37a57b1bbSAlexandre Torgue * Copyright (C) STMicroelectronics 2025 - All Rights Reserved
47a57b1bbSAlexandre Torgue * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
57a57b1bbSAlexandre Torgue */
67a57b1bbSAlexandre Torgue#include <dt-bindings/interrupt-controller/arm-gic.h>
77a57b1bbSAlexandre Torgue
87a57b1bbSAlexandre Torgue/ {
97a57b1bbSAlexandre Torgue	#address-cells = <2>;
107a57b1bbSAlexandre Torgue	#size-cells = <2>;
117a57b1bbSAlexandre Torgue
127a57b1bbSAlexandre Torgue	cpus {
137a57b1bbSAlexandre Torgue		#address-cells = <1>;
147a57b1bbSAlexandre Torgue		#size-cells = <0>;
157a57b1bbSAlexandre Torgue
167a57b1bbSAlexandre Torgue		cpu0: cpu@0 {
177a57b1bbSAlexandre Torgue			compatible = "arm,cortex-a35";
187a57b1bbSAlexandre Torgue			reg = <0>;
197a57b1bbSAlexandre Torgue			device_type = "cpu";
207a57b1bbSAlexandre Torgue			enable-method = "psci";
217a57b1bbSAlexandre Torgue		};
227a57b1bbSAlexandre Torgue	};
237a57b1bbSAlexandre Torgue
247a57b1bbSAlexandre Torgue	arm-pmu {
257a57b1bbSAlexandre Torgue		compatible = "arm,cortex-a35-pmu";
267a57b1bbSAlexandre Torgue		interrupts = <GIC_SPI 368 IRQ_TYPE_LEVEL_HIGH>;
277a57b1bbSAlexandre Torgue		interrupt-affinity = <&cpu0>;
287a57b1bbSAlexandre Torgue		interrupt-parent = <&intc>;
297a57b1bbSAlexandre Torgue	};
307a57b1bbSAlexandre Torgue
317a57b1bbSAlexandre Torgue	arm_wdt: watchdog {
327a57b1bbSAlexandre Torgue		compatible = "arm,smc-wdt";
337a57b1bbSAlexandre Torgue		arm,smc-id = <0xbc000000>;
347a57b1bbSAlexandre Torgue		status = "disabled";
357a57b1bbSAlexandre Torgue	};
367a57b1bbSAlexandre Torgue
377a57b1bbSAlexandre Torgue	ck_flexgen_08: clock-64000000 {
387a57b1bbSAlexandre Torgue		compatible = "fixed-clock";
397a57b1bbSAlexandre Torgue		#clock-cells = <0>;
407a57b1bbSAlexandre Torgue		clock-frequency = <64000000>;
417a57b1bbSAlexandre Torgue	};
427a57b1bbSAlexandre Torgue
437a57b1bbSAlexandre Torgue	ck_flexgen_51: clock-200000000 {
447a57b1bbSAlexandre Torgue		compatible = "fixed-clock";
457a57b1bbSAlexandre Torgue		#clock-cells = <0>;
467a57b1bbSAlexandre Torgue		clock-frequency = <200000000>;
477a57b1bbSAlexandre Torgue	};
487a57b1bbSAlexandre Torgue
497a57b1bbSAlexandre Torgue	firmware {
507a57b1bbSAlexandre Torgue		optee {
517a57b1bbSAlexandre Torgue			compatible = "linaro,optee-tz";
527a57b1bbSAlexandre Torgue			method = "smc";
537a57b1bbSAlexandre Torgue		};
547a57b1bbSAlexandre Torgue
557a57b1bbSAlexandre Torgue		scmi: scmi {
567a57b1bbSAlexandre Torgue			compatible = "linaro,scmi-optee";
577a57b1bbSAlexandre Torgue			#address-cells = <1>;
587a57b1bbSAlexandre Torgue			#size-cells = <0>;
597a57b1bbSAlexandre Torgue			linaro,optee-channel-id = <0>;
607a57b1bbSAlexandre Torgue
617a57b1bbSAlexandre Torgue			scmi_clk: protocol@14 {
627a57b1bbSAlexandre Torgue				reg = <0x14>;
637a57b1bbSAlexandre Torgue				#clock-cells = <1>;
647a57b1bbSAlexandre Torgue			};
657a57b1bbSAlexandre Torgue
667a57b1bbSAlexandre Torgue			scmi_reset: protocol@16 {
677a57b1bbSAlexandre Torgue				reg = <0x16>;
687a57b1bbSAlexandre Torgue				#reset-cells = <1>;
697a57b1bbSAlexandre Torgue			};
707a57b1bbSAlexandre Torgue		};
717a57b1bbSAlexandre Torgue	};
727a57b1bbSAlexandre Torgue
737a57b1bbSAlexandre Torgue	psci {
747a57b1bbSAlexandre Torgue		compatible = "arm,psci-1.0";
757a57b1bbSAlexandre Torgue		method = "smc";
767a57b1bbSAlexandre Torgue	};
777a57b1bbSAlexandre Torgue
787a57b1bbSAlexandre Torgue	timer {
797a57b1bbSAlexandre Torgue		compatible = "arm,armv8-timer";
807a57b1bbSAlexandre Torgue		interrupt-parent = <&intc>;
817a57b1bbSAlexandre Torgue		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
827a57b1bbSAlexandre Torgue			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
837a57b1bbSAlexandre Torgue			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
847a57b1bbSAlexandre Torgue			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>;
857a57b1bbSAlexandre Torgue		arm,no-tick-in-suspend;
867a57b1bbSAlexandre Torgue	};
877a57b1bbSAlexandre Torgue
887a57b1bbSAlexandre Torgue	soc@0 {
897a57b1bbSAlexandre Torgue		compatible = "simple-bus";
907a57b1bbSAlexandre Torgue		ranges = <0x0 0x0 0x0 0x0 0x80000000>;
917a57b1bbSAlexandre Torgue		dma-ranges = <0x0 0x0 0x80000000 0x1 0x0>;
927a57b1bbSAlexandre Torgue		interrupt-parent = <&intc>;
937a57b1bbSAlexandre Torgue		#address-cells = <1>;
947a57b1bbSAlexandre Torgue		#size-cells = <2>;
957a57b1bbSAlexandre Torgue
967a57b1bbSAlexandre Torgue		rifsc: bus@42080000 {
977a57b1bbSAlexandre Torgue			compatible = "simple-bus";
987a57b1bbSAlexandre Torgue			reg = <0x42080000 0x0 0x1000>;
997a57b1bbSAlexandre Torgue			ranges;
1007a57b1bbSAlexandre Torgue			dma-ranges;
1017a57b1bbSAlexandre Torgue			#address-cells = <1>;
1027a57b1bbSAlexandre Torgue			#size-cells = <2>;
1037a57b1bbSAlexandre Torgue
1047a57b1bbSAlexandre Torgue			usart2: serial@400e0000 {
1057a57b1bbSAlexandre Torgue				compatible = "st,stm32h7-uart";
1067a57b1bbSAlexandre Torgue				reg = <0x400e0000 0x0 0x400>;
1077a57b1bbSAlexandre Torgue				interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
1087a57b1bbSAlexandre Torgue				clocks = <&ck_flexgen_08>;
1097a57b1bbSAlexandre Torgue				status = "disabled";
1107a57b1bbSAlexandre Torgue			};
1117a57b1bbSAlexandre Torgue		};
1127a57b1bbSAlexandre Torgue
1137a57b1bbSAlexandre Torgue		syscfg: syscon@44230000 {
1147a57b1bbSAlexandre Torgue			compatible = "st,stm32mp21-syscfg", "syscon";
1157a57b1bbSAlexandre Torgue			reg = <0x44230000 0x0 0x10000>;
1167a57b1bbSAlexandre Torgue		};
1177a57b1bbSAlexandre Torgue
1187a57b1bbSAlexandre Torgue		intc: interrupt-controller@4ac10000 {
11902dc83f0SChristian Bruel			compatible = "arm,gic-400";
1207a57b1bbSAlexandre Torgue			reg = <0x4ac10000 0x0 0x1000>,
121*1bc229e9SChristian Bruel			      <0x4ac20000 0x0 0x20000>,
122*1bc229e9SChristian Bruel			      <0x4ac40000 0x0 0x20000>,
123*1bc229e9SChristian Bruel			      <0x4ac60000 0x0 0x20000>;
1247a57b1bbSAlexandre Torgue			      #interrupt-cells = <3>;
1257a57b1bbSAlexandre Torgue			      interrupt-controller;
1267a57b1bbSAlexandre Torgue		};
1277a57b1bbSAlexandre Torgue	};
1287a57b1bbSAlexandre Torgue};
129