drivers: display: smartbond: Add support for PM

This commit should add all the functionality needed for the DISPLAY
driver to work when PM is enabled.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
This commit is contained in:
Ioannis Karachalios 2024-05-01 13:02:31 +03:00 committed by Anas Nashif
commit 75a3c5b848
3 changed files with 157 additions and 54 deletions

View file

@ -47,6 +47,21 @@
};
};
/omit-if-no-ref/ display_controller_sleep: display_controller_sleep {
group1 {
pinmux = <SMARTBOND_PINMUX(GPIO, 1, 2)>,
<SMARTBOND_PINMUX(GPIO, 1, 3)>,
<SMARTBOND_PINMUX(GPIO, 1, 4)>,
<SMARTBOND_PINMUX(GPIO, 1, 5)>,
<SMARTBOND_PINMUX(GPIO, 1, 7)>,
<SMARTBOND_PINMUX(GPIO, 1, 8)>,
<SMARTBOND_PINMUX(GPIO, 0, 27)>,
<SMARTBOND_PINMUX(GPIO, 0, 28)>,
<SMARTBOND_PINMUX(GPIO, 0, 29)>,
<SMARTBOND_PINMUX(GPIO, 0, 30)>;
};
};
spi_controller: spi_controller {
group1 {
pinmux = <SMARTBOND_PINMUX(SPI_CLK, 0, 22)>,

View file

@ -31,6 +31,14 @@
bias-pull-up;
};
};
i2c2_sleep: i2c2_sleep {
group1 {
pinmux = <SMARTBOND_PINMUX(GPIO, 0, 19)>,
<SMARTBOND_PINMUX(GPIO, 0, 18)>;
bias-pull-down;
};
};
};
&i2c2 {
@ -47,7 +55,8 @@
&lcdc {
status = "okay";
pinctrl-0 = <&display_controller_default>;
pinctrl-names = "default";
pinctrl-1 = <&display_controller_sleep>;
pinctrl-names = "default", "sleep";
width = <480>;
height = <272>;
disp-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;