From: "Alexander Letuchiy" <asalde.le1@gmail.com>
To: "Roman Vivchar" <rva333@protonmail.com>
Cc: "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"Sean Wang" <sean.wang@mediatek.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Jiri Slaby" <jirislaby@kernel.org>,
"Daniel Lezcano" <daniel.lezcano@kernel.org>,
"Thomas Gleixner" <tglx@kernel.org>,
"Mattijs Korpershoek" <mkorpershoek@kernel.org>,
"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
"Kees Cook" <kees@kernel.org>, "Tony Luck" <tony.luck@intel.com>,
"Guilherme G. Piccoli" <gpiccoli@igalia.com>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-mediatek@lists.infradead.org>,
<linux-serial@vger.kernel.org>, <linux-input@vger.kernel.org>,
<phone-devel@vger.kernel.org>
Subject: Re: [PATCH v3 7/7] arm64: dts: mediatek: Add Xiaomi Poco X4 GT
Date: Mon, 23 Nov 2026 15:13:32 +0300 [thread overview]
Message-ID: <DN2KY5MGERWB.3DN1SFL7JZDLO@gmail.com> (raw)
In-Reply-To: <cYX8v2leizSJfWjS_2dbkU2i6ApgjEKmgar6xjZopFQipSXW6YZNgjexWomHucqKghaTzW7oO5GN_jeNBM1MBy0u7aEDR2ygQ1s7x_L2jpA=@protonmail.com>
On Mon Nov 23, 2026 at 3:00 PM MSK, Roman Vivchar wrote:
> On Monday, November 23rd, 2026 at 1:20 PM, Alexander Letuchiy <asalde.le1@gmail.com> wrote:
>
>> Add a device tree for the Xiaomi xaga board, which is sold as Xiaomi
>> Poco X4 GT, Redmi Note 11T Pro/Pro+ and Redmi K50i. It enables a serial
>> console on UART0 and the volume down key on the SoC keypad. The power
>> and volume up keys are connected to the MT6363 PMIC, which isn't
>> supported yet.
>>
>> The DT only describes the memory that Linux itself uses, which is the
>> ramoops region. The bootloader updates the /memory node and adds the
>> firmware carveouts to /reserved-memory, so their addresses are not
>> hardcoded here. This DT must not be booted with a bootloader that does
>> not do this, as Linux would then use memory owned by the firmware.
>>
>> The ramoops zone sizes place the console zone at the offset where the
>> bootloader expects to find it.
>>
>> Signed-off-by: Alexander Letuchiy <asalde.le1@gmail.com>
>> ---
>> arch/arm64/boot/dts/mediatek/Makefile | 1 +
>> .../arm64/boot/dts/mediatek/mt6895-xiaomi-xaga.dts | 87 ++++++++++++++++++++++
>> 2 files changed, 88 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile
>> index a86fb313b1a9..d73489149ab5 100644
>> --- a/arch/arm64/boot/dts/mediatek/Makefile
>> +++ b/arch/arm64/boot/dts/mediatek/Makefile
>> @@ -6,6 +6,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt6795-evb.dtb
>> dtb-$(CONFIG_ARCH_MEDIATEK) += mt6795-sony-xperia-m5.dtb
>> dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-evb.dtb
>> dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-x20-dev.dtb
>> +dtb-$(CONFIG_ARCH_MEDIATEK) += mt6895-xiaomi-xaga.dtb
>> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-rfb1.dtb
>> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-bananapi-bpi-r64.dtb
>> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7981b-cudy-wr3000-v1.dtb
>> diff --git a/arch/arm64/boot/dts/mediatek/mt6895-xiaomi-xaga.dts b/arch/arm64/boot/dts/mediatek/mt6895-xiaomi-xaga.dts
>> new file mode 100644
>> index 000000000000..7bfe0d438803
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/mediatek/mt6895-xiaomi-xaga.dts
>> @@ -0,0 +1,87 @@
>> +// SPDX-License-Identifier: (GPL-2.0 OR MIT)
>> +/*
>> + * Copyright (C) 2026 Alexander Letuchiy <asalde.le1@gmail.com>
>> + */
>> +
>> +/dts-v1/;
>> +#include <dt-bindings/input/input.h>
>> +
>> +#include "mt6895.dtsi"
>> +
>> +/ {
>> + model = "Xiaomi Poco X4 GT";
>> + compatible = "xiaomi,xaga", "mediatek,mt6895";
>> + chassis-type = "handset";
>> +
>> + aliases {
>> + serial0 = &uart0;
>> + };
>> +
>> + chosen {
>> + stdout-path = "serial0:921600n8";
>> + };
>> +
>> + memory@40000000 {
>> + device_type = "memory";
>> + /* The size will be filled in by the bootloader */
>> + reg = <0x0 0x40000000 0 0>;
>> + };
>> +
>> + reserved-memory {
>> + ranges;
>> + #address-cells = <2>;
>> + #size-cells = <2>;
>> +
>> + /* The firmware carveouts are added by the bootloader. */
>> +
>> + ramoops@48090000 {
>> + compatible = "ramoops";
>> + reg = <0 0x48090000 0 0xe0000>;
>> + no-map;
>> + console-size = <0x40000>;
>> + ftrace-size = <0x10000>;
>> + pmsg-size = <0x10000>;
>> + record-size = <0x10000>;
>> + };
>> + };
>> +};
>> +
>> +&keypad {
>> + debounce-delay-ms = <32>;
>> + keypad,num-columns = <1>;
>> + keypad,num-rows = <1>;
>> + linux,keymap = <MATRIX_KEY(0, 0, KEY_VOLUMEDOWN)>;
>> + pinctrl-0 = <&keypad_pins>;
>> + pinctrl-names = "default";
>> +
>> + status = "okay";
>> +};
>
> Nit: vendor,property should go after pinctrl.
>
> debounce-delay-ms
> pinctrl-0
> pinctrl-names
> keypad,*
> linux,keymap
>
> status
>
> P.S. scripts/dtc/dt-check-style --mode stricter can be handy.
>
> Best regards,
> Roman
Thanks, I followed the ordering Angelo suggested in v2, so I missed
this.
Best regards,
Alexander
next prev parent reply other threads:[~2026-11-23 12:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 11:18 [PATCH v3 0/7] arm64: mediatek: Add initial MT6895 and Xiaomi Poco X4 GT support Alexander Letuchiy
2026-11-23 11:18 ` [PATCH v3 1/7] dt-bindings: arm: mediatek: Add MT6895 and Xiaomi Poco X4 GT Alexander Letuchiy
2026-11-23 11:18 ` [PATCH v3 2/7] dt-bindings: serial: mediatek,uart: Add compatible for MT6895 Alexander Letuchiy
2026-11-23 15:32 ` AngeloGioacchino Del Regno
2026-11-23 11:18 ` [PATCH v3 3/7] dt-bindings: timer: mediatek,timer: " Alexander Letuchiy
2026-11-23 11:18 ` [PATCH v3 4/7] dt-bindings: input: mediatek,mt6779-keypad: " Alexander Letuchiy
2026-11-24 6:26 ` Dmitry Torokhov
2026-11-23 11:18 ` [PATCH v3 5/7] arm64: dts: mediatek: Add MT6895 pinmux macro header file Alexander Letuchiy
2026-11-23 11:18 ` [PATCH v3 6/7] arm64: dts: mediatek: Add MT6895 SoC Alexander Letuchiy
2026-11-23 11:25 ` sashiko-bot
2026-11-23 12:23 ` Alexander Letuchiy
2026-11-23 11:18 ` [PATCH v3 7/7] arm64: dts: mediatek: Add Xiaomi Poco X4 GT Alexander Letuchiy
2026-11-23 12:00 ` Roman Vivchar
2026-11-23 12:13 ` Alexander Letuchiy [this message]
2026-11-23 11:25 ` [PATCH v3 0/7] arm64: mediatek: Add initial MT6895 and Xiaomi Poco X4 GT support sashiko-bot
2026-11-23 11:41 ` Roman Vivchar
2026-11-23 11:59 ` Alexander Letuchiy
2026-11-23 12:04 ` Roman Vivchar
2026-11-23 12:17 ` Alexander Letuchiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DN2KY5MGERWB.3DN1SFL7JZDLO@gmail.com \
--to=asalde.le1@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=gpiccoli@igalia.com \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=kees@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-serial@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=mkorpershoek@kernel.org \
--cc=phone-devel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=rva333@protonmail.com \
--cc=sean.wang@mediatek.com \
--cc=tglx@kernel.org \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.