raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
11.2k stars 5.03k forks source link

RP1 PIO support #6470

Closed pelwell closed 1 week ago

pelwell commented 1 week ago

This patch set provides support for accessing the PIO hardware in RP1. Aside from the data FIFOs, the registers are inaccessible over PCIe, so all interactions must be proxied via the RP1 firmware.

The included pwm-pio driver and overlay provides up to 4 PWM channels on arbitrary header pins, and acts as an example of in-kernel usage.

Requires the latest Pi 5 EEPROM image. User-space support and some more examples can be found in the utils repo: https://github.com/raspberrypi/utils/pull/102

(Incorporates #6464.)

pelwell commented 1 week ago

Note: I think there's a problem running on the 32-bit OS - probably the missing CONFIG_COMPAT support.

igorpecovnik commented 1 week ago

and when compiling:

https://paste.armbian.de/yufeboteja error: include/uapi/misc/rp1_pio_if.h: missing "WITH Linux-syscall-note" for SPDX-License-Identifier

pelwell commented 1 week ago

That doesn't look like a regular build error - are you installing headers?

igorpecovnik commented 1 week ago

are you installing headers?

Armbian build automation throws those errors out after this commit. I haven't look closer, but yes, it looks like headers are being installed in the process, line 20030 of paste. And I think they have to work.

pelwell commented 1 week ago

Does the patch in https://github.com/raspberrypi/linux/pull/6472 solve the problem?

pelwell commented 1 week ago

32-bit OS support now resolved by https://github.com/raspberrypi/linux/pull/6476.