Skip to contentSkip to conversation

ARM: dts: am335x-icev2: Add support for OSD9616P0899-10 at i2c0

PATCH In review Jyri Sarha 3 participants 3 messages Dec 4, 2019 – Dec 12, 2019 Device tree bindings

lore
Share & tools
lore

Jyri Sarha

author
#0 lore raw

PATCH 1/1 ARM: dts: am335x-icev2: Add support for OSD9616P0899-10 at i2c0

Add support for OSD9616P0899-10 96x16 passive matrix display. The pre-charge period parameters are taken form a OSD9616P0899-10 document, but the display works fine with the default values too.

---
 arch/arm/boot/dts/am335x-icev2.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm/boot/dts/am335x-icev2.dts +13 -0
index 204bccfcc110..021eb57261fe 100644
@@ -287,6 +287,19 @@
 		gpio-controller;
 		#gpio-cells = <2>;
 	};
+
+	/* osd9616p0899-10 */
+	display@3c {
+		compatible = "solomon,ssd1306fb-i2c";
+		reg = <0x3c>;
+		solomon,height = <16>;
+		solomon,width = <96>;
+		solomon,com-seq;
+		solomon,com-invdir;
+		solomon,page-offset = <0>;
+		solomon,prechargep1 = <2>;
+		solomon,prechargep2 = <13>;
+	};
 };
 
 &spi0 {
Signature · 1 line
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Reviewed-by on v1 1/1
#1 lore raw
Quoted 24 lines · Jyri Sarha

Add support for OSD9616P0899-10 96x16 passive matrix display. The pre-charge period parameters are taken form a OSD9616P0899-10 document, but the display works fine with the default values too.

---
  arch/arm/boot/dts/am335x-icev2.dts | 13 +++++++++++++
  1 file changed, 13 insertions(+)
arch/arm/boot/dts/am335x-icev2.dts +6 -0
index 204bccfcc110..021eb57261fe 100644
@@ -287,6 +287,19 @@
  		gpio-controller;
  		#gpio-cells = <2>;
  	};
+
+	/* osd9616p0899-10 */
+	display@3c {
+		compatible = "solomon,ssd1306fb-i2c";
+		reg = <0x3c>;
+		solomon,height = <16>;

arch/arm/boot/dts/am335x-icev2.dts line 305

Quoted 10 lines
arch/arm/boot/dts/am335x-icev2.dts +7 -0
+		solomon,width = <96>;
+		solomon,com-seq;
+		solomon,com-invdir;
+		solomon,page-offset = <0>;
+		solomon,prechargep1 = <2>;
+		solomon,prechargep2 = <13>;
+	};
  };
 
  &spi0 {

Tomi

Signature · 2 lines
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
#2 lore raw
Quoted 6 lines · Tomi Valkeinen
Quoted 5 lines · Jyri Sarha

Add support for OSD9616P0899-10 96x16 passive matrix display. The pre-charge period parameters are taken form a OSD9616P0899-10 document, but the display works fine with the default values too.

...

Quoted 1 line

Thanks applying into omap-for-v5.6/dt.

Tony