Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: qcom: sm8550: Add Xiaomi 13 Ultra
@ 2026-12-04 10:27 Zhongyuan Zhang via B4 Relay
  2026-12-04 10:27 ` [PATCH 1/2] dt-bindings: arm: qcom: " Zhongyuan Zhang via B4 Relay
  2026-12-04 10:28 ` [PATCH 2/2] arm64: dts: " Zhongyuan Zhang via B4 Relay
  0 siblings, 2 replies; 4+ messages in thread
From: Zhongyuan Zhang via B4 Relay @ 2026-12-04 10:27 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Zhongyuan Zhang

This series adds a device tree for the Xiaomi 13 Ultra (codename
ishtar), a phone based on the Snapdragon 8 Gen 2 (SM8550).

It describes the hardware that works with drivers already upstream:
UFS, USB-C through pmic_glink, the keys, the ADSP, the GPU, Wi-Fi and
Bluetooth (WCN7850), and the bootloader framebuffer. The display panel,
touchscreen and audio need drivers or bindings that are not upstream
yet and will follow separately.

Wi-Fi also needs a one-line ath12k change: the WCN7850 hardware rfkill
input reads as "radio off" on this phone, as on the Surface machines
already handled in ath12k_core_broken_rfkill_table. I will send it to
linux-wireless after this series, with a link to it.

Testing: next-20261203 with only these two patches, default kernel
command line, booted from RAM with the stock bootloader (fastboot boot
of an Android boot image that carries a small chainloader, which starts
the kernel with this DTB plus the memory node and command line a
bootloader would add). The tested functions are listed in patch 2.

Notes:
- The USB link re-enumerates once, about 11 s after boot, when the
  ADSP's UCSI service comes up; it works normally afterwards.
- The bootloader does not provision a Bluetooth address, so user space
  has to set one (e.g. btmgmt public-addr).
- The framebuffer console shows a tear line while it scrolls; the
  bootloader keeps refreshing the command-mode panel.

Tool use (Documentation/process/generated-content.rst): I prepared these
patches with an AI coding assistant, Claude (claude-opus-5-5), credited
in the Assisted-by: tags. It wrote the device tree from the device tree
of the phone's own firmware and the existing SM8550 board files, ran
the checks (dtbs_check W=1, dt_binding_check, checkpatch,
dt-check-style) and ran the tests on the phone. I reviewed the patches
and take responsibility for them.

---
Zhongyuan Zhang (2):
      dt-bindings: arm: qcom: Add Xiaomi 13 Ultra
      arm64: dts: qcom: Add Xiaomi 13 Ultra

 Documentation/devicetree/bindings/arm/qcom.yaml   |   1 +
 arch/arm64/boot/dts/qcom/Makefile                 |   1 +
 arch/arm64/boot/dts/qcom/sm8550-xiaomi-ishtar.dts | 816 ++++++++++++++++++++++
 3 files changed, 818 insertions(+)
---
base-commit: 0b5bb03d26a268f2606e3f574b277a1105136328
change-id: 20261204-upstream-ishtar-dts-62881c5928c0

Best regards,
--  
Zhongyuan Zhang <zhongyuan026@gmail.com>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] dt-bindings: arm: qcom: Add Xiaomi 13 Ultra
  2026-12-04 10:27 [PATCH 0/2] arm64: dts: qcom: sm8550: Add Xiaomi 13 Ultra Zhongyuan Zhang via B4 Relay
@ 2026-12-04 10:27 ` Zhongyuan Zhang via B4 Relay
  2026-12-04 10:28 ` [PATCH 2/2] arm64: dts: " Zhongyuan Zhang via B4 Relay
  1 sibling, 0 replies; 4+ messages in thread
From: Zhongyuan Zhang via B4 Relay @ 2026-12-04 10:27 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Zhongyuan Zhang

From: Zhongyuan Zhang <zhongyuan026@gmail.com>

Document the compatible for the Xiaomi 13 Ultra (codename ishtar), a
phone based on the Snapdragon 8 Gen 2 (SM8550).

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Zhongyuan Zhang <zhongyuan026@gmail.com>
---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml
index badf99e92d32..28ca989c71aa 100644
--- a/Documentation/devicetree/bindings/arm/qcom.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom.yaml
@@ -1225,6 +1225,7 @@ properties:
               - samsung,gts9wifi
               - samsung,q5q
               - sony,pdx234
+              - xiaomi,ishtar
           - const: qcom,sm8550
 
       - items:

