Skip to content

Tag: linux-device-driver

Kernel API to get Physical RAM Offset

I’m writing a device driver (for Linux kernel 2.6.x) that interacts directly with physical RAM using physical addresses. For my device’s memory layout (according to the output of cat /proc/iomem), System RAM begins at physical address 0x80000000; however, this code may run on other devices with di…

Linux enable pca9685 in sysfs

I would like to enable a PCA9685 as a PWM in /sys/class/pwm/. The Platform is a Raspberry Pi 2 and the chip is connected to /dev/i2c-1. I find the chip with i2c-detect, but i don’t know how do I enable this driver: http://lxr.free-electrons.com/source/drivers/pwm/pwm-pca9685.c. I also found this but it …