From patchwork Thu Jun 13 15:52:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Machek X-Patchwork-Id: 2717441 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 921979F472 for ; Thu, 13 Jun 2013 15:53:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8DB5E20497 for ; Thu, 13 Jun 2013 15:53:16 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4CD4220495 for ; Thu, 13 Jun 2013 15:53:15 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Un9po-0006NV-2X; Thu, 13 Jun 2013 15:53:12 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Un9pl-0008M1-FI; Thu, 13 Jun 2013 15:53:09 +0000 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Un9pf-0008LU-3b for linux-arm-kernel@lists.infradead.org; Thu, 13 Jun 2013 15:53:07 +0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 830E981697; Thu, 13 Jun 2013 17:52:41 +0200 (CEST) Date: Thu, 13 Jun 2013 17:52:40 +0200 From: Pavel Machek To: Tony Lindgren Subject: Re: N900 device tree conversion: how to do first step Message-ID: <20130613155240.GB3775@amd.pavel.ucw.cz> References: <20130609015944.GA23559@amd.pavel.ucw.cz> <20130609201119.GA3190@blackmetal.musicnaut.iki.fi> <20130613132624.GA3464@amd.pavel.ucw.cz> <20130613141001.GF8164@atomide.com> <20130613142809.GA3775@amd.pavel.ucw.cz> <20130613145724.GH8164@atomide.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130613145724.GH8164@atomide.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130613_115303_313831_5548EA32 X-CRM114-Status: GOOD ( 21.35 ) X-Spam-Score: -1.9 (-) Cc: linux-omap@vger.kernel.org, pali.rohar@gmail.com, kernel list , linux-arm-kernel , Aaro Koskinen X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi! > * Pavel Machek [130613 07:34]: > > On Thu 2013-06-13 07:10:01, Tony Lindgren wrote: > > > * Pavel Machek [130613 06:32]: > > > > > > > If I init spi manually (and some more hacks), it works in the > > > > qemu. But I have not tested on real hw for a while. > > > > > > You should be able to initialize spi by adding the .dts entry, > > > or is there something missing in drivers/spi/spi-omap2-mcspi.c? > > > > Not sure, I guess I'll find out soon. Do you have example dts that > > uses drivers/spi/spi-omap2-mcspi.c? Grepping spi in dts/ was not too > > successful. > > Hmm I think all we have is what's written in > Documentation/devicetree/bindings/spi/omap-spi.txt and > omap4-sdp.dts. Ok, this was easier than expected. Now, by chance, any idea what is DT equivalent of omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); ? (Plus I'll still have to figure out why it works on emulator but not on hw). Thanks, Pavel diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 10a880f..3918ae1 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -65,6 +65,14 @@ status = "disabled"; }; +&mcspi1 { + mipid@2 { + compatible = "acx565akm"; + spi-max-frequency = <6000000>; + reg = <2>; + }; +}; + /* &usb_otg_hs { interface-type = <0>; diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 996ffc3..597ade9 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c @@ -130,9 +130,10 @@ void __init omap_generic_init(void) regulator_use_dummy_regulator(); omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); - +#if 0 spi_register_board_info(rx51_peripherals_spi_board_info, ARRAY_SIZE(rx51_peripherals_spi_board_info)); +#endif #else rx51_video_init(); #endif