From patchwork Tue Aug 14 14:16:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Genoud X-Patchwork-Id: 1319881 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 0E4EF40210 for ; Tue, 14 Aug 2012 14:20:13 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T1HvK-0002tv-0M; Tue, 14 Aug 2012 14:16:46 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T1HvG-0002th-LC for linux-arm-kernel@lists.infradead.org; Tue, 14 Aug 2012 14:16:43 +0000 Received: by lbbgf7 with SMTP id gf7so253102lbb.36 for ; Tue, 14 Aug 2012 07:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=gJjNUutULpM4yVto0aEMBswmewd22m6Xz6MEU3WhO6I=; b=oBBeMsEzNx87SSU9JT9GGXwMx6CPfgf2vX4D61WH7xpiNZo5GOxmrLxNx9rsf1Idp/ 0PhFSnFu3n7Mf3NSlWdjX9F/UCmU1E/MDC2S4BaKzESFn0G+ie+ftMYwr85sPMXU826F I7FFH3QOJxUDfxzm81ZCm3PH17V284vhOrNIK3cJxPK6DkXUh/R9ivAbtUc4UN+PnMia dmjzlILl/eefubmVdgAeayarYeiJb1awuqfR3hO8ApNVlHgqHbRZb24ASwDBOcq+HJXP lFciIoesN5Z8nLPsLpgqHRSnJAJ6OdNPrf1XVEi4ewBCLsBzBODCrUbblGcYuwSJWOtM KEGw== Received: by 10.112.10.198 with SMTP id k6mr8188089lbb.83.1344953800584; Tue, 14 Aug 2012 07:16:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.29.1 with HTTP; Tue, 14 Aug 2012 07:16:19 -0700 (PDT) In-Reply-To: <1344952177-18385-1-git-send-email-richard.genoud@gmail.com> References: <1344952177-18385-1-git-send-email-richard.genoud@gmail.com> From: Richard Genoud Date: Tue, 14 Aug 2012 16:16:19 +0200 Message-ID: Subject: Re: [PATCH 00/23] work in progress: SPI controller w/DMA SAM9X5 To: Nicolas Ferre X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (richard.genoud[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Richard Genoud , Jean-Christophe PLAGNIOL-VILLARD , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 2012/8/14 Richard Genoud : > Nicolas, > I said that I had some work done on sam9g35-ek, here is the spi part, based > on your and Jean-Christophe work. > You have to enable CONFIG_ARCH_AT91SAM9X5 to get it work. I forgot something: As I didn't get pinctrl to work, on top of this patchset, I did a revert of "ARM: at91: add pinctrl support" and I made this change : diff --git a/arch/arm/mach-at91/at91sam9x5.c b/arch/arm/mach-at91/at91sam9x5.c index e213e2d..bc3fdbf 100644 --- a/arch/arm/mach-at91/at91sam9x5.c +++ b/arch/arm/mach-at91/at91sam9x5.c @@ -313,6 +313,13 @@ static void __init at91sam9x5_map_io(void) at91_init_sram(0, AT91SAM9X5_SRAM_BASE, AT91SAM9X5_SRAM_SIZE); } + +void __init at91sam9x5_initialize(void) +{ + /* Register GPIO subsystem (using DT) */ + at91_gpio_init(NULL, 0); +} + /* -------------------------------------------------------------------- * Interrupt initialization * -------------------------------------------------------------------- */ @@ -320,4 +327,5 @@ static void __init at91sam9x5_map_io(void) struct at91_init_soc __initdata at91sam9x5_soc = { .map_io = at91sam9x5_map_io, .register_clocks = at91sam9x5_register_clocks, + .init = at91sam9x5_initialize, }; I also enabled the spi controller in the DTS: diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index ef09816..cc1c830 100644 --- a/arch/arm/boot/dts/at91sam9x5.dtsi +++ b/arch/arm/boot/dts/at91sam9x5.dtsi @@ -363,7 +363,7 @@ atc_fifocfg_halffifo; atc_src_h2sel_hw; atc_dst_h2sel_hw; - status = "disabled"; + status = "okay"; }; spi1: spi@f0004000 {