From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Martin Blumenstingl Date: Sun, 5 May 2019 02:30:29 +0200 Subject: ARM: dts: meson8b: add the HDMI controller - WiP WiP Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/amlogic/meson8b.dtsi | 69 ++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm/boot/dts/amlogic/meson8b.dtsi b/arch/arm/boot/dts/amlogic/meson8b.dtsi index 111111111111..222222222222 100644 --- a/arch/arm/boot/dts/amlogic/meson8b.dtsi +++ b/arch/arm/boot/dts/amlogic/meson8b.dtsi @@ -277,6 +277,39 @@ mali: gpu@c0000 { #cooling-cells = <2>; /* min followed by max */ }; + hdmi_tx: hdmi-tx@42000 { + compatible = "amlogic,meson8b-hdmi-tx"; + reg = <0x42000 0xc>; + interrupts = ; + phys = <&hdmi_tx_phy>; + phy-names = "hdmi"; + clocks = <&clkc CLKID_HDMI_PCLK>, + <&clkc CLKID_HDMI_SYS>; + clock-names = "pclk", "sys"; + + #address-cells = <1>; + #size-cells = <0>; + + #sound-dai-cells = <1>; + sound-name-prefix = "HDMITX"; + + status = "disabled"; + + /* VPU VENC Input */ + hdmi_tx_venc_port: port@0 { + reg = <0>; + + hdmi_tx_in: endpoint { + remote-endpoint = <&hdmi_tx_out>; + }; + }; + + /* TMDS Output */ + hdmi_tx_tmds_port: port@1 { + reg = <1>; + }; + }; + vpu: vpu@100000 { compatible = "amlogic,meson8b-vpu"; @@ -336,10 +369,22 @@ vpu: vpu@100000 { #address-cells = <1>; #size-cells = <0>; + #sound-dai-cells = <0>; + sound-name-prefix = "HDMITX"; + /* CVBS VDAC output port */ cvbs_vdac_port: port@0 { reg = <0>; }; + + /* HDMI-TX output port */ + hdmi_tx_port: port@1 { + reg = <1>; + + hdmi_tx_out: endpoint { + remote-endpoint = <&hdmi_tx_in>; + }; + }; }; }; }; /* end of / */ @@ -538,6 +583,22 @@ mux { }; }; + hdmi_hpd_pins: hdmi-hpd { + mux { + groups = "hdmi_hpd"; + function = "hdmi"; + bias-disable; + }; + }; + + hdmi_i2c_pins: hdmi-i2c { + mux { + groups = "hdmi_sda", "hdmi_scl"; + function = "hdmi"; + bias-disable; + }; + }; + i2c_a_pins: i2c-a { mux { groups = "i2c_sda_a", "i2c_sck_a"; @@ -700,6 +761,14 @@ pwrc: power-controller@100 { assigned-clocks = <&clkc CLKID_VPU>; assigned-clock-rates = <182142857>; }; + + hdmi_tx_phy: hdmi-phy@3a0 { + compatible = "amlogic,meson8b-hdmi-tx-phy", + "amlogic,meson8-hdmi-tx-phy"; + clocks = <&clkc CLKID_HDMI_PLL_HDMI_OUT>; + reg = <0x3a0 0xc>; + #phy-cells = <0>; + }; }; &hwrng { -- Armbian