~~NOCACHE~~ ~~NOTOC~~ Embedded module en tqma8xx4 TQMa8Xx4 arm linux yocto YOCTO Linux \\ ===== Starterkit Interfaces and Functions ===== The microphone is not supported with the current BSP version. X8 X9 X10 {{ :en:arm:tqma8xx:linux:yocto:how_to:mba8xx_audio.png?nolink&400 |}} MBa8Xx There are two GPIO buttons on the MBa8Xx. They are bound to the gpio-keys driver, and can be tested with the evtest tool. | S2 | Button 0 | | S3 | Button 1 | {{ :en:arm:tqma8xx:linux:yocto:tqma8xx_gpio-button.png?nolink&400 |}} /dev/input/event1 evtest /dev/input/event1 The MBa8Xx provides the CAN interfaces CAN0 and CAN1. CAN FD can not be automatically configured by systemd machine units due to a limitation in the systemd version in Yocto Zeus. CAN FD can be enabled by the following commands in the shell: ip link set can0 down ip link set can0 up type can bitrate 500000 sample-point 0.75 dbitrate 4000000 dsample-point 0.8 fd on ip link set can1 down ip link set can1 up type can bitrate 500000 sample-point 0.75 dbitrate 4000000 dsample-point 0.8 fd on DIP switches SW1 and SW2 are used to configure the CAN interfaces CAN0 and CAN1. SWx-1 SWx-2 {{ :en:arm:tqma8xx:linux:yocto:tqma8xx_can_loopback.png?nolink&400 |}} STKa8Xx4 The STKa8Xx4 Starterkit provides two Gigabit Ethernet interfaces. In U-Boot eth0 is configured as default interface. The IP configuration can be done statically or by a DHCP server in the network. Both Ethernet interfaces are activated and configured by systemd-network. The configuration files for the interfaces are located in /lib/systemd/network/ these configuration files can be altered to customize the default interface configuration. | eth0 | 10-eth0.network | | eth1 | 10-eth1.network | tqma8xx4 arm 1 16 STKa8Xx4 **Note:** With MBa8Xx only one control interface for backlight is available (X22). ^ Interface ^ Device tree ^ | LVDS0 | imx8\[d,q\]xp-mba8xx-lvds0-tm070jvhg33.dtb | | LVDS1 | imx8\[d,q\]xp-mba8xx-lvds1-tm070jvhg33.dtb | '' (e.g. ''setenv fdt_file imx8qxp-mba8xx-lvds0-tm070jvhg33.dtb'') MBa8Xx three | SPI1| /dev/spidev0.0 | | SPI2| /dev/spidev1.0 | | SPI3| /dev/spidev2.0 | * SPI1: bridge between X5_7 (SPI1_SDO) and X5_9 (SPI1_SDI) * SPI2: bridge between X5_21 (SP2_SDO) and X5_23 (SPI2_SDI) * SPI3: bridge between X4_35 (SP3_SDI) and X4_37 (SPI3_SDO) STKa8Xx4 The STKa8Xx4 has two temperature sensors, one is located on the TQMa8Xx4 SOM and the other is located on the MBa8Xx baseboard. ^ Device ^ I²C Address ^ | TQMa8Xx4 | 0x1B | | MBa8Xx | 0x1C | **Read TQMa8Xx4 Temperature Sensor** cat /sys/devices/platform/bus@5a000000/5a810000.i2c/i2c-16/16-001b/hwmon/hwmon0/temp1_input **Read MBa8Xx Temperature Sensor** cat /sys/devices/platform/bus@5a000000/5a810000.i2c/i2c-16/16-001c/hwmon/hwmon1/temp1_input **Read CPU internal Temperature Sensor**\\\ The i.MX8Xx CPU has an internal TMU that supports two thermal zones, both can be read by the commands below: **Thermal zone0** cat /sys/devices/virtual/thermal/thermal_zone0/temp **Thermal zone1** cat /sys/devices/virtual/thermal/thermal_zone1/temp The MBa8Xx has two user controllable LEDs, the behavior of these LEDs can be selected by several triggers. | V12 | leda | green | /sys/class/leds/leda | | V13 | ledb | green | /sys/class/leds/ledb | {{ :en:arm:tqma8xx:linux:yocto:mba8xx_user_led.png?nolink&300 |}} /sys/devices/platform/gpio-leds/leds/ ledb /sys/class/leds/ledb/trigger
ip link set can0 down ip link set can0 up type can bitrate 500000 sample-point 0.75 dbitrate 4000000 dsample-point 0.8 fd on ip link set can1 down ip link set can1 up type can bitrate 500000 sample-point 0.75 dbitrate 4000000 dsample-point 0.8 fd on
cat /sys/devices/platform/bus@5a000000/5a810000.i2c/i2c-16/16-001b/hwmon/hwmon0/temp1_input
cat /sys/devices/platform/bus@5a000000/5a810000.i2c/i2c-16/16-001c/hwmon/hwmon1/temp1_input
cat /sys/devices/virtual/thermal/thermal_zone0/temp
cat /sys/devices/virtual/thermal/thermal_zone1/temp