Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RPi kernel driver za RM67162 - custom
#3
Hehe, proradio drajver ... Big Grin
Bilo je potrebno da se prevede i "device tree overlay" za ovaj panel, koristi se "dtc" prevodilac koji iz source .dts pretvara u BLOB .dtbo fajl koji se postavlja u /boot/overlays kako bi kernel znao kako da upotrebi drajver.
Inače ne mora da se prevodi ceo kernel, samo drajver i ovaj overlay koji se prilikom boot-a dinamicno učitavaju.

Source rm68200.dts za taj panel izgleda ovako:

Code:
/dts-v1/;
/plugin/;

/ {
    compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";

    fragment@0 {
        target = <&dsi1>;
        __overlay__ {
            status = "okay";

            #address-cells = <1>;
            #size-cells = <0>;
            #power-domains = <&power 18>;

            port {
                dsi_out_port: endpoint {
                    remote-endpoint = <&panel_dsi_port>;
                    };
            };

            panel_test:panel@0 {
                compatible = "raydium,rm68200";

                reset-gpios = <&gpio 13 0>;
                #bk-gpios = <&gpio 12 0>;
                vc4_dsi = <&dsi1>;
                label = "panel_test";
                reg = <0>;
                port {
                    panel_dsi_port: endpoint {
                        remote-endpoint = <&dsi_out_port>;
                    };
                };
            };
        };
    };
};

U fajlu /boot/config.txt se doda samo linija da povuče taj naš nov drajver i overlay:

Code:
...
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
ignore_lcd=1
dtoverlay=rm68200
dtoverlay=vc4-kms-v3d
max_framebuffers=2

I to bi odprilike bilo to Smile
Može malo to da se doradi i srede još neke stvarčice ali generalno radi!

[Image: attachment.php?aid=36909]


Attached Files Thumbnail(s)

Reply


Messages In This Thread
RPi kernel driver za RM67162 - custom - by mikikg - 01-12-2022, 08:29 AM
RE: RPi kernel driver za RM67162 - custom - by mikikg - 01-17-2022, 05:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)