Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752457AbbETITS (ORCPT ); Wed, 20 May 2015 04:19:18 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:58716 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750794AbbETITP (ORCPT ); Wed, 20 May 2015 04:19:15 -0400 From: Arnd Bergmann To: Stefan Agner Cc: linux-arm-kernel@lists.infradead.org, Sanchayan Maity , shawn.guo@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH v2 2/2] ARM: vf610: Add SoC bus support for Vybrid Date: Wed, 20 May 2015 10:18:48 +0200 Message-ID: <9101136.1OZzWnf52Q@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <61cec15fe896133ee6e102b0242fb43d@agner.ch> References: <9691074.oWRy1bscbz@wuerfel> <61cec15fe896133ee6e102b0242fb43d@agner.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:Dhklmv2ofSF3n/tsUhQLmb5xNq8vDz4p0BhLJvnIUeutTMhZkcA gFU8tDYpgwG2R/ZJ5Z2DBANz2U2YscjCgLykVIQ492UsNIkWcdMoELxxkKI8zIw7V8idKz2 r10T/Y1AQ068O1EjRCWq41dUcIziSzQVl+XRatnNZRfZ+YrM7/fSH79SArKZZLba8Jqv4f8 1IBuS4vmTlm1bPFMUEIkg== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1992 Lines: 46 On Wednesday 20 May 2015 09:36:38 Stefan Agner wrote: > On 2015-05-20 09:12, Arnd Bergmann wrote: > > On Wednesday 20 May 2015 11:06:52 Sanchayan Maity wrote: > >> Implements SoC bus support to export SoC specific information. Read > >> the unique SoC ID from the Vybrid On Chip One Time Programmable > >> (OCOTP) controller, SoC specific information from the Miscellaneous > >> System Control Module (MSCM), revision from the ROM revision register > >> and expose it via the SoC bus infrastructure. > >> > >> Sample Output: > >> > >> root@vf:/sys/devices/soc0# cat soc_id > >> df63c12a2e2161d4 > >> root@vf:/sys/devices/soc0# cat family > >> Freescale Vybrid VF500 > >> root@vf:/sys/devices/soc0# cat revision > >> 00000013 > >> root@vf:/sys/devices/soc0# cat machine > >> Freescale Vybrid > >> > > > > I would prefer to see this as a driver in drivers/soc that registers > > to a platform device. Is there any DT node that would be a reasonable > > device to bind to? > > Hm, what is a viable device? Probably the most SoC specific device in > the SoC? Currently, all three devices we read from do have a > vf610-something compatible string, hence would be SoC specific (ocotp, > ocrom and mscm-cpucfg). Probably the last is the most SoC specific... > > But somehow bind to just a random device sounds wrong to me. Couldn't we > add a more specific compatible string to the soc node and bind to that? mscm-cpucfg by the name sounds right to me, especially if we later want to add some exported functions or configuration to the driver. The other two (judging by the name without knowing anything about them) seem like pure data areas that may also be shared with other drivers and are better represented as syscon or eprom devices. 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/