From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753163AbbATPgn (ORCPT ); Tue, 20 Jan 2015 10:36:43 -0500 Received: from mail-ig0-f177.google.com ([209.85.213.177]:33435 "EHLO mail-ig0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751145AbbATPgl (ORCPT ); Tue, 20 Jan 2015 10:36:41 -0500 Date: Tue, 20 Jan 2015 15:36:32 +0000 From: Lee Jones To: Alexandre Belloni Cc: Nicolas Ferre , Daniel Lezcano , Boris Brezillon , Jean-Christophe Plagniol-Villard , Thomas Gleixner , Samuel Ortiz , Wim Van Sebroeck , Guenter Roeck , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org Subject: Re: [PATCH v3 2/8] mfd: Add atmel-st driver Message-ID: <20150120153632.GA13701@x1> References: <1421077023-30954-1-git-send-email-alexandre.belloni@free-electrons.com> <1421077023-30954-3-git-send-email-alexandre.belloni@free-electrons.com> <20150119094224.GJ21886@x1> <20150119225923.GG5014@piout.net> <20150120094739.GM5767@x1> <20150120150501.GH5014@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150120150501.GH5014@piout.net> 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 On Tue, 20 Jan 2015, Alexandre Belloni wrote: > On 20/01/2015 at 09:47:39 +0000, Lee Jones wrote : > > > > This driver looks pretty pointless. Why can't you request the sysconf > > > > registers from within the drivers themselves? > > > > > > > > > > How would you probe the watchdog driver then? Would you had the > > > "atmel,at91rm9200-st" compatible there? > > > > > > At some point in time, we should add the reset driver, would you also > > > match it on "atmel,at91rm9200-st"? > > > > > > I'm fine with that as this allows to avoid the mfd driver. > > > > I'm sorry, I don't follow. Why can't each driver have their own > > compatible strings? > > > > The same IP provides a clocksource, a watchdog and is also the reset > controller. I think that the DT guidelines requires that the DT > describes the hardware and so use one compatible for that IP; Not to my knowledge. There are lots of single chip devices which have multiple compatible strings. What's stopping you from representing this device under the syscfg node? -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog