linux-postmarketos-amlogic: add ZTE B860H V1/V2 DTS

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8552>
This commit is contained in:
Stanley 2026-05-13 23:06:57 +07:00 committed by The Friendly Meow (merge) Bot
parent b9ff9eb459
commit bac841dcae
No known key found for this signature in database
2 changed files with 175 additions and 1 deletions

View file

@ -0,0 +1,172 @@
From: Stanley Ang <me@stanley.id>
Subject: arm64: dts: amlogic: add support for ZTE B860H V1/V2 (S905X)
The ZTE B860H V1/V2 is an S905X-based IPTV set-top box. Based on the
P212 DTS with the following differences:
- No Bluetooth
- No external audio amplifier (dio2133)
- SDIO WiFi reset GPIO is GPIODV_27 instead of GPIOX_6
- SDIO bus runs at 100 MHz instead of 50 MHz
- WiFi is Realtek RTL8189FS (SDIO ID 0x024c:0xF179)
---
arch/arm64/boot/dts/amlogic/Makefile | 1 +
arch/arm64/boot/dts/amlogic/meson-gxl-s905x-zte-b860h.dts | 140 ++++++++++++++++++++++++++++
2 files changed, 141 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile
index abc123..def456 100644
--- a/arch/arm64/boot/dts/amlogic/Makefile
+++ b/arch/arm64/boot/dts/amlogic/Makefile
@@ -65,5 +65,6 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-x96-mini.dtb
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-zte-b860h.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc-v2.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-nexbox-a95x.dtb
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-zte-b860h.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-zte-b860h.dts
new file mode 100644
--- /dev/null
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-zte-b860h.dts
@@ -0,0 +1,140 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2025 Stanley Ang <me@stanley.id>
+ * Heavily based on meson-gxl-s905x-p212.dts:
+ * - 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 = "zte,b860h", "amlogic,s905x", "amlogic,meson-gxl";
+ model = "ZTE B860H";
+
+ 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 = "ZTE-B860H";
+ clocks = <&clkc CLKID_MPLL0>,
+ <&clkc CLKID_MPLL1>,
+ <&clkc CLKID_MPLL2>;
+
+ assigned-clocks = <&clkc CLKID_MPLL0>,
+ <&clkc CLKID_MPLL1>,
+ <&clkc CLKID_MPLL2>;
+ assigned-clock-parents = <0>, <0>, <0>;
+ assigned-clock-rates = <294912000>,
+ <270950400>,
+ <393216000>;
+ 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>;
+ };
+};
+
+&uart_AO {
+ status = "okay";
+};
+
+&uart_A {
+ /delete-node/ bluetooth;
+};
+
+&sdio_pwrseq {
+ reset-gpios = <&gpio GPIODV_27 GPIO_ACTIVE_LOW>;
+ /delete-property/ clocks;
+ /delete-property/ clock-names;
+};
+
+&sd_emmc_a {
+ max-frequency = <100000000>;
+};

View file

@ -4,7 +4,7 @@
maintainer="Ferass El Hafidi <funderscore@postmarketos.org>"
pkgname=linux-postmarketos-amlogic
pkgver=6.18.28
pkgrel=0
pkgrel=1
pkgdesc="Mainline kernel for Amlogic devices"
arch="aarch64"
_carch="arm64"
@ -57,6 +57,7 @@ source="
0019-sdio-pullups.patch
0020-sdio-improve-wifi-speed.patch
0021-WORKAROUND-meson-plane-disable-afbc-32x8.patch
0022-arm64-dts-amlogic-add-zte-b860h-v1v2.patch
"
builddir="$srcdir/linux-$pkgver"
@ -108,4 +109,5 @@ d472a143ede616698627fe3992b8537fab17fecc304a6aa2ebfa545713c88c8ef390fe25a0fdee7c
9dc9a728bed858b5587a603fd0d31181d91755a3d2685ebe514195705c30474df43efc7bbe53b84615713192df7cc7593ee7d5c38b9c3f8d2d13c609b320a04c 0019-sdio-pullups.patch
f6fb37ac0aa876f8d95ed598be20263417d8522a3c1f48a4ce148f95e6c6774664048064f4a96ff7f90ba3b4f71695ba8c51df2da3310bb820f627991d288851 0020-sdio-improve-wifi-speed.patch
3d38202c1b5b56f25c16664924b72e6041e7911e71985a028b91c7151758659a2e662009c06342a0fddd8d829df03d6feb8ee929c550fde74a16f955cb01ae30 0021-WORKAROUND-meson-plane-disable-afbc-32x8.patch
ac98b2ae602939bca4cf4b108d09e7223d4441786923ffe721c2422e21030b4d933dee4358138afc429b09d40f8c004dfe8c04fc7a08011d2c11d84476261d33 0022-arm64-dts-amlogic-add-zte-b860h-v1v2.patch
"