Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966234AbbD1Ofu (ORCPT ); Tue, 28 Apr 2015 10:35:50 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:35118 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966200AbbD1Ofp (ORCPT ); Tue, 28 Apr 2015 10:35:45 -0400 MIME-Version: 1.0 In-Reply-To: <20150428141205.GG10950@lukather> References: <553CCABA.3090504@redhat.com> <12F80B18-7418-430E-94F7-5A20C133BA9A@martin.sperl.org> <20150426125113.GF5627@lukather> <20150427101601.GN22845@sirena.org.uk> <20150427173036.GA10950@lukather> <20150427180728.GW22845@sirena.org.uk> <28a25eda-bba0-4a2e-9890-b3d3bef7ac7e@googlegroups.com> <20150428141205.GG10950@lukather> From: Michal Suchanek Date: Tue, 28 Apr 2015 16:35:02 +0200 Message-ID: Subject: Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example. To: Maxime Ripard Cc: "Eric D." , linux-sunxi , Hans de Goede , Jonathan Corbet , Martin Sperl , Mark Brown , Linux Kernel Mailing List , linux-spi 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: 1296 Lines: 40 On 28 April 2015 at 16:12, Maxime Ripard wrote: > On Tue, Apr 28, 2015 at 07:03:16AM -0700, Eric D. wrote: >> Hi, >> >> I give Maxime's patch a try and got 4 spidev devices : >> /dev/spidev32766.[0-3] >> >> root@bpi:~# ls -lh /dev/spidev* >> crw------- 1 root root 153, 0 Apr 28 15:52 /dev/spidev32766.0 >> crw------- 1 root root 153, 1 Apr 28 15:52 /dev/spidev32766.1 >> crw------- 1 root root 153, 2 Apr 28 15:52 /dev/spidev32766.2 >> crw------- 1 root root 153, 3 Apr 28 15:52 /dev/spidev32766.3 >> >> Shouldn't they be numbered from like spidev0.[0-3]. >> Is this an udev problem ? any clues ? > > You're missing an SPI alias in the DT. Indeed, adding some SPI aliases makes the device nodes tidier: aliases { serial0 = &uart0; serial1 = &uart2; serial2 = &uart3; spi0 = &spi0; spi1 = &spi1; spi2 = &spi2; }; However, SPI usage examples I have seen showed some random high number. 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/