This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/OMAP5432-EVM: Error : platform omap4iss: failed to claim resource 2

Part Number: OMAP5432-EVM

Tool/software: Linux

Hello everyone,

We are using the "platform_device_register(&omap4iss_device)" function call to add the platform data for the oma4iss driver. where the omap4iss_device structure is as below.

static struct platform_device omap4iss_device = {
    .name           = "omap4iss",
    .id             = -1,
    .dev = {
        .platform_data = &iss_pdata,
    },
    .num_resources  = ARRAY_SIZE(panda_iss_resource),
    .resource       = panda_iss_resource,
};

in above structure we are passing the "panda_iss_resource" array as below which will allocate the resource memory for the hardware address.


static struct resource panda_iss_resource[] = { { .start = 0x52000000, .end = 0x52000000 + 0x100, .name = "top", .flags = IORESOURCE_MEM, }, { .start = 0x52001000, .end = 0x52001000 + 0x170, .name = "csi2_a_regs1", .flags = IORESOURCE_MEM, }, { .start = 0x52001170, .end = 0x52001170 + 0x020, .name = "camerarx_core1", .flags = IORESOURCE_MEM, }, { .start = 0x52001400, .end = 0x52001400 + 0x170, .name = "csi2_b_regs1", .flags = IORESOURCE_MEM, }, { .start = 0x52001570, .end = 0x52001570 + 0x020, .name = "camerarx_core2", .flags = IORESOURCE_MEM, }, { .start = 0x52002000, .end = 0x52002000 + 0x200, .name = "bte", .flags = IORESOURCE_MEM, }, { .start = 0x52010000, .end = 0x52010000 + 0x0a0, .name = "isp_sys1", .flags = IORESOURCE_MEM, }, { .start = 0x52010400, .end = 0x52010400 + 0x400, .name = "isp_resizer", .flags = IORESOURCE_MEM, }, { .start = 0x52010800, .end = 0x52010800 + 0x800, .name = "isp_ipipe", .flags = IORESOURCE_MEM, }, { .start = 0x52011000, .end = 0x52011000 + 0x200, .name = "isp_isif", .flags = IORESOURCE_MEM, }, { .start = 0x52011200, .end = 0x52011200 + 0x080, .name = "isp_ipipeif", .flags = IORESOURCE_MEM, } };


Whenever we load the binary[zimage(kernel image)] on omap5432 board we face the below error.

platform omap4iss: failed to claim resource 2

Anyone who have face this type of issue so help us.





Thanks & Best Regards;
Nikunj Patel