EasyManua.ls Logo

duagon MC50M - Yocto BSP, SMBus;I2 C Access, and Watchdog Triggering

duagon MC50M
85 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Getting Started
20MC50M00 E5
2020-10-20
35
2.6.2 Yocto Linux Board Support Package (BSP)
duagon offers a Linux BSP supporting the MC50M.
The BSP is intended to provide a quick start with the product in a Linux environment. It
allows easy creation of boot media for first tests. It may not include support for every
possible function, e.g., for licensing reasons.
2.6.3 Accessing SMBus/I2C Devices using Standard Linux I2C Tools
duagon provides an application note with detailed information:
2.6.4 Triggering the BMC Watchdog Directly via CPU GPIO
While standard Linux I2C tools provide access to the full BMC watchdog functionality, it
is also possible to trigger the watchdog directly by accessing a GPIO pin of the CPU
processor.
Finding the GPIO Number
» List currently available GPIOs:
The eighth GPIO of gpiochip0 is the watchdog trigger signal, i.e. 434 + 8 = 442.
Linux Kernels lower than 4.8
» Export GPIO no. 442:
» Configure the GPIO as output:
More information and download:
www.duagon.com/products/mc50m/#downl
BSP documentation:
www.duagon.com/products/mc50m/#doc
See the duagon website: Using the Standard I2C Tools on MEN CPUs under
Linux
More information on supported functions and hardware implementation
See Chapter SMBus/I2C Devices
# cat /sys/kernel/debug/gpio
gpiochip3: GPIOs 267-309, parent: platform/INT3452:03, INT3452:03:
gpio-293 ( |0000:00:1b.0 ) in hi IRQ
gpiochip2: GPIOs 310-356, parent: platform/INT3452:02, INT3452:02:
gpiochip1: GPIOs 357-433, parent: platform/INT3452:01, INT3452:01:
gpiochip0: GPIOs 434-511, parent: platform/INT3452:00, INT3452:00:
# echo 442 > /sys/class/gpio/export
# echo out > /sys/class/gpio/gpio442/direction

Table of Contents