Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751964AbbDZL0x (ORCPT ); Sun, 26 Apr 2015 07:26:53 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:38138 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751075AbbDZL0v (ORCPT ); Sun, 26 Apr 2015 07:26:51 -0400 MIME-Version: 1.0 In-Reply-To: <20150426110144.GK22845@sirena.org.uk> References: <20150426103257.GJ22845@sirena.org.uk> <20150426110144.GK22845@sirena.org.uk> From: Michal Suchanek Date: Sun, 26 Apr 2015 13:26:09 +0200 Message-ID: Subject: Re: [PATCH 2/3] spidev: Add DT binding example. To: Mark Brown Cc: 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: 1064 Lines: 27 On 26 April 2015 at 13:01, Mark Brown wrote: > On Sun, Apr 26, 2015 at 12:54:36PM +0200, Michal Suchanek wrote: >> On 26 April 2015 at 12:32, Mark Brown wrote: > >> > No, this is broken - nothing should ever bind to spidev as spidev. The >> > fact that we have a binding document at all is a bug. > >> And how do you get spidev if nothing binds to it? > >> When you boot without the binding no device is created. > > Describe your actual hardware in the DT then add the relevant device ID > to spidev. My hardware is a sunxi SPI controller and it is described in the DT. I have pins on the board which I want to use for connecting arbitrary devices. How do I add those to spidev other than creating a subnode of the spi controller and binding that to spidev? 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/