SPI driver for LMS283GF05 LCD
PATCH 1/1 SPI driver for LMS283GF05 LCD
Hi,
the included patch adds SPI on/off procedures for the LCD. S-O-B is in the patch. Please consider applying. Thanks.
From 1aba3015a91655cad8f5a09a15afa2b92bcf1fe9 Mon Sep 17 00:00:00 2001
From: Marek Vasut <[email protected]>
Date: Fri, 10 Jul 2009 15:31:02 +0200
Subject: [PATCH] Samsung LMS283GF05 LCD SPI support
This patch adds support for the SPI part of LMS283GF05 LCD. The LCD uses SPI for initialization and powerdown sequences. No further defails are specified in the datasheet about the initialization/powerdown sequence, just the magic numbers that have to be sent over SPI bus. This LCD can be found in the Aeronix Zipit Z2 handheld.
--- drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/lms283gf05.c | 256 ++++++++++++++++++++++++++++++++++++++++ include/linux/spi/lms283gf05.h | 29 +++++ 4 files changed, 293 insertions(+), 0 deletions(-) create mode 100644 drivers/spi/lms283gf05.c create mode 100644 include/linux/spi/lms283gf05.h
drivers/spi/Kconfig +7 -0
@@ -246,6 +246,13 @@ config SPI_SPIDEV Note that this application programming interface is EXPERIMENTAL and hence SUBJECT TO CHANGE WITHOUT NOTICE while it stabilizes. +config SPI_LMS283GF05 + tristate "Samsung LMS283GF05 LCD" + depends on SYSFS + help + SPI driver for Samsung LMS283GF05. This provides basic support + for powering the LCD up/down through a sysfs interface. + config SPI_TLE62X0 tristate "Infineon TLE62X0 (for power switching)" depends on SYSFS
drivers/spi/Makefile +1 -0
@@ -35,6 +35,7 @@ obj-$(CONFIG_SPI_SH_SCI) += spi_sh_sci.o # SPI protocol drivers (device/link on bus) obj-$(CONFIG_SPI_SPIDEV) += spidev.o +obj-$(CONFIG_SPI_LMS283GF05) += lms283gf05.o obj-$(CONFIG_SPI_TLE62X0) += tle62x0.o # ... add above this line ...
drivers/spi/lms283gf05.c new file +256 -0
256 lines not on this page · raw message
include/linux/spi/lms283gf05.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* lms283gf05.h - Platform glue and init/powerdown sequence definitions +* for Samsung LMS283GF05 LCD +* +* Copyright (C) 2009 Marek Vasut <[email protected]> +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#ifndef _INCLUDE_LINUX_SPI_LMS283GF05_H_ +#define _INCLUDE_LINUX_SPI_LMS283GF05_H_ + +struct lms283gf05_pdata { +unsigned long reset_gpio; +bool reset_inverted; +}; + +#endif /* _INCLUDE_LINUX_SPI_LMS283GF05_H_ */
Signature · 1 line
1.6.3.3
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge
_______________________________________________
spi-devel-general mailing list spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/spi-devel-general