Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751768AbaK0Xm1 (ORCPT ); Thu, 27 Nov 2014 18:42:27 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:55942 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751051AbaK0Xm0 (ORCPT ); Thu, 27 Nov 2014 18:42:26 -0500 From: Arnd Bergmann To: Boris Brezillon Cc: linux-arm-kernel@lists.infradead.org, Alexandre Belloni , Nicolas Ferre , linux-kernel@vger.kernel.org, Ludovic Desroches , Jean-Christophe PLAGNIOL-VILLARD Subject: Re: [PATCH 00/11] ARM: at91: remove !DT support for at91rm9200 Date: Fri, 28 Nov 2014 00:41:55 +0100 Message-ID: <2241590.9KpWgUxqh8@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20141128003938.7efb4ea0@bbrezillon> References: <3935244.Dm2HkZj2Bg@wuerfel> <20141128003938.7efb4ea0@bbrezillon> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V02:K0:+hg/2dm9xpuCUYDsB1JZChtBBvPq38wrGIMWFSpsksI opcd2w+KjOfsOmb+lfwvZ7IKZj+5f7IQ8gpRapwPKQOG2eoCZp i/qki9FCab8/2hBHMXU3TND4wm2PNYyZnvy6U4IVnn0v/c6hem P/gOJobHY2fLbOuZ8GwJJ2uofLOUEliF5AeJfwSfeXZ1wWeQRm dr5wQ62HFkoUZpM1FAn9taCj8UOrgRe8njy00WCDRZVOtRo6CP GDZqfzU7Eaqp6hYW1oTRcbnSqV9OLH7IEXNgCmzpy1u5e08FXf 1eMa0pcFykDB2KJp/YyDX4daroAxoO+bf9a6TkYaI3m7iLhtXy sL6nAiY5VZqaVwpaSl3Q= X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 28 November 2014 00:39:38 Boris Brezillon wrote: > Hi Arnd, > > On Fri, 28 Nov 2014 00:12:25 +0100 > Arnd Bergmann wrote: > > > On Thursday 27 November 2014 18:12:43 Alexandre Belloni wrote: > > > > > > As discussed some weeks ago, I prepared patches to switch sama5d[3-4] to > > > multiplatform. We are still missing the SMC and matrix drivers to switch > > > sam9 and rm9200. > > > > I just looked at the drivers because I got curious, and to see if > > there are still any low-hanging fruit, but I guess you already picked > > them all > > > > > The currently affected drivers are: > > > - drivers/ata/pata_at91.c (SMC) > > > - drivers/pcmcia/at91_cf.c (SMC) > > > > I guess the SMC should live in drivers/memory with an interface > > similar to mvebu-devbus.c? > > Actually, there's some work in progress to support the EBI/SMC blocks > as a memory controller driver ;-): > > http://thread.gmane.org/gmane.linux.kernel/1822096 > > I'll post a new version soon. Ok, cool. > > > > Seems doable but nontrivial. > > > > > - drivers/usb/gadget/udc/at91_udc.c (Matrix, this is the only one > > > for sam9) > > > > Is at91_matrix a pin controller? With the board files removed, the udc > > driver has the only two remaining calls to at91_matrix_{read,write} > > for setting the pullup, so that could be modeled as a trivial pinctrl > > driver > > The matrix block is containing several system configuration registers. > Most of them are related to AHB/APB bus config (master <-> slave > priority, burst and some other configs I don't remember). > Another register is here to define which HW logic is attached to an > external device connected through the EBI (External Bus Interface): > NAND, SDRAM, CompactFlash, ... > And, as you pointed out, there's a register to configure the pullup of > the UDC device. > > As you can see, the matrix registers might be accessed by different > drivers (include the EBI/SMC driver), hence I proposed to expose them as > a syscon device (see the EBI/SMC series). > Sounds good. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/