From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753085AbbFZAQ5 (ORCPT ); Thu, 25 Jun 2015 20:16:57 -0400 Received: from mail-ie0-f172.google.com ([209.85.223.172]:33289 "EHLO mail-ie0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752995AbbFZAQt (ORCPT ); Thu, 25 Jun 2015 20:16:49 -0400 Date: Thu, 25 Jun 2015 19:16:48 -0500 From: Michael Welling To: Arnd Bergmann , Greg Kroah-Hartman , Nicolas Ferre , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: AT91 timer/counter as clock output from devicetree Message-ID: <20150626001648.GA20565@deathray> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?