initialize PDA TM3500 LCD panel for SAMA5D3 Xplained

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

Posts: 5
Joined: Fri Oct 09, 2015 6:43 pm

initialize PDA TM3500 LCD panel for SAMA5D3 Xplained

Fri Oct 09, 2015 7:04 pm

Attached is a first patch relative to the linux-at91 GIT tree that makes the TM3500 display panel usable with a SAMA5D3 Xplained board (SAMAD2 and SAMAD4 do not work yet due to differences in how the RGB channels are driven).

The command:

Code: Select all

    modetest -M atmel-hlcdc -s 6:320x480
should result in the expected SMPTE pattern.

Some settings may still be off as the panel is sometimes displaying an annoying flicker. Also, I didn't dare to change any of the power-control registers for fear of burning up the panel. Nor did I play with gamma-correction or adaptive-backlight control.

To use the LCD panel, you'll need to add something like this to your device tree source:

Code: Select all

&spi0 {
        status = "okay";

        lcd_panel {
                compatible = "pda,tm3500", "panel-pda-tm3500", "simple-panel";
                reg = <3>;                      /* SPI1 NPCS2 */
                spi-max-frequency = <15000000>; /* 66ns min period */

                backlight = <&backlight>;
                power-supply = <&panel_regulator>;
                #address-cells = <1>;
                #size-cells = <0>;
                status = "okay";

                port@0 {
                        reg = <0x0>;
                        #address-cells = <0x1>;
                        #size-cells = <0x0>;

                        panel_input: endpoint@0 {
                                reg = <0x0>;
                                remote-endpoint = <&hlcdc_panel_output>;
(8.86 KiB) Downloaded 160 times

Return to “LINUX”

Who is online

Users browsing this forum: No registered users and 2 guests