xref: /freebsd/sys/contrib/device-tree/src/arm64/st/stm32mp233.dtsi (revision 8ccc0d235c226d84112561d453c49904398d085c)
1*8ccc0d23SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2*8ccc0d23SEmmanuel Vadot/*
3*8ccc0d23SEmmanuel Vadot * Copyright (C) STMicroelectronics 2025 - All Rights Reserved
4*8ccc0d23SEmmanuel Vadot * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
5*8ccc0d23SEmmanuel Vadot */
6*8ccc0d23SEmmanuel Vadot#include "stm32mp231.dtsi"
7*8ccc0d23SEmmanuel Vadot
8*8ccc0d23SEmmanuel Vadot/ {
9*8ccc0d23SEmmanuel Vadot	cpus {
10*8ccc0d23SEmmanuel Vadot		cpu1: cpu@1 {
11*8ccc0d23SEmmanuel Vadot			compatible = "arm,cortex-a35";
12*8ccc0d23SEmmanuel Vadot			reg = <1>;
13*8ccc0d23SEmmanuel Vadot			device_type = "cpu";
14*8ccc0d23SEmmanuel Vadot			enable-method = "psci";
15*8ccc0d23SEmmanuel Vadot			power-domains = <&cpu1_pd>;
16*8ccc0d23SEmmanuel Vadot			power-domain-names = "psci";
17*8ccc0d23SEmmanuel Vadot		};
18*8ccc0d23SEmmanuel Vadot	};
19*8ccc0d23SEmmanuel Vadot
20*8ccc0d23SEmmanuel Vadot	arm-pmu {
21*8ccc0d23SEmmanuel Vadot		interrupts = <GIC_SPI 368 IRQ_TYPE_LEVEL_HIGH>,
22*8ccc0d23SEmmanuel Vadot			     <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>;
23*8ccc0d23SEmmanuel Vadot		interrupt-affinity = <&cpu0>, <&cpu1>;
24*8ccc0d23SEmmanuel Vadot	};
25*8ccc0d23SEmmanuel Vadot
26*8ccc0d23SEmmanuel Vadot	psci {
27*8ccc0d23SEmmanuel Vadot		cpu1_pd: power-domain-cpu1 {
28*8ccc0d23SEmmanuel Vadot			#power-domain-cells = <0>;
29*8ccc0d23SEmmanuel Vadot			power-domains = <&cluster_pd>;
30*8ccc0d23SEmmanuel Vadot		};
31*8ccc0d23SEmmanuel Vadot	};
32*8ccc0d23SEmmanuel Vadot
33*8ccc0d23SEmmanuel Vadot	timer {
34*8ccc0d23SEmmanuel Vadot		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
35*8ccc0d23SEmmanuel Vadot			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
36*8ccc0d23SEmmanuel Vadot			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
37*8ccc0d23SEmmanuel Vadot			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
38*8ccc0d23SEmmanuel Vadot	};
39*8ccc0d23SEmmanuel Vadot};
40*8ccc0d23SEmmanuel Vadot
41*8ccc0d23SEmmanuel Vadot&optee {
42*8ccc0d23SEmmanuel Vadot	interrupts = <GIC_PPI 15 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
43*8ccc0d23SEmmanuel Vadot};
44*8ccc0d23SEmmanuel Vadot
45*8ccc0d23SEmmanuel Vadot&rifsc {
46*8ccc0d23SEmmanuel Vadot	ethernet2: ethernet@482d0000 {
47*8ccc0d23SEmmanuel Vadot		compatible = "st,stm32mp25-dwmac", "snps,dwmac-5.20";
48*8ccc0d23SEmmanuel Vadot		reg = <0x482d0000 0x4000>;
49*8ccc0d23SEmmanuel Vadot		reg-names = "stmmaceth";
50*8ccc0d23SEmmanuel Vadot		interrupts-extended = <&intc GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
51*8ccc0d23SEmmanuel Vadot		interrupt-names = "macirq";
52*8ccc0d23SEmmanuel Vadot		clock-names = "stmmaceth",
53*8ccc0d23SEmmanuel Vadot			      "mac-clk-tx",
54*8ccc0d23SEmmanuel Vadot			      "mac-clk-rx",
55*8ccc0d23SEmmanuel Vadot			      "ptp_ref",
56*8ccc0d23SEmmanuel Vadot			      "ethstp",
57*8ccc0d23SEmmanuel Vadot			      "eth-ck";
58*8ccc0d23SEmmanuel Vadot		clocks = <&rcc CK_ETH2_MAC>,
59*8ccc0d23SEmmanuel Vadot			 <&rcc CK_ETH2_TX>,
60*8ccc0d23SEmmanuel Vadot			 <&rcc CK_ETH2_RX>,
61*8ccc0d23SEmmanuel Vadot			 <&rcc CK_KER_ETH2PTP>,
62*8ccc0d23SEmmanuel Vadot			 <&rcc CK_ETH2_STP>,
63*8ccc0d23SEmmanuel Vadot			 <&rcc CK_KER_ETH2>;
64*8ccc0d23SEmmanuel Vadot		snps,axi-config = <&stmmac_axi_config_2>;
65*8ccc0d23SEmmanuel Vadot		snps,mixed-burst;
66*8ccc0d23SEmmanuel Vadot		snps,mtl-rx-config = <&mtl_rx_setup_2>;
67*8ccc0d23SEmmanuel Vadot		snps,mtl-tx-config = <&mtl_tx_setup_2>;
68*8ccc0d23SEmmanuel Vadot		snps,pbl = <2>;
69*8ccc0d23SEmmanuel Vadot		snps,tso;
70*8ccc0d23SEmmanuel Vadot		st,syscon = <&syscfg 0x3400>;
71*8ccc0d23SEmmanuel Vadot		access-controllers = <&rifsc 61>;
72*8ccc0d23SEmmanuel Vadot		status = "disabled";
73*8ccc0d23SEmmanuel Vadot
74*8ccc0d23SEmmanuel Vadot		mtl_rx_setup_2: rx-queues-config {
75*8ccc0d23SEmmanuel Vadot			snps,rx-queues-to-use = <2>;
76*8ccc0d23SEmmanuel Vadot			queue0 {};
77*8ccc0d23SEmmanuel Vadot			queue1 {};
78*8ccc0d23SEmmanuel Vadot		};
79*8ccc0d23SEmmanuel Vadot
80*8ccc0d23SEmmanuel Vadot		mtl_tx_setup_2: tx-queues-config {
81*8ccc0d23SEmmanuel Vadot			snps,tx-queues-to-use = <4>;
82*8ccc0d23SEmmanuel Vadot			queue0 {};
83*8ccc0d23SEmmanuel Vadot			queue1 {};
84*8ccc0d23SEmmanuel Vadot			queue2 {};
85*8ccc0d23SEmmanuel Vadot			queue3 {};
86*8ccc0d23SEmmanuel Vadot		};
87*8ccc0d23SEmmanuel Vadot
88*8ccc0d23SEmmanuel Vadot		stmmac_axi_config_2: stmmac-axi-config {
89*8ccc0d23SEmmanuel Vadot			snps,blen = <0 0 0 0 16 8 4>;
90*8ccc0d23SEmmanuel Vadot			snps,rd_osr_lmt = <0x7>;
91*8ccc0d23SEmmanuel Vadot			snps,wr_osr_lmt = <0x7>;
92*8ccc0d23SEmmanuel Vadot		};
93*8ccc0d23SEmmanuel Vadot	};
94*8ccc0d23SEmmanuel Vadot};
95