-- 
2.56.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] arm64: dts: qcom: Add Xiaomi 13 Ultra
  2026-12-04 10:27 [PATCH 0/2] arm64: dts: qcom: sm8550: Add Xiaomi 13 Ultra Zhongyuan Zhang via B4 Relay
  2026-12-04 10:27 ` [PATCH 1/2] dt-bindings: arm: qcom: " Zhongyuan Zhang via B4 Relay
@ 2026-12-04 10:28 ` Zhongyuan Zhang via B4 Relay
  2026-12-04 10:47   ` sashiko-bot
  1 sibling, 1 reply; 4+ messages in thread
From: Zhongyuan Zhang via B4 Relay @ 2026-12-04 10:28 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Zhongyuan Zhang

From: Zhongyuan Zhang <zhongyuan026@gmail.com>

Add a device tree for the Xiaomi 13 Ultra (codename ishtar), a phone
based on the Snapdragon 8 Gen 2 (SM8550).

Described hardware: UFS storage, USB-C through pmic_glink (dual role,
FSA4480 SBU mux), power and volume keys, GPU, ADSP, the WCN7850 with
Wi-Fi on PCIe and Bluetooth on UART, and the bootloader framebuffer.
The board values (regulators, GPIOs, reserved memory) come from the
device tree of the phone's own firmware.

The display clock controller is disabled so that the bootloader keeps
driving the framebuffer; with it enabled, the display goes dark as
soon as its unused clocks are turned off. Only one PM8010 is
populated, and the second one is disabled together with its thermal
zone.

Tested on hardware: booted from RAM on top of next-20261203, with the
default kernel command line. Verified: UFS (all LUNs and partitions
enumerate), the framebuffer console, power and volume keys, ADSP
(firmware boots; the battery, USB power supply and UCSI port appear
through pmic_glink), USB peripheral mode, GPU (firmware loads, render
node present), Bluetooth (firmware loads; discovery works once a public
address is set) and Wi-Fi (scans and connects, with the ath12k rfkill
change posted separately).

The display panel, touchscreen, audio, cameras, modem and the other
remoteprocs are not described yet.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Zhongyuan Zhang <zhongyuan026@gmail.com>
---
 arch/arm64/boot/dts/qcom/Makefile                 |   1 +
 arch/arm64/boot/dts/qcom/sm8550-xiaomi-ishtar.dts | 816 ++++++++++++++++++++++
 2 files changed, 817 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index 38baa0d88b4d..530d09b52fd4 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -497,6 +497,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= sm8550-qrd.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8550-samsung-gts9wifi.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8550-samsung-q5q.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8550-sony-xperia-yodo-pdx234.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= sm8550-xiaomi-ishtar.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8650-ayaneo-pocket-s2.dtb
 
 sm8650-hdk-display-card-dtbs	:= sm8650-hdk.dtb sm8650-hdk-display-card.dtbo
diff --git a/arch/arm64/boot/dts/qcom/sm8550-xiaomi-ishtar.dts b/arch/arm64/boot/dts/qcom/sm8550-xiaomi-ishtar.dts
new file mode 100644
index 000000000000..29260a2145d7
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sm8550-xiaomi-ishtar.dts
@@ -0,0 +1,816 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2026, Zhongyuan Zhang <zhongyuan026@gmail.com>
+ */
+
+/dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
+#include "sm8550.dtsi"
+#include "pm8010.dtsi"
+#include "pm8550.dtsi"
+#include "pm8550b.dtsi"
+#define PMK8550VE_SID 5
+#include "pm8550ve.dtsi"
+#include "pm8550vs.dtsi"
+#include "pmk8550.dtsi"
+#include "pmr735d_a.dtsi"
+
+/ {
+	model = "Xiaomi 13 Ultra";
+	compatible = "xiaomi,ishtar", "qcom,sm8550";
+	chassis-type = "handset";
+
+	aliases {
+		serial1 = &uart14;
+	};
+
+	chosen {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		framebuffer@b8000000 {
+			compatible = "simple-framebuffer";
+			reg = <0x0 0xb8000000 0x0 0x1194000>;
+			width = <1440>;
+			height = <3200>;
+			stride = <(1440 * 4)>;
+			format = "a8r8g8b8";
+			clocks = <&gcc GCC_DISP_HF_AXI_CLK>;
+		};
+	};
+
+	gpio-keys {
+		compatible = "gpio-keys";
+
+		pinctrl-0 = <&volume_up_n>;
+		pinctrl-names = "default";
+
+		key-volume-up {
+			label = "Volume Up";
+			linux,code = <KEY_VOLUMEUP>;
+			gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>;
+			debounce-interval = <15>;
+			linux,can-disable;
+			wakeup-source;
+		};
+	};
+
+	pmic-glink {
+		compatible = "qcom,sm8550-pmic-glink", "qcom,pmic-glink";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		connector@0 {
+			compatible = "usb-c-connector";
+			reg = <0>;
+			power-role = "dual";
+			data-role = "dual";
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				port@0 {
+					reg = <0>;
+
+					pmic_glink_hs_in: endpoint {
+						remote-endpoint = <&usb_1_dwc3_hs>;
+					};
+				};
+
+				port@1 {
+					reg = <1>;
+
+					pmic_glink_ss_in: endpoint {
+						remote-endpoint = <&usb_dp_qmpphy_out>;
+					};
+				};
+
+				port@2 {
+					reg = <2>;
+
+					pmic_glink_sbu: endpoint {
+						remote-endpoint = <&fsa4480_sbu_mux>;
+					};
+				};
+			};
+		};
+	};
+
+	reserved-memory {
+		xbl_ramdump_mem: xbl-ramdump-region@81200000 {
+			reg = <0x0 0x81200000 0x0 0x280000>;
+			no-map;
+		};
+
+		aop_image_mem: aop-image-region@81c00000 {
+			reg = <0x0 0x81c00000 0x0 0x60000>;
+			no-map;
+		};
+
+		dump_display_mem: dump-display-region@a4a80000 {
+			reg = <0x0 0xa4a80000 0x0 0x800>;
+			no-map;
+		};
+
+		/*
+		 * The bootloader will only keep display hardware enabled
+		 * if this memory region is named exactly 'splash_region'
+		 */
+		splash-region@b8000000 {
+			reg = <0x0 0xb8000000 0x0 0x2b00000>;
+			no-map;
+		};
+
+		llcc_lpi_mem: llcc-lpi-region@ff800000 {
+			reg = <0x0 0xff800000 0x0 0x600000>;
+			no-map;
+		};
+	};
+
+	thermal-zones {
+		/delete-node/ pm8010-n-thermal;
+	};
+
+	vph_pwr: vph-pwr-regulator {
+		compatible = "regulator-fixed";
+		regulator-name = "vph_pwr";
+		regulator-min-microvolt = <3700000>;
+		regulator-max-microvolt = <3700000>;
+
+		regulator-always-on;
+		regulator-boot-on;
+	};
+
+	wcn7850-pmu {
+		compatible = "qcom,wcn7850-pmu";
+
+		pinctrl-0 = <&wlan_en>, <&bt_default>, <&pmk8550_sleep_clk>;
+		pinctrl-names = "default";
+
+		wlan-enable-gpios = <&tlmm 80 GPIO_ACTIVE_HIGH>;
+		bt-enable-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>;
+
+		vdd-supply = <&vreg_s5g_0p8>;
+		vddio-supply = <&vreg_l15b_1p8>;
+		vddaon-supply = <&vreg_s2g_0p8>;
+		vdddig-supply = <&vreg_s4e_0p9>;
+		vddrfa1p2-supply = <&vreg_s4g_1p3>;
+		vddrfa1p8-supply = <&vreg_s6g_1p8>;
+
+		regulators {
+			vreg_pmu_rfa_cmn: ldo0 {
+				regulator-name = "vreg_pmu_rfa_cmn";
+			};
+
+			vreg_pmu_aon_0p59: ldo1 {
+				regulator-name = "vreg_pmu_aon_0p59";
+			};
+
+			vreg_pmu_wlcx_0p8: ldo2 {
+				regulator-name = "vreg_pmu_wlcx_0p8";
+			};
+
+			vreg_pmu_wlmx_0p85: ldo3 {
+				regulator-name = "vreg_pmu_wlmx_0p85";
+			};
+
+			vreg_pmu_btcmx_0p85: ldo4 {
+				regulator-name = "vreg_pmu_btcmx_0p85";
+			};
+
+			vreg_pmu_rfa_0p8: ldo5 {
+				regulator-name = "vreg_pmu_rfa_0p8";
+			};
+
+			vreg_pmu_rfa_1p2: ldo6 {
+				regulator-name = "vreg_pmu_rfa_1p2";
+			};
+
+			vreg_pmu_rfa_1p8: ldo7 {
+				regulator-name = "vreg_pmu_rfa_1p8";
+			};
+
+			vreg_pmu_pcie_0p9: ldo8 {
+				regulator-name = "vreg_pmu_pcie_0p9";
+			};
+
+			vreg_pmu_pcie_1p8: ldo9 {
+				regulator-name = "vreg_pmu_pcie_1p8";
+			};
+		};
+	};
+};
+
+&adspslpi_mem {
+	reg = <0x0 0x9ea00000 0x0 0x4680000>;
+};
+
+&apps_rsc {
+	regulators-0 {
+		compatible = "qcom,pm8550-rpmh-regulators";
+		qcom,pmic-id = "b";
+
+		vdd-bob1-supply = <&vph_pwr>;
+		vdd-bob2-supply = <&vph_pwr>;
+		vdd-l1-l4-l10-supply = <&vreg_s6g_1p8>;
+		vdd-l2-l13-l14-supply = <&vreg_bob1>;
+		vdd-l3-supply = <&vreg_s4g_1p3>;
+		vdd-l5-l16-supply = <&vreg_bob1>;
+		vdd-l6-l7-supply = <&vreg_bob1>;
+		vdd-l8-l9-supply = <&vreg_bob1>;
+		vdd-l11-supply = <&vreg_s4g_1p3>;
+		vdd-l12-supply = <&vreg_s6g_1p8>;
+		vdd-l15-supply = <&vreg_s6g_1p8>;
+		vdd-l17-supply = <&vreg_bob2>;
+
+		vreg_bob1: bob1 {
+			regulator-name = "vreg_bob1";
+			regulator-min-microvolt = <3600000>;
+			regulator-max-microvolt = <3960000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_bob2: bob2 {
+			regulator-name = "vreg_bob2";
+			regulator-min-microvolt = <2720000>;
+			regulator-max-microvolt = <3960000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l1b_1p8: ldo1 {
+			regulator-name = "vreg_l1b_1p8";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l2b_3p0: ldo2 {
+			regulator-name = "vreg_l2b_3p0";
+			regulator-min-microvolt = <3008000>;
+			regulator-max-microvolt = <3008000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l4b_1p8: ldo4 {
+			regulator-name = "vreg_l4b_1p8";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l5b_3p1: ldo5 {
+			regulator-name = "vreg_l5b_3p1";
+			regulator-min-microvolt = <3104000>;
+			regulator-max-microvolt = <3104000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l6b_1p8: ldo6 {
+			regulator-name = "vreg_l6b_1p8";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <3008000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l7b_1p8: ldo7 {
+			regulator-name = "vreg_l7b_1p8";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <3008000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l8b_1p8: ldo8 {
+			regulator-name = "vreg_l8b_1p8";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <3008000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l9b_2p9: ldo9 {
+			regulator-name = "vreg_l9b_2p9";
+			regulator-min-microvolt = <2960000>;
+			regulator-max-microvolt = <3008000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l11b_1p2: ldo11 {
+			regulator-name = "vreg_l11b_1p2";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1504000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l12b_1p8: ldo12 {
+			regulator-name = "vreg_l12b_1p8";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l13b_3p0: ldo13 {
+			regulator-name = "vreg_l13b_3p0";
+			regulator-min-microvolt = <3000000>;
+			regulator-max-microvolt = <3000000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l14b_3p2: ldo14 {
+			regulator-name = "vreg_l14b_3p2";
+			regulator-min-microvolt = <3200000>;
+			regulator-max-microvolt = <3200000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l15b_1p8: ldo15 {
+			regulator-name = "vreg_l15b_1p8";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l16b_2p8: ldo16 {
+			regulator-name = "vreg_l16b_2p8";
+			regulator-min-microvolt = <2800000>;
+			regulator-max-microvolt = <2800000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l17b_2p5: ldo17 {
+			regulator-name = "vreg_l17b_2p5";
+			regulator-min-microvolt = <2504000>;
+			regulator-max-microvolt = <2504000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+	};
+
+	regulators-1 {
+		compatible = "qcom,pm8550vs-rpmh-regulators";
+		qcom,pmic-id = "c";
+
+		vdd-l3-supply = <&vreg_s4e_0p9>;
+
+		vreg_l3c_0p9: ldo3 {
+			regulator-name = "vreg_l3c_0p9";
+			regulator-min-microvolt = <880000>;
+			regulator-max-microvolt = <912000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+	};
+
+	regulators-2 {
+		compatible = "qcom,pm8550vs-rpmh-regulators";
+		qcom,pmic-id = "d";
+
+		vdd-l1-supply = <&vreg_s4e_0p9>;
+
+		vreg_l1d_0p88: ldo1 {
+			regulator-name = "vreg_l1d_0p88";
+			regulator-min-microvolt = <880000>;
+			regulator-max-microvolt = <920000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+	};
+
+	regulators-3 {
+		compatible = "qcom,pm8550vs-rpmh-regulators";
+		qcom,pmic-id = "e";
+
+		vdd-l1-supply = <&vreg_s4e_0p9>;
+		vdd-l2-supply = <&vreg_s4e_0p9>;
+		vdd-l3-supply = <&vreg_s4g_1p3>;
+		vdd-s4-supply = <&vph_pwr>;
+		vdd-s5-supply = <&vph_pwr>;
+
+		vreg_s4e_0p9: smps4 {
+			regulator-name = "vreg_s4e_0p9";
+			regulator-min-microvolt = <904000>;
+			regulator-max-microvolt = <984000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_s5e_1p1: smps5 {
+			regulator-name = "vreg_s5e_1p1";
+			regulator-min-microvolt = <1080000>;
+			regulator-max-microvolt = <1120000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l1e_0p88: ldo1 {
+			regulator-name = "vreg_l1e_0p88";
+			regulator-min-microvolt = <880000>;
+			regulator-max-microvolt = <880000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l2e_0p9: ldo2 {
+			regulator-name = "vreg_l2e_0p9";
+			regulator-min-microvolt = <904000>;
+			regulator-max-microvolt = <970000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l3e_1p2: ldo3 {
+			regulator-name = "vreg_l3e_1p2";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1200000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+	};
+
+	regulators-4 {
+		compatible = "qcom,pm8550ve-rpmh-regulators";
+		qcom,pmic-id = "f";
+
+		vdd-l1-supply = <&vreg_s4e_0p9>;
+		vdd-l2-supply = <&vreg_s4e_0p9>;
+		vdd-l3-supply = <&vreg_s4e_0p9>;
+		vdd-s4-supply = <&vph_pwr>;
+
+		vreg_s4f_0p5: smps4 {
+			regulator-name = "vreg_s4f_0p5";
+			regulator-min-microvolt = <500000>;
+			regulator-max-microvolt = <700000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l1f_0p9: ldo1 {
+			regulator-name = "vreg_l1f_0p9";
+			regulator-min-microvolt = <912000>;
+			regulator-max-microvolt = <912000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l2f_0p88: ldo2 {
+			regulator-name = "vreg_l2f_0p88";
+			regulator-min-microvolt = <880000>;
+			regulator-max-microvolt = <912000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l3f_0p9: ldo3 {
+			regulator-name = "vreg_l3f_0p9";
+			regulator-min-microvolt = <880000>;
+			regulator-max-microvolt = <912000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+	};
+
+	regulators-5 {
+		compatible = "qcom,pm8550vs-rpmh-regulators";
+		qcom,pmic-id = "g";
+
+		vdd-l1-supply = <&vreg_s4g_1p3>;
+		vdd-l2-supply = <&vreg_s4g_1p3>;
+		vdd-l3-supply = <&vreg_s4g_1p3>;
+		vdd-s1-supply = <&vph_pwr>;
+		vdd-s2-supply = <&vph_pwr>;
+		vdd-s4-supply = <&vph_pwr>;
+		vdd-s5-supply = <&vph_pwr>;
+		vdd-s6-supply = <&vph_pwr>;
+
+		vreg_s1g_1p2: smps1 {
+			regulator-name = "vreg_s1g_1p2";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1300000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_s2g_0p8: smps2 {
+			regulator-name = "vreg_s2g_0p8";
+			regulator-min-microvolt = <800000>;
+			regulator-max-microvolt = <1000000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		/* No SMPS3 on this board: cmd-db has no resource for it */
+
+		vreg_s4g_1p3: smps4 {
+			regulator-name = "vreg_s4g_1p3";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1352000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_s5g_0p8: smps5 {
+			regulator-name = "vreg_s5g_0p8";
+			regulator-min-microvolt = <500000>;
+			regulator-max-microvolt = <1004000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_s6g_1p8: smps6 {
+			regulator-name = "vreg_s6g_1p8";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <2000000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l1g_1p2: ldo1 {
+			regulator-name = "vreg_l1g_1p2";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1200000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l2g_1p2: ldo2 {
+			regulator-name = "vreg_l2g_1p2";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1200000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l3g_1p2: ldo3 {
+			regulator-name = "vreg_l3g_1p2";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1200000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+	};
+
+	regulators-6 {
+		compatible = "qcom,pm8010-rpmh-regulators";
+		qcom,pmic-id = "m";
+
+		vdd-l1-l2-supply = <&vreg_s4g_1p3>;
+		vdd-l3-l4-supply = <&vreg_bob2>;
+		vdd-l5-supply = <&vreg_s6g_1p8>;
+		vdd-l6-supply = <&vreg_s6g_1p8>;
+		vdd-l7-supply = <&vreg_bob1>;
+
+		vreg_l1m_1p056: ldo1 {
+			regulator-name = "vreg_l1m_1p056";
+			regulator-min-microvolt = <1056000>;
+			regulator-max-microvolt = <1056000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l2m_1p056: ldo2 {
+			regulator-name = "vreg_l2m_1p056";
+			regulator-min-microvolt = <1056000>;
+			regulator-max-microvolt = <1056000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l3m_2p8: ldo3 {
+			regulator-name = "vreg_l3m_2p8";
+			regulator-min-microvolt = <2800000>;
+			regulator-max-microvolt = <2800000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l4m_2p8: ldo4 {
+			regulator-name = "vreg_l4m_2p8";
+			regulator-min-microvolt = <2800000>;
+			regulator-max-microvolt = <2800000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l5m_1p8: ldo5 {
+			regulator-name = "vreg_l5m_1p8";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l6m_3p2: ldo6 {
+			regulator-name = "vreg_l6m_3p2";
+			regulator-min-microvolt = <3200000>;
+			regulator-max-microvolt = <3200000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l7m_2p9: ldo7 {
+			regulator-name = "vreg_l7m_2p9";
+			regulator-min-microvolt = <2800000>;
+			regulator-max-microvolt = <2904000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+	};
+};
+
+/* Keep the bootloader-initialised display clocks for simple-framebuffer */
+&dispcc {
+	status = "disabled";
+};
+
+&gpu {
+	status = "okay";
+};
+
+&gpu_zap_shader {
+	firmware-name = "qcom/sm8550/Xiaomi/ishtar/a740_zap.mbn";
+};
+
+&i2c_hub_2 {
+	clock-frequency = <400000>;
+
+	status = "okay";
+
+	typec-mux@42 {
+		compatible = "fcs,fsa4480";
+		reg = <0x42>;
+
+		mode-switch;
+		orientation-switch;
+
+		port {
+			fsa4480_sbu_mux: endpoint {
+				remote-endpoint = <&pmic_glink_sbu>;
+			};
+		};
+	};
+};
+
+&i2c_master_hub_0 {
+	status = "okay";
+};
+
+&pcie0 {
+	pinctrl-0 = <&pcie0_default_state>;
+	pinctrl-names = "default";
+
+	status = "okay";
+};
+
+&pcie0_phy {
+	vdda-phy-supply = <&vreg_l1e_0p88>;
+	vdda-pll-supply = <&vreg_l3e_1p2>;
+
+	status = "okay";
+};
+
+&pcie0_port0 {
+	reset-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>;
+	wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>;
+
+	wifi@0 {
+		compatible = "pci17cb,1107";
+		reg = <0x10000 0x0 0x0 0x0 0x0>;
+
+		vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
+		vddaon-supply = <&vreg_pmu_aon_0p59>;
+		vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
+		vddwlmx-supply = <&vreg_pmu_wlmx_0p85>;
+		vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
+		vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
+		vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>;
+		vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>;
+		vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>;
+	};
+};
+
+/* The second PM8010 is not populated on this board */
+&pm8010_n {
+	status = "disabled";
+};
+
+&pm8550_gpios {
+	volume_up_n: volume-up-n-state {
+		pins = "gpio6";
+		function = "normal";
+		power-source = <1>;
+		bias-pull-up;
+		input-enable;
+	};
+};
+
+&pm8550b_eusb2_repeater {
+	vdd18-supply = <&vreg_l15b_1p8>;
+	vdd3-supply = <&vreg_l5b_3p1>;
+};
+
+&pmk8550_gpios {
+	pmk8550_sleep_clk: sleep-clk-state {
+		pins = "gpio3";
+		function = "func1";
+		input-disable;
+		output-enable;
+		bias-disable;
+		power-source = <0>;
+	};
+};
+
+&pon_pwrkey {
+	status = "okay";
+};
+
+&pon_resin {
+	linux,code = <KEY_VOLUMEDOWN>;
+
+	status = "okay";
+};
+
+&qupv3_id_1 {
+	status = "okay";
+};
+
+&remoteproc_adsp {
+	firmware-name = "qcom/sm8550/Xiaomi/ishtar/adsp.mbn",
+			"qcom/sm8550/Xiaomi/ishtar/adsp_dtb.mbn";
+
+	status = "okay";
+};
+
+&sleep_clk {
+	clock-frequency = <32000>;
+};
+
+&tlmm {
+	gpio-reserved-ranges = <32 8>;
+
+	bt_default: bt-default-state {
+		bt-en-pins {
+			pins = "gpio81";
+			function = "gpio";
+			drive-strength = <16>;
+			bias-disable;
+		};
+
+		sw-ctrl-pins {
+			pins = "gpio82";
+			function = "gpio";
+			bias-pull-down;
+		};
+	};
+
+	wlan_en: wlan-en-state {
+		pins = "gpio80";
+		function = "gpio";
+		drive-strength = <8>;
+		bias-pull-down;
+	};
+};
+
+&uart14 {
+	status = "okay";
+
+	bluetooth {
+		compatible = "qcom,wcn7850-bt";
+
+		vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
+		vddaon-supply = <&vreg_pmu_aon_0p59>;
+		vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
+		vddwlmx-supply = <&vreg_pmu_wlmx_0p85>;
+		vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
+		vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
+		vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>;
+
+		max-speed = <3200000>;
+	};
+};
+
+&ufs_mem_hc {
+	reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>;
+
+	vcc-supply = <&vreg_l17b_2p5>;
+	vcc-max-microamp = <1300000>;
+	vccq-supply = <&vreg_l1g_1p2>;
+	vccq-max-microamp = <1200000>;
+	vdd-hba-supply = <&vreg_l3g_1p2>;
+
+	status = "okay";
+};
+
+&ufs_mem_phy {
+	vdda-phy-supply = <&vreg_l1d_0p88>;
+	vdda-pll-supply = <&vreg_l3e_1p2>;
+
+	status = "okay";
+};
+
+&usb_1 {
+	status = "okay";
+};
+
+&usb_1_dwc3_hs {
+	remote-endpoint = <&pmic_glink_hs_in>;
+};
+
+&usb_1_hsphy {
+	vdd-supply = <&vreg_l1e_0p88>;
+	vdda12-supply = <&vreg_l3e_1p2>;
+
+	phys = <&pm8550b_eusb2_repeater>;
+
+	status = "okay";
+};
+
+&usb_dp_qmpphy {
+	vdda-phy-supply = <&vreg_l3f_0p9>;
+	vdda-pll-supply = <&vreg_l3e_1p2>;
+
+	status = "okay";
+};
+
+&usb_dp_qmpphy_out {
+	remote-endpoint = <&pmic_glink_ss_in>;
+};
+
+&xo_board {
+	clock-frequency = <76800000>;
+};

-- 
2.56.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] arm64: dts: qcom: Add Xiaomi 13 Ultra
  2026-12-04 10:28 ` [PATCH 2/2] arm64: dts: " Zhongyuan Zhang via B4 Relay
