* [PATCH 0/2] SSD1307fb updates
@ 2015-09-08 19:19 ` Olliver Schinagl
0 siblings, 0 replies; 17+ messages in thread
From: Olliver Schinagl @ 2015-09-08 19:19 UTC (permalink / raw)
To: Olliver Schinagl, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, Jean-Christophe Plagniol-Villard
Cc: Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
Prabhakar Lad, devicetree, linux-kernel, linux-fbdev,
Olliver Schinagl
Having a few ssd1309 128x64 OLED displays laying around, I added support for it to the existing 1307fb driver. While doing this I noticed the headers where out of order so I fixed those as well.
For this specific display, the following can be used in a i2c node for example.
ssd1309: oled@3c {
compatible = "solomon,ssd1309fb-i2c";
pinctrl-names = "default";
pinctrl-0 = <&oled_pins>;
reg = <0x3c>;
reset-gpios = <&pio 8 13 GPIO_ACTIVE_HIGH>;
solomon,width = <128>;
solomon,height = <64>;
solomon,com-invdir;
solomon,page-offset = <0>;
solomon,prechargep1 = <2>;
solomon,prechargep2 = <8>;
};
Olliver Schinagl (2):
fbdev: ssd1307fb: alphabetize headers
fbdev: ssd1307fb: add ssd1309 support
.../devicetree/bindings/video/ssd1307fb.txt | 3 ++-
drivers/video/fbdev/ssd1307fb.c | 21 ++++++++++++++++-----
2 files changed, 18 insertions(+), 6 deletions(-)
--
2.1.4
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 0/2] SSD1307fb updates
@ 2015-09-08 19:19 ` Olliver Schinagl
0 siblings, 0 replies; 17+ messages in thread
From: Olliver Schinagl @ 2015-09-08 19:19 UTC (permalink / raw)
To: Olliver Schinagl, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, Jean-Christophe Plagniol-Villard
Cc: Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
Prabhakar Lad, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA, Olliver Schinagl
Having a few ssd1309 128x64 OLED displays laying around, I added support for it to the existing 1307fb driver. While doing this I noticed the headers where out of order so I fixed those as well.
For this specific display, the following can be used in a i2c node for example.
ssd1309: oled@3c {
compatible = "solomon,ssd1309fb-i2c";
pinctrl-names = "default";
pinctrl-0 = <&oled_pins>;
reg = <0x3c>;
reset-gpios = <&pio 8 13 GPIO_ACTIVE_HIGH>;
solomon,width = <128>;
solomon,height = <64>;
solomon,com-invdir;
solomon,page-offset = <0>;
solomon,prechargep1 = <2>;
solomon,prechargep2 = <8>;
};
Olliver Schinagl (2):
fbdev: ssd1307fb: alphabetize headers
fbdev: ssd1307fb: add ssd1309 support
.../devicetree/bindings/video/ssd1307fb.txt | 3 ++-
drivers/video/fbdev/ssd1307fb.c | 21 ++++++++++++++++-----
2 files changed, 18 insertions(+), 6 deletions(-)
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 0/2] SSD1307fb updates
@ 2015-09-08 19:19 ` Olliver Schinagl
0 siblings, 0 replies; 17+ messages in thread
From: Olliver Schinagl @ 2015-09-08 19:19 UTC (permalink / raw)
To: Olliver Schinagl, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, Jean-Christophe Plagniol-Villard
Cc: Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
Prabhakar Lad, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA, Olliver Schinagl
Having a few ssd1309 128x64 OLED displays laying around, I added support for it to the existing 1307fb driver. While doing this I noticed the headers where out of order so I fixed those as well.
For this specific display, the following can be used in a i2c node for example.
ssd1309: oled@3c {
compatible = "solomon,ssd1309fb-i2c";
pinctrl-names = "default";
pinctrl-0 = <&oled_pins>;
reg = <0x3c>;
reset-gpios = <&pio 8 13 GPIO_ACTIVE_HIGH>;
solomon,width = <128>;
solomon,height = <64>;
solomon,com-invdir;
solomon,page-offset = <0>;
solomon,prechargep1 = <2>;
solomon,prechargep2 = <8>;
};
Olliver Schinagl (2):
fbdev: ssd1307fb: alphabetize headers
fbdev: ssd1307fb: add ssd1309 support
.../devicetree/bindings/video/ssd1307fb.txt | 3 ++-
drivers/video/fbdev/ssd1307fb.c | 21 ++++++++++++++++-----
2 files changed, 18 insertions(+), 6 deletions(-)
--
2.1.4
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 1/2] fbdev: ssd1307fb: alphabetize headers
@ 2015-09-08 19:19 ` Olliver Schinagl
0 siblings, 0 replies; 17+ messages in thread
From: Olliver Schinagl @ 2015-09-08 19:19 UTC (permalink / raw)
To: Olliver Schinagl, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, Jean-Christophe Plagniol-Villard
Cc: Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
Prabhakar Lad, devicetree, linux-kernel, linux-fbdev
From: Olliver Schinagl <oliver@schinagl.nl>
This patch sorts the headers on ssd1307fb driver.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
---
drivers/video/fbdev/ssd1307fb.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c
index 3e153c0..339615c 100644
--- a/drivers/video/fbdev/ssd1307fb.c
+++ b/drivers/video/fbdev/ssd1307fb.c
@@ -6,16 +6,16 @@
* Licensed under the GPLv2 or later.
*/
-#include <linux/module.h>
#include <linux/backlight.h>
-#include <linux/kernel.h>
-#include <linux/i2c.h>
+#include <linux/delay.h>
#include <linux/fb.h>
-#include <linux/uaccess.h>
+#include <linux/i2c.h>
+#include <linux/kernel.h>
+#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/of_gpio.h>
#include <linux/pwm.h>
-#include <linux/delay.h>
+#include <linux/uaccess.h>
#define SSD1307FB_DATA 0x40
#define SSD1307FB_COMMAND 0x80
--
2.1.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 1/2] fbdev: ssd1307fb: alphabetize headers
@ 2015-09-08 19:19 ` Olliver Schinagl
0 siblings, 0 replies; 17+ messages in thread
From: Olliver Schinagl @ 2015-09-08 19:19 UTC (permalink / raw)
To: Olliver Schinagl, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, Jean-Christophe Plagniol-Villard
Cc: Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
Prabhakar Lad, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA
From: Olliver Schinagl <oliver-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org>
This patch sorts the headers on ssd1307fb driver.
Signed-off-by: Olliver Schinagl <oliver-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org>
---
drivers/video/fbdev/ssd1307fb.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c
index 3e153c0..339615c 100644
--- a/drivers/video/fbdev/ssd1307fb.c
+++ b/drivers/video/fbdev/ssd1307fb.c
@@ -6,16 +6,16 @@
* Licensed under the GPLv2 or later.
*/
-#include <linux/module.h>
#include <linux/backlight.h>
-#include <linux/kernel.h>
-#include <linux/i2c.h>
+#include <linux/delay.h>
#include <linux/fb.h>
-#include <linux/uaccess.h>
+#include <linux/i2c.h>
+#include <linux/kernel.h>
+#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/of_gpio.h>
#include <linux/pwm.h>
-#include <linux/delay.h>
+#include <linux/uaccess.h>
#define SSD1307FB_DATA 0x40
#define SSD1307FB_COMMAND 0x80
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 1/2] fbdev: ssd1307fb: alphabetize headers
@ 2015-09-08 19:19 ` Olliver Schinagl
0 siblings, 0 replies; 17+ messages in thread
From: Olliver Schinagl @ 2015-09-08 19:19 UTC (permalink / raw)
To: Olliver Schinagl, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, Jean-Christophe Plagniol-Villard
Cc: Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
Prabhakar Lad, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA
From: Olliver Schinagl <oliver@schinagl.nl>
This patch sorts the headers on ssd1307fb driver.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
---
drivers/video/fbdev/ssd1307fb.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c
index 3e153c0..339615c 100644
--- a/drivers/video/fbdev/ssd1307fb.c
+++ b/drivers/video/fbdev/ssd1307fb.c
@@ -6,16 +6,16 @@
* Licensed under the GPLv2 or later.
*/
-#include <linux/module.h>
#include <linux/backlight.h>
-#include <linux/kernel.h>
-#include <linux/i2c.h>
+#include <linux/delay.h>
#include <linux/fb.h>
-#include <linux/uaccess.h>
+#include <linux/i2c.h>
+#include <linux/kernel.h>
+#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/of_gpio.h>
#include <linux/pwm.h>
-#include <linux/delay.h>
+#include <linux/uaccess.h>
#define SSD1307FB_DATA 0x40
#define SSD1307FB_COMMAND 0x80
--
2.1.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 2/2] fbdev: ssd1307fb: add ssd1309 support
@ 2015-09-08 19:19 ` Olliver Schinagl
0 siblings, 0 replies; 17+ messages in thread
From: Olliver Schinagl @ 2015-09-08 19:19 UTC (permalink / raw)
To: Olliver Schinagl, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, Jean-Christophe Plagniol-Villard
Cc: Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
Prabhakar Lad, devicetree, linux-kernel, linux-fbdev,
Olliver Schinagl
The ssd1307fb driver supports a lot of chips from the ssd130xfb series.
This patch adds the ssd1309 chip, a 128x64 OLED driver chip. It is very
similar to the other chips and only has some definitions added to
support it.
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
---
Documentation/devicetree/bindings/video/ssd1307fb.txt | 3 ++-
drivers/video/fbdev/ssd1307fb.c | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/video/ssd1307fb.txt b/Documentation/devicetree/bindings/video/ssd1307fb.txt
index d1be78d..eb31ed4 100644
--- a/Documentation/devicetree/bindings/video/ssd1307fb.txt
+++ b/Documentation/devicetree/bindings/video/ssd1307fb.txt
@@ -2,7 +2,8 @@
Required properties:
- compatible: Should be "solomon,<chip>fb-<bus>". The only supported bus for
- now is i2c, and the supported chips are ssd1305, ssd1306 and ssd1307.
+ now is i2c, and the supported chips are ssd1305, ssd1306, ssd1307 and
+ ssd1309.
- reg: Should contain address of the controller on the I2C bus. Most likely
0x3c or 0x3d
- pwm: Should contain the pwm to use according to the OF device tree PWM
diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c
index 339615c..8fc7960 100644
--- a/drivers/video/fbdev/ssd1307fb.c
+++ b/drivers/video/fbdev/ssd1307fb.c
@@ -495,6 +495,12 @@ static struct ssd1307fb_deviceinfo ssd1307fb_ssd1307_deviceinfo = {
.need_pwm = 1,
};
+static struct ssd1307fb_deviceinfo ssd1307fb_ssd1309_deviceinfo = {
+ .default_vcomh = 0x34,
+ .default_dclk_div = 1,
+ .default_dclk_frq = 10,
+};
+
static const struct of_device_id ssd1307fb_of_match[] = {
{
.compatible = "solomon,ssd1305fb-i2c",
@@ -508,6 +514,10 @@ static const struct of_device_id ssd1307fb_of_match[] = {
.compatible = "solomon,ssd1307fb-i2c",
.data = (void *)&ssd1307fb_ssd1307_deviceinfo,
},
+ {
+ .compatible = "solomon,ssd1309fb-i2c",
+ .data = (void *)&ssd1307fb_ssd1309_deviceinfo,
+ },
{},
};
MODULE_DEVICE_TABLE(of, ssd1307fb_of_match);
@@ -708,6 +718,7 @@ static const struct i2c_device_id ssd1307fb_i2c_id[] = {
{ "ssd1305fb", 0 },
{ "ssd1306fb", 0 },
{ "ssd1307fb", 0 },
+ { "ssd1309fb", 0 },
{ }
};
MODULE_DEVICE_TABLE(i2c, ssd1307fb_i2c_id);
--
2.1.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 2/2] fbdev: ssd1307fb: add ssd1309 support
@ 2015-09-08 19:19 ` Olliver Schinagl
0 siblings, 0 replies; 17+ messages in thread
From: Olliver Schinagl @ 2015-09-08 19:19 UTC (permalink / raw)
To: Olliver Schinagl, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, Jean-Christophe Plagniol-Villard
Cc: Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
Prabhakar Lad, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA, Olliver Schinagl
The ssd1307fb driver supports a lot of chips from the ssd130xfb series.
This patch adds the ssd1309 chip, a 128x64 OLED driver chip. It is very
similar to the other chips and only has some definitions added to
support it.
Signed-off-by: Olliver Schinagl <o.schinagl-U3FVU11NWA554TAoqtyWWQ@public.gmane.org>
---
Documentation/devicetree/bindings/video/ssd1307fb.txt | 3 ++-
drivers/video/fbdev/ssd1307fb.c | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/video/ssd1307fb.txt b/Documentation/devicetree/bindings/video/ssd1307fb.txt
index d1be78d..eb31ed4 100644
--- a/Documentation/devicetree/bindings/video/ssd1307fb.txt
+++ b/Documentation/devicetree/bindings/video/ssd1307fb.txt
@@ -2,7 +2,8 @@
Required properties:
- compatible: Should be "solomon,<chip>fb-<bus>". The only supported bus for
- now is i2c, and the supported chips are ssd1305, ssd1306 and ssd1307.
+ now is i2c, and the supported chips are ssd1305, ssd1306, ssd1307 and
+ ssd1309.
- reg: Should contain address of the controller on the I2C bus. Most likely
0x3c or 0x3d
- pwm: Should contain the pwm to use according to the OF device tree PWM
diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c
index 339615c..8fc7960 100644
--- a/drivers/video/fbdev/ssd1307fb.c
+++ b/drivers/video/fbdev/ssd1307fb.c
@@ -495,6 +495,12 @@ static struct ssd1307fb_deviceinfo ssd1307fb_ssd1307_deviceinfo = {
.need_pwm = 1,
};
+static struct ssd1307fb_deviceinfo ssd1307fb_ssd1309_deviceinfo = {
+ .default_vcomh = 0x34,
+ .default_dclk_div = 1,
+ .default_dclk_frq = 10,
+};
+
static const struct of_device_id ssd1307fb_of_match[] = {
{
.compatible = "solomon,ssd1305fb-i2c",
@@ -508,6 +514,10 @@ static const struct of_device_id ssd1307fb_of_match[] = {
.compatible = "solomon,ssd1307fb-i2c",
.data = (void *)&ssd1307fb_ssd1307_deviceinfo,
},
+ {
+ .compatible = "solomon,ssd1309fb-i2c",
+ .data = (void *)&ssd1307fb_ssd1309_deviceinfo,
+ },
{},
};
MODULE_DEVICE_TABLE(of, ssd1307fb_of_match);
@@ -708,6 +718,7 @@ static const struct i2c_device_id ssd1307fb_i2c_id[] = {
{ "ssd1305fb", 0 },
{ "ssd1306fb", 0 },
{ "ssd1307fb", 0 },
+ { "ssd1309fb", 0 },
{ }
};
MODULE_DEVICE_TABLE(i2c, ssd1307fb_i2c_id);
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 2/2] fbdev: ssd1307fb: add ssd1309 support
@ 2015-09-08 19:19 ` Olliver Schinagl
0 siblings, 0 replies; 17+ messages in thread
From: Olliver Schinagl @ 2015-09-08 19:19 UTC (permalink / raw)
To: Olliver Schinagl, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, Jean-Christophe Plagniol-Villard
Cc: Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
Prabhakar Lad, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA, Olliver Schinagl
The ssd1307fb driver supports a lot of chips from the ssd130xfb series.
This patch adds the ssd1309 chip, a 128x64 OLED driver chip. It is very
similar to the other chips and only has some definitions added to
support it.
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
---
Documentation/devicetree/bindings/video/ssd1307fb.txt | 3 ++-
drivers/video/fbdev/ssd1307fb.c | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/video/ssd1307fb.txt b/Documentation/devicetree/bindings/video/ssd1307fb.txt
index d1be78d..eb31ed4 100644
--- a/Documentation/devicetree/bindings/video/ssd1307fb.txt
+++ b/Documentation/devicetree/bindings/video/ssd1307fb.txt
@@ -2,7 +2,8 @@
Required properties:
- compatible: Should be "solomon,<chip>fb-<bus>". The only supported bus for
- now is i2c, and the supported chips are ssd1305, ssd1306 and ssd1307.
+ now is i2c, and the supported chips are ssd1305, ssd1306, ssd1307 and
+ ssd1309.
- reg: Should contain address of the controller on the I2C bus. Most likely
0x3c or 0x3d
- pwm: Should contain the pwm to use according to the OF device tree PWM
diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c
index 339615c..8fc7960 100644
--- a/drivers/video/fbdev/ssd1307fb.c
+++ b/drivers/video/fbdev/ssd1307fb.c
@@ -495,6 +495,12 @@ static struct ssd1307fb_deviceinfo ssd1307fb_ssd1307_deviceinfo = {
.need_pwm = 1,
};
+static struct ssd1307fb_deviceinfo ssd1307fb_ssd1309_deviceinfo = {
+ .default_vcomh = 0x34,
+ .default_dclk_div = 1,
+ .default_dclk_frq = 10,
+};
+
static const struct of_device_id ssd1307fb_of_match[] = {
{
.compatible = "solomon,ssd1305fb-i2c",
@@ -508,6 +514,10 @@ static const struct of_device_id ssd1307fb_of_match[] = {
.compatible = "solomon,ssd1307fb-i2c",
.data = (void *)&ssd1307fb_ssd1307_deviceinfo,
},
+ {
+ .compatible = "solomon,ssd1309fb-i2c",
+ .data = (void *)&ssd1307fb_ssd1309_deviceinfo,
+ },
{},
};
MODULE_DEVICE_TABLE(of, ssd1307fb_of_match);
@@ -708,6 +718,7 @@ static const struct i2c_device_id ssd1307fb_i2c_id[] = {
{ "ssd1305fb", 0 },
{ "ssd1306fb", 0 },
{ "ssd1307fb", 0 },
+ { "ssd1309fb", 0 },
{ }
};
MODULE_DEVICE_TABLE(i2c, ssd1307fb_i2c_id);
--
2.1.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH 2/2] fbdev: ssd1307fb: add ssd1309 support
@ 2015-09-08 23:02 ` Rob Herring
0 siblings, 0 replies; 17+ messages in thread
From: Rob Herring @ 2015-09-08 23:02 UTC (permalink / raw)
To: Olliver Schinagl, Olliver Schinagl, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala,
Jean-Christophe Plagniol-Villard
Cc: Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
Prabhakar Lad, devicetree, linux-kernel, linux-fbdev
On 09/08/2015 02:19 PM, Olliver Schinagl wrote:
> The ssd1307fb driver supports a lot of chips from the ssd130xfb series.
> This patch adds the ssd1309 chip, a 128x64 OLED driver chip. It is very
> similar to the other chips and only has some definitions added to
> support it.
>
> Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Acked-by: Rob Herring <robh@kernel.org>
> ---
> Documentation/devicetree/bindings/video/ssd1307fb.txt | 3 ++-
> drivers/video/fbdev/ssd1307fb.c | 11 +++++++++++
> 2 files changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/video/ssd1307fb.txt b/Documentation/devicetree/bindings/video/ssd1307fb.txt
> index d1be78d..eb31ed4 100644
> --- a/Documentation/devicetree/bindings/video/ssd1307fb.txt
> +++ b/Documentation/devicetree/bindings/video/ssd1307fb.txt
> @@ -2,7 +2,8 @@
>
> Required properties:
> - compatible: Should be "solomon,<chip>fb-<bus>". The only supported bus for
> - now is i2c, and the supported chips are ssd1305, ssd1306 and ssd1307.
> + now is i2c, and the supported chips are ssd1305, ssd1306, ssd1307 and
> + ssd1309.
> - reg: Should contain address of the controller on the I2C bus. Most likely
> 0x3c or 0x3d
> - pwm: Should contain the pwm to use according to the OF device tree PWM
> diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c
> index 339615c..8fc7960 100644
> --- a/drivers/video/fbdev/ssd1307fb.c
> +++ b/drivers/video/fbdev/ssd1307fb.c
> @@ -495,6 +495,12 @@ static struct ssd1307fb_deviceinfo ssd1307fb_ssd1307_deviceinfo = {
> .need_pwm = 1,
> };
>
> +static struct ssd1307fb_deviceinfo ssd1307fb_ssd1309_deviceinfo = {
> + .default_vcomh = 0x34,
> + .default_dclk_div = 1,
> + .default_dclk_frq = 10,
> +};
> +
> static const struct of_device_id ssd1307fb_of_match[] = {
> {
> .compatible = "solomon,ssd1305fb-i2c",
> @@ -508,6 +514,10 @@ static const struct of_device_id ssd1307fb_of_match[] = {
> .compatible = "solomon,ssd1307fb-i2c",
> .data = (void *)&ssd1307fb_ssd1307_deviceinfo,
> },
> + {
> + .compatible = "solomon,ssd1309fb-i2c",
> + .data = (void *)&ssd1307fb_ssd1309_deviceinfo,
> + },
> {},
> };
> MODULE_DEVICE_TABLE(of, ssd1307fb_of_match);
> @@ -708,6 +718,7 @@ static const struct i2c_device_id ssd1307fb_i2c_id[] = {
> { "ssd1305fb", 0 },
> { "ssd1306fb", 0 },
> { "ssd1307fb", 0 },
> + { "ssd1309fb", 0 },
> { }
> };
> MODULE_DEVICE_TABLE(i2c, ssd1307fb_i2c_id);
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 2/2] fbdev: ssd1307fb: add ssd1309 support
@ 2015-09-08 23:02 ` Rob Herring
0 siblings, 0 replies; 17+ messages in thread
From: Rob Herring @ 2015-09-08 23:02 UTC (permalink / raw)
To: Olliver Schinagl, Olliver Schinagl, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala,
Jean-Christophe Plagniol-Villard
Cc: Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
Prabhakar Lad, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA
On 09/08/2015 02:19 PM, Olliver Schinagl wrote:
> The ssd1307fb driver supports a lot of chips from the ssd130xfb series.
> This patch adds the ssd1309 chip, a 128x64 OLED driver chip. It is very
> similar to the other chips and only has some definitions added to
> support it.
>
> Signed-off-by: Olliver Schinagl <o.schinagl-U3FVU11NWA554TAoqtyWWQ@public.gmane.org>
Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> ---
> Documentation/devicetree/bindings/video/ssd1307fb.txt | 3 ++-
> drivers/video/fbdev/ssd1307fb.c | 11 +++++++++++
> 2 files changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/video/ssd1307fb.txt b/Documentation/devicetree/bindings/video/ssd1307fb.txt
> index d1be78d..eb31ed4 100644
> --- a/Documentation/devicetree/bindings/video/ssd1307fb.txt
> +++ b/Documentation/devicetree/bindings/video/ssd1307fb.txt
> @@ -2,7 +2,8 @@
>
> Required properties:
> - compatible: Should be "solomon,<chip>fb-<bus>". The only supported bus for
> - now is i2c, and the supported chips are ssd1305, ssd1306 and ssd1307.
> + now is i2c, and the supported chips are ssd1305, ssd1306, ssd1307 and
> + ssd1309.
> - reg: Should contain address of the controller on the I2C bus. Most likely
> 0x3c or 0x3d
> - pwm: Should contain the pwm to use according to the OF device tree PWM
> diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c
> index 339615c..8fc7960 100644
> --- a/drivers/video/fbdev/ssd1307fb.c
> +++ b/drivers/video/fbdev/ssd1307fb.c
> @@ -495,6 +495,12 @@ static struct ssd1307fb_deviceinfo ssd1307fb_ssd1307_deviceinfo = {
> .need_pwm = 1,
> };
>
> +static struct ssd1307fb_deviceinfo ssd1307fb_ssd1309_deviceinfo = {
> + .default_vcomh = 0x34,
> + .default_dclk_div = 1,
> + .default_dclk_frq = 10,
> +};
> +
> static const struct of_device_id ssd1307fb_of_match[] = {
> {
> .compatible = "solomon,ssd1305fb-i2c",
> @@ -508,6 +514,10 @@ static const struct of_device_id ssd1307fb_of_match[] = {
> .compatible = "solomon,ssd1307fb-i2c",
> .data = (void *)&ssd1307fb_ssd1307_deviceinfo,
> },
> + {
> + .compatible = "solomon,ssd1309fb-i2c",
> + .data = (void *)&ssd1307fb_ssd1309_deviceinfo,
> + },
> {},
> };
> MODULE_DEVICE_TABLE(of, ssd1307fb_of_match);
> @@ -708,6 +718,7 @@ static const struct i2c_device_id ssd1307fb_i2c_id[] = {
> { "ssd1305fb", 0 },
> { "ssd1306fb", 0 },
> { "ssd1307fb", 0 },
> + { "ssd1309fb", 0 },
> { }
> };
> MODULE_DEVICE_TABLE(i2c, ssd1307fb_i2c_id);
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 2/2] fbdev: ssd1307fb: add ssd1309 support
@ 2015-09-08 23:02 ` Rob Herring
0 siblings, 0 replies; 17+ messages in thread
From: Rob Herring @ 2015-09-08 23:02 UTC (permalink / raw)
To: Olliver Schinagl, Olliver Schinagl, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala,
Jean-Christophe Plagniol-Villard
Cc: Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
Prabhakar Lad, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA
On 09/08/2015 02:19 PM, Olliver Schinagl wrote:
> The ssd1307fb driver supports a lot of chips from the ssd130xfb series.
> This patch adds the ssd1309 chip, a 128x64 OLED driver chip. It is very
> similar to the other chips and only has some definitions added to
> support it.
>
> Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Acked-by: Rob Herring <robh@kernel.org>
> ---
> Documentation/devicetree/bindings/video/ssd1307fb.txt | 3 ++-
> drivers/video/fbdev/ssd1307fb.c | 11 +++++++++++
> 2 files changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/video/ssd1307fb.txt b/Documentation/devicetree/bindings/video/ssd1307fb.txt
> index d1be78d..eb31ed4 100644
> --- a/Documentation/devicetree/bindings/video/ssd1307fb.txt
> +++ b/Documentation/devicetree/bindings/video/ssd1307fb.txt
> @@ -2,7 +2,8 @@
>
> Required properties:
> - compatible: Should be "solomon,<chip>fb-<bus>". The only supported bus for
> - now is i2c, and the supported chips are ssd1305, ssd1306 and ssd1307.
> + now is i2c, and the supported chips are ssd1305, ssd1306, ssd1307 and
> + ssd1309.
> - reg: Should contain address of the controller on the I2C bus. Most likely
> 0x3c or 0x3d
> - pwm: Should contain the pwm to use according to the OF device tree PWM
> diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c
> index 339615c..8fc7960 100644
> --- a/drivers/video/fbdev/ssd1307fb.c
> +++ b/drivers/video/fbdev/ssd1307fb.c
> @@ -495,6 +495,12 @@ static struct ssd1307fb_deviceinfo ssd1307fb_ssd1307_deviceinfo = {
> .need_pwm = 1,
> };
>
> +static struct ssd1307fb_deviceinfo ssd1307fb_ssd1309_deviceinfo = {
> + .default_vcomh = 0x34,
> + .default_dclk_div = 1,
> + .default_dclk_frq = 10,
> +};
> +
> static const struct of_device_id ssd1307fb_of_match[] = {
> {
> .compatible = "solomon,ssd1305fb-i2c",
> @@ -508,6 +514,10 @@ static const struct of_device_id ssd1307fb_of_match[] = {
> .compatible = "solomon,ssd1307fb-i2c",
> .data = (void *)&ssd1307fb_ssd1307_deviceinfo,
> },
> + {
> + .compatible = "solomon,ssd1309fb-i2c",
> + .data = (void *)&ssd1307fb_ssd1309_deviceinfo,
> + },
> {},
> };
> MODULE_DEVICE_TABLE(of, ssd1307fb_of_match);
> @@ -708,6 +718,7 @@ static const struct i2c_device_id ssd1307fb_i2c_id[] = {
> { "ssd1305fb", 0 },
> { "ssd1306fb", 0 },
> { "ssd1307fb", 0 },
> + { "ssd1309fb", 0 },
> { }
> };
> MODULE_DEVICE_TABLE(i2c, ssd1307fb_i2c_id);
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 2/2] fbdev: ssd1307fb: add ssd1309 support
2015-09-08 19:19 ` Olliver Schinagl
@ 2015-09-09 10:19 ` Lad, Prabhakar
-1 siblings, 0 replies; 17+ messages in thread
From: Lad, Prabhakar @ 2015-09-09 10:19 UTC (permalink / raw)
To: Olliver Schinagl
Cc: Olliver Schinagl, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, Jean-Christophe Plagniol-Villard,
Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
devicetree, LKML, LFBDEV
On Tue, Sep 8, 2015 at 8:19 PM, Olliver Schinagl
<o.schinagl@ultimaker.com> wrote:
> The ssd1307fb driver supports a lot of chips from the ssd130xfb series.
> This patch adds the ssd1309 chip, a 128x64 OLED driver chip. It is very
> similar to the other chips and only has some definitions added to
> support it.
>
> Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Cheers,
--Prabhakar Lad
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 2/2] fbdev: ssd1307fb: add ssd1309 support
@ 2015-09-09 10:19 ` Lad, Prabhakar
0 siblings, 0 replies; 17+ messages in thread
From: Lad, Prabhakar @ 2015-09-09 10:19 UTC (permalink / raw)
To: Olliver Schinagl
Cc: Olliver Schinagl, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, Jean-Christophe Plagniol-Villard,
Tomi Valkeinen, Thomas Niederprüm, Maxime Ripard,
devicetree, LKML, LFBDEV
On Tue, Sep 8, 2015 at 8:19 PM, Olliver Schinagl
<o.schinagl@ultimaker.com> wrote:
> The ssd1307fb driver supports a lot of chips from the ssd130xfb series.
> This patch adds the ssd1309 chip, a 128x64 OLED driver chip. It is very
> similar to the other chips and only has some definitions added to
> support it.
>
> Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Cheers,
--Prabhakar Lad
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 0/2] SSD1307fb updates
@ 2015-09-24 11:11 ` Tomi Valkeinen
0 siblings, 0 replies; 17+ messages in thread
From: Tomi Valkeinen @ 2015-09-24 11:11 UTC (permalink / raw)
To: Olliver Schinagl, Olliver Schinagl, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala,
Jean-Christophe Plagniol-Villard
Cc: Thomas Niederprüm, Maxime Ripard, Prabhakar Lad, devicetree,
linux-kernel, linux-fbdev
[-- Attachment #1: Type: text/plain, Size: 1081 bytes --]
On 08/09/15 22:19, Olliver Schinagl wrote:
> Having a few ssd1309 128x64 OLED displays laying around, I added support for it to the existing 1307fb driver. While doing this I noticed the headers where out of order so I fixed those as well.
>
> For this specific display, the following can be used in a i2c node for example.
>
> ssd1309: oled@3c {
> compatible = "solomon,ssd1309fb-i2c";
> pinctrl-names = "default";
> pinctrl-0 = <&oled_pins>;
> reg = <0x3c>;
> reset-gpios = <&pio 8 13 GPIO_ACTIVE_HIGH>;
> solomon,width = <128>;
> solomon,height = <64>;
> solomon,com-invdir;
> solomon,page-offset = <0>;
> solomon,prechargep1 = <2>;
> solomon,prechargep2 = <8>;
> };
>
> Olliver Schinagl (2):
> fbdev: ssd1307fb: alphabetize headers
> fbdev: ssd1307fb: add ssd1309 support
>
> .../devicetree/bindings/video/ssd1307fb.txt | 3 ++-
> drivers/video/fbdev/ssd1307fb.c | 21 ++++++++++++++++-----
> 2 files changed, 18 insertions(+), 6 deletions(-)
>
Thanks, queued for 4.4.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 0/2] SSD1307fb updates
@ 2015-09-24 11:11 ` Tomi Valkeinen
0 siblings, 0 replies; 17+ messages in thread
From: Tomi Valkeinen @ 2015-09-24 11:11 UTC (permalink / raw)
To: Olliver Schinagl, Olliver Schinagl, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala,
Jean-Christophe Plagniol-Villard
Cc: Thomas Niederprüm, Maxime Ripard, Prabhakar Lad,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 1081 bytes --]
On 08/09/15 22:19, Olliver Schinagl wrote:
> Having a few ssd1309 128x64 OLED displays laying around, I added support for it to the existing 1307fb driver. While doing this I noticed the headers where out of order so I fixed those as well.
>
> For this specific display, the following can be used in a i2c node for example.
>
> ssd1309: oled@3c {
> compatible = "solomon,ssd1309fb-i2c";
> pinctrl-names = "default";
> pinctrl-0 = <&oled_pins>;
> reg = <0x3c>;
> reset-gpios = <&pio 8 13 GPIO_ACTIVE_HIGH>;
> solomon,width = <128>;
> solomon,height = <64>;
> solomon,com-invdir;
> solomon,page-offset = <0>;
> solomon,prechargep1 = <2>;
> solomon,prechargep2 = <8>;
> };
>
> Olliver Schinagl (2):
> fbdev: ssd1307fb: alphabetize headers
> fbdev: ssd1307fb: add ssd1309 support
>
> .../devicetree/bindings/video/ssd1307fb.txt | 3 ++-
> drivers/video/fbdev/ssd1307fb.c | 21 ++++++++++++++++-----
> 2 files changed, 18 insertions(+), 6 deletions(-)
>
Thanks, queued for 4.4.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 0/2] SSD1307fb updates
@ 2015-09-24 11:11 ` Tomi Valkeinen
0 siblings, 0 replies; 17+ messages in thread
From: Tomi Valkeinen @ 2015-09-24 11:11 UTC (permalink / raw)
To: Olliver Schinagl, Olliver Schinagl, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala,
Jean-Christophe Plagniol-Villard
Cc: Thomas Niederprüm, Maxime Ripard, Prabhakar Lad,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 1081 bytes --]
On 08/09/15 22:19, Olliver Schinagl wrote:
> Having a few ssd1309 128x64 OLED displays laying around, I added support for it to the existing 1307fb driver. While doing this I noticed the headers where out of order so I fixed those as well.
>
> For this specific display, the following can be used in a i2c node for example.
>
> ssd1309: oled@3c {
> compatible = "solomon,ssd1309fb-i2c";
> pinctrl-names = "default";
> pinctrl-0 = <&oled_pins>;
> reg = <0x3c>;
> reset-gpios = <&pio 8 13 GPIO_ACTIVE_HIGH>;
> solomon,width = <128>;
> solomon,height = <64>;
> solomon,com-invdir;
> solomon,page-offset = <0>;
> solomon,prechargep1 = <2>;
> solomon,prechargep2 = <8>;
> };
>
> Olliver Schinagl (2):
> fbdev: ssd1307fb: alphabetize headers
> fbdev: ssd1307fb: add ssd1309 support
>
> .../devicetree/bindings/video/ssd1307fb.txt | 3 ++-
> drivers/video/fbdev/ssd1307fb.c | 21 ++++++++++++++++-----
> 2 files changed, 18 insertions(+), 6 deletions(-)
>
Thanks, queued for 4.4.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2015-09-24 11:12 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-08 19:19 [PATCH 0/2] SSD1307fb updates Olliver Schinagl
2015-09-08 19:19 ` Olliver Schinagl
2015-09-08 19:19 ` Olliver Schinagl
2015-09-08 19:19 ` [PATCH 1/2] fbdev: ssd1307fb: alphabetize headers Olliver Schinagl
2015-09-08 19:19 ` Olliver Schinagl
2015-09-08 19:19 ` Olliver Schinagl
2015-09-08 19:19 ` [PATCH 2/2] fbdev: ssd1307fb: add ssd1309 support Olliver Schinagl
2015-09-08 19:19 ` Olliver Schinagl
2015-09-08 19:19 ` Olliver Schinagl
2015-09-08 23:02 ` Rob Herring
2015-09-08 23:02 ` Rob Herring
2015-09-08 23:02 ` Rob Herring
2015-09-09 10:19 ` Lad, Prabhakar
2015-09-09 10:19 ` Lad, Prabhakar
2015-09-24 11:11 ` [PATCH 0/2] SSD1307fb updates Tomi Valkeinen
2015-09-24 11:11 ` Tomi Valkeinen
2015-09-24 11:11 ` Tomi Valkeinen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.