1/*
2 * Copyright (c) 2022 Henrik Brix Andersen <henrik@brixandersen.dk>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <xilinx/zynq7000.dtsi>
9#include <zephyr/dt-bindings/gpio/gpio.h>
10#include <zephyr/dt-bindings/input/input-event-codes.h>
11
12#include "zybo-pinctrl.dtsi"
13
14/ {
15	model = "Digilent Zybo board";
16	compatible = "digilent,zynq-zybo", "xlnx,zynq-7000";
17
18	#address-cells = <1>;
19	#size-cells = <1>;
20
21	chosen {
22		zephyr,sram = &sram0;
23		zephyr,console = &uart1;
24		zephyr,shell-uart = &uart1;
25		zephyr,ocm = &ocm_high;
26	};
27
28	aliases {
29		led0 = &ld_mio;
30		sw0 = &btn4;
31		sw1 = &btn5;
32	};
33
34	cpus {
35		#address-cells = <1>;
36		#size-cells = <0>;
37
38		cpu0: cpu@0 {
39			device_type = "cpu";
40			compatible = "arm,cortex-a9";
41			reg = <0>;
42		};
43
44		cpu1: cpu@1 {
45			device_type = "cpu";
46			compatible = "arm,cortex-a9";
47			reg = <1>;
48		};
49	};
50
51	sram0: memory@0 {
52		compatible = "mmio-sram";
53		reg = <0x00000000 DT_SIZE_M(512)>;
54	};
55
56	leds {
57		compatible = "gpio-leds";
58		ld_mio: led_mio {
59			gpios = <&psgpio_bank0 7 GPIO_ACTIVE_HIGH>;
60			label = "LD_MIO";
61		};
62	};
63
64	gpio_keys {
65		compatible = "gpio-keys";
66		btn4: btn4 {
67			gpios = <&psgpio_bank1 18 GPIO_ACTIVE_LOW>;
68			label = "BTN4";
69			zephyr,code = <INPUT_KEY_0>;
70		};
71		btn5: btn5 {
72			gpios = <&psgpio_bank1 19 GPIO_ACTIVE_LOW>;
73			label = "BTN5";
74			zephyr,code = <INPUT_KEY_1>;
75		};
76	};
77};
78
79&uart1 {
80	status = "okay";
81	current-speed = <115200>;
82	clock-frequency = <100000000>;
83	pinctrl-0 = <&pinctrl_uart1_default>;
84	pinctrl-names = "default";
85};
86
87&psgpio {
88	status = "okay";
89};
90