meson: current and legacy: Support HDMI (#4177)
* meson: current: Support HDMI * meson: legacy: Support HDMI
This commit is contained in:
parent
a80c388eb3
commit
1ad2e6aeb0
@ -5710,7 +5710,7 @@ CONFIG_DRM_I2C_SIL164=m
|
||||
# ARM devices
|
||||
#
|
||||
# CONFIG_DRM_HDLCD is not set
|
||||
# CONFIG_DRM_MALI_DISPLAY is not set
|
||||
CONFIG_DRM_MALI_DISPLAY=y
|
||||
# CONFIG_DRM_KOMEDA is not set
|
||||
# end of ARM devices
|
||||
|
||||
@ -5857,6 +5857,7 @@ CONFIG_DRM_ETNAVIV_THERMAL=y
|
||||
# CONFIG_DRM_MXSFB is not set
|
||||
CONFIG_DRM_MESON=y
|
||||
CONFIG_DRM_MESON_DW_HDMI=y
|
||||
CONFIG_DRM_MESON_TRANSWITCH_HDMI=y
|
||||
# CONFIG_DRM_ARCPGU is not set
|
||||
# CONFIG_DRM_BOCHS is not set
|
||||
# CONFIG_DRM_CIRRUS_QEMU is not set
|
||||
@ -5872,7 +5873,7 @@ CONFIG_TINYDRM_ILI9486=m
|
||||
# CONFIG_TINYDRM_ST7735R is not set
|
||||
# CONFIG_DRM_PL111 is not set
|
||||
# CONFIG_DRM_TVE200 is not set
|
||||
# CONFIG_DRM_LIMA is not set
|
||||
CONFIG_DRM_LIMA=y
|
||||
# CONFIG_DRM_PANFROST is not set
|
||||
# CONFIG_DRM_MCDE is not set
|
||||
CONFIG_DRM_TIDSS=m
|
||||
@ -8205,7 +8206,9 @@ CONFIG_RESET_MESON_AUDIO_ARB=m
|
||||
CONFIG_GENERIC_PHY=y
|
||||
CONFIG_GENERIC_PHY_MIPI_DPHY=y
|
||||
# CONFIG_PHY_CAN_TRANSCEIVER is not set
|
||||
CONFIG_PHY_MESON8_HDMI_TX=y
|
||||
CONFIG_PHY_MESON8B_USB2=y
|
||||
CONFIG_PHY_MESON_CVBS_DAC=y
|
||||
CONFIG_PHY_MESON_GXL_USB2=y
|
||||
CONFIG_PHY_MESON_G12A_USB2=y
|
||||
CONFIG_PHY_MESON_G12A_USB3_PCIE=y
|
||||
|
||||
@ -5400,7 +5400,7 @@ CONFIG_DRM_I2C_SIL164=m
|
||||
# ARM devices
|
||||
#
|
||||
# CONFIG_DRM_HDLCD is not set
|
||||
# CONFIG_DRM_MALI_DISPLAY is not set
|
||||
CONFIG_DRM_MALI_DISPLAY=y
|
||||
# CONFIG_DRM_KOMEDA is not set
|
||||
# end of ARM devices
|
||||
|
||||
@ -5522,6 +5522,7 @@ CONFIG_DRM_DW_HDMI=y
|
||||
# CONFIG_DRM_DW_HDMI_AHB_AUDIO is not set
|
||||
# CONFIG_DRM_DW_HDMI_I2S_AUDIO is not set
|
||||
# CONFIG_DRM_DW_HDMI_CEC is not set
|
||||
CONFIG_DRM_TRANSWITCH_TXC_48352=y
|
||||
# end of Display Interface Bridges
|
||||
|
||||
# CONFIG_DRM_STI is not set
|
||||
@ -5531,6 +5532,7 @@ CONFIG_DRM_ETNAVIV_THERMAL=y
|
||||
# CONFIG_DRM_MXSFB is not set
|
||||
CONFIG_DRM_MESON=y
|
||||
CONFIG_DRM_MESON_DW_HDMI=y
|
||||
CONFIG_DRM_MESON_MX_HDMI=y
|
||||
# CONFIG_DRM_CIRRUS_QEMU is not set
|
||||
# CONFIG_DRM_GM12U320 is not set
|
||||
CONFIG_TINYDRM_HX8357D=m
|
||||
@ -5543,7 +5545,7 @@ CONFIG_TINYDRM_ILI9341=m
|
||||
# CONFIG_TINYDRM_ST7735R is not set
|
||||
# CONFIG_DRM_PL111 is not set
|
||||
# CONFIG_DRM_TVE200 is not set
|
||||
# CONFIG_DRM_LIMA is not set
|
||||
CONFIG_DRM_LIMA=y
|
||||
# CONFIG_DRM_PANFROST is not set
|
||||
# CONFIG_DRM_MCDE is not set
|
||||
# CONFIG_DRM_TIDSS is not set
|
||||
@ -7773,6 +7775,7 @@ CONFIG_RESET_MESON_AUDIO_ARB=m
|
||||
#
|
||||
CONFIG_GENERIC_PHY=y
|
||||
CONFIG_GENERIC_PHY_MIPI_DPHY=y
|
||||
CONFIG_PHY_MESON8_HDMI_TX=y
|
||||
CONFIG_PHY_MESON8B_USB2=y
|
||||
CONFIG_PHY_MESON_GXL_USB2=y
|
||||
CONFIG_PHY_MESON_G12A_USB2=y
|
||||
|
||||
@ -0,0 +1,57 @@
|
||||
From e59c976f9dea2d6e010dd1a615565117a31f047a Mon Sep 17 00:00:00 2001
|
||||
From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
||||
Date: Fri, 20 Mar 2020 15:17:51 +0100
|
||||
Subject: [PATCH 1/1] ARM: dts: meson8b: odroid-c1: enable HDMI for the
|
||||
Odroid-C1 - WiP
|
||||
|
||||
WiP
|
||||
|
||||
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
||||
---
|
||||
arch/arm/boot/dts/meson8b-odroidc1.dts | 23 +++++++++++++++++++++++
|
||||
1 file changed, 23 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts
|
||||
index 386dd44daba..af49a50a69a 100644
|
||||
--- a/arch/arm/boot/dts/meson8b-odroidc1.dts
|
||||
+++ b/arch/arm/boot/dts/meson8b-odroidc1.dts
|
||||
@@ -32,6 +32,17 @@ emmc_pwrseq: emmc-pwrseq {
|
||||
reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
+ hdmi-connector {
|
||||
+ compatible = "hdmi-connector";
|
||||
+ type = "a";
|
||||
+
|
||||
+ port {
|
||||
+ hdmi_connector_in: endpoint {
|
||||
+ remote-endpoint = <&hdmi_tx_tmds_out>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
blue {
|
||||
@@ -298,6 +309,18 @@ usb-hub {
|
||||
};
|
||||
};
|
||||
|
||||
+&hdmi_tx {
|
||||
+ status = "okay";
|
||||
+ pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+};
|
||||
+
|
||||
+&hdmi_tx_tmds_port {
|
||||
+ hdmi_tx_tmds_out: endpoint {
|
||||
+ remote-endpoint = <&hdmi_connector_in>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&ir_receiver {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&ir_recv_pins>;
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@ -0,0 +1,92 @@
|
||||
dts: Support HDMI
|
||||
|
||||
---
|
||||
arch/arm/boot/dts/meson8b-onecloud.dts | 58 ++++++++++++++++++++++++++
|
||||
1 file changed, 58 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/meson8b-onecloud.dts b/arch/arm/boot/dts/meson8b-onecloud.dts
|
||||
index 050b2e65348..69fff33c496 100644
|
||||
--- a/arch/arm/boot/dts/meson8b-onecloud.dts
|
||||
+++ b/arch/arm/boot/dts/meson8b-onecloud.dts
|
||||
@@ -32,6 +32,48 @@ emmc_pwrseq: emmc-pwrseq {
|
||||
reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
+ hdmi-connector {
|
||||
+ compatible = "hdmi-connector";
|
||||
+ type = "a";
|
||||
+
|
||||
+ port {
|
||||
+ hdmi_connector_in: endpoint {
|
||||
+ remote-endpoint = <&hdmi_tx_tmds_out>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ sound {
|
||||
+ compatible = "amlogic,gx-sound-card";
|
||||
+
|
||||
+ assigned-clocks = <&clkc CLKID_MPLL0>,
|
||||
+ <&clkc CLKID_MPLL1>;
|
||||
+ assigned-clock-rates = <294912000>,
|
||||
+ <270950400>;
|
||||
+
|
||||
+ dai-link-0 {
|
||||
+ sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
|
||||
+ };
|
||||
+
|
||||
+ dai-link-1 {
|
||||
+ sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
|
||||
+ dai-format = "i2s";
|
||||
+ mclk-fs = <256>;
|
||||
+
|
||||
+ codec-0 {
|
||||
+ sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ dai-link-2 {
|
||||
+ sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
|
||||
+
|
||||
+ codec-0 {
|
||||
+ sound-dai = <&hdmi_tx 0>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
button {
|
||||
// compatible = "gpio-keys-polled";
|
||||
// poll-interval = <100>;
|
||||
@@ -142,6 +184,10 @@ vcc_core: regulator-vcc-core {
|
||||
};
|
||||
};
|
||||
|
||||
+&aiu {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&cpu0 {
|
||||
cpu-supply = <&vcc_core>;
|
||||
};
|
||||
@@ -150,6 +196,18 @@ &mali {
|
||||
mali-supply = <&vcc_core>;
|
||||
};
|
||||
|
||||
+&hdmi_tx {
|
||||
+ status = "okay";
|
||||
+ pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+};
|
||||
+
|
||||
+&hdmi_tx_tmds_port {
|
||||
+ hdmi_tx_tmds_out: endpoint {
|
||||
+ remote-endpoint = <&hdmi_connector_in>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&gpio {
|
||||
gpio-line-names =
|
||||
// 0-3 Bank GPIOX 0-3
|
||||
--
|
||||
2.25.1
|
||||
|
||||
5177
patch/kernel/archive/meson-5.10/m8-m8b-m8m2-Support-HDMI.patch
Normal file
5177
patch/kernel/archive/meson-5.10/m8-m8b-m8m2-Support-HDMI.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,121 @@
|
||||
From 2954b682a71fad9d912c68737556259dabf3dcec Mon Sep 17 00:00:00 2001
|
||||
From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
||||
Date: Fri, 20 Mar 2020 15:17:51 +0100
|
||||
Subject: [PATCH 065/122] ARM: dts: meson8b: odroid-c1: enable HDMI for the
|
||||
Odroid-C1 - WiP
|
||||
|
||||
WiP
|
||||
|
||||
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
||||
---
|
||||
arch/arm/boot/dts/meson8b-odroidc1.dts | 73 ++++++++++++++++++++++++++
|
||||
1 file changed, 73 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts
|
||||
index 04cce559980..ef52033561c 100644
|
||||
--- a/arch/arm/boot/dts/meson8b-odroidc1.dts
|
||||
+++ b/arch/arm/boot/dts/meson8b-odroidc1.dts
|
||||
@@ -32,6 +32,17 @@ emmc_pwrseq: emmc-pwrseq {
|
||||
reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
+ hdmi-connector {
|
||||
+ compatible = "hdmi-connector";
|
||||
+ type = "a";
|
||||
+
|
||||
+ port {
|
||||
+ hdmi_connector_in: endpoint {
|
||||
+ remote-endpoint = <&hdmi_tx_tmds_out>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
blue {
|
||||
@@ -93,6 +104,50 @@ rtc32k_xtal: rtc32k-xtal-clk {
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
+ sound {
|
||||
+ compatible = "amlogic,gx-sound-card";
|
||||
+ model = "M8B-ODROID-C1";
|
||||
+
|
||||
+ assigned-clocks = <&clkc CLKID_MPLL0>,
|
||||
+ <&clkc CLKID_MPLL1>;
|
||||
+ assigned-clock-rates = <294912000>,
|
||||
+ <270950400>;
|
||||
+
|
||||
+ dai-link-0 {
|
||||
+ sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
|
||||
+ };
|
||||
+
|
||||
+ dai-link-1 {
|
||||
+ sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
|
||||
+ };
|
||||
+
|
||||
+ dai-link-2 {
|
||||
+ sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
|
||||
+ dai-format = "i2s";
|
||||
+ mclk-fs = <256>;
|
||||
+
|
||||
+ codec-0 {
|
||||
+ sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ dai-link-3 {
|
||||
+ sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
|
||||
+
|
||||
+ codec-0 {
|
||||
+ sound-dai = <&hdmi_tx 1>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ dai-link-4 {
|
||||
+ sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
|
||||
+
|
||||
+ codec-0 {
|
||||
+ sound-dai = <&hdmi_tx 0>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
vcc_1v8: regulator-vcc-1v8 {
|
||||
/*
|
||||
* RICHTEK RT9179 configured for a fixed output voltage of
|
||||
@@ -187,6 +242,12 @@ vdd_rtc: regulator-vdd-rtc {
|
||||
};
|
||||
};
|
||||
|
||||
+&aiu {
|
||||
+ status = "okay";
|
||||
+ pinctrl-0 = <&spdif_out_1_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+};
|
||||
+
|
||||
&cpu0 {
|
||||
cpu-supply = <&vcck>;
|
||||
};
|
||||
@@ -298,6 +359,18 @@ usb-hub {
|
||||
};
|
||||
};
|
||||
|
||||
+&hdmi_tx {
|
||||
+ status = "okay";
|
||||
+ pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+};
|
||||
+
|
||||
+&hdmi_tx_tmds_port {
|
||||
+ hdmi_tx_tmds_out: endpoint {
|
||||
+ remote-endpoint = <&hdmi_connector_in>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&ir_receiver {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&ir_recv_pins>;
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@ -0,0 +1,92 @@
|
||||
dts: Support HDMI
|
||||
|
||||
---
|
||||
arch/arm/boot/dts/meson8b-onecloud.dts | 58 ++++++++++++++++++++++++++
|
||||
1 file changed, 58 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/meson8b-onecloud.dts b/arch/arm/boot/dts/meson8b-onecloud.dts
|
||||
index 050b2e65348..69fff33c496 100644
|
||||
--- a/arch/arm/boot/dts/meson8b-onecloud.dts
|
||||
+++ b/arch/arm/boot/dts/meson8b-onecloud.dts
|
||||
@@ -32,6 +32,48 @@ emmc_pwrseq: emmc-pwrseq {
|
||||
reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
+ hdmi-connector {
|
||||
+ compatible = "hdmi-connector";
|
||||
+ type = "a";
|
||||
+
|
||||
+ port {
|
||||
+ hdmi_connector_in: endpoint {
|
||||
+ remote-endpoint = <&hdmi_tx_tmds_out>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ sound {
|
||||
+ compatible = "amlogic,gx-sound-card";
|
||||
+
|
||||
+ assigned-clocks = <&clkc CLKID_MPLL0>,
|
||||
+ <&clkc CLKID_MPLL1>;
|
||||
+ assigned-clock-rates = <294912000>,
|
||||
+ <270950400>;
|
||||
+
|
||||
+ dai-link-0 {
|
||||
+ sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
|
||||
+ };
|
||||
+
|
||||
+ dai-link-1 {
|
||||
+ sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
|
||||
+ dai-format = "i2s";
|
||||
+ mclk-fs = <256>;
|
||||
+
|
||||
+ codec-0 {
|
||||
+ sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ dai-link-2 {
|
||||
+ sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
|
||||
+
|
||||
+ codec-0 {
|
||||
+ sound-dai = <&hdmi_tx 0>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
button {
|
||||
// compatible = "gpio-keys-polled";
|
||||
// poll-interval = <100>;
|
||||
@@ -142,6 +184,10 @@ vcc_core: regulator-vcc-core {
|
||||
};
|
||||
};
|
||||
|
||||
+&aiu {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&cpu0 {
|
||||
cpu-supply = <&vcc_core>;
|
||||
};
|
||||
@@ -150,6 +196,18 @@ &mali {
|
||||
mali-supply = <&vcc_core>;
|
||||
};
|
||||
|
||||
+&hdmi_tx {
|
||||
+ status = "okay";
|
||||
+ pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+};
|
||||
+
|
||||
+&hdmi_tx_tmds_port {
|
||||
+ hdmi_tx_tmds_out: endpoint {
|
||||
+ remote-endpoint = <&hdmi_connector_in>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&gpio {
|
||||
gpio-line-names =
|
||||
// 0-3 Bank GPIOX 0-3
|
||||
--
|
||||
2.25.1
|
||||
|
||||
5704
patch/kernel/archive/meson-5.15/m8-m8b-m8m2-Support-HDMI.patch
Normal file
5704
patch/kernel/archive/meson-5.15/m8-m8b-m8m2-Support-HDMI.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user