<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/video/fbdev/ssd1307fb.c, branch linux-4.3.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.3.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.3.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2015-09-01T10:52:23Z</updated>
<entry>
<title>fbdev: ssd1307fb: fix error return code</title>
<updated>2015-09-01T10:52:23Z</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2015-08-23T00:11:15Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c4e6774de19f4638bb887a47a58ee21d6809360b'/>
<id>urn:sha1:c4e6774de19f4638bb887a47a58ee21d6809360b</id>
<content type='text'>
Propagate error code on failure.  Also changed %ld to %d in dev_err to use
ret variable rather than putting two calls to PTR_ERR.

A simplified version of the semantic match that finds the first problem is as
follows: (http://coccinelle.lip6.fr/)

// &lt;smpl&gt;
@@
identifier ret; expression e1,e2;
@@
(
if (\(ret &lt; 0\|ret != 0\))
 { ... return ret; }
|
ret = 0
)
... when != ret = e1
    when != &amp;ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
<entry>
<title>video: fbdev: Drop owner assignment from i2c_driver</title>
<updated>2015-08-20T09:03:53Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
<email>k.kozlowski@samsung.com</email>
</author>
<published>2015-07-10T06:37:29Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=2e8bcf4d40d8ec720372df5c591f0151f8ffe946'/>
<id>urn:sha1:2e8bcf4d40d8ec720372df5c591f0151f8ffe946</id>
<content type='text'>
i2c_driver does not need to set an owner because i2c_register_driver()
will set it.

Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski@samsung.com&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
<entry>
<title>fbdev: ssd1307fb: fix logical error</title>
<updated>2015-05-27T09:54:48Z</updated>
<author>
<name>Thomas Niederprüm</name>
<email>niederp@physik.uni-kl.de</email>
</author>
<published>2015-05-25T19:29:21Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5e47932be81e860d317498363c13153e7df37625'/>
<id>urn:sha1:5e47932be81e860d317498363c13153e7df37625</id>
<content type='text'>
The logical not needs to be done after the bit masking.

Fixes: a3998fe03e87 ("fbdev: ssd1307fb: Unify init code and obtain
hw specific bits from DT")

Signed-off-by: Thomas Niederprüm &lt;niederp@physik.uni-kl.de&gt;
Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
<entry>
<title>fbdev: ssd1307fb: potential ERR_PTR dereference</title>
<updated>2015-05-27T09:54:46Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2015-05-23T17:32:35Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c2b00024bc6f3408b0facc87227383e633131900'/>
<id>urn:sha1:c2b00024bc6f3408b0facc87227383e633131900</id>
<content type='text'>
The error handling got shifted down a few lines from where it was
supposed to be for some reason.

Fixes: a14a7ba8cb0f ('fbdev: ssd1307fb: add backlight controls for setting the contrast')
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
<entry>
<title>fbdev: ssd1307fb: Add blank mode</title>
<updated>2015-05-27T09:54:39Z</updated>
<author>
<name>Thomas Niederprüm</name>
<email>niederp@physik.uni-kl.de</email>
</author>
<published>2015-03-31T18:27:16Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=550e768c2a9932e037f2148ecddecd8a5ee0f26e'/>
<id>urn:sha1:550e768c2a9932e037f2148ecddecd8a5ee0f26e</id>
<content type='text'>
This patch adds ssd1307fb_blank() to make the framebuffer capable
of blanking.

Signed-off-by: Thomas Niederprüm &lt;niederp@physik.uni-kl.de&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
<entry>
<title>fbdev: ssd1307fb: add backlight controls for setting the contrast</title>
<updated>2015-05-27T09:54:37Z</updated>
<author>
<name>Thomas Niederprüm</name>
<email>niederp@physik.uni-kl.de</email>
</author>
<published>2015-03-31T18:27:15Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6ed5e2db52b1e27a70241ef8749780f6f5d553bf'/>
<id>urn:sha1:6ed5e2db52b1e27a70241ef8749780f6f5d553bf</id>
<content type='text'>
The backlight class is used to create userspace handles for
setting the OLED contrast.

Signed-off-by: Thomas Niederprüm &lt;niederp@physik.uni-kl.de&gt;
Acked-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
<entry>
<title>fbdev: ssd1307fb: Turn off display on driver unload.</title>
<updated>2015-05-27T09:54:35Z</updated>
<author>
<name>Thomas Niederprüm</name>
<email>niederp@physik.uni-kl.de</email>
</author>
<published>2015-03-31T18:27:14Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=13bad59730c31e876588977534b6b6a46ce876ae'/>
<id>urn:sha1:13bad59730c31e876588977534b6b6a46ce876ae</id>
<content type='text'>
This patch turns off the display when the driver is unloaded.

Signed-off-by: Thomas Niederprüm &lt;niederp@physik.uni-kl.de&gt;
Acked-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
<entry>
<title>fbdev: ssd1307fb: Add a module parameter to set the refresh rate</title>
<updated>2015-05-27T09:54:32Z</updated>
<author>
<name>Thomas Niederprüm</name>
<email>niederp@physik.uni-kl.de</email>
</author>
<published>2015-03-31T18:27:13Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=3277e0bb8fc737174bd5e2fae5598b1595cfcdbe'/>
<id>urn:sha1:3277e0bb8fc737174bd5e2fae5598b1595cfcdbe</id>
<content type='text'>
This patch adds the module parameter "refreshrate" to set delay for the
deferred io. The refresh rate is given in units of Hertz. The default
refresh rate is 1 Hz. The refresh rate set through the newly introduced
parameter applies to all instances of the driver and for now it is not
possible to change it individually.

Signed-off-by: Thomas Niederprüm &lt;niederp@physik.uni-kl.de&gt;
Acked-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
<entry>
<title>fbdev: ssd1307fb: Add support for SSD1305</title>
<updated>2015-05-27T09:54:19Z</updated>
<author>
<name>Thomas Niederprüm</name>
<email>niederp@physik.uni-kl.de</email>
</author>
<published>2015-03-31T18:27:12Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5f2d36b3cf629ae1d70ee8476599ff53f0d1d1f1'/>
<id>urn:sha1:5f2d36b3cf629ae1d70ee8476599ff53f0d1d1f1</id>
<content type='text'>
This patch adds support for the SSD1305 OLED controller.

Signed-off-by: Thomas Niederprüm &lt;niederp@physik.uni-kl.de&gt;
Acked-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
<entry>
<title>fbdev: ssd1307fb: Unify init code and obtain hw specific bits from DT</title>
<updated>2015-05-27T09:53:44Z</updated>
<author>
<name>Thomas Niederprüm</name>
<email>niederp@physik.uni-kl.de</email>
</author>
<published>2015-03-31T18:27:10Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c89eacfc700675912b53df770953c30930c2554f'/>
<id>urn:sha1:c89eacfc700675912b53df770953c30930c2554f</id>
<content type='text'>
The 130X controllers are very similar from the configuration point of view.
The configuration registers for the SSD1305/6/7 are bit identical (except the
the VHCOM register and the the default values for clock setup register). This
patch unifies the init code of the controller and adds hardware specific
properties to DT that are needed to correctly initialize the device.

The SSD130X can be wired to the OLED panel in various ways. Even for the
same controller this wiring can differ from one display module to another
and can not be probed by software. The added DT properties reflect these
hardware decisions of the display module manufacturer.
The 'com-sequential', 'com-lrremap' and 'com-invdir' values define different
possibilities for the COM signals pin configuration and readout direction
of the video memory. The 'segment-no-remap' allows the inversion of the
memory-to-pin mapping ultimately inverting the order of the controllers
output pins. The 'prechargepX' values need to be adapted according to the
capacitance of the OLEDs pixel cells.

So far these hardware specific bits are hard coded in the init code, making
the driver usable only for one certain wiring of the controller. This patch
makes the driver usable with all possible hardware setups, given a valid hw
description in DT. If these values are not set in DT the default values,
as they are set in the ssd1307 init code right now, are used. This implies
that without the corresponding DT property "segment-no-remap" the segment
remap of the ssd130X controller gets activated. Even though this is not the
default behaviour according to the datasheet it maintains backward
compatibility with older DTBs.

Note that the SSD1306 does not seem to be using the configuration written to
the registers at all. Therefore this patch does not try to maintain these
values without changes in DT. For reference an example is added to the DT
bindings documentation that reproduces the configuration that is set in the
current init code.

Signed-off-by: Thomas Niederprüm &lt;niederp@physik.uni-kl.de&gt;
Tested-by: Olliver Schinagl &lt;o.schinagl@ultimaker.com&gt;
Acked-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Signed-off-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
</feed>
