xref: /freebsd/sys/contrib/device-tree/src/arm64/arm/morello-sdp.dts (revision 8ccc0d235c226d84112561d453c49904398d085c)
1*8ccc0d23SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2*8ccc0d23SEmmanuel Vadot/*
3*8ccc0d23SEmmanuel Vadot * Copyright (c) 2021-2024, Arm Limited. All rights reserved.
4*8ccc0d23SEmmanuel Vadot */
5*8ccc0d23SEmmanuel Vadot
6*8ccc0d23SEmmanuel Vadot/dts-v1/;
7*8ccc0d23SEmmanuel Vadot#include "morello.dtsi"
8*8ccc0d23SEmmanuel Vadot
9*8ccc0d23SEmmanuel Vadot/ {
10*8ccc0d23SEmmanuel Vadot	model = "Arm Morello System Development Platform";
11*8ccc0d23SEmmanuel Vadot	compatible = "arm,morello-sdp", "arm,morello";
12*8ccc0d23SEmmanuel Vadot
13*8ccc0d23SEmmanuel Vadot	aliases {
14*8ccc0d23SEmmanuel Vadot		serial0 = &uart0;
15*8ccc0d23SEmmanuel Vadot	};
16*8ccc0d23SEmmanuel Vadot
17*8ccc0d23SEmmanuel Vadot	chosen {
18*8ccc0d23SEmmanuel Vadot		stdout-path = "serial0:115200n8";
19*8ccc0d23SEmmanuel Vadot	};
20*8ccc0d23SEmmanuel Vadot
21*8ccc0d23SEmmanuel Vadot	dpu_aclk: clock-350000000 {
22*8ccc0d23SEmmanuel Vadot		/* 77.1 MHz derived from 24 MHz reference clock */
23*8ccc0d23SEmmanuel Vadot		compatible = "fixed-clock";
24*8ccc0d23SEmmanuel Vadot		#clock-cells = <0>;
25*8ccc0d23SEmmanuel Vadot		clock-frequency = <350000000>;
26*8ccc0d23SEmmanuel Vadot		clock-output-names = "aclk";
27*8ccc0d23SEmmanuel Vadot	};
28*8ccc0d23SEmmanuel Vadot
29*8ccc0d23SEmmanuel Vadot	dpu_pixel_clk: clock-148500000 {
30*8ccc0d23SEmmanuel Vadot		compatible = "fixed-clock";
31*8ccc0d23SEmmanuel Vadot		#clock-cells = <0>;
32*8ccc0d23SEmmanuel Vadot		clock-frequency = <148500000>;
33*8ccc0d23SEmmanuel Vadot		clock-output-names = "pxclk";
34*8ccc0d23SEmmanuel Vadot	};
35*8ccc0d23SEmmanuel Vadot
36*8ccc0d23SEmmanuel Vadot	i2c0: i2c@1c0f0000 {
37*8ccc0d23SEmmanuel Vadot		compatible = "cdns,i2c-r1p14";
38*8ccc0d23SEmmanuel Vadot		reg = <0x0 0x1c0f0000 0x0 0x1000>;
39*8ccc0d23SEmmanuel Vadot		interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
40*8ccc0d23SEmmanuel Vadot		clocks = <&dpu_aclk>;
41*8ccc0d23SEmmanuel Vadot
42*8ccc0d23SEmmanuel Vadot		#address-cells = <1>;
43*8ccc0d23SEmmanuel Vadot		#size-cells = <0>;
44*8ccc0d23SEmmanuel Vadot
45*8ccc0d23SEmmanuel Vadot		clock-frequency = <100000>;
46*8ccc0d23SEmmanuel Vadot
47*8ccc0d23SEmmanuel Vadot		hdmi_tx: hdmi-transmitter@70 {
48*8ccc0d23SEmmanuel Vadot			compatible = "nxp,tda998x";
49*8ccc0d23SEmmanuel Vadot			reg = <0x70>;
50*8ccc0d23SEmmanuel Vadot			video-ports = <0x234501>;
51*8ccc0d23SEmmanuel Vadot			port {
52*8ccc0d23SEmmanuel Vadot				tda998x_0_input: endpoint {
53*8ccc0d23SEmmanuel Vadot					remote-endpoint = <&dp_pl0_out0>;
54*8ccc0d23SEmmanuel Vadot				};
55*8ccc0d23SEmmanuel Vadot			};
56*8ccc0d23SEmmanuel Vadot		};
57*8ccc0d23SEmmanuel Vadot	};
58*8ccc0d23SEmmanuel Vadot
59*8ccc0d23SEmmanuel Vadot	dp0: display@2cc00000 {
60*8ccc0d23SEmmanuel Vadot		compatible = "arm,mali-d32", "arm,mali-d71";
61*8ccc0d23SEmmanuel Vadot		reg = <0x0 0x2cc00000 0x0 0x20000>;
62*8ccc0d23SEmmanuel Vadot		interrupts = <0 69 4>;
63*8ccc0d23SEmmanuel Vadot		clocks = <&dpu_aclk>;
64*8ccc0d23SEmmanuel Vadot		clock-names = "aclk";
65*8ccc0d23SEmmanuel Vadot		iommus = <&smmu_dp 0>, <&smmu_dp 1>, <&smmu_dp 2>, <&smmu_dp 3>,
66*8ccc0d23SEmmanuel Vadot			 <&smmu_dp 8>;
67*8ccc0d23SEmmanuel Vadot
68*8ccc0d23SEmmanuel Vadot		#address-cells = <1>;
69*8ccc0d23SEmmanuel Vadot		#size-cells = <0>;
70*8ccc0d23SEmmanuel Vadot
71*8ccc0d23SEmmanuel Vadot		pl0: pipeline@0 {
72*8ccc0d23SEmmanuel Vadot			reg = <0>;
73*8ccc0d23SEmmanuel Vadot			clocks = <&dpu_pixel_clk>;
74*8ccc0d23SEmmanuel Vadot			clock-names = "pxclk";
75*8ccc0d23SEmmanuel Vadot			port {
76*8ccc0d23SEmmanuel Vadot				dp_pl0_out0: endpoint {
77*8ccc0d23SEmmanuel Vadot					remote-endpoint = <&tda998x_0_input>;
78*8ccc0d23SEmmanuel Vadot				};
79*8ccc0d23SEmmanuel Vadot			};
80*8ccc0d23SEmmanuel Vadot		};
81*8ccc0d23SEmmanuel Vadot	};
82*8ccc0d23SEmmanuel Vadot
83*8ccc0d23SEmmanuel Vadot	smmu_ccix: iommu@4f000000 {
84*8ccc0d23SEmmanuel Vadot		compatible = "arm,smmu-v3";
85*8ccc0d23SEmmanuel Vadot		reg = <0x0 0x4f000000 0x0 0x40000>;
86*8ccc0d23SEmmanuel Vadot
87*8ccc0d23SEmmanuel Vadot		interrupts = <GIC_SPI 228 IRQ_TYPE_EDGE_RISING>,
88*8ccc0d23SEmmanuel Vadot					<GIC_SPI 230 IRQ_TYPE_EDGE_RISING>,
89*8ccc0d23SEmmanuel Vadot					<GIC_SPI 41 IRQ_TYPE_EDGE_RISING>,
90*8ccc0d23SEmmanuel Vadot					<GIC_SPI 229 IRQ_TYPE_EDGE_RISING>;
91*8ccc0d23SEmmanuel Vadot		interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
92*8ccc0d23SEmmanuel Vadot		msi-parent = <&its1 0>;
93*8ccc0d23SEmmanuel Vadot		#iommu-cells = <1>;
94*8ccc0d23SEmmanuel Vadot		dma-coherent;
95*8ccc0d23SEmmanuel Vadot	};
96*8ccc0d23SEmmanuel Vadot
97*8ccc0d23SEmmanuel Vadot	smmu_pcie: iommu@4f400000 {
98*8ccc0d23SEmmanuel Vadot		compatible = "arm,smmu-v3";
99*8ccc0d23SEmmanuel Vadot		reg = <0x0 0x4f400000 0x0 0x40000>;
100*8ccc0d23SEmmanuel Vadot
101*8ccc0d23SEmmanuel Vadot		interrupts = <GIC_SPI 235 IRQ_TYPE_EDGE_RISING>,
102*8ccc0d23SEmmanuel Vadot					<GIC_SPI 237 IRQ_TYPE_EDGE_RISING>,
103*8ccc0d23SEmmanuel Vadot					<GIC_SPI 40 IRQ_TYPE_EDGE_RISING>,
104*8ccc0d23SEmmanuel Vadot					<GIC_SPI 236 IRQ_TYPE_EDGE_RISING>;
105*8ccc0d23SEmmanuel Vadot		interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
106*8ccc0d23SEmmanuel Vadot		msi-parent = <&its2 0>;
107*8ccc0d23SEmmanuel Vadot		#iommu-cells = <1>;
108*8ccc0d23SEmmanuel Vadot		dma-coherent;
109*8ccc0d23SEmmanuel Vadot	};
110*8ccc0d23SEmmanuel Vadot
111*8ccc0d23SEmmanuel Vadot	pcie_ctlr: pcie@28c0000000 {
112*8ccc0d23SEmmanuel Vadot		device_type = "pci";
113*8ccc0d23SEmmanuel Vadot		compatible = "pci-host-ecam-generic";
114*8ccc0d23SEmmanuel Vadot		reg = <0x28 0xC0000000 0 0x10000000>;
115*8ccc0d23SEmmanuel Vadot		ranges = <0x01000000 0x00 0x00000000 0x00 0x6f000000 0x00 0x00800000>,
116*8ccc0d23SEmmanuel Vadot				<0x02000000 0x00 0x60000000 0x00 0x60000000 0x00 0x0f000000>,
117*8ccc0d23SEmmanuel Vadot				<0x42000000 0x09 0x00000000 0x09 0x00000000 0x1f 0xc0000000>;
118*8ccc0d23SEmmanuel Vadot		bus-range = <0 255>;
119*8ccc0d23SEmmanuel Vadot		linux,pci-domain = <0>;
120*8ccc0d23SEmmanuel Vadot		#address-cells = <3>;
121*8ccc0d23SEmmanuel Vadot		#size-cells = <2>;
122*8ccc0d23SEmmanuel Vadot		dma-coherent;
123*8ccc0d23SEmmanuel Vadot		#interrupt-cells = <1>;
124*8ccc0d23SEmmanuel Vadot		interrupt-map-mask = <0 0 0 7>;
125*8ccc0d23SEmmanuel Vadot		interrupt-map = <0 0 0 1 &gic 0 0 0 169 IRQ_TYPE_LEVEL_HIGH>,
126*8ccc0d23SEmmanuel Vadot				<0 0 0 2 &gic 0 0 0 170 IRQ_TYPE_LEVEL_HIGH>,
127*8ccc0d23SEmmanuel Vadot				<0 0 0 3 &gic 0 0 0 171 IRQ_TYPE_LEVEL_HIGH>,
128*8ccc0d23SEmmanuel Vadot				<0 0 0 4 &gic 0 0 0 172 IRQ_TYPE_LEVEL_HIGH>;
129*8ccc0d23SEmmanuel Vadot		msi-map = <0 &its_pcie 0 0x10000>;
130*8ccc0d23SEmmanuel Vadot		iommu-map = <0 &smmu_pcie 0 0x10000>;
131*8ccc0d23SEmmanuel Vadot	};
132*8ccc0d23SEmmanuel Vadot
133*8ccc0d23SEmmanuel Vadot	ccix_pcie_ctlr: pcie@4fc0000000 {
134*8ccc0d23SEmmanuel Vadot		device_type = "pci";
135*8ccc0d23SEmmanuel Vadot		compatible = "pci-host-ecam-generic";
136*8ccc0d23SEmmanuel Vadot		reg = <0x4f 0xC0000000 0 0x10000000>;
137*8ccc0d23SEmmanuel Vadot		ranges = <0x01000000 0x00 0x00000000 0x00 0x7f000000 0x00 0x00800000>,
138*8ccc0d23SEmmanuel Vadot				<0x02000000 0x00 0x70000000 0x00 0x70000000 0x00 0x0f000000>,
139*8ccc0d23SEmmanuel Vadot				<0x42000000 0x30 0x00000000 0x30 0x00000000 0x1f 0xc0000000>;
140*8ccc0d23SEmmanuel Vadot		linux,pci-domain = <1>;
141*8ccc0d23SEmmanuel Vadot		#address-cells = <3>;
142*8ccc0d23SEmmanuel Vadot		#size-cells = <2>;
143*8ccc0d23SEmmanuel Vadot		dma-coherent;
144*8ccc0d23SEmmanuel Vadot		#interrupt-cells = <1>;
145*8ccc0d23SEmmanuel Vadot		interrupt-map-mask = <0 0 0 7>;
146*8ccc0d23SEmmanuel Vadot		interrupt-map = <0 0 0 1 &gic 0 0 0 201 IRQ_TYPE_LEVEL_HIGH>,
147*8ccc0d23SEmmanuel Vadot				<0 0 0 2 &gic 0 0 0 202 IRQ_TYPE_LEVEL_HIGH>,
148*8ccc0d23SEmmanuel Vadot				<0 0 0 3 &gic 0 0 0 203 IRQ_TYPE_LEVEL_HIGH>,
149*8ccc0d23SEmmanuel Vadot				<0 0 0 4 &gic 0 0 0 204 IRQ_TYPE_LEVEL_HIGH>;
150*8ccc0d23SEmmanuel Vadot		msi-map = <0 &its_ccix 0 0x10000>;
151*8ccc0d23SEmmanuel Vadot		iommu-map = <0 &smmu_ccix 0 0x10000>;
152*8ccc0d23SEmmanuel Vadot	};
153*8ccc0d23SEmmanuel Vadot};
154*8ccc0d23SEmmanuel Vadot
155*8ccc0d23SEmmanuel Vadot&uart0 {
156*8ccc0d23SEmmanuel Vadot	status = "okay";
157*8ccc0d23SEmmanuel Vadot};
158