Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
litesom:devicetree:lcd [2017/02/15 21:09] filug [Backlight] |
litesom:devicetree:lcd [2021/05/10 13:40] (current) kateryna.kozakova |
====== i.MX6UL and LCD display ====== | ====== liteSOM and LCD display ====== |
| |
| <well> |
| {{:github-mark-32px.png?nolink |}} |
| |
| Example available on [[https://github.com/grinn-pub/examples|GitHub]]. |
| Check [[https://github.com/grinn-pub/examples/blob/master/configs/grinn_liteboard_lcd_res_defconfig|liteboard LCD + touchscreen]]. |
| </well> |
| |
<columns 100% 50% - -> | <columns 100% 50% - -> |
* ''PWM'' - <tooltip title="to control LCD display backlight">Pulse Width Modulation</tooltip>. | * ''PWM'' - <tooltip title="to control LCD display backlight">Pulse Width Modulation</tooltip>. |
| |
Below you can see how to configure [[litesom:liteboard]] to support [[emv:lcd]] module. | Below you can see how to configure [[litesom:liteboard]] to support [[devices:lcd]] module. |
| |
<alert type="info">Complete example for [[litesom:liteboard]] and [[emv:lcd]] you can find on our [[https://github.com/grinn-pub/examples|GitHub examples repository]].</alert> | <alert type="info">Complete example for [[litesom:liteboard]] and [[devices:lcd]] you can find on our [[https://github.com/grinn-pub/examples|GitHub examples repository]].</alert> |
| |
On [[evm:lcd]] we are using [[https://riverdi.com/product/rvt7-0a800480tnwr00/|RVT7.0A800480TNWR00]] TFT display produced by [[https://riverdi.com/|Riverdi]]. Below you can find short details about this device: | On [[evm:lcd]] we are using [[https://riverdi.com/product/rvt7-0a800480tnwr00/|RVT7.0A800480TNWR00]] TFT display produced by [[https://riverdi.com/|Riverdi]]. Below you can find short details about this device: |
<newcolumn> | <newcolumn> |
| |
On [[litesom:liteboard]] you can find dedicated LCD backlight boot converter (see [[http://www.ti.com/product/TPS61042|TPS61042]]) controlled by [[:litesom]] via ''PWM2 output'' pin. | On [[litesom:liteboard]] you can find dedicated LCD backlight boot converter (see [[https://www.ti.com/product/TPS61042|TPS61042]]) controlled by [[:litesom]] via ''PWM2 output'' pin. |
| |
{{ :litesom:devicetree:litesom_backlight_driver.png?500 |}} | {{ :litesom:devicetree:litesom_backlight_driver.png?500 |}} |
Backlight configured as presented here will: | Backlight configured as presented here will: |
| |
* generate PWM with 200Hz frequency (perion 5000000 ns), | * generate PWM with 200Hz frequency (period 5000000 ns), |
* use ''PWM2'' peripheral as backlight controller, | * use ''PWM2'' peripheral as backlight controller, |
* define eight allowed backlight levels: 0%, 2%, 3%, 6%, 13%, 25%, 50%, 100%, | * define eight allowed backlight levels: 0%, 2%, 3%, 6%, 13%, 25%, 50%, 100%, |
| |
Node ''pwm2'' is configured as documented in [[https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/pwm/pwm.txt|pwm.txt]]. | Node ''pwm2'' is configured as documented in [[https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/pwm/pwm.txt|pwm.txt]]. |
| |
</columns> | </columns> |
| |
| |