From patchwork Sun Jun 9 16:47:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pavel Machek X-Patchwork-Id: 2694501 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id F0515DF2A1 for ; Sun, 9 Jun 2013 16:48:23 +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 1Ulimw-0002Rc-Fq; Sun, 09 Jun 2013 16:48:18 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ulimt-0008Eq-LC; Sun, 09 Jun 2013 16:48:15 +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 1Ulimq-0008E3-Dy for linux-arm-kernel@lists.infradead.org; Sun, 09 Jun 2013 16:48:13 +0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id E025B816BD; Sun, 9 Jun 2013 18:47:49 +0200 (CEST) Date: Sun, 9 Jun 2013 18:47:45 +0200 From: Pavel Machek To: Pali =?iso-8859-1?Q?Roh=E1r?= Subject: Re: N900 device tree conversion: how to do first step Message-ID: <20130609164745.GB16066@amd.pavel.ucw.cz> References: <20130609015944.GA23559@amd.pavel.ucw.cz> <201306091124.41251@pali> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201306091124.41251@pali> 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-20130609_124812_579673_0B0E02E9 X-CRM114-Status: GOOD ( 15.85 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [195.113.26.193 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: lauri.leukkunen@nokia.com, linux-omap@vger.kernel.org, kernel list , linux-arm-kernel , aaro.koskinen@iki.fi 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 On Sun 2013-06-09 11:24:40, Pali Rohár wrote: > On Sunday 09 June 2013 03:59:44 Pavel Machek wrote: > > Hi! > > > > I'd like to convert Nokia N900 to device tree. > > > > Unfortunately, serial port is not easily available (very > > special cable would be needed, does someone know where to get > > one?) and I don't have BDI (and very special cable would be > > needed, too). > > > > Hello, > > I used serial port only in qemu for debugging. Maybe you can try > to play with qemu first. Qemu has good n900 HW support. Yes, qemu is helpful. For the record: this is how you use it. KERNEL=/data/l/linux-n900/zImage_dtb ./qflasher -m rx51 -x ./xloader-qemu.bin -s ./secondary-qemu.bin -k $KERNEL -o n900.img -p k=6072 > sd-empty ./qemu-system-arm -s -M n900 -mtdblock n900.img -sd sd-empty -serial stdio -clock unix -redir tcp:5555:10.0.2.15:22 ...and this patch is needed to make it past rx51_init. Author: Pavel Date: Sun Jun 9 18:45:39 2013 +0200 Comment out errata workaround that breaks qemu. diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c index 938e46f..0ffd7d3 100644 --- a/arch/arm/mach-omap2/board-rx51.c +++ b/arch/arm/mach-omap2/board-rx51.c @@ -108,11 +108,13 @@ static void __init rx51_init(void) rx51_peripherals_init(); rx51_camera_init(); +#if 0 #ifdef CONFIG_ARM_ERRATA_430973 printk(KERN_INFO "RX-51: Enabling ARM errata 430973 workaround.\n"); /* set IBE to 1 */ rx51_secure_update_aux_cr(1 << 6, 0); #endif +#endif /* Ensure SDRC pins are mux'd for self-refresh */ omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);