Skip to content

Commit

Permalink
boards: qomu: 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 f6d3feb commit af77ec0
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 57 deletions.
4 changes: 0 additions & 4 deletions boards/arm/qomu/CMakeLists.txt

This file was deleted.

28 changes: 0 additions & 28 deletions boards/arm/qomu/board.c

This file was deleted.

25 changes: 0 additions & 25 deletions boards/arm/qomu/board.h

This file was deleted.

38 changes: 38 additions & 0 deletions boards/arm/qomu/qomu.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 Qomu board";
Expand Down Expand Up @@ -56,6 +57,40 @@
};
};

&pinctrl {
uart1_rx_default: uart1_rx_default {
pinmux = <QUICKLOGIC_EOS_S3_PINMUX_UART_RX_PAD
QUICKLOGIC_EOS_S3_PINMUX_UART_RX_PAD_CFG>;
input-enable;
};
uart1_tx_default: uart1_tx_default {
pinmux = <QUICKLOGIC_EOS_S3_PINMUX_UART_TX_PAD
QUICKLOGIC_EOS_S3_PINMUX_UART_TX_PAD_CFG>;
output-enable;
};
usb_pu_default: usb_pu_default {
pinmux = <QUICKLOGIC_EOS_S3_PINMUX_USB_PU_CTRL_PAD
QUICKLOGIC_EOS_S3_PINMUX_USB_PAD_CFG>;
bias-high-impedance;
control-selection = "fabric";
output-enable;
};
usb_dn_default: usb_dn_default {
pinmux = <QUICKLOGIC_EOS_S3_PINMUX_USB_DN_PAD
QUICKLOGIC_EOS_S3_PINMUX_USB_PAD_CFG>;
bias-high-impedance;
control-selection = "fabric";
output-enable;
};
usb_dp_default: usb_dp_default {
pinmux = <QUICKLOGIC_EOS_S3_PINMUX_USB_DP_PAD
QUICKLOGIC_EOS_S3_PINMUX_USB_PAD_CFG>;
bias-high-impedance;
control-selection = "fabric";
output-enable;
};
};

&cpu0 {
clock-frequency = <61440000>;
};
Expand All @@ -71,4 +106,7 @@
&uart1 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart1_rx_default &uart1_tx_default
&usb_pu_default &usb_dn_default &usb_dp_default>;
pinctrl-names = "default";
};

0 comments on commit af77ec0

Please sign in to comment.