@ 2026-12-04 10:47   ` sashiko-bot
  0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-12-04 10:47 UTC (permalink / raw)
  To: Zhongyuan Zhang; +Cc: devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 8 potential
issues to consider:
- [Medium] arm64: dts: qcom: aop-image-region overlaps
  xbl-dt-log-merged-region
- [Medium] arm64: dts: qcom: populated PM8550VS SPMI PMIC nodes left
  disabled
- [Medium] arm64: dts: qcom: 3.2V PM8010 ldo6 supplied by 1.8V-2.0V
  vreg_s6g_1p8
- [Medium] arm64: dts: qcom: sm8550-xiaomi-ishtar: missing
  orientation-gpios
- [Medium] arm64: dts: qcom: sm8550-xiaomi-ishtar: missing vcc-supply on
  fsa4480
- [Low] arm64: dts: qcom: splash-region comment contradicts node name
- [Low] arm64: dts: qcom: sleep_clk set to 32000 Hz instead of 32764 Hz
- [Low] arm64: dts: qcom: deprecated vph-pwr-regulator node name
--

commit 1bf1f489e6894cc3762bbb72662ed0ada1d41839
Author: Zhongyuan Zhang <zhongyuan026@gmail.com>

arm64: dts: qcom: Add Xiaomi 13 Ultra

This commit adds a devicetree for the Xiaomi 13 Ultra (codename ishtar)
based on the SM8550 SoC, describing UFS, USB-C via pmic_glink, keys, GPU,
ADSP, WCN7850 Wi-Fi/Bluetooth, and the bootloader framebuffer.

> diff --git a/arch/arm64/boot/dts/qcom/sm8550-xiaomi-ishtar.dts b/arch/arm64/boot/dts/qcom/sm8550-xiaomi-ishtar.dts
> new file mode 100644
> index 0000000000000..29260a2145d71
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/sm8550-xiaomi-ishtar.dts
> @@ -0,0 +1,816 @@

[ ... ]

> +#include "pm8550vs.dtsi"

[Severity: Medium]
Should pm8550vs_c, pm8550vs_d, pm8550vs_e, and pm8550vs_g be enabled with
status = "okay"?

apps_rsc configures RPMh regulators for all four PM8550VS PMICs (c, d, e,
and g), so all four are populated on the board, and pm8550vs.dtsi defines
active thermal zones referencing their temp-alarm nodes.  Because all four
SPMI PMIC nodes default to disabled in pm8550vs.dtsi,
of_spmi_register_devices() skips them and their temp-alarm sensors and GPIO
controllers never probe, leaving the four pm8550vs-*-thermal zones unbound.

[ ... ]

> +	pmic-glink {
> +		compatible = "qcom,sm8550-pmic-glink", "qcom,pmic-glink";
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +
> +		connector@0 {
> +			compatible = "usb-c-connector";
> +			reg = <0>;
> +			power-role = "dual";
> +			data-role = "dual";

[Severity: Medium]
Is orientation-gpios missing from pmic-glink?

connector@0 wires usb_dp_qmpphy_out and fsa4480_sbu_mux as orientation
switches, and on SM8550 (UCSI v1.x) ucsi_glink relies on orientation-gpios
to report non-altmode plug orientation, as established in commit
c6165ed2f425 ("usb: ucsi: glink: use the connector orientation GPIO to
provide switch events").  Without it, pmic_glink_ucsi_connector_status()
returns early, leaving usb_dp_qmpphy stuck in TYPEC_ORIENTATION_NORMAL with
SW_PORTSELECT_MUX set so USB 3.x SuperSpeed fails in reversed plug
orientation.  Other SM8550 boards specify
orientation-gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>.

[ ... ]

> +	reserved-memory {
> +		xbl_ramdump_mem: xbl-ramdump-region@81200000 {
> +			reg = <0x0 0x81200000 0x0 0x280000>;
> +			no-map;
> +		};
> +
> +		aop_image_mem: aop-image-region@81c00000 {
> +			reg = <0x0 0x81c00000 0x0 0x60000>;
> +			no-map;
> +		};

[Severity: Medium]
Does aop-image-region@81c00000 overlap xbl-dt-log-merged-region@81a00000
inherited from sm8550.dtsi?

sm8550.dtsi defines xbl_dt_log_merged_mem covering 0x81a00000..0x81c60000
(merging xbl_dt_log, xbl_ramdump, and aop_image), which completely encloses
aop_image_mem (0x81c00000..0x81c60000) and causes __rmem_check_for_overlap()
to log an overlap error on every boot.  Either drop aop_image_mem if the
base region is accurate, or delete/shrink xbl_dt_log_merged_mem to match
the moved xbl_ramdump_mem carveout.

[ ... ]

> +		/*
> +		 * The bootloader will only keep display hardware enabled
> +		 * if this memory region is named exactly 'splash_region'
> +		 */
> +		splash-region@b8000000 {
> +			reg = <0x0 0xb8000000 0x0 0x2b00000>;
> +			no-map;
> +		};

[Severity: Low]
The comment states the bootloader requires the node to be named exactly
splash_region, which contradicts the splash-region@b8000000 node name right
below it.  Should this stale comment be removed or updated?

[ ... ]

> +	vph_pwr: vph-pwr-regulator {
> +		compatible = "regulator-fixed";

[Severity: Low]
Documentation/devicetree/bindings/regulator/fixed-regulator.yaml deprecates
fixed-regulator node names that do not start with regulator.  Should this
be named regulator-vph-pwr instead?

[ ... ]

> +	regulators-6 {
> +		compatible = "qcom,pm8010-rpmh-regulators";
> +		qcom,pmic-id = "m";
> +
> +		vdd-l1-l2-supply = <&vreg_s4g_1p3>;
> +		vdd-l3-l4-supply = <&vreg_bob2>;
> +		vdd-l5-supply = <&vreg_s6g_1p8>;
> +		vdd-l6-supply = <&vreg_s6g_1p8>;
> +		vdd-l7-supply = <&vreg_bob1>;

[ ... ]

> +		vreg_l6m_3p2: ldo6 {
> +			regulator-name = "vreg_l6m_3p2";
> +			regulator-min-microvolt = <3200000>;
> +			regulator-max-microvolt = <3200000>;
> +			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
> +		};

[Severity: Medium]
Can vreg_s6g_1p8 (1.8V-2.0V) supply the 3.2V linear LDO vreg_l6m_3p2?

PM8010 ldo6 is a linear P-LDO (pmic5_pldo502ln) and requires an upstream
supply above 3.2V, such as vreg_bob1 or vreg_bob2.  With vdd-l6-supply
pointing to vreg_s6g_1p8, enabling vreg_l6m_3p2 votes on the wrong parent
rail and lets the actual upstream supply power off while ldo6 is active.

[ ... ]

> +&i2c_hub_2 {
> +	clock-frequency = <400000>;
> +
> +	status = "okay";
> +
> +	typec-mux@42 {
> +		compatible = "fcs,fsa4480";
> +		reg = <0x42>;
> +
> +		mode-switch;
> +		orientation-switch;

[Severity: Medium]
Should typec-mux@42 specify vcc-supply?

Without vcc-supply, fsa4480_probe() places no enable vote on the switch's
power rail.  If VCC is wired to a switchable regulator like vreg_bob1 (as
on other SM8550 boards), disconnecting or suspending USB lets
eusb2_repeater_exit() disable vreg_l5b_3p1, which is the only active
consumer of vreg_bob1 in this DTS, allowing vreg_bob1 to power down and
break the FSA4480 switch.  Please verify the board's VCC rail (for example
vreg_bob1 or vph_pwr) and add vcc-supply.

[ ... ]

> +&sleep_clk {
> +	clock-frequency = <32000>;
> +};

[Severity: Low]
Should sleep_clk be set to 32764 Hz instead of 32000 Hz?

PMK8550 on SM8550 supplies a 32.7645 kHz sleep clock, and sibling SM8550
boards use <32764> per commit e59334a088c3 ("arm64: dts: qcom: sm8550:
correct sleep clock frequency").  Using <32000> introduces a ~2.3% rate
discrepancy for sleep_clk consumers.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-upstream-ishtar-dts-v1-0-b11242304cd1@gmail.com?part=2

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-04 10:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 10:27 [PATCH 0/2] arm64: dts: qcom: sm8550: Add Xiaomi 13 Ultra Zhongyuan Zhang via B4 Relay
2026-12-04 10:27 ` [PATCH 1/2] dt-bindings: arm: qcom: " Zhongyuan Zhang via B4 Relay
2026-12-04 10:28 ` [PATCH 2/2] arm64: dts: " Zhongyuan Zhang via B4 Relay
2026-12-04 10:47   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox