AT91 timer/counter as clock output from devicetree

From: Michael Welling
Date: Thu Jun 25 2015 - 20:17:22 EST


I have run into situation with AT91 based products where I am at a
loss as to how to properly approproach implementing a driver/solution.

Several boards that I have dealt with are using the AT91's timer/counter pins
to emulate a simple clock output.

Currently, the only way I have found to emulate a clock output is to enable
the atmel,tcb-pwm driver and initialize the PWM from userspace using the
sysfs layer.

I would like to initialize the timer/counter in the kernel based on an entry
in the devicetree.

Does anyone have suggestion on how and where implement this?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/