Skip to content

Commit

Permalink
MBa8MPxL: add basic files for TQ MBa8MPxL boards
Browse files Browse the repository at this point in the history
- add imx8m familie
- add MBa8MPxL and MBa8MPxL-RAS314 Boards (based on imx8m)

Signed-off-by: Martin Schmiedel <[email protected]>
  • Loading branch information
schmiedelm authored and igorpecovnik committed Mar 9, 2024
1 parent 8cd1a3d commit d10e4b4
Show file tree
Hide file tree
Showing 12 changed files with 12,644 additions and 0 deletions.
41 changes: 41 additions & 0 deletions config/boards/mba8mpxl-ras314.wip
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# MBa8MPxL-RAS314 with TQMa8MPxL
BOARD_NAME="TQ8MP-RAS314"
BOARDFAMILY="imx8m"
ATF_PLAT="imx8mp"
ATF_UART_BASE="0x30a60000"
BOOTCONFIG="tqma8mpxl_multi_mba8mp_ras314_defconfig"
KERNEL_TARGET="current"
DEFAULT_CONSOLE="serial"
SERIALCON="ttymxc3"
BOOT_FDT_FILE="freescale/imx8mp-tqma8mpql-mba8mp-ras314.dtb"
BOARD_FIRMWARE_INSTALL="-full"
PACKAGE_LIST_BOARD="gpiod python3-pip python3-periphery"

function post_family_tweaks_bsp__mba8mpxl-ras314() {

mkdir -p $destination/etc/udev/rules.d
cat <<- EOF > "$destination"/etc/udev/70-periphery.rules
# Allow group periphery to access devices
SUBSYSTEM=="gpio*", GROUP="periphery", MODE="0660"
SUBSYSTEM=="spidev*", GROUP="periphery", MODE="0660"
SUBSYSTEM=="pwm*", GROUP="periphery", MODE="0660"
SUBSYSTEM=="leds*", GROUP="periphery", MODE="0660"
EOF

# Define a function to be run board-side during postinst of the BSP
display_alert "Adding to bsp-cli" "${BOARD}: postinst for periferial access" "info"
postinst_functions+=("board_side_imx8m_bsp_cli_postinst") # add to the postinst function list
function board_side_imx8mpxl_bsp_cli_postinst() {
# Peripheral access for specific groups
addgroup --system --quiet periphery
}

mkdir -p "$destination"/etc/X11/xorg.conf.d
cat <<- EOF > "$destination"/etc/X11/xorg.conf.d/02-driver.conf
Section "Device"
Identifier "main"
driver "fbdev"
Option "fbdev" "/dev/fb0"
EndSection
EOF
}
22 changes: 22 additions & 0 deletions config/boards/mba8mpxl.wip
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# MBa8MPxL with TQMa8MPxL
BOARD_NAME="MBa8MPxL"
BOARDFAMILY="imx8m"
ATF_PLAT="imx8mp"
ATF_UART_BASE="0x30a60000"
BOOTCONFIG="tqma8mpxl_multi_mba8mpxl_defconfig"
KERNEL_TARGET="current"
DEFAULT_CONSOLE="serial"
SERIALCON="ttymxc3"
BOOT_FDT_FILE="freescale/imx8mp-tqma8mpql-mba8mpxl.dtb"
PACKAGE_LIST_BOARD="gpiod python3-pip python3-periphery"

function post_family_tweaks_bsp__mba8mpxl() {
mkdir -p "$destination"/etc/X11/xorg.conf.d
cat <<- EOF > "$destination"/etc/X11/xorg.conf.d/02-driver.conf
Section "Device"
Identifier "main"
driver "fbdev"
Option "fbdev" "/dev/fb0"
EndSection
EOF
}
Loading

0 comments on commit d10e4b4

Please sign in to comment.