[PATCH v2 0/2] add support for GPIO based counter

2021-01-22 Thread Oleksij Rempel
changes v3: - convert counter to atomic_t changes v2: - add commas - avoid possible unhandled interrupts in the enable path - do not use of_ specific gpio functions Add support for GPIO based pulse counter. For now it can only count pulses. With counter char device support, we will be able to att

[PATCH v2 0/2] add support for GPIO based counter

2021-01-22 Thread Oleksij Rempel
changes v2: - add commas - avoid possible unhandled interrupts in the enable path - do not use of_ specific gpio functions Add support for GPIO based pulse counter. For now it can only count pulses. With counter char device support, we will be able to attach timestamps and measure actual pulse fre