xref: /freebsd-src/sys/contrib/device-tree/src/arm/xilinx/zynq-zybo-z7.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2*f126890aSEmmanuel Vadot/dts-v1/;
3*f126890aSEmmanuel Vadot#include "zynq-7000.dtsi"
4*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/ {
7*f126890aSEmmanuel Vadot	model = "Digilent Zybo Z7 board";
8*f126890aSEmmanuel Vadot	compatible = "digilent,zynq-zybo-z7", "xlnx,zynq-7000";
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot	aliases {
11*f126890aSEmmanuel Vadot		ethernet0 = &gem0;
12*f126890aSEmmanuel Vadot		serial0 = &uart1;
13*f126890aSEmmanuel Vadot	};
14*f126890aSEmmanuel Vadot
15*f126890aSEmmanuel Vadot	memory@0 {
16*f126890aSEmmanuel Vadot		device_type = "memory";
17*f126890aSEmmanuel Vadot		reg = <0x0 0x40000000>;
18*f126890aSEmmanuel Vadot	};
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot	chosen {
21*f126890aSEmmanuel Vadot		bootargs = "";
22*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
23*f126890aSEmmanuel Vadot	};
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot	gpio-leds {
26*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot		led-ld4 {
29*f126890aSEmmanuel Vadot			label = "zynq-zybo-z7:green:ld4";
30*f126890aSEmmanuel Vadot			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
31*f126890aSEmmanuel Vadot		};
32*f126890aSEmmanuel Vadot	};
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot	usb_phy0: phy0 {
35*f126890aSEmmanuel Vadot		#phy-cells = <0>;
36*f126890aSEmmanuel Vadot		compatible = "usb-nop-xceiv";
37*f126890aSEmmanuel Vadot		reset-gpios = <&gpio0 46 GPIO_ACTIVE_LOW>;
38*f126890aSEmmanuel Vadot	};
39*f126890aSEmmanuel Vadot};
40*f126890aSEmmanuel Vadot
41*f126890aSEmmanuel Vadot&clkc {
42*f126890aSEmmanuel Vadot	ps-clk-frequency = <33333333>;
43*f126890aSEmmanuel Vadot};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot&gem0 {
46*f126890aSEmmanuel Vadot	status = "okay";
47*f126890aSEmmanuel Vadot	phy-mode = "rgmii-id";
48*f126890aSEmmanuel Vadot	phy-handle = <&ethernet_phy>;
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot	ethernet_phy: ethernet-phy@0 {
51*f126890aSEmmanuel Vadot		reg = <0>;
52*f126890aSEmmanuel Vadot		device_type = "ethernet-phy";
53*f126890aSEmmanuel Vadot	};
54*f126890aSEmmanuel Vadot};
55*f126890aSEmmanuel Vadot
56*f126890aSEmmanuel Vadot&sdhci0 {
57*f126890aSEmmanuel Vadot	status = "okay";
58*f126890aSEmmanuel Vadot};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot&uart1 {
61*f126890aSEmmanuel Vadot	status = "okay";
62*f126890aSEmmanuel Vadot};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot&usb0 {
65*f126890aSEmmanuel Vadot	status = "okay";
66*f126890aSEmmanuel Vadot	dr_mode = "host";
67*f126890aSEmmanuel Vadot	usb-phy = <&usb_phy0>;
68*f126890aSEmmanuel Vadot};
69