xref: /netbsd-src/sys/arch/arm/dts/zynq-red-pitaya-122-16.dts (revision 7c4812b99015af8d0e1b07a747d1d73524507852)
1// SPDX-License-Identifier: GPL-2.0+
2/dts-v1/;
3#include "../../../external/gpl2/dts/dist/arch/arm/boot/dts/zynq-7000.dtsi"
4
5/ {
6	model = "Red Pitaya SDRlab 122-16";
7	compatible = "xlnx,zynq-7000";
8
9	aliases {
10		ethernet0 = &gem0;
11		serial0 = &uart0;
12	};
13
14	memory@0 {
15		device_type = "memory";
16		reg = <0x0 0x20000000>;
17	};
18
19	/* The SDRlab 122-16 comes out of the box with a bootloader that
20	 * (I think) loads a bitstream to the FPGA.  I reserve the same
21	 * memory regions as the device tree that comes with the 122-16
22	 * does, just in case the FPGA alters them.  If we can come up
23	 * with a new bootloader, then I think NetBSD can use all of
24	 * these regions safely.
25	 */
26	reserved-memory {
27		#address-cells = <0x1>;
28		#size-cells = <0x1>;
29		ranges;
30
31		linux,cma {
32			compatible = "shared-dma-pool";
33			reusable;
34			size = <0x1000000>;
35			alignment = <0x2000>;
36			linux,cma-default;
37		};
38
39		labuf@a000000 {
40			reg = <0xa000000 0x2000000>;
41			linux,phandle = <0x2f>;
42			phandle = <0x2f>;
43		};
44
45		buffer@1000000 {
46			reg = <0x1000000 0x180000>;
47			linux,phandle = <0x30>;
48			phandle = <0x30>;
49		};
50	};
51
52	chosen {
53		bootargs = "";
54		stdout-path = "serial0:115200n8";
55	};
56
57	usb_phy0: phy0 {
58		#phy-cells = <0>;
59		compatible = "usb-nop-xceiv";
60		reset-gpios = <&gpio0 46 1>;
61	};
62};
63
64&clkc {
65	ps-clk-frequency = <33333333>;
66};
67
68&gem0 {
69	status = "okay";
70	phy-mode = "rgmii-id";
71	phy-handle = <&ethernet_phy>;
72
73	ethernet_phy: ethernet-phy@0 {
74		reg = <1>;
75		device_type = "ethernet-phy";
76	};
77};
78
79&sdhci0 {
80	status = "okay";
81};
82
83&uart0 {
84	status = "okay";
85};
86
87&usb0 {
88	status = "okay";
89	dr_mode = "host";
90	usb-phy = <&usb_phy0>;
91};
92