From nobody Wed Dec 17 05:53:40 2025 Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09E1C208969 for ; Wed, 19 Mar 2025 19:02:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742410978; cv=none; b=Fz/wVHpVKXc8Gm9FARgUj2wcX5B6yzLLoQmY0cY/OjbW0kkZnrqGyE1HDV86htktMOJ4rc/ya/CGlQv09Q7sL/JWH8Dw5Wcl2UqlgDoZf1Nx7iXq6Va7TAQU2Q14aYrhM5X/u8zrZrN9/DzhvOXtYTTsjzvALMkdeQSeDyMoTR8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742410978; c=relaxed/simple; bh=oyIUksq31O9w2geeE+TDaMoZeKCsaKQi+XSJrFFkOig=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=n5TR7XaRu6ySywisGCc+oKEqu5d9xw6E7vMzt17B5RL9w5idCfSLBobVkCem5e/v2yK4p67SkkodmS/JdSKVzGXbjFpPEOznAATueca8ar2L5b1rtZCedFSnYw2s+KoxjaotdRh5HI8YdGwq1v5x6YBLFbjW82ro26+bptreykI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=AP8bLxhB; arc=none smtp.client-ip=91.218.175.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="AP8bLxhB" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1742410974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gOquvHq7vUiDA9+btgFRSbLwtUiOZgg8rxZoyn8ZjIs=; b=AP8bLxhBgvV1qmOPOpfrUpzeHR7mfTT5HGIeikyXN1xs0k3+evd8tTTEkPIm6KXZeezU4c Ybx9U4iFUH1I5w8G5Ii2RimRY5KeP2T0kB0IOvAZ/ORCF8E9RWNDBxi+xAqGEy/Bxfa6Lp PpX+glmiI9P3ZkEXxrhazcw8mQqDZZKHJfHdxN0QifdmkpCeczId1zFzOTjeknu2ND0YQh Ra+arKkSKUo/YkqjK+nq2YJRZ4J0nSNaGxXOG+cMxksiSoDujlPX8LHdyKEvkJYtNQSnCo VSRJ1uRIXxkrQY5wl7d7CYD2lJr/waGSJQ4iU2biOP9AtnixNgJrWy151JlYEg== From: Ferass El Hafidi To: Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, funderscore@postmarketos.org, ~postmarketos/upstreaming@lists.sr.ht, Artur Weber , Karl Chan , Christian Hewitt , Krzysztof Kozlowski Subject: [PATCH v5 1/2] dt-bindings: arm: amlogic: add S805Y and Mi TV Stick Date: Wed, 19 Mar 2025 19:01:49 +0000 Message-ID: <20250319190150.31529-3-funderscore@postmarketos.org> In-Reply-To: <20250319190150.31529-2-funderscore@postmarketos.org> References: <20250319190150.31529-2-funderscore@postmarketos.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Add support for the Amlogic S805Y SoC and the Xiaomi Mi TV Stick (aka. xiaomi-aquaman). The S805Y is very similar to the S805X, with just a few minor differences. Signed-off-by: Ferass El Hafidi Acked-by: Krzysztof Kozlowski Reviewed-by: Martin Blumenstingl --- Documentation/devicetree/bindings/arm/amlogic.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documenta= tion/devicetree/bindings/arm/amlogic.yaml index 0647851ae..3403362e0 100644 --- a/Documentation/devicetree/bindings/arm/amlogic.yaml +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml @@ -73,6 +73,13 @@ properties: - const: amlogic,s805x - const: amlogic,meson-gxl =20 + - description: Boards with the Amlogic Meson GXL S805Y SoC + items: + - enum: + - xiaomi,aquaman + - const: amlogic,s805y + - const: amlogic,meson-gxl + - description: Boards with the Amlogic Meson GXL S905W SoC items: - enum: --=20 2.47.1 From nobody Wed Dec 17 05:53:40 2025 Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C7FD2135DD for ; Wed, 19 Mar 2025 19:03:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742410982; cv=none; b=q+YxUWEl5JwCo27GeIgO5jFOXkhpwgOSPFwcWKlENbSga9SNVLNWwD3Cc+iyrgSYJTa7c/qjKp31SioJjtNWRvnHwB8abyBrTO0uxybIvngxI3brYhyjQX5gxqwtN5X3ewQupzxl+OlnACqO+2dzW4dNFdzS0E+sxLvEYKoRXag= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742410982; c=relaxed/simple; bh=hMVdglboItmXuqbjIDFoIn2L6+acY0k17jYeYw67hoc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uxweC7Q6HEoLSpOm9L0tNF/OeoIRaYua6Q9kYKYW38krOEBpYTmjag2ahOqxHcB2fI0jdgAs9BLVo+/ZwNpnXn/mU6dc0yecPvw75KyjY/I2eJTgVjl6p39S2rvZk3kIj0sefN35xjtjXis64eoqx22rRDOtW5k9m13SXmiMln8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=rV0ywXwm; arc=none smtp.client-ip=91.218.175.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="rV0ywXwm" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1742410978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2oOVugYt5MlzxB9qq9y7lSM8ahAXHJ9wBC4ve2rAQYI=; b=rV0ywXwmwsQAZ9ciQ4t9WJ+8S1iXfVTGhLz2KRhOeSC5PosBuHqqypHqROE31qe4/Pu6aO opiJbAelAiEJNThWJ6k1w59rFXwa8vXVBNAM7r5JEYgxEaOJ45PNIOBCeWGzopJlqI6Ce0 wCl1r1WJrrpvkR7CsKILrnqT+pBBQ2IndXrtP8ji+miZfps63TR4DUvs2N4/bSN3PEtJCc mkt3VgEJD8H1qoFww3nW6iCNi0rn5RpEtn96zBkIoHpWOPq/n5+260MO0pJZhLDnNL4mkD yISaJeuEdq9tKPSR1eiwdSSknmjIiqPjMM3JMywIktHpNBQG+uoOeYEpf7S8zw== From: Ferass El Hafidi To: Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, funderscore@postmarketos.org, ~postmarketos/upstreaming@lists.sr.ht, Artur Weber , Karl Chan , Christian Hewitt Subject: [PATCH v5 2/2] arm64: dts: amlogic: add support for xiaomi-aquaman/Mi TV Stick Date: Wed, 19 Mar 2025 19:01:50 +0000 Message-ID: <20250319190150.31529-4-funderscore@postmarketos.org> In-Reply-To: <20250319190150.31529-2-funderscore@postmarketos.org> References: <20250319190150.31529-2-funderscore@postmarketos.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Xiaomi Mi TV Stick is a small Amlogic-based Android TV stick released in 2020. It is known as `xiaomi-aquaman` internally. Specifications: * Amlogic S805Y SoC * Android TV 9, upgradable to Android TV 10 * 8 GB eMMC * 1 GB of RAM * Wi-Fi + Bluetooth The devicetree is based on p241's DT, with some changes to better match the Mi TV Stick: * there is no Ethernet port, no IR, no CVBS connector on the stick * a white LED is present * adjust memory to have 1 GB of RAM available Signed-off-by: Ferass El Hafidi --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../meson-gxl-s805y-xiaomi-aquaman.dts | 292 ++++++++++++++++++ .../boot/dts/amlogic/meson-gxl-s805y.dtsi | 10 + 3 files changed, 303 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s805y-xiaomi-aqua= man.dts create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s805y.dtsi diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/aml= ogic/Makefile index 2fbda8419..0921707f1 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -49,6 +49,7 @@ dtb-$(CONFIG_ARCH_MESON) +=3D meson-gxbb-wetek-hub.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-gxbb-wetek-play2.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-gxl-s805x-libretech-ac.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-gxl-s805x-p241.dtb +dtb-$(CONFIG_ARCH_MESON) +=3D meson-gxl-s805y-xiaomi-aquaman.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-gxl-s905d-libretech-pc.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-gxl-s905d-mecool-kii-pro.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-gxl-s905d-p230.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s805y-xiaomi-aquaman.dts= b/arch/arm64/boot/dts/amlogic/meson-gxl-s805y-xiaomi-aquaman.dts new file mode 100644 index 000000000..42c692017 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s805y-xiaomi-aquaman.dts @@ -0,0 +1,292 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2025 Ferass El Hafidi + * Heavily based on meson-gxl-s805x-p241.dtb: + * - Copyright (c) 2018 BayLibre, SAS. + * Author: Neil Armstrong + * Author: Jerome Brunet + */ + +/dts-v1/; + +#include +#include +#include + +#include "meson-gxl-s805y.dtsi" + +/ { + compatible =3D "xiaomi,aquaman", "amlogic,s805y", "amlogic,meson-gxl"; + model =3D "Xiaomi Mi TV Stick (aquaman)"; + + aliases { + serial0 =3D &uart_AO; + serial1 =3D &uart_A; + }; + + au2: analog-amplifier { + compatible =3D "simple-audio-amplifier"; + sound-name-prefix =3D "AU2"; + VCC-supply =3D <&vcc_5v>; + enable-gpios =3D <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + emmc_pwrseq: emmc-pwrseq { + compatible =3D "mmc-pwrseq-emmc"; + reset-gpios =3D <&gpio BOOT_9 GPIO_ACTIVE_LOW>; + }; + + hdmi-connector { + compatible =3D "hdmi-connector"; + type =3D "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint =3D <&hdmi_tx_tmds_out>; + }; + }; + }; + + leds { + compatible =3D "gpio-leds"; + + led-white { + color =3D ; + function =3D LED_FUNCTION_POWER; + gpios =3D <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>; + default-state =3D "on"; + panic-indicator; + }; + }; + + memory@0 { + device_type =3D "memory"; + reg =3D <0x0 0x0 0x0 0x40000000>; + }; + + vddio_boot: regulator-vddio-boot { + compatible =3D "regulator-fixed"; + regulator-name =3D "VDDIO_BOOT"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + }; + + vddao_3v3: regulator-vddao-3v3 { + compatible =3D "regulator-fixed"; + regulator-name =3D "VDDAO_3V3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + }; + + vddio_ao18: regulator-vddio-ao18 { + compatible =3D "regulator-fixed"; + regulator-name =3D "VDDIO_AO18"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + }; + + vcc_3v3: regulator-vcc-3v3 { + compatible =3D "regulator-fixed"; + regulator-name =3D "VCC_3V3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + }; + + vcc_5v: regulator-vcc-5v { + compatible =3D "regulator-fixed"; + regulator-name =3D "VCC_5V"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + }; + + emmc_pwrseq: emmc-pwrseq { + compatible =3D "mmc-pwrseq-emmc"; + reset-gpios =3D <&gpio BOOT_9 GPIO_ACTIVE_LOW>; + }; + + wifi32k: wifi32k { + compatible =3D "pwm-clock"; + #clock-cells =3D <0>; + clock-frequency =3D <32768>; + pwms =3D <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + }; + + sdio_pwrseq: sdio-pwrseq { + compatible =3D "mmc-pwrseq-simple"; + reset-gpios =3D <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; + clocks =3D <&wifi32k>; + clock-names =3D "ext_clock"; + }; + + sound { + compatible =3D "amlogic,gx-sound-card"; + model =3D "XIAOMI-AQUAMAN"; + audio-aux-devs =3D <&au2>; + audio-widgets =3D "Line", "Lineout"; + audio-routing =3D "AU2 INL", "ACODEC LOLN", + "AU2 INR", "ACODEC LORN", + "Lineout", "AU2 OUTL", + "Lineout", "AU2 OUTR"; + clocks =3D <&clkc CLKID_MPLL0>, + <&clkc CLKID_MPLL1>, + <&clkc CLKID_MPLL2>; + + assigned-clocks =3D <&clkc CLKID_MPLL0>, + <&clkc CLKID_MPLL1>, + <&clkc CLKID_MPLL2>; + assigned-clock-parents =3D <0>, <0>, <0>; + assigned-clock-rates =3D <294912000>, + <270950400>, + <393216000>; + + dai-link-0 { + sound-dai =3D <&aiu AIU_CPU CPU_I2S_FIFO>; + }; + + dai-link-1 { + sound-dai =3D <&aiu AIU_CPU CPU_I2S_ENCODER>; + dai-format =3D "i2s"; + mclk-fs =3D <256>; + + codec-0 { + sound-dai =3D <&aiu AIU_HDMI CTRL_I2S>; + }; + + codec-1 { + sound-dai =3D <&aiu AIU_ACODEC CTRL_I2S>; + }; + }; + + dai-link-2 { + sound-dai =3D <&aiu AIU_HDMI CTRL_OUT>; + + codec-0 { + sound-dai =3D <&hdmi_tx>; + }; + }; + + dai-link-3 { + sound-dai =3D <&aiu AIU_ACODEC CTRL_OUT>; + + codec-0 { + sound-dai =3D <&acodec>; + }; + }; + }; +}; + +&acodec { + AVDD-supply =3D <&vddio_ao18>; + status =3D "okay"; +}; + +&aiu { + status =3D "okay"; +}; + +&cec_AO { + status =3D "okay"; + pinctrl-0 =3D <&ao_cec_pins>; + pinctrl-names =3D "default"; + hdmi-phandle =3D <&hdmi_tx>; +}; + +&hdmi_tx { + status =3D "okay"; + pinctrl-0 =3D <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; + pinctrl-names =3D "default"; + hdmi-supply =3D <&vcc_5v>; +}; + +&hdmi_tx_tmds_port { + hdmi_tx_tmds_out: endpoint { + remote-endpoint =3D <&hdmi_connector_in>; + }; +}; + +&saradc { + status =3D "okay"; + vref-supply =3D <&vddio_ao18>; +}; + +/* Wireless SDIO Module (Amlogic W155S1 / Realtek RTL8821CS) */ +&sd_emmc_b { + status =3D "okay"; + pinctrl-0 =3D <&sdio_pins>; + pinctrl-1 =3D <&sdio_clk_gate_pins>; + pinctrl-names =3D "default", "clk-gate"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + bus-width =3D <4>; + cap-sd-highspeed; + max-frequency =3D <50000000>; + + non-removable; + disable-wp; + + /* WiFi firmware requires power to be kept while in suspend */ + keep-power-in-suspend; + + mmc-pwrseq =3D <&sdio_pwrseq>; + + vmmc-supply =3D <&vddao_3v3>; + vqmmc-supply =3D <&vddio_boot>; + + sdio: wifi@1 { + reg =3D <1>; + } +}; + +/* eMMC */ +&sd_emmc_c { + status =3D "okay"; + pinctrl-0 =3D <&emmc_pins>, <&emmc_ds_pins>; + pinctrl-1 =3D <&emmc_clk_gate_pins>; + pinctrl-names =3D "default", "clk-gate"; + + bus-width =3D <8>; + cap-mmc-highspeed; + max-frequency =3D <200000000>; + non-removable; + disable-wp; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + + mmc-pwrseq =3D <&emmc_pwrseq>; + vmmc-supply =3D <&vcc_3v3>; + vqmmc-supply =3D <&vddio_boot>; +}; + +&pwm_ef { + status =3D "okay"; + pinctrl-0 =3D <&pwm_e_pins>; + pinctrl-names =3D "default"; +}; + +/* + * This is connected to the Bluetooth module + * Note: There's no driver for the Bluetooth module of some variants yet. + */ +&uart_A { + status =3D "okay"; + pinctrl-0 =3D <&uart_a_pins>, <&uart_a_cts_rts_pins>; + pinctrl-names =3D "default"; + uart-has-rtscts; +}; + +&uart_AO { + status =3D "okay"; + pinctrl-0 =3D <&uart_ao_a_pins>; + pinctrl-names =3D "default"; +}; + +&usb { + status =3D "okay"; + dr_mode =3D "otg"; + vbus-supply =3D <&vcc_5v>; +}; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s805y.dtsi b/arch/arm64/= boot/dts/amlogic/meson-gxl-s805y.dtsi new file mode 100644 index 000000000..49b29b71f --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s805y.dtsi @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2025 Ferass El Hafidi + */ + +#include "meson-gxl-s805x.dtsi" + +/ { + compatible =3D "amlogic,s805y", "amlogic,meson-gxl"; +}; --=20 2.47.1