Skip to content

Commit 8f61879

Browse files
authored
Merge pull request #1041 from kernelkit/imx8-graphic
imx8mp-evk: Add USB and HDMI support
2 parents 7560da8 + 5560266 commit 8f61879

File tree

4 files changed

+127
-2
lines changed

4 files changed

+127
-2
lines changed

board/common/rootfs/usr/sbin/container

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ while [ "$1" != "" ]; do
550550
;;
551551
-m | --mount)
552552
shift
553-
mount="--mount=$1"
553+
mount="$mount --mount=$1"
554554
;;
555555
--manual)
556556
manual=true
@@ -696,7 +696,7 @@ case $cmd in
696696
oci)
697697
find $BUILTIN $DOWNLOADS -type f 2>/dev/null
698698
;;
699-
*)
699+
*)
700700
podman ps $all --format "{{.Names}}"
701701
;;
702702
esac

doc/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ All notable changes to the project are documented in this file.
1111
- Upgrade sysrepo to 3.6.11
1212
- Upgrade netopeer2 (NETCONF) to 2.4.1
1313
- Add documentation on Infix upgrading and downgrading, issue #1009
14+
- Add HDMI and USB support for iMX8MP-evk
1415

1516
### Fixes
17+
- Fix containers with multiple mounts
1618

1719

1820
[v25.04.0][] - 2025-04-30

package/board/freescale-imx8mp-evk/imx8mp-evk.mk

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@ define FREESCALE_IMX8MP_EVK_LINUX_CONFIG_FIXUPS
2020
$(call KCONFIG_ENABLE_OPT,CONFIG_INTERCONNECT_IMX)
2121
$(call KCONFIG_ENABLE_OPT,CONFIG_INTERCONNECT_IMX8MP)
2222
$(call KCONFIG_ENABLE_OPT,CONFIG_REALTEK_PHY)
23+
# For X
24+
$(call KCONFIG_ENABLE_OPT,CONFIG_DRM)
25+
$(call KCONFIG_ENABLE_OPT,CONFIG_DRM_ETNAVIV)
26+
$(call KCONFIG_ENABLE_OPT,CONFIG_DRM_IMX8MP_DW_HDMI_BRIDGE)
27+
$(call KCONFIG_ENABLE_OPT,CONFIG_PHY_FSL_SAMSUNG_HDMI_PHY)
28+
$(call KCONFIG_ENABLE_OPT,CONFIG_DRM_IMX8MP_HDMI_PVI)
29+
$(call KCONFIG_ENABLE_OPT,CONFIG_DRM_IMX_LCDIF)
30+
$(call KCONFIG_ENABLE_OPT,CONFIG_INPUT_MOUSE)
31+
$(call KCONFIG_ENABLE_OPT,CONFIG_INPUT_MOUSEDEV)
32+
$(call KCONFIG_ENABLE_OPT,CONFIG_HID_GENERIC)
33+
34+
# For USB
35+
$(call KCONFIG_DISABLE_OPT,CONFIG_USB)
36+
$(call KCONFIG_ENABLE_OPT,CONFIG_USB)
37+
$(call KCONFIG_ENABLE_OPT,CONFIG_USB_DWC3)
38+
$(call KCONFIG_DISABLE_OPT,CONFIG_USB_DWC3_GADGET)
39+
$(call KCONFIG_ENABLE_OPT,CONFIG_USB_DWC3_HOST)
40+
$(call KCONFIG_ENABLE_OPT,CONFIG_ARM_IMX_BUS_DEVFREQ)
41+
$(call KCONFIG_ENABLE_OPT,CONFIG_TYPEC_TCPCI)
42+
$(call KCONFIG_ENABLE_OPT,CONFIG_TYPEC_SWITCH_GPIO)
2343
endef
2444

2545
$(eval $(ix-board))

src/board/freescale-imx8mp-evk/dts/freescale/imx8mp-evk.dts

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,109 @@
11
#include <arm64/freescale/imx8mp-evk.dts>
2+
#include <dt-bindings/usb/pd.h>
3+
&usb3_phy0 {
4+
5+
status = "okay";
6+
};
7+
&iomuxc {
8+
pinctrl_typec_mux: typec1muxgrp {
9+
fsl,pins = <
10+
MX8MP_IOMUXC_SAI1_MCLK__GPIO4_IO20 0x16
11+
>;
12+
};
13+
pinctrl_typec: typec1grp {
14+
fsl,pins = <
15+
MX8MP_IOMUXC_SAI1_TXD7__GPIO4_IO19 0x1c4
16+
>;
17+
};
18+
};
19+
20+
&i2c2 {
21+
ptn5110: tcpc@50 {
22+
compatible = "nxp,ptn5110";
23+
pinctrl-names = "default";
24+
pinctrl-0 = <&pinctrl_typec>;
25+
reg = <0x50>;
26+
interrupt-parent = <&gpio4>;
27+
interrupts = <19 8>;
28+
29+
port {
30+
typec_dr_sw: endpoint {
31+
remote-endpoint = <&usb3_drd_sw>;
32+
};
33+
};
34+
35+
usb_con: connector {
36+
compatible = "usb-c-connector";
37+
label = "USB-C";
38+
power-role = "dual";
39+
data-role = "dual";
40+
try-power-role = "sink";
41+
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
42+
sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
43+
PDO_VAR(5000, 20000, 3000)>;
44+
op-sink-microwatt = <15000000>;
45+
self-powered;
46+
47+
ports {
48+
#address-cells = <1>;
49+
#size-cells = <0>;
50+
51+
port@1 {
52+
reg = <1>;
53+
typec_con_ss: endpoint {
54+
remote-endpoint = <&usb3_data_ss>;
55+
};
56+
};
57+
};
58+
};
59+
};
60+
};
61+
&usb3_phy0 {
62+
fsl,phy-tx-vref-tune = <0xe>;
63+
fsl,phy-tx-preemp-amp-tune = <3>;
64+
fsl,phy-tx-vboost-level = <5>;
65+
fsl,phy-comp-dis-tune = <7>;
66+
fsl,pcs-tx-deemph-3p5db = <0x21>;
67+
fsl,phy-pcs-tx-swing-full = <0x7f>;
68+
status = "okay";
69+
};
70+
71+
&usb3_0 {
72+
status = "okay";
73+
};
74+
75+
&usb_dwc3_0 {
76+
dr_mode = "otg";
77+
hnp-disable;
78+
srp-disable;
79+
adp-disable;
80+
usb-role-switch;
81+
role-switch-default-mode = "none";
82+
snps,dis-u1-entry-quirk;
83+
snps,dis-u2-entry-quirk;
84+
status = "okay";
85+
86+
port {
87+
usb3_drd_sw: endpoint {
88+
remote-endpoint = <&typec_dr_sw>;
89+
};
90+
};
91+
};
292

393
/ {
94+
gpio-sbu-mux {
95+
compatible = "gpio-sbu-mux";
96+
pinctrl-names = "default";
97+
pinctrl-0 = <&pinctrl_typec_mux>;
98+
switch-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
99+
orientation-switch;
100+
101+
port {
102+
usb3_data_ss: endpoint {
103+
remote-endpoint = <&typec_con_ss>;
104+
};
105+
};
106+
};
4107
chosen {
5108
infix {
6109
/* "admin" */

0 commit comments

Comments
 (0)