From c89bd151052ec106b9876107e3b4b5d29635828d Mon Sep 17 00:00:00 2001 From: Russell King Date: Sun, 24 Jun 2018 14:05:12 +0100 Subject: ARM: dts: cubox: add LCD controller and TDA998x configuration Add DT configuration for the HDMI display output on the Dove Cubox. This adds support for the LCD0 controller which is connected to a TDA19988 HDMI encoder. Signed-off-by: Russell King --- arch/arm/boot/dts/dove-cubox.dts | 37 +++++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/dove.dtsi | 4 ++-- 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/dove-cubox.dts b/arch/arm/boot/dts/dove-cubox.dts index 3e1584e787ae..f1f607df8fbf 100644 --- a/arch/arm/boot/dts/dove-cubox.dts +++ b/arch/arm/boot/dts/dove-cubox.dts @@ -67,6 +67,19 @@ gpu-subsystem { status = "okay"; }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + framebuffer { + compatible = "marvell,armada-framebuffer"; + size = <0x02000000>; + alignment = <0x02000000>; + no-map; + }; + }; }; &uart0 { status = "okay"; }; @@ -117,6 +130,30 @@ silabs,pll-master; }; }; + + tda998x: hdmi-encoder@70 { + compatible = "nxp,tda998x"; + reg = <0x70>; + video-ports = <0x234501>; + interrupts-extended = <&gpio0 27 IRQ_TYPE_LEVEL_LOW>; + + port { + tda998x_video: endpoint { + remote-endpoint = <&lcd0_rgb>; + }; + }; + }; +}; + +&lcd0 { + status = "okay"; + clocks = <&si5351 0>; + clock-names = "ext_ref_clk1"; + lcd0_port: port { + lcd0_rgb: endpoint { + remote-endpoint = <&tda998x_video>; + }; + }; }; &sdio0 { diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi index 89e0bdaf3a85..8ed3080def5b 100644 --- a/arch/arm/boot/dts/dove.dtsi +++ b/arch/arm/boot/dts/dove.dtsi @@ -770,14 +770,14 @@ }; lcd1: lcd-controller@810000 { - compatible = "marvell,dove-lcd"; + compatible = "marvell,dove-lcd", "marvell,armada-lcdc"; reg = <0x810000 0x1000>; interrupts = <46>; status = "disabled"; }; lcd0: lcd-controller@820000 { - compatible = "marvell,dove-lcd"; + compatible = "marvell,dove-lcd", "marvell,armada-lcdc"; reg = <0x820000 0x1000>; interrupts = <47>; status = "disabled"; -- cgit