Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man4 ssdfb(4): add an iic fdt attachment example also



details:   https://anonhg.NetBSD.org/src/rev/a6a338404bd5
branches:  trunk
changeset: 1022685:a6a338404bd5
user:      tnn <tnn%NetBSD.org@localhost>
date:      Sun Aug 01 16:17:05 2021 +0000

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

diffstat:

 share/man/man4/ssdfb.4 |  31 +++++++++++++++++++++++--------
 1 files changed, 23 insertions(+), 8 deletions(-)

diffs (49 lines):

diff -r 897f99cb2741 -r a6a338404bd5 share/man/man4/ssdfb.4
--- a/share/man/man4/ssdfb.4    Sun Aug 01 15:52:11 2021 +0000
+++ b/share/man/man4/ssdfb.4    Sun Aug 01 16:17:05 2021 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index