1/* 2 * Copyright (c) 2022 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 Qomu board"; 14 compatible = "quicklogic,eos_s3"; 15 16 chosen { 17 zephyr,sram = &sram0; 18 zephyr,console = &uart1; 19 zephyr,shell-uart = &uart1; 20 zephyr,uart-pipe = &uart1; 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 3 GPIO_ACTIVE_HIGH>; 34 label = "LED 0"; 35 }; 36 37 green_led: led_1 { 38 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; 39 label = "LED 1"; 40 }; 41 42 red_led: led_2 { 43 gpios = <&gpio 0 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 uart1_rx_default: uart1_rx_default { 64 pinmux = <UART_RX_PAD45>; 65 input-enable; 66 }; 67 uart1_tx_default: uart1_tx_default { 68 pinmux = <UART_TX_PAD44>; 69 output-enable; 70 }; 71 usb_pu_default: usb_pu_default { 72 pinmux = <USB_PU_CTRL_PAD23>; 73 bias-high-impedance; 74 quicklogic,control-selection = "fabric"; 75 output-enable; 76 }; 77 usb_dn_default: usb_dn_default { 78 pinmux = <USB_DN_PAD28>; 79 bias-high-impedance; 80 quicklogic,control-selection = "fabric"; 81 output-enable; 82 }; 83 usb_dp_default: usb_dp_default { 84 pinmux = <USB_DP_PAD31>; 85 bias-high-impedance; 86 quicklogic,control-selection = "fabric"; 87 output-enable; 88 }; 89}; 90 91&cpu0 { 92 clock-frequency = <61440000>; 93}; 94 95&gpio { 96 status = "okay"; 97}; 98 99&uart0 { 100 status = "disabled"; 101}; 102 103&uart1 { 104 status = "okay"; 105 current-speed = <115200>; 106 pinctrl-0 = <&uart1_rx_default &uart1_tx_default 107 &usb_pu_default &usb_dn_default &usb_dp_default>; 108 pinctrl-names = "default"; 109}; 110