From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933480AbcFJN0x (ORCPT ); Fri, 10 Jun 2016 09:26:53 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:7781 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932450AbcFJN0v (ORCPT ); Fri, 10 Jun 2016 09:26:51 -0400 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Fri, 10 Jun 2016 06:24:24 -0700 Message-ID: <575ABD10.60208@nvidia.com> Date: Fri, 10 Jun 2016 18:43:52 +0530 From: Laxman Dewangan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Javier Martinez Canillas CC: Michael Turquette , Stephen Boyd , Rob Herring , , "devicetree@vger.kernel.org" , Linux Kernel Subject: Re: [PATCH 2/2] clk: max77620: Add clock driver for MAX77620/MAX20024 References: <1465553536-23838-1-git-send-email-ldewangan@nvidia.com> <1465553536-23838-2-git-send-email-ldewangan@nvidia.com> In-Reply-To: X-Originating-IP: [10.19.65.30] X-ClientProxiedBy: BGMAIL103.nvidia.com (10.25.59.12) To bgmail102.nvidia.com (10.25.59.11) Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 10 June 2016 06:50 PM, Javier Martinez Canillas wrote: > Hello Laxman, > > On Fri, Jun 10, 2016 at 6:12 AM, Laxman Dewangan wrote: >> MAXIM MAX77620 is the power management IC with multiple DCDC/LDO( >> regulators, RTC, GPIOs, Watchdog, 32KHz clock source etc. >> >> Add support for controlling the 32KHz clock source via clock >> framework. >> >> Signed-off-by: Laxman Dewangan >> --- > It looks very similar to the max77686 and max77802 drivers (with only > the difference in number of clock outputs), can you use the helpers in > drivers/clk/clk-max-gen.c ? I have explored that option. The bit location for clock bit on register are same in case of max77686 and max77802 but it is different for the max77620. So until I change it too generic, it will not be possible. Also if it is require then what about all max77686/max77802 and max77620 in single file, the way we did for RTC. We dont need 4 files for the similar driver then.