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 26, 2023
1 parent 35235a1 commit a680b9b
Show file tree
Hide file tree
Showing 4 changed files with 14 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.

14 changes: 14 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,17 @@
};
};

&pinctrl {
uart_rx_default: uart_rx_default {
pinmux = <UART_RX_PAD45>;
input-enable;
};
uart_tx_default: uart_tx_default {
pinmux = <UART_TX_PAD44>;
output-enable;
};
};

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

0 comments on commit a680b9b

Please sign in to comment.