xref: /freebsd-src/sys/contrib/device-tree/src/riscv/microchip/mpfs-polarberry-fabric.dtsi (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1d5b0e70fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2d5b0e70fSEmmanuel Vadot/* Copyright (c) 2020-2022 Microchip Technology Inc */
3d5b0e70fSEmmanuel Vadot
4d5b0e70fSEmmanuel Vadot/ {
5d5b0e70fSEmmanuel Vadot	fabric_clk3: fabric-clk3 {
6d5b0e70fSEmmanuel Vadot		compatible = "fixed-clock";
7d5b0e70fSEmmanuel Vadot		#clock-cells = <0>;
8d5b0e70fSEmmanuel Vadot		clock-frequency = <62500000>;
9d5b0e70fSEmmanuel Vadot	};
10d5b0e70fSEmmanuel Vadot
11d5b0e70fSEmmanuel Vadot	fabric_clk1: fabric-clk1 {
12d5b0e70fSEmmanuel Vadot		compatible = "fixed-clock";
13d5b0e70fSEmmanuel Vadot		#clock-cells = <0>;
14d5b0e70fSEmmanuel Vadot		clock-frequency = <125000000>;
15d5b0e70fSEmmanuel Vadot	};
167ef62cebSEmmanuel Vadot
177ef62cebSEmmanuel Vadot	pcie: pcie@2000000000 {
187ef62cebSEmmanuel Vadot		compatible = "microchip,pcie-host-1.0";
197ef62cebSEmmanuel Vadot		#address-cells = <0x3>;
207ef62cebSEmmanuel Vadot		#interrupt-cells = <0x1>;
217ef62cebSEmmanuel Vadot		#size-cells = <0x2>;
227ef62cebSEmmanuel Vadot		device_type = "pci";
237ef62cebSEmmanuel Vadot		reg = <0x20 0x0 0x0 0x8000000>, <0x0 0x43000000 0x0 0x10000>;
247ef62cebSEmmanuel Vadot		reg-names = "cfg", "apb";
257ef62cebSEmmanuel Vadot		bus-range = <0x0 0x7f>;
267ef62cebSEmmanuel Vadot		interrupt-parent = <&plic>;
277ef62cebSEmmanuel Vadot		interrupts = <119>;
287ef62cebSEmmanuel Vadot		interrupt-map = <0 0 0 1 &pcie_intc 0>,
297ef62cebSEmmanuel Vadot				<0 0 0 2 &pcie_intc 1>,
307ef62cebSEmmanuel Vadot				<0 0 0 3 &pcie_intc 2>,
317ef62cebSEmmanuel Vadot				<0 0 0 4 &pcie_intc 3>;
327ef62cebSEmmanuel Vadot		interrupt-map-mask = <0 0 0 7>;
33*8bab661aSEmmanuel Vadot		clocks = <&fabric_clk1>, <&fabric_clk3>;
34*8bab661aSEmmanuel Vadot		clock-names = "fic0", "fic3";
357ef62cebSEmmanuel Vadot		ranges = <0x3000000 0x0 0x8000000 0x20 0x8000000 0x0 0x80000000>;
367ef62cebSEmmanuel Vadot		msi-parent = <&pcie>;
377ef62cebSEmmanuel Vadot		msi-controller;
387ef62cebSEmmanuel Vadot		status = "disabled";
397ef62cebSEmmanuel Vadot		pcie_intc: interrupt-controller {
407ef62cebSEmmanuel Vadot			#address-cells = <0>;
417ef62cebSEmmanuel Vadot			#interrupt-cells = <1>;
427ef62cebSEmmanuel Vadot			interrupt-controller;
437ef62cebSEmmanuel Vadot		};
447ef62cebSEmmanuel Vadot	};
45d5b0e70fSEmmanuel Vadot};
46