From patchwork Fri Mar 4 15:25:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Sakoman X-Patchwork-Id: 609311 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p24FPcMt026359 for ; Fri, 4 Mar 2011 15:25:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932277Ab1CDPZf (ORCPT ); Fri, 4 Mar 2011 10:25:35 -0500 Received: from mail-vx0-f174.google.com ([209.85.220.174]:35691 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759471Ab1CDPZP (ORCPT ); Fri, 4 Mar 2011 10:25:15 -0500 Received: by vxi39 with SMTP id 39so2087788vxi.19 for ; Fri, 04 Mar 2011 07:25:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=BadsbqOqr4LGw8OpqlRhgyXi6/6lTDcYrGpAZ89ueBQ=; b=pwipPqqLF46RQH0acmpVrD3Tb97SI4VFF+ble/tESvzLpwLkFWH/n9lKsQPRax97Hy FkJcTNHqNic2A4R+3PHy+3z0WtU7uf4xAuTwiK1a47oSqa7ARmEzB+hNEfwNiSqiAC6M lJV8Rh2kuwNX1pHWMrcBasnd90/SPWDL9Jg6E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=plnhV5tOTIv0INR/kX6jz71GnG1/OYTKyO5uZG3OsnARziEgJD/z6VAroSS4jFJkg8 91EiIqVhjTaWDRfSU1ZO/+8Odnr22ZPm53qGG69oZ3t8+EE42DyCvunnbgN2saQlWHxm iSlk2Dy9DmdjW+RXMNQFbsBZ7Pn+/mORejD8g= MIME-Version: 1.0 Received: by 10.52.98.97 with SMTP id eh1mr1121475vdb.148.1299252315188; Fri, 04 Mar 2011 07:25:15 -0800 (PST) Received: by 10.52.161.39 with HTTP; Fri, 4 Mar 2011 07:25:15 -0800 (PST) In-Reply-To: <1299225648.2196.25.camel@deskari> References: <1299195980-17057-1-git-send-email-steve@sakoman.com> <1299195980-17057-3-git-send-email-steve@sakoman.com> <1299225648.2196.25.camel@deskari> Date: Fri, 4 Mar 2011 07:25:15 -0800 Message-ID: Subject: Re: [PATCH 2/2] OMAP: DSS2: Add DSS2 support for Overo From: Steve Sakoman To: Tomi Valkeinen , linux-omap@vger.kernel.org Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 04 Mar 2011 15:25:51 +0000 (UTC) difficult to read. My reason for the check was due to the fact that the LG panel eats an SPI chip select. SPI chip selects on Overo are a precious commodity. I wanted to provide Overo users who don't use the LG panel an easy way to reclaim that chip select (i.e. just turn off CONFIG_PANEL_LGPHILIPS_LB035Q02) . There is a subsequent patch queued that allows users to use the spidev driver if they disable the LG panel driver (and similarly free up another chip select by disabling the touchscreen controller): diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 463feaa..7974b9d 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c @@ -662,6 +662,14 @@ static struct spi_board_info overo_spi_board_info[] __initdata = { .irq = OMAP_GPIO_IRQ(OVERO_GPIO_PENDOWN), .platform_data = &ads7846_config, }, +#elif defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) + { + .modalias = "spidev", + .bus_num = 1, + .chip_select = 0, + .max_speed_hz = 48000000, + .mode = SPI_MODE_0, + }, #endif #if defined(CONFIG_PANEL_LGPHILIPS_LB035Q02) || \