LK-OLED1 on NanoPC-T4
Posted: Sun Aug 08, 2021 8:57 am
To wire the LK-OLED1 to i2c2 (con1-03, con1-05) only a level shifter is required.applied with makes it immediately usable with a mainline kernel if the ssd1307fb.ko module was build.
It can serve as a console itself, but with 16 characters and 5 lines, its console usability is quite limited.
This overlayCode: Select all
/dts-v1/;
/plugin/;
/ {
compatible = "friendlyarm,nanopc-t4";
};
&{/i2c@ff120000} {
#address-cells = <1>;
#size-cells = <0>;
lkoled1: oled@3c {
compatible = "solomon,ssd1306fb-i2c";
reg = <0x3c>;
solomon,height = <64>;
solomon,width = <128>;
solomon,page-offset = <0>;
solomon,com-invdir;
};
};
Code: Select all
fdtoverlay --input rk3399-nanopc-t4.dtb --output rk3399-nanopc-t4.dtb rk3399-nanopc-t4-lk-oled1.dtbo
It can serve as a console itself, but with 16 characters and 5 lines, its console usability is quite limited.