xref: /freebsd-src/sys/contrib/device-tree/src/riscv/microchip/mpfs-sev-kit.dts (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1*7ef62cebSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2*7ef62cebSEmmanuel Vadot/* Copyright (c) 2022 Microchip Technology Inc */
3*7ef62cebSEmmanuel Vadot
4*7ef62cebSEmmanuel Vadot/dts-v1/;
5*7ef62cebSEmmanuel Vadot
6*7ef62cebSEmmanuel Vadot#include "mpfs.dtsi"
7*7ef62cebSEmmanuel Vadot#include "mpfs-sev-kit-fabric.dtsi"
8*7ef62cebSEmmanuel Vadot
9*7ef62cebSEmmanuel Vadot/ {
10*7ef62cebSEmmanuel Vadot	#address-cells = <2>;
11*7ef62cebSEmmanuel Vadot	#size-cells = <2>;
12*7ef62cebSEmmanuel Vadot	model = "Microchip PolarFire-SoC SEV Kit";
13*7ef62cebSEmmanuel Vadot	compatible = "microchip,mpfs-sev-kit", "microchip,mpfs";
14*7ef62cebSEmmanuel Vadot
15*7ef62cebSEmmanuel Vadot	aliases {
16*7ef62cebSEmmanuel Vadot		ethernet0 = &mac1;
17*7ef62cebSEmmanuel Vadot		serial0 = &mmuart0;
18*7ef62cebSEmmanuel Vadot		serial1 = &mmuart1;
19*7ef62cebSEmmanuel Vadot		serial2 = &mmuart2;
20*7ef62cebSEmmanuel Vadot		serial3 = &mmuart3;
21*7ef62cebSEmmanuel Vadot		serial4 = &mmuart4;
22*7ef62cebSEmmanuel Vadot	};
23*7ef62cebSEmmanuel Vadot
24*7ef62cebSEmmanuel Vadot	chosen {
25*7ef62cebSEmmanuel Vadot		stdout-path = "serial1:115200n8";
26*7ef62cebSEmmanuel Vadot	};
27*7ef62cebSEmmanuel Vadot
28*7ef62cebSEmmanuel Vadot	reserved-memory {
29*7ef62cebSEmmanuel Vadot		#address-cells = <2>;
30*7ef62cebSEmmanuel Vadot		#size-cells = <2>;
31*7ef62cebSEmmanuel Vadot		ranges;
32*7ef62cebSEmmanuel Vadot
33*7ef62cebSEmmanuel Vadot		fabricbuf0ddrc: buffer@80000000 {
34*7ef62cebSEmmanuel Vadot			compatible = "shared-dma-pool";
35*7ef62cebSEmmanuel Vadot			reg = <0x0 0x80000000 0x0 0x2000000>;
36*7ef62cebSEmmanuel Vadot		};
37*7ef62cebSEmmanuel Vadot
38*7ef62cebSEmmanuel Vadot		fabricbuf1ddrnc: buffer@c4000000 {
39*7ef62cebSEmmanuel Vadot			compatible = "shared-dma-pool";
40*7ef62cebSEmmanuel Vadot			reg = <0x0 0xc4000000 0x0 0x4000000>;
41*7ef62cebSEmmanuel Vadot		};
42*7ef62cebSEmmanuel Vadot
43*7ef62cebSEmmanuel Vadot		fabricbuf2ddrncwcb: buffer@d4000000 {
44*7ef62cebSEmmanuel Vadot			compatible = "shared-dma-pool";
45*7ef62cebSEmmanuel Vadot			reg = <0x0 0xd4000000 0x0 0x4000000>;
46*7ef62cebSEmmanuel Vadot		};
47*7ef62cebSEmmanuel Vadot	};
48*7ef62cebSEmmanuel Vadot
49*7ef62cebSEmmanuel Vadot	ddrc_cache: memory@1000000000 {
50*7ef62cebSEmmanuel Vadot		device_type = "memory";
51*7ef62cebSEmmanuel Vadot		reg = <0x10 0x0 0x0 0x76000000>;
52*7ef62cebSEmmanuel Vadot	};
53*7ef62cebSEmmanuel Vadot};
54*7ef62cebSEmmanuel Vadot
55*7ef62cebSEmmanuel Vadot&i2c0 {
56*7ef62cebSEmmanuel Vadot	status = "okay";
57*7ef62cebSEmmanuel Vadot};
58*7ef62cebSEmmanuel Vadot
59*7ef62cebSEmmanuel Vadot&gpio2 {
60*7ef62cebSEmmanuel Vadot	interrupts = <53>, <53>, <53>, <53>,
61*7ef62cebSEmmanuel Vadot		     <53>, <53>, <53>, <53>,
62*7ef62cebSEmmanuel Vadot		     <53>, <53>, <53>, <53>,
63*7ef62cebSEmmanuel Vadot		     <53>, <53>, <53>, <53>,
64*7ef62cebSEmmanuel Vadot		     <53>, <53>, <53>, <53>,
65*7ef62cebSEmmanuel Vadot		     <53>, <53>, <53>, <53>,
66*7ef62cebSEmmanuel Vadot		     <53>, <53>, <53>, <53>,
67*7ef62cebSEmmanuel Vadot		     <53>, <53>, <53>, <53>;
68*7ef62cebSEmmanuel Vadot	status = "okay";
69*7ef62cebSEmmanuel Vadot};
70*7ef62cebSEmmanuel Vadot
71*7ef62cebSEmmanuel Vadot&mac0 {
72*7ef62cebSEmmanuel Vadot	status = "okay";
73*7ef62cebSEmmanuel Vadot	phy-mode = "sgmii";
74*7ef62cebSEmmanuel Vadot	phy-handle = <&phy0>;
75*7ef62cebSEmmanuel Vadot	phy1: ethernet-phy@9 {
76*7ef62cebSEmmanuel Vadot		reg = <9>;
77*7ef62cebSEmmanuel Vadot	};
78*7ef62cebSEmmanuel Vadot	phy0: ethernet-phy@8 {
79*7ef62cebSEmmanuel Vadot		reg = <8>;
80*7ef62cebSEmmanuel Vadot	};
81*7ef62cebSEmmanuel Vadot};
82*7ef62cebSEmmanuel Vadot
83*7ef62cebSEmmanuel Vadot&mac1 {
84*7ef62cebSEmmanuel Vadot	status = "okay";
85*7ef62cebSEmmanuel Vadot	phy-mode = "sgmii";
86*7ef62cebSEmmanuel Vadot	phy-handle = <&phy1>;
87*7ef62cebSEmmanuel Vadot};
88*7ef62cebSEmmanuel Vadot
89*7ef62cebSEmmanuel Vadot&mbox {
90*7ef62cebSEmmanuel Vadot	status = "okay";
91*7ef62cebSEmmanuel Vadot};
92*7ef62cebSEmmanuel Vadot
93*7ef62cebSEmmanuel Vadot&mmc {
94*7ef62cebSEmmanuel Vadot	status = "okay";
95*7ef62cebSEmmanuel Vadot	bus-width = <4>;
96*7ef62cebSEmmanuel Vadot	disable-wp;
97*7ef62cebSEmmanuel Vadot	cap-sd-highspeed;
98*7ef62cebSEmmanuel Vadot	cap-mmc-highspeed;
99*7ef62cebSEmmanuel Vadot	mmc-ddr-1_8v;
100*7ef62cebSEmmanuel Vadot	mmc-hs200-1_8v;
101*7ef62cebSEmmanuel Vadot	sd-uhs-sdr12;
102*7ef62cebSEmmanuel Vadot	sd-uhs-sdr25;
103*7ef62cebSEmmanuel Vadot	sd-uhs-sdr50;
104*7ef62cebSEmmanuel Vadot	sd-uhs-sdr104;
105*7ef62cebSEmmanuel Vadot};
106*7ef62cebSEmmanuel Vadot
107*7ef62cebSEmmanuel Vadot&mmuart1 {
108*7ef62cebSEmmanuel Vadot	status = "okay";
109*7ef62cebSEmmanuel Vadot};
110*7ef62cebSEmmanuel Vadot
111*7ef62cebSEmmanuel Vadot&mmuart2 {
112*7ef62cebSEmmanuel Vadot	status = "okay";
113*7ef62cebSEmmanuel Vadot};
114*7ef62cebSEmmanuel Vadot
115*7ef62cebSEmmanuel Vadot&mmuart3 {
116*7ef62cebSEmmanuel Vadot	status = "okay";
117*7ef62cebSEmmanuel Vadot};
118*7ef62cebSEmmanuel Vadot
119*7ef62cebSEmmanuel Vadot&mmuart4 {
120*7ef62cebSEmmanuel Vadot	status = "okay";
121*7ef62cebSEmmanuel Vadot};
122*7ef62cebSEmmanuel Vadot
123*7ef62cebSEmmanuel Vadot&refclk {
124*7ef62cebSEmmanuel Vadot	clock-frequency = <125000000>;
125*7ef62cebSEmmanuel Vadot};
126*7ef62cebSEmmanuel Vadot
127*7ef62cebSEmmanuel Vadot&rtc {
128*7ef62cebSEmmanuel Vadot	status = "okay";
129*7ef62cebSEmmanuel Vadot};
130*7ef62cebSEmmanuel Vadot
131*7ef62cebSEmmanuel Vadot&syscontroller {
132*7ef62cebSEmmanuel Vadot	status = "okay";
133*7ef62cebSEmmanuel Vadot};
134*7ef62cebSEmmanuel Vadot
135*7ef62cebSEmmanuel Vadot&usb {
136*7ef62cebSEmmanuel Vadot	status = "okay";
137*7ef62cebSEmmanuel Vadot	dr_mode = "otg";
138*7ef62cebSEmmanuel Vadot};
139