To wire the LK-OLED1 to i2c2 (con1-03, con1-05) only a level shifter is required.
LK-OLED1.jpg
LK-OLED1.jpg (143.47 KiB) Viewed 9570 times
This overlay

Code: 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;
        };
};
applied with

Code: Select all

fdtoverlay --input rk3399-nanopc-t4.dtb --output rk3399-nanopc-t4.dtb rk3399-nanopc-t4-lk-oled1.dtbo
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.