Line data Source code
1 0 : /* 2 : * Copyright (c) 2023 Antmicro <www.antmicro.com> 3 : * 4 : * SPDX-License-Identifier: Apache-2.0 5 : */ 6 : 7 : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_QUICKLOGIC_EOS_S3_PINCTRL_H_ 8 : #define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_QUICKLOGIC_EOS_S3_PINCTRL_H_ 9 : 10 : #include <zephyr/dt-bindings/dt-util.h> 11 : 12 0 : #define IO_MUX_REG_MAX_OFFSET 107 13 0 : #define IO_MUX_MAX_PAD_NR 45 14 : 15 0 : #define FUNC_SEL_UART_RX (77 << 13) 16 : 17 0 : #define QUICKLOGIC_EOS_S3_PINMUX(pin, fun) (pin) (fun) 18 : 19 0 : #define UART_TX_PAD44 QUICKLOGIC_EOS_S3_PINMUX(44, 0x3) 20 0 : #define UART_RX_PAD45 QUICKLOGIC_EOS_S3_PINMUX(45, FUNC_SEL_UART_RX | BIT(2)) 21 0 : #define USB_PU_CTRL_PAD23 QUICKLOGIC_EOS_S3_PINMUX(23, 0x0) 22 0 : #define USB_DN_PAD28 QUICKLOGIC_EOS_S3_PINMUX(28, 0x0) 23 0 : #define USB_DP_PAD31 QUICKLOGIC_EOS_S3_PINMUX(31, 0x0) 24 : 25 : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_QUICKLOGIC_EOS_S3_PINCTRL_H_ */