Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757696AbbBFWf6 (ORCPT ); Fri, 6 Feb 2015 17:35:58 -0500 Received: from mailgw1.uni-kl.de ([131.246.120.220]:50101 "EHLO mailgw1.uni-kl.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752156AbbBFWf4 (ORCPT ); Fri, 6 Feb 2015 17:35:56 -0500 X-Greylist: delayed 584 seconds by postgrey-1.27 at vger.kernel.org; Fri, 06 Feb 2015 17:35:48 EST From: niederp@physik.uni-kl.de To: linux-fbdev@vger.kernel.org, plagnioj@jcrosoft.com, tomi.valkeinen@ti.com, maxime.ripard@free-electrons.com Cc: linux-kernel@vger.kernel.org, =?UTF-8?q?Thomas=20Niederpr=C3=BCm?= Subject: [PATCH 0/8] Cleanup and add support for SSD1305 Date: Fri, 6 Feb 2015 23:28:06 +0100 Message-Id: <1423261694-5939-1-git-send-email-niederp@physik.uni-kl.de> X-Mailer: git-send-email 2.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2145 Lines: 49 From: Thomas Niederprüm This patch series is the result of making the ssd1307fb driver work with a Newhaven OLED display using the Solomon SSD1305 controller. To achieve this the intialization code for the SSD1306 and the SSD1307 is merged and based on device tree configuration. This gets rid of the magic bit values that were used so far. Based on these changes it was straight forward to add support for the SSD1305 controller. While working with the driver I realized that it was not possible to correctly mmap the video memory from userspace since the memory reserved by kzalloc is not page aligned. This problem is fixed by using vmalloc as it is done inthe vfb driver. Furthermore module parameters are added to set the bits per pixel and the delay for the deferred io update. It makes sense to set the bits per pixel for the video memory to 8 bits since there is only very poor userspace support for 1 bit framebuffers. Also sysfs handles are added to make the contrast settings and dim mode setting available in userspace. Thomas Niederprüm (8): Documentation: dts: add missing Solomon Systech vendor prefix. fbdev: ssd1307fb: Unify init code and make controller configurable from device tree fbdev: ssd1307fb: Add support for SSD1305 fbdev: ssd1307fb: Use vmalloc to allocate video memory. fbdev: ssd1307fb: Add module parameter bitsperpixel. fbdev: ssd1307fb: Add module parameter to set update delay of the deffered io. fbdev: ssd1307fb: Add sysfs handles to expose contrast and dim setting to userspace. fbdev: ssd1307fb: Turn off display on driver unload. .../devicetree/bindings/vendor-prefixes.txt | 1 + .../devicetree/bindings/video/ssd1307fb.txt | 13 +- drivers/video/fbdev/ssd1307fb.c | 426 ++++++++++++++++----- 3 files changed, 346 insertions(+), 94 deletions(-) -- 2.1.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/