Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

dtb seems correct but device driver not functioning

THANKS IN ADVANCE.

I've been working with Altera Cyclone V Dev Kit GSRD 14.1. I added a custom IP" UART_FIFO_AV_0" (that we've used before) that utilizes HSMC HSM_D0 and HSM_D1. "I believe" I have generated a good .dtb file.

When I # ] insmod myDriver.ko

The probe function uses:

of_match_device

platform_get_resource (should I be using of_address_to_resource ? that fails)

request_mem_region

of_iomap

AND THEN I can see that in: /proc/device-tree/sopc@0 directory I have my entry.

BUT when I try and write out to the HPS pins I see no activity.

I've been going around in circles - I must be missing something fundamental.

I'm attaching my *.dts file that I use to create my .dtb

ANY IDEAS WILL BE APPRECIATED - I"VE BEEN AT THIS FOR DAYS AND I FEEL LIKE I'M GOING NOWHERE.

No RepliesBe the first to reply