Project

General

Profile

Fan Enable

To enable the fan on the SOM, the FAN_EN GPIO can be exported in sysfs and driven high. An example of this can be seen below (the pin number, 423 in this example, might vary):

root@mitysom-agilex5:~# cat /sys/kernel/debug/gpio
gpiochip3: GPIOs 400-423, parent: platform/10c03300.gpio, 10c03300.gpio:
 gpio-420 (ETH1_RESETN         )
 gpio-423 (FAN_EN              )

gpiochip2: GPIOs 424-447, parent: platform/10c03200.gpio, 10c03200.gpio:
 gpio-427 (USB_RESETN          )
 gpio-429 (SDCARD_PRESENT      )

gpiochip1: GPIOs 448-479, parent: platform/10d120e8.gpio, 10d120e8.gpio:

gpiochip0: GPIOs 480-511, parent: platform/10d120e4.gpio, 10d120e4.gpio:
 gpio-480 (FABRIC_RESET        )
 gpio-481 (DEBUG_LED1          |:status             ) out lo
 gpio-482 (DEBUG_LED2          |:status_1           ) out lo
root@mitysom-agilex5:~# echo 423 > /sys/class/gpio/export
root@mitysom-agilex5:~# echo out > /sys/class/gpio/gpio423/direction
root@mitysom-agilex5:~# echo 1 > /sys/class/gpio/gpio423/value

Go to top
Add picture from clipboard (Maximum size: 1 GB)