Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1583

interrupt pin configuration in RZ/A2M

$
0
0

Dear all,

I am using RZ/A2M custom board with 4.19 kernel, i want to use wiegand device in this board, i have the working driver for wiegand protocol, i have enabled weigand device in RZ/A1H board of 3.14 kernel, there i was configuring in mach-shmobile file, but in RZ/A2M it is 4.19 kernel i need to configure in .dts file, can any one help me how to configure irq pins in .dts file.

please find the configuration in mach-shmobile file of wiegand in RZ/A1H of 3.14 kernel

/* ==========================================================
* RFID WIEGAND Section
* ==========================================================*/
struct rfid_platform_data {
unsigned data0_irq;
unsigned data1_irq;
unsigned channel;
};

static struct rfid_platform_data rfid_data = {
.data0_irq = 34, /* IRQ2 for DATA0 -> Green Wire */
.data1_irq = 35, /* IRQ3 for DATA1 -> White Wire */
.channel = 1, /* for one channel */
};

static struct platform_device renesas_rfid_device = {
.name = "renesas_rfid",
.dev = {
.platform_data = &rfid_data,
},
};

static void __init acsrza1l_rfid_init(void)
{
/* Set for falling edge trigger for IRQ2 and IRQ3 */
void __iomem *irc1 = IOMEM(0xfcfef802);
__raw_writew(((__raw_readw(irc1) & ~(0xF << 4)) | (0x5 << 4)), irc1);


r7s72100_pfc_pin_assign(P1_10, ALT2, DIR_IN);
r7s72100_pfc_pin_assign(P1_11, ALT2, DIR_IN);

platform_device_register(&renesas_rfid_device);
}

  i need to configure the same in .dts file, please help me out

Thanks & regards

Mahesh R


Viewing all articles
Browse latest Browse all 1583

Trending Articles