Advice on PWM for EXTCOMIN of Sharp Memory LCD

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

Moderator: nferre

Posts: 3
Joined: Sun Oct 18, 2020 3:03 pm

Advice on PWM for EXTCOMIN of Sharp Memory LCD

Sun Dec 27, 2020 4:43 am

Dear SAMA5 Linux experts,

I'm in the progress of integrating the Sharp Memory LCD (LS032B7DD02) driver into SAMA5D27-SOM1-EK based on the following patch : ...

This LCD uses SPI interface. I then re-use some of the signals of the LCD TFT interface (J26) on the SAMA5D27-SOM1-EK. Especially :
- PC3 (LCDPWM) for EXTCOMIN of LS032B7DD02,
- PC4 (LCDDISP) for DISP of LS032B7DD02,
- PA14, PA15, PA16 for SPI interface.

I do NOT have any experience with defining the PWM for the EXTCOMIN signal of the LCD in the dts. I found the AN3279 - How-to-use-SAMA5D2-PWM-Under-Linux but it is mainly about how to access / control the pwm from user-space.

I would like your advice on how to define the pwm properties in the dts of the SAMA5D27-SOM1-EK to generated the expected signal for driving the LCD.

I'm using linux4sam-6.1 kernel. Hereafter is the uncompleted display dts node in at91-sama5d27_som1_ek.dts

Code: Select all

                        spi0: spi@f8000000 {
                                pinctrl-names = "default";
                                pinctrl-0 = <&pinctrl_spi0_default>;
                                status = "okay";

                                display@0 {
                                        compatible = "sharp,ls032b7dd02";
                                        reg = <0>;
                                        spi-max-frequency = <32000000>;

                                        disp-gpios = <&gpioA PIN_PC4>;
                                        pwms = <&hlcdc_pwm 0 50000 0>;  // I saw that hlcdc_pwm from here :, but I'm not sure if it is possible to use it and what is necessary modification in .dtsi, dts.
                                        sharp,frames-per-sec = <20>;
                                        status = "okay";

Thanks in advance and best regards,


Return to “LINUX”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests