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 authored and carlescufi committed Jul 26, 2023
1 parent d1c5652 commit 36b5769
Show file tree
Hide file tree
Showing 4 changed files with 33 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.

33 changes: 33 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,35 @@
};
};

&pinctrl {
uart1_rx_default: uart1_rx_default {
pinmux = <UART_RX_PAD45>;
input-enable;
};
uart1_tx_default: uart1_tx_default {
pinmux = <UART_TX_PAD44>;
output-enable;
};
usb_pu_default: usb_pu_default {
pinmux = <USB_PU_CTRL_PAD23>;
bias-high-impedance;
quicklogic,control-selection = "fabric";
output-enable;
};
usb_dn_default: usb_dn_default {
pinmux = <USB_DN_PAD28>;
bias-high-impedance;
quicklogic,control-selection = "fabric";
output-enable;
};
usb_dp_default: usb_dp_default {
pinmux = <USB_DP_PAD31>;
bias-high-impedance;
quicklogic,control-selection = "fabric";
output-enable;
};
};

&cpu0 {
clock-frequency = <61440000>;
};
Expand All @@ -71,4 +101,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 36b5769

Please sign in to comment.