armbian-build/patch/kernel/archive/meson-5.19/board_onecloud/0002-dts-Support-HDMI.patch
hzyitc f2a61e9888
meson: edge: bump v5.19 (#4272)
* meson: edge: Bump v5.19

* meson: edge: refresh patches

* meson: edge: refresh config
2022-10-12 11:22:14 +02:00

93 lines
1.7 KiB
Diff

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 d517e45e22ba..89e3e3238dec 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>;
@@ -178,6 +220,10 @@ &pwm_cd {
clock-names = "clkin0", "clkin1";
};
+&aiu {
+ status = "okay";
+};
+
&cpu0 {
cpu-supply = <&vcc_core>;
};
@@ -187,6 +233,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.34.1