Module Name:    src
Committed By:   tnn
Date:           Sun Aug  1 16:17:05 UTC 2021

Modified Files:
        src/share/man/man4: ssdfb.4

Log Message:
ssdfb(4): add an iic fdt attachment example also


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/ssdfb.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man4/ssdfb.4
diff -u src/share/man/man4/ssdfb.4:1.5 src/share/man/man4/ssdfb.4:1.6
--- src/share/man/man4/ssdfb.4:1.5	Sun Aug  1 15:35:47 2021
+++ src/share/man/man4/ssdfb.4	Sun Aug  1 16:17:05 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ssdfb.4,v 1.5 2021/08/01 15:35:47 tnn Exp $
+.\"	$NetBSD: ssdfb.4,v 1.6 2021/08/01 16:17:05 tnn Exp $
 .\"
 .\" Copyright (c) 2019 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -95,17 +95,32 @@ On most displays, the contrast setting c
 .Xr wsconsctl 8
 program.
 .Sh EXAMPLES
-To attach an SSD1322 display using the 4-wire SPI interface on an
+To attach an SSD1322 display using the 4-wire
+.Xr spi 4
+interface on an
 Allwinner A20 ARM single board computer, the following Device Tree overlay
 can be used:
 .Bd -literal -offset indent
 &spi0 {
-        ssdfb@0 {
-                compatible = "solomon,ssd1322";
-                reg = <0x00>;
-                dc-gpio = <0x10 0x07 0x02 0x00>;
-                status = "okay";
-        };
+	ssdfb@0 {
+		compatible = "solomon,ssd1322";
+		reg = <0x00>;
+		dc-gpio = <0x10 0x07 0x02 0x00>;
+		status = "okay";
+	};
+};
+.Ed
+.Pp
+To attach an SSD1306 display using the
+.Xr iic 4
+interface on the same board, use:
+.Bd -literal -offset indent
+&i2c2 {
+	ssdfb@3c {
+		compatible = "solomon,ssd1306fb-i2c";
+		reg = <0x3c>;
+		status = "okay";
+	};
 };
 .Ed
 .Sh SEE ALSO

Reply via email to