mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-24 10:16:18 +00:00
188 lines
4.5 KiB
Diff
188 lines
4.5 KiB
Diff
From ebe052f07c62ef9836b8fbdd6a4a56c70d55587e Mon Sep 17 00:00:00 2001
|
|
From: Christian Hewitt <christianshewitt@gmail.com>
|
|
Date: Tue, 24 Jan 2023 16:57:20 +0000
|
|
Subject: [PATCH 104/120] WIP: arm64: dts: meson: add support for MeCool M8S
|
|
Pro Plus
|
|
|
|
This is an S905X device based on the P212 reference design, but
|
|
with an S908CS WiFi/BT module that is not currently supported.
|
|
|
|
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
|
---
|
|
arch/arm64/boot/dts/amlogic/Makefile | 1 +
|
|
.../meson-gxl-s905x-mecool-m8s-pro-plus.dts | 150 ++++++++++++++++++
|
|
2 files changed, 151 insertions(+)
|
|
create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-mecool-m8s-pro-plus.dts
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile
|
|
index 615b1c496a34..43ffbe9e359e 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/Makefile
|
|
+++ b/arch/arm64/boot/dts/amlogic/Makefile
|
|
@@ -54,6 +54,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-hwacom-amazetv.dtb
|
|
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-khadas-vim.dtb
|
|
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc.dtb
|
|
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc-v2.dtb
|
|
+dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-mecool-m8s-pro-plus.dtb
|
|
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-nexbox-a95x.dtb
|
|
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-p212.dtb
|
|
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-tbee.dtb
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-mecool-m8s-pro-plus.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-mecool-m8s-pro-plus.dts
|
|
new file mode 100644
|
|
index 000000000000..84772ce12e00
|
|
--- /dev/null
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-mecool-m8s-pro-plus.dts
|
|
@@ -0,0 +1,150 @@
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
+/*
|
|
+ * Copyright (c) 2016 Endless Computers, Inc.
|
|
+ * Author: Carlo Caione <carlo@endlessm.com>
|
|
+ */
|
|
+
|
|
+/dts-v1/;
|
|
+
|
|
+#include "meson-gxl-s905x-p212.dtsi"
|
|
+#include <dt-bindings/sound/meson-aiu.h>
|
|
+
|
|
+/ {
|
|
+ compatible = "videostrong,mecool-m8s-pro-plus", "amlogic,s905x", "amlogic,meson-gxl";
|
|
+ model = "MeCool M8S Pro Plus";
|
|
+
|
|
+ dio2133: analog-amplifier {
|
|
+ compatible = "simple-audio-amplifier";
|
|
+ sound-name-prefix = "AU2";
|
|
+ VCC-supply = <&hdmi_5v>;
|
|
+ enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
|
|
+ };
|
|
+
|
|
+ cvbs-connector {
|
|
+ compatible = "composite-video-connector";
|
|
+
|
|
+ port {
|
|
+ cvbs_connector_in: endpoint {
|
|
+ remote-endpoint = <&cvbs_vdac_out>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdmi-connector {
|
|
+ compatible = "hdmi-connector";
|
|
+ type = "a";
|
|
+
|
|
+ port {
|
|
+ hdmi_connector_in: endpoint {
|
|
+ remote-endpoint = <&hdmi_tx_tmds_out>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sound {
|
|
+ compatible = "amlogic,gx-sound-card";
|
|
+ model = "MECOOL-M8S";
|
|
+ audio-aux-devs = <&dio2133>;
|
|
+ audio-widgets = "Line", "Lineout";
|
|
+ audio-routing = "AU2 INL", "ACODEC LOLN",
|
|
+ "AU2 INR", "ACODEC LORN",
|
|
+ "Lineout", "AU2 OUTL",
|
|
+ "Lineout", "AU2 OUTR";
|
|
+ assigned-clocks = <&clkc CLKID_MPLL0>,
|
|
+ <&clkc CLKID_MPLL1>,
|
|
+ <&clkc CLKID_MPLL2>;
|
|
+ assigned-clock-parents = <0>, <0>, <0>;
|
|
+ assigned-clock-rates = <294912000>,
|
|
+ <270950400>,
|
|
+ <393216000>;
|
|
+ status = "okay";
|
|
+
|
|
+ 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>;
|
|
+ };
|
|
+
|
|
+ codec-1 {
|
|
+ sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dai-link-2 {
|
|
+ sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
|
|
+
|
|
+ codec-0 {
|
|
+ sound-dai = <&hdmi_tx>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dai-link-3 {
|
|
+ sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
|
|
+
|
|
+ codec-0 {
|
|
+ sound-dai = <&acodec>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&acodec {
|
|
+ AVDD-supply = <&vddio_ao18>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&aiu {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&cec_AO {
|
|
+ status = "okay";
|
|
+ pinctrl-0 = <&ao_cec_pins>;
|
|
+ pinctrl-names = "default";
|
|
+ hdmi-phandle = <&hdmi_tx>;
|
|
+};
|
|
+
|
|
+&cvbs_vdac_port {
|
|
+ cvbs_vdac_out: endpoint {
|
|
+ remote-endpoint = <&cvbs_connector_in>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&hdmi_tx {
|
|
+ status = "okay";
|
|
+ pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
|
|
+ pinctrl-names = "default";
|
|
+ hdmi-supply = <&hdmi_5v>;
|
|
+};
|
|
+
|
|
+&hdmi_tx_tmds_port {
|
|
+ hdmi_tx_tmds_out: endpoint {
|
|
+ remote-endpoint = <&hdmi_connector_in>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&ir {
|
|
+ linux,rc-map-name = "rc-mecool-m8s-pro";
|
|
+};
|
|
+
|
|
+/* S9082C WiFi */
|
|
+&sd_emmc_a {
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+/* S9082C Bluetooth */
|
|
+&uart_A {
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+/* This UART is brought out to the DB9 connector */
|
|
+&uart_AO {
|
|
+ status = "okay";
|
|
+};
|
|
--
|
|
2.34.1
|
|
|