Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932334AbbD0Gv6 (ORCPT ); Mon, 27 Apr 2015 02:51:58 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:35155 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932065AbbD0Gvy (ORCPT ); Mon, 27 Apr 2015 02:51:54 -0400 MIME-Version: 1.0 In-Reply-To: <20150426154728.GK5627@lukather> References: <20150426103257.GJ22845@sirena.org.uk> <20150426110144.GK22845@sirena.org.uk> <553CCABA.3090504@redhat.com> <12F80B18-7418-430E-94F7-5A20C133BA9A@martin.sperl.org> <20150426125113.GF5627@lukather> <20150426143359.GI5627@lukather> <553CF8F2.6070204@redhat.com> <20150426154728.GK5627@lukather> From: Michal Suchanek Date: Mon, 27 Apr 2015 08:51:12 +0200 Message-ID: Subject: Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example. To: Maxime Ripard Cc: Hans de Goede , Martin Sperl , Mark Brown , linux-sunxi , Jonathan Corbet , linux-spi , linux-doc , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1670 Lines: 42 On 26 April 2015 at 17:47, Maxime Ripard wrote: > On Sun, Apr 26, 2015 at 04:40:50PM +0200, Hans de Goede wrote: >> Hi, >> >> I've a feeling everyone in this thread is ignoring the >> raspberry pi use-case. Where the board is specifically >> designed for educational purposes and used with lots of >> peripherals which are usually programmed from userspace >> using e.g. python bindings for i2c-dev or spidev, for >> such a setup we really want spidev to be loaded on the >> spibus by default and we really do not have a proper >> compatible for a child device. > > I'm not sure we're ignoring it, it just is the exact same use case > than the whole spidev use case: people want to write SPI userspace > drivers, the rpi really is not special here, except maybe for its user > space code base, but it really boils down to the same issue. > >> And no having to use per device devicetree overlays >> for this is not the answer, this needs to be really >> really easy. With pre device-tree kernels this just >> works, we should be able to match that ease of use >> with devicetree. > > We do agree on that. We repeatedly told that the DT was not a good > solution, overlays or not, and this is exactly one of the reasons. > Ok, so how about skipping the bindings altogether. Just instantiate a spidev for each SPI bus and each CS the SPI core knows of once spidev is loaded. Thanks Michal -- 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/