diff options
author | Dario Binacchi <dario.binacchi@amarulasolutions.com> | 2023-08-16 09:26:58 +0200 |
---|---|---|
committer | Alexandre Torgue <alexandre.torgue@foss.st.com> | 2023-08-16 09:29:49 +0200 |
commit | 10a970bc3ebfaf1c751421ffc2ac3e40838f86ef (patch) | |
tree | ea064d8fbbe6f599e6312bf1859b4697153a5eab | |
parent | e4e724099f04072053cf411456e3e9aae48c4af1 (diff) | |
download | linux-stable-10a970bc3ebfaf1c751421ffc2ac3e40838f86ef.tar.gz linux-stable-10a970bc3ebfaf1c751421ffc2ac3e40838f86ef.tar.bz2 linux-stable-10a970bc3ebfaf1c751421ffc2ac3e40838f86ef.zip |
ARM: dts: stm32: support display on stm32f746-disco board
Add support to Rocktech RK043FN48H display on stm32f746-disco board.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Reviewed-by: Raphaƫl Gallais-Pou <raphael.gallais-pou@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
-rw-r--r-- | arch/arm/boot/dts/st/stm32f746-disco.dts | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/st/stm32f746-disco.dts b/arch/arm/boot/dts/st/stm32f746-disco.dts index 960aed12aa9e..37e3a905fc3c 100644 --- a/arch/arm/boot/dts/st/stm32f746-disco.dts +++ b/arch/arm/boot/dts/st/stm32f746-disco.dts @@ -61,6 +61,19 @@ reg = <0xC0000000 0x800000>; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + linux,cma { + compatible = "shared-dma-pool"; + no-map; + size = <0x80000>; + linux,dma-default; + }; + }; + aliases { serial0 = &usart1; }; @@ -86,6 +99,25 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; + + backlight: backlight { + compatible = "gpio-backlight"; + gpios = <&gpiok 3 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; + + panel_rgb: panel-rgb { + compatible = "rocktech,rk043fn48h"; + power-supply = <&vcc_3v3>; + backlight = <&backlight>; + enable-gpios = <&gpioi 12 GPIO_ACTIVE_HIGH>; + status = "okay"; + port { + panel_in_rgb: endpoint { + remote-endpoint = <<dc_out_rgb>; + }; + }; + }; }; &clk_hse { @@ -116,6 +148,18 @@ }; }; +<dc { + pinctrl-0 = <<dc_pins_a>; + pinctrl-names = "default"; + status = "okay"; + + port { + ltdc_out_rgb: endpoint { + remote-endpoint = <&panel_in_rgb>; + }; + }; +}; + &sdio1 { status = "okay"; vmmc-supply = <&vcc_3v3>; |