Skip to content

Commit

Permalink
boards: quick_feather: use pinctrl driver
Browse files Browse the repository at this point in the history
Pinmuxing was previously done in the board.c file.
Now it is done by the pinctrl driver.

Signed-off-by: Wojciech Sipak <wsipak@antmicro.com>
  • Loading branch information
wsipak committed Jul 20, 2023
1 parent 59203bc commit f6d3feb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 47 deletions.
5 changes: 0 additions & 5 deletions boards/arm/quick_feather/CMakeLists.txt

This file was deleted.

23 changes: 0 additions & 23 deletions boards/arm/quick_feather/board.c

This file was deleted.

19 changes: 0 additions & 19 deletions boards/arm/quick_feather/board.h

This file was deleted.

16 changes: 16 additions & 0 deletions boards/arm/quick_feather/quick_feather.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/dts-v1/;
#include <quicklogic/quicklogic_eos_s3.dtsi>
#include <zephyr/dt-bindings/pinctrl/quicklogic-eos-s3-pinctrl.h>

/ {
model = "QuickLogic Quick Feather board";
Expand Down Expand Up @@ -56,6 +57,19 @@
};
};

&pinctrl {
uart_rx_default: uart_rx_default {
pinmux = <QUICKLOGIC_EOS_S3_PINMUX_UART_RX_PAD
QUICKLOGIC_EOS_S3_PINMUX_UART_RX_PAD_CFG>;
input-enable;
};
uart_tx_default: uart_tx_default {
pinmux = <QUICKLOGIC_EOS_S3_PINMUX_UART_TX_PAD
QUICKLOGIC_EOS_S3_PINMUX_UART_TX_PAD_CFG>;
output-enable;
};
};

&cpu0 {
clock-frequency = <61440000>;
};
Expand All @@ -67,4 +81,6 @@
&uart0 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart_rx_default &uart_tx_default>;
pinctrl-names = "default";
};

0 comments on commit f6d3feb

Please sign in to comment.