From e6abaad08cec56ee7a8773befae61f353624d996 Mon Sep 17 00:00:00 2001 From: Zheng Qian Date: Sun, 13 Sep 2026 08:45:46 +0800 Subject: [PATCH] DT: add device tree for Tanix X4 2G/4G with 100M eth Signed-off-by: Zheng Qian --- arch/arm64/boot/dts/amlogic/Makefile | 2 + .../dts/amlogic/sc2_s905x4_tanix_x4_2g.dts | 45 +++++++++++++++++++ .../dts/amlogic/sc2_s905x4_tanix_x4_4g.dts | 15 +++++++ 3 files changed, 62 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/sc2_s905x4_tanix_x4_2g.dts create mode 100644 arch/arm64/boot/dts/amlogic/sc2_s905x4_tanix_x4_4g.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 0add4671a..fab7c670b 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -99,6 +99,8 @@ dtb-y += sc2_s905x4_sei_smb_280_id6.dtb dtb-y += sc2_s905x4_sei_smb_280_id7.dtb dtb-y += sc2_s905x4_ugoos_am7.dtb dtb-y += sc2_s905x4_ugoos_x4.dtb +dtb-y += sc2_s905x4_tanix_x4_2g.dtb +dtb-y += sc2_s905x4_tanix_x4_4g.dtb dtb-y += sc2_s905x4_x96_x4_2g.dtb dtb-y += sc2_s905x4_x96_x4_2g_1gbit.dtb dtb-y += sc2_s905x4_x96_x4_4g.dtb diff --git a/arch/arm64/boot/dts/amlogic/sc2_s905x4_tanix_x4_2g.dts b/arch/arm64/boot/dts/amlogic/sc2_s905x4_tanix_x4_2g.dts new file mode 100644 index 000000000..1ab4b0031 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/sc2_s905x4_tanix_x4_2g.dts @@ -0,0 +1,45 @@ +#include "sc2_s905x4_2g.dts" + +/ { + model = "Tanix X4 2G"; + amlogic-dt-id = "sc2_s905x4_ah212-2g"; + coreelec-dt-id = "sc2_s905x4_tanix_x4_2g"; + + memory@00000000 { + linux,usable-memory = <0x0 0x000000 0x0 0x80000000>; + }; +}; + +&ir_wakeup_key { + key_num = <1>; + wakeup_key = <0xb24d4040 IR_NORMAL KEY_POWER>; +}; + +/* The Tanix X4 android dump uses 200 MHz for the SD card interface */ +&sd_emmc_b { + max-frequency = <200000000>; +}; + +&periphs_pinctrl { + spdifout: spdifout { + mux { + groups = "spdif_out_d"; + function = "spdif_out"; + }; + }; + + spdifout_a_mute: spdifout_a_mute { + mux { + groups = "GPIOD_10"; + function = "gpio_periphs"; + output-low; + }; + }; +}; + +&amhdmitx { + vend_data { + vendor_name = "Tanix"; + product_desc = "X4"; + }; +}; diff --git a/arch/arm64/boot/dts/amlogic/sc2_s905x4_tanix_x4_4g.dts b/arch/arm64/boot/dts/amlogic/sc2_s905x4_tanix_x4_4g.dts new file mode 100644 index 000000000..7fdb5a3e3 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/sc2_s905x4_tanix_x4_4g.dts @@ -0,0 +1,15 @@ +#include "sc2_s905x4_tanix_x4_2g.dts" + +/ { + model = "Tanix X4 4G"; + amlogic-dt-id = "sc2_s905x4_ah212-4g"; + coreelec-dt-id = "sc2_s905x4_tanix_x4_4g"; + + memory@00000000 { + linux,usable-memory = <0x0 0x000000 0x0 0xf0000000>; + }; +}; + +&drm_vpu { + logo_addr = "0x7f800000"; +};