1/*
2 * Copyright (c) 2020 Antmicro <www.antmicro.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <quicklogic/quicklogic_eos_s3.dtsi>
9#include <zephyr/dt-bindings/pinctrl/quicklogic-eos-s3-pinctrl.h>
10#include <zephyr/dt-bindings/input/input-event-codes.h>
11
12/ {
13	model = "QuickLogic Quick Feather board";
14	compatible = "quicklogic,eos_s3";
15
16	chosen {
17		zephyr,sram = &sram0;
18		zephyr,console = &uart0;
19		zephyr,shell-uart = &uart0;
20		zephyr,uart-pipe = &uart0;
21	};
22
23	aliases {
24		led0 = &blue_led;
25		led1 = &green_led;
26		led2 = &red_led;
27		sw0 = &button0;
28	};
29
30	leds {
31		compatible = "gpio-leds";
32		blue_led: led_0 {
33			gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
34			label = "LED 0";
35		};
36
37		green_led: led_1 {
38			gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
39			label = "LED 1";
40		};
41
42		red_led: led_2 {
43			gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
44			label = "LED 2";
45		};
46	};
47
48	buttons {
49		compatible = "gpio-keys";
50		button0: button_0 {
51			gpios = <&gpio 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
52			label = "User Push Button 0";
53			zephyr,code = <INPUT_KEY_0>;
54		};
55	};
56
57	fpga0: fpga {
58		status = "okay";
59	};
60};
61
62&pinctrl {
63	uart_rx_default: uart_rx_default {
64		pinmux = <UART_RX_PAD45>;
65		input-enable;
66	};
67	uart_tx_default: uart_tx_default {
68		pinmux = <UART_TX_PAD44>;
69		output-enable;
70	};
71};
72
73&cpu0 {
74	clock-frequency = <61440000>;
75};
76
77&gpio {
78	status = "okay";
79};
80
81&uart0 {
82	status = "okay";
83	current-speed = <115200>;
84	pinctrl-0 = <&uart_rx_default &uart_tx_default>;
85	pinctrl-names = "default";
86};
87