From nobody Sat Jul 25 23:03:58 2026 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB71F2D7D59 for ; Sat, 11 Jul 2026 18:57:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783796228; cv=none; b=smaajb6B2Lciqx3g1z8NQZHvBNvM7GfFlfi1ui9VMmbW4YJJI/cvvaftRqD636TIU+gKMWBvEjLLwLz98um8/DUjNUrLrHUvK01auNSsmgp0GbM+BE5JiQoS0yZH6vnoAnNAJxAhQznT3nAq2heUJ25RXnUpMJbYel6JJD+vUgo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783796228; c=relaxed/simple; bh=09w37F7G01jmNkwQJh2unBpO+oKrXGgQNCyjoitWlKs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IUKy4V80al9T2KeWT4l9seyUEK5jq1axzIqpAG3dBrUSxRnljnpv2TXGet5tScqqNNeOzxmQdqiYrzh/AmnvlTTDkYTCppDTuOJ9lrnHsDemO2jmoSwEmCjWL7UkIDDs9ZeUI1EQhCwr5S5uQpOwOjhmPSj4MJeZsTukUNqAz9Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gMJ8mN1Q; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gMJ8mN1Q" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-476d8e647e9so2079237f8f.0 for ; Sat, 11 Jul 2026 11:57:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783796225; x=1784401025; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Z9tvHRB7bEupQJjf2HD4EouNWdI+ExQrix2Zn7FFOPs=; b=gMJ8mN1QvpYHjeUN9Fw0Fu9ylryD/ZnHE3cVrAtKHeFiCjZJYsbh3YW/ezVU2mDXmh p+2tXwF9F80/YU4ABx8MlJ9pCRCxaK1d214V0Au/tF538n9I+zLyD64RQxMXZLpuh0Wp qIQc1RwqxKJrHbXqHVSOdUReN+cx7d/edRyN+XqeGKT7xZ8t1Osm1AMTGFJqcvbSe52n DGux7JEhni+XuYqDCDvU1TrSFjQSJNCdStUTAa/eaJeQ3D8huF1fMNn5sDHwHF6fwVQB 42reZfCpfKMr8Dl2WjrWL8yExyOBoyv5hqHPbm5q9Ok3j6WlAEak35ttEx5p0z1fPbR8 pLNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783796225; x=1784401025; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Z9tvHRB7bEupQJjf2HD4EouNWdI+ExQrix2Zn7FFOPs=; b=GqQLnguA/bC5gVTgB5dfHpZMfBEmWfD+LvrT8BXkRnNDk2B673Fuc/sZlVJ71Lgz9B in7fj4GSU6HK/11H/kjLSk1I+8pVZ4S9xidbPUjWe0SqHl5XU95Yf1YwK5yIBNKYHmCU 3+wtr69vagO1i9XWebx865Bz7xhg6xZksDWYaLXCeSXLrcZtcq8GiAYTXYZl1z3pO47G DPysjJLxMWB1P3nC4nwgPcbDcZNcOddkuFBu4UiVsKLCEqhIHuuNgUOY5g1am8M8Uo2E Sfue+lydRMe78/wPy++ylZ5SWPFr+fiFoobyMsceWG17HxSdVYbt1xrggcCdAZ7JN8yy T6iw== X-Forwarded-Encrypted: i=1; AHgh+RouOp9QHD+j7uHwvjK0GFFoQPfzgFUFiU8TqwPgc7A4d4bCIRVbZWm6/OqyAtscSFt0cEiIg2Vv/X+0vPA=@vger.kernel.org X-Gm-Message-State: AOJu0YwT8M7TJ4RvV6pa1XPrulfnXcOrmlna6ck9TV6L0go3A3WmgLu2 VReZ31QVOLvaGINxwoiugYwhBBlBSL8X5/iyUqsFhC/T68yoT9uoUrckxq+ZAA== X-Gm-Gg: AfdE7cnaiA0S4qmwyyr8FcJjz6U4YmOQyRoCW58371s+Sx+zI/kv3qyLq1pmUsKNRqN O/KpVDHAUH/HWjbZiYlgVMUCtfCkCxf9+JLrpuPSC9LC2B1cRYEtLpiOlVQdim2MhjRMuBiXvM0 nslCtyr/gMBRV0XyikC8Sf20lEZmM6JP0lVuPXMVHFKR32FmFhWc58r8V8lkY9cAPkMWAla5geV v5vW6eIQuU3x5Y3ijNxYdYAJumQPu4NYNo6uECF7EmgM6Rp9PhMIv2vC59GUWvbHSxj4uALsm79 hO81n6SA06M0S9ljFCbUlxD4wFes3GsExvJZ7jxDvvveI2yHn0Lo1IyOLgKYJKnqyoHIbKLU6n7 OvryyNuavIvR2B0ERpeitzp/YCjZ3Rax+3oDabCyEittIaif8ZZ/0/4HAhXQK3ZXlDEzbz8Eg/w T9uMAm/g/Wv64h6d98JRui+BwEAh25Hg== X-Received: by 2002:a05:6000:1a86:b0:46f:f12b:e44b with SMTP id ffacd0b85a97d-47f2dcd7193mr4247369f8f.31.1783796225154; Sat, 11 Jul 2026 11:57:05 -0700 (PDT) Received: from localhost.localdomain ([151.27.210.52]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47aa039afacsm66905647f8f.19.2026.07.11.11.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2026 11:57:04 -0700 (PDT) From: Oleksii Onchul To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Oleksii Onchul Subject: [PATCH 1/2] dt-bindings: arm: qcom: Add Xiaomi 11 Lite 5G NE Date: Sat, 11 Jul 2026 20:49:33 +0200 Message-ID: <20260711184934.55701-2-oleksiionchul@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260711184934.55701-1-oleksiionchul@gmail.com> References: <20260711184934.55701-1-oleksiionchul@gmail.com> 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 Content-Type: text/plain; charset="utf-8" Add the compatible for the Xiaomi 11 Lite 5G NE, codenamed lisa, which is based on the Qualcomm SM7325 SoC. Signed-off-by: Oleksii Onchul Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentatio= n/devicetree/bindings/arm/qcom.yaml index 50cc18a6e..21b8af509 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -1054,6 +1054,7 @@ properties: - enum: - motorola,dubai - nothing,spacewar + - xiaomi,lisa - const: qcom,sm7325 =20 - items: --=20 2.55.0 From nobody Sat Jul 25 23:03:58 2026 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 021D730F534 for ; Sat, 11 Jul 2026 18:57:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783796230; cv=none; b=KFQY/enjMwPxmwbfsWY1e/JbTvXQPC1A5Hw9qOXoc24KhgTbJlA5dpqdKPcWk5g/jWkjIirmnAOFHzP75iMusTeKKf4s5L1+WC/jyxR+oKiBH1+Lp1d4SSGEyyxBrTt3h+ufV0g/dPyDkGKCuUW3BIjZOtSsylglSSayEgYa+GQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783796230; c=relaxed/simple; bh=seteJWfvq46aLuBBcdoPXuo1TJGyONKyXC45sX8J7bc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Wd9ZfSAfEbr2L2Qv+qHqrQ3VBBvw/YZErtz3vu3Hq2f5sm25SWriixthxrOEGtJ2qot247UQTDGDQUyg8zNAEX9ba6QAn/+R5KYuu2o1F82ZPe6hgvR+YElzDhKoSvi33QTURyvWJ9KFkEIzcECh6mNux0qkB1IpD3m3wMu269E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=O0RbHFjR; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="O0RbHFjR" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-493f25d47dcso15275595e9.1 for ; Sat, 11 Jul 2026 11:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783796226; x=1784401026; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=p8d2PU7VhnuYm+SOhzPmyMPzJuoBgnhptWqhMC01L2k=; b=O0RbHFjRyXx9e9BTwVQnwLBsvP/tNvTVVVWrZsmscWJvHzwOeoQ+BQZ6wyp+ImIEl5 2ENqnBdjlNs6i92l8mh1PyZ6sBAyfGFqjxOiV7NR5eDGdjC3OZTX84xiisYhanT2aHpX r1Sb7MtonD6Nq4tee5MqR0NtTU1EfP1TRerMTjaZMq+04gcVlwE5e2IEIbmd0DWHiqCA MGhIkxISxEX5OBc6AjIz8N/c15Gsj93uUuqTpkT7IDry63MAg2I3vRqyi+Hr37tdUVjp js4wcZQfZ95Y2Dzs43vC3v5O1D47TAET8tpcKyIn75qh9pOEf7eNLacJT/UjE2paWM0w XeUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783796226; x=1784401026; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=p8d2PU7VhnuYm+SOhzPmyMPzJuoBgnhptWqhMC01L2k=; b=q2q0SZjqvLPZovR4Q7vSQLyfj5HV3jyIhiCKshHGv1vnJynAmGR/t3hLZN3CBjjNZB sxZP4MNn527vwhskmJ8a46gHifEHgq9l5rHG3JACwF7gB4FFTRxnvfXwu2irJeM+lt7F ovZYcxuF+2tToUC9YXMz4t1dd7vWd7FPe2s4/0SZ32MyjDOENWfyPkYn6Z+DR0YsLRlR c5LowtE7+0HmeZvLNXKPhYNJsQFJDqVXcXKW0Q3CtXcCfNqIhpVxNUJL/92uocWu86cF q2WC7GJ3yzaz7zPebP58TlC4epZoqBBt2bEN4mF3XeqqLJ+jyjy/2Pe1j/oCPFIivehi 52Zg== X-Forwarded-Encrypted: i=1; AHgh+RpGH9SD+D2htPg5zz/7wO/N92KEAPVj1TZT2kKESq9mVvJdFQWSYEJ06KmGrOpzdY+h0GpJeLlsKv3Vvr0=@vger.kernel.org X-Gm-Message-State: AOJu0Yy0DcpfulVC6w7CE79oF+bcu+Mrh14QQsbb1Ah/FAUcKivgw+3F m8wdQn66+jouttH+nDkGUI46N1zWnVYNP9qKjnsYywuLQmRTQs2pUU6X X-Gm-Gg: AfdE7cl2oI4Yx/igGw+GpgYfl44eDWmgD0PwHzZkJCpG9oPYJBP2gwQnPCrrlG/DSRW AxuaxcFSpP8tt5EQzPrEOuRssJgYf8uCY8x1iltMf5UgMUcaJ+PMQ2LOvqYgPSuvltx5UaSTXFU kk0QnDiA9W26dAPoaovmNJe5qwfvl6ofhMdULlY/T+Nr/8fowrHZBZTDSjrXBgVyxZkEu+XHntU MQyi3dGy55PFzEod5yxvYbPSweBMETS42Ryq8ZXsQhcYPXtTi8IjCG2O7vUOLikbGUzS0hiLb5b XyX4oPTL38bHo6TLmOiECm6p8iFtVe5bGPrbskEhGQ7TD7ATI3Kk/M95N4/9bFF4saK69yuj9c2 a7qhqMJQk3ETduRlv7O8DzG7SPHEV5qesQcqgvz11+mIdhw9eq52lWLQf/917nL8OmAy1HdxYxC DGslNElYAtU+dvwv/sAHIVil6wu0favA== X-Received: by 2002:a05:600c:8b29:b0:493:c337:db0e with SMTP id 5b1f17b1804b1-493f881d069mr31663595e9.18.1783796226204; Sat, 11 Jul 2026 11:57:06 -0700 (PDT) Received: from localhost.localdomain ([151.27.210.52]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47aa039afacsm66905647f8f.19.2026.07.11.11.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2026 11:57:05 -0700 (PDT) From: Oleksii Onchul To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Oleksii Onchul Subject: [PATCH 2/2] arm64: dts: qcom: Add Xiaomi 11 Lite 5G NE Date: Sat, 11 Jul 2026 20:49:34 +0200 Message-ID: <20260711184934.55701-3-oleksiionchul@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260711184934.55701-1-oleksiionchul@gmail.com> References: <20260711184934.55701-1-oleksiionchul@gmail.com> 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 Content-Type: text/plain; charset="utf-8" Add initial support for the Xiaomi 11 Lite 5G NE, codenamed lisa. The supported hardware includes regulators, UFS, SD card, USB, GPU, remote processors, Wi-Fi, Bluetooth, touchscreen, flash LED, thermal sensors and the hardware buttons. Signed-off-by: Oleksii Onchul --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sm7325-xiaomi-lisa.dts | 1138 +++++++++++++++++ 2 files changed, 1139 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/M= akefile index 6f33c4e2f..bc84739ad 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -349,6 +349,7 @@ dtb-$(CONFIG_ARCH_QCOM) +=3D sm7125-xiaomi-joyeuse.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sm7225-fairphone-fp4.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sm7325-motorola-dubai.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sm7325-nothing-spacewar.dtb +dtb-$(CONFIG_ARCH_QCOM) +=3D sm7325-xiaomi-lisa.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sm8150-hdk.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sm8150-microsoft-surface-duo.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sm8150-mtp.dtb diff --git a/arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts b/arch/arm64/b= oot/dts/qcom/sm7325-xiaomi-lisa.dts new file mode 100644 index 000000000..e8a97103b --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts @@ -0,0 +1,1138 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024, Jens Reidel + * Copyright (c) 2026, Oleksii Onchul + */ + +/dts-v1/; + +#include +#include +#include +#include +#include +#include +#include + +#include "sm7325.dtsi" +#include "pm7325.dtsi" +#include "pm8350b.dtsi" /* PM7325B */ +#include "pm8350c.dtsi" /* PM7350C */ +#include "pmk8350.dtsi" /* PMK7325 */ + +/* The following reserved memory regions have different addresses or sizes= */ +/delete-node/ &adsp_mem; +/delete-node/ &adsp_rpc_remote_heap_mem; +/delete-node/ &cdsp_mem; +/delete-node/ &rmtfs_mem; + +/ { + model =3D "Xiaomi 11 Lite 5G NE"; + compatible =3D "xiaomi,lisa", "qcom,sm7325"; + chassis-type =3D "handset"; + + aliases { + serial0 =3D &uart5; + serial1 =3D &uart7; + }; + + chosen { + #address-cells =3D <2>; + #size-cells =3D <2>; + ranges; + + stdout-path =3D "serial0:115200n8"; + + framebuffer0: framebuffer@e1000000 { + compatible =3D "simple-framebuffer"; + reg =3D <0x0 0xe1000000 0x0 (1080 * 2400 * 4)>; + width =3D <1080>; + height =3D <2400>; + stride =3D <(1080 * 4)>; + format =3D "a8r8g8b8"; + + clocks =3D <&gcc GCC_DISP_HF_AXI_CLK>, + <&dispcc DISP_CC_MDSS_MDP_CLK>, + <&dispcc DISP_CC_MDSS_BYTE0_CLK>, + <&dispcc DISP_CC_MDSS_BYTE0_INTF_CLK>, + <&dispcc DISP_CC_MDSS_PCLK0_CLK>, + <&dispcc DISP_CC_MDSS_VSYNC_CLK>; + power-domains =3D <&dispcc DISP_CC_MDSS_CORE_GDSC>; + }; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + + pinctrl-0 =3D <&volume_up_default>; + pinctrl-names =3D "default"; + + key-volume-up { + label =3D "Volume Up"; + gpios =3D <&pm7325_gpios 6 GPIO_ACTIVE_LOW>; + linux,code =3D ; + }; + }; + + pmic-glink { + compatible =3D "qcom,sm7325-pmic-glink", + "qcom,qcm6490-pmic-glink", + "qcom,pmic-glink"; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + orientation-gpios =3D <&tlmm 140 GPIO_ACTIVE_HIGH>; + + connector@0 { + compatible =3D "usb-c-connector"; + reg =3D <0>; + power-role =3D "dual"; + data-role =3D "dual"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + pmic_glink_hs_in: endpoint { + remote-endpoint =3D <&usb_1_dwc3_hs>; + }; + }; + + port@2 { + reg =3D <2>; + + pmic_glink_sbu: endpoint { + remote-endpoint =3D <&fsa4480_sbu_mux>; + }; + }; + }; + }; + }; + + reserved-memory { + #address-cells =3D <2>; + #size-cells =3D <2>; + ranges; + + cdsp_secure_heap_mem: cdsp_secure_heap@81800000 { + reg =3D <0x0 0x81800000 0x0 0x1e00000>; + no-map; + }; + + adsp_mem: adsp@86700000 { + reg =3D <0x0 0x86700000 0x0 0x4000000>; + no-map; + }; + + /* Mainline video_mem is downstream cvp_mem */ + real_video_mem: video@8ad00000 { + reg =3D <0x0 0x8ad00000 0x0 0x500000>; + no-map; + }; + + ipa_gsi_mem: ipa_gsi@8b710000 { + reg =3D <0x0 0x8b710000 0x0 0xa000>; + no-map; + }; + + cdsp_mem: cdsp@9c700000 { + reg =3D <0x0 0x9c700000 0x0 0x1e00000>; + no-map; + }; + + adsp_rpc_remote_heap_mem: adsp-rpc-remote-heap@9e500000 { + reg =3D <0x0 0x9e500000 0x0 0x800000>; + no-map; + }; + + ramoops@a9000000 { + compatible =3D "ramoops"; + reg =3D <0x0 0xa9000000 0x0 0x200000>; + pmsg-size =3D <0x200000>; + mem-type =3D <0x02>; + }; + + removed_mem: removed@c0000000 { + reg =3D <0x0 0xc0000000 0x0 0x5100000>; + no-map; + }; + + pil_trustedvm_mem: pil_trustedvm_region@d0800000 { + reg =3D <0x0 0xd0800000 0x0 0x76f7000>; + no-map; + }; + + qrtr_shmem: qrtr_shmem@d7ef7000 { + reg =3D <0x0 0xd7ef7000 0x0 0x9000>; + no-map; + }; + + neuron_block_0_mem: neuron_block@d7f00000 { + reg =3D <0x0 0xd7f00000 0x0 0x80000>; + no-map; + }; + + neuron_block_1_mem: neuron_block@d7f80000 { + reg =3D <0x0 0xd7f80000 0x0 0x80000>; + no-map; + }; + + framebuffer@e1000000 { + reg =3D <0x0 0xe1000000 0x0 (1080 * 2400 * 4)>; + no-map; + }; + + rmtfs_mem: rmtfs@ef500000 { + compatible =3D "qcom,rmtfs-mem"; + reg =3D <0x0 0xef500000 0x0 0x280000>; + no-map; + + qcom,client-id =3D <1>; + qcom,vmid =3D , + ; + }; + }; + + vph_pwr: vph-pwr-regulator { + compatible =3D "regulator-fixed"; + regulator-name =3D "vph_pwr"; + regulator-min-microvolt =3D <3700000>; + regulator-max-microvolt =3D <3700000>; + }; + + /* S2B is really ebi.lvl but it's there for supply map completeness sake.= */ + vreg_s2b_0p7: smpa3-regulator { + compatible =3D "regulator-fixed"; + regulator-name =3D "vreg_s2b_0p7"; + + regulator-min-microvolt =3D <700000>; + regulator-max-microvolt =3D <700000>; + regulator-always-on; + vin-supply =3D <&vph_pwr>; + }; +}; + +&apps_rsc { + regulators-0 { + compatible =3D "qcom,pm7325-rpmh-regulators"; + qcom,pmic-id =3D "b"; + + vdd-s1-supply =3D <&vph_pwr>; + vdd-s2-supply =3D <&vph_pwr>; + vdd-s7-supply =3D <&vph_pwr>; + vdd-s8-supply =3D <&vph_pwr>; + + vdd-l1-l4-l12-l15-supply =3D <&vreg_s7b_0p952>; + vdd-l2-l7-supply =3D <&vreg_bob>; + vdd-l3-supply =3D <&vreg_s2b_0p7>; + vdd-l5-supply =3D <&vreg_s2b_0p7>; + vdd-l6-l9-l10-supply =3D <&vreg_s8b_1p256>; + vdd-l8-supply =3D <&vreg_s7b_0p952>; + vdd-l11-l17-l18-l19-supply =3D <&vreg_s1b_1p856>; + vdd-l13-supply =3D <&vreg_s7b_0p952>; + vdd-l14-l16-supply =3D <&vreg_s8b_1p256>; + + /* + * S2, L4-L5 are ARCs: + * S2 - ebi.lvl, + * L4 - lmx.lvl, + * l5 - lcx.lvl. + * + * L10 are unused. + */ + + vdd19_pmu_rfa_i: + vreg_s1b_1p856: smps1 { + regulator-name =3D "vreg_s1b_1p856"; + regulator-min-microvolt =3D <1840000>; + regulator-max-microvolt =3D <2040000>; + }; + + vreg_s7b_0p952: smps7 { + regulator-name =3D "vreg_s7b_0p952"; + regulator-min-microvolt =3D <535000>; + regulator-max-microvolt =3D <1120000>; + }; + + vdd13_pmu_rfa_i: + vreg_s8b_1p256: smps8 { + regulator-name =3D "vreg_s8b_1p256"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1500000>; + regulator-initial-mode =3D ; + }; + + vreg_l1b_0p912: ldo1 { + regulator-name =3D "vreg_l1b_0p912"; + regulator-min-microvolt =3D <825000>; + regulator-max-microvolt =3D <925000>; + regulator-initial-mode =3D ; + }; + + vdd_a_usbhs_3p1: + vreg_l2b_3p072: ldo2 { + regulator-name =3D "vreg_l2b_3p072"; + regulator-min-microvolt =3D <2700000>; + regulator-max-microvolt =3D <3544000>; + regulator-initial-mode =3D ; + }; + + vreg_l3b_0p6: ldo3 { + regulator-name =3D "vreg_l3b_0p6"; + regulator-min-microvolt =3D <312000>; + regulator-max-microvolt =3D <910000>; + regulator-initial-mode =3D ; + }; + + vdd_a_dsi_0_1p2: + vdd_a_ufs_0_1p2: + vreg_l6b_1p2: ldo6 { + regulator-name =3D "vreg_l6b_1p2"; + regulator-min-microvolt =3D <1140000>; + regulator-max-microvolt =3D <1260000>; + regulator-initial-mode =3D ; + regulator-allow-set-load; + regulator-allowed-modes =3D ; + }; + + vreg_l7b_2p96: ldo7 { + regulator-name =3D "vreg_l7b_2p96"; + regulator-min-microvolt =3D <2400000>; + regulator-max-microvolt =3D <3544000>; + regulator-initial-mode =3D ; + regulator-allow-set-load; + regulator-allowed-modes =3D ; + }; + + vreg_l8b_0p904: ldo8 { + regulator-name =3D "vreg_l8b_0p904"; + regulator-min-microvolt =3D <870000>; + regulator-max-microvolt =3D <970000>; + regulator-initial-mode =3D ; + }; + + vreg_l9b_1p2: ldo9 { + regulator-name =3D "vreg_l9b_1p2"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1304000>; + regulator-initial-mode =3D ; + regulator-allow-set-load; + regulator-allowed-modes =3D ; + }; + + vreg_l11b_1p776: ldo11 { + regulator-name =3D "vreg_l11b_1p776"; + regulator-min-microvolt =3D <1504000>; + regulator-max-microvolt =3D <2000000>; + regulator-initial-mode =3D ; + }; + + vreg_l12b_0p8: ldo12 { + regulator-name =3D "vreg_l12b_0p8"; + regulator-min-microvolt =3D <751000>; + regulator-max-microvolt =3D <824000>; + regulator-initial-mode =3D ; + }; + + vreg_l13b_0p8: ldo13 { + regulator-name =3D "vreg_l13b_0p8"; + regulator-min-microvolt =3D <530000>; + regulator-max-microvolt =3D <824000>; + regulator-initial-mode =3D ; + }; + + vreg_l14b_1p2: ldo14 { + regulator-name =3D "vreg_l14b_1p2"; + regulator-min-microvolt =3D <1080000>; + regulator-max-microvolt =3D <1304000>; + regulator-initial-mode =3D ; + }; + + vreg_l15b_0p88: ldo15 { + regulator-name =3D "vreg_l15b_0p88"; + regulator-min-microvolt =3D <765000>; + regulator-max-microvolt =3D <1020000>; + regulator-initial-mode =3D ; + }; + + vreg_l16b_1p2: ldo16 { + regulator-name =3D "vreg_l16b_1p2"; + regulator-min-microvolt =3D <1100000>; + regulator-max-microvolt =3D <1300000>; + regulator-initial-mode =3D ; + }; + + vreg_l17b_1p8: ldo17 { + regulator-name =3D "vreg_l17b_1p8"; + regulator-min-microvolt =3D <1700000>; + regulator-max-microvolt =3D <1900000>; + regulator-initial-mode =3D ; + }; + + vreg_l18b_1p8: ldo18 { + regulator-name =3D "vreg_l18b_1p8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <2000000>; + regulator-initial-mode =3D ; + }; + + vreg_l19b_1p8: ldo19 { + regulator-name =3D "vreg_l19b_1p8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <2000000>; + regulator-initial-mode =3D ; + }; + }; + + regulators-1 { + compatible =3D "qcom,pm8350c-rpmh-regulators"; + qcom,pmic-id =3D "c"; + + vdd-s1-supply =3D <&vph_pwr>; + vdd-s2-supply =3D <&vph_pwr>; + vdd-s5-supply =3D <&vph_pwr>; + vdd-s7-supply =3D <&vph_pwr>; + vdd-s9-supply =3D <&vph_pwr>; + vdd-s10-supply =3D <&vph_pwr>; + + vdd-l1-l12-supply =3D <&vreg_s1b_1p856>; + vdd-l2-l8-supply =3D <&vreg_s1b_1p856>; + vdd-l3-l4-l5-l7-l13-supply =3D <&vreg_bob>; + vdd-l6-l9-l11-supply =3D <&vreg_bob>; + vdd-l10-supply =3D <&vreg_s7b_0p952>; + + vdd-bob-supply =3D <&vph_pwr>; + + /* + * S2, S5, S7, S10 are ARCs: + * S2 - cx.lvl, + * S5 - mss.lvl, + * S7 - gfx.lvl, + * S10 - mx.lvl. + */ + + vreg_s1c_2p2: smps1 { + regulator-name =3D "vreg_s1c_2p2"; + regulator-min-microvolt =3D <2190000>; + regulator-max-microvolt =3D <2210000>; + }; + + vreg_s9c_0p676: smps9 { + regulator-name =3D "vreg_s9c_0p676"; + regulator-min-microvolt =3D <1010000>; + regulator-max-microvolt =3D <1170000>; + }; + + vdd_a_usbhs_1p8: + vdd_qfprom: + vreg_l1c_1p8: ldo1 { + regulator-name =3D "vreg_l1c_1p8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1980000>; + regulator-initial-mode =3D ; + }; + + vreg_l2c_1p8: ldo2 { + regulator-name =3D "vreg_l2c_1p8"; + regulator-min-microvolt =3D <1620000>; + regulator-max-microvolt =3D <1980000>; + regulator-initial-mode =3D ; + }; + + vreg_l4c_1p8_3p0: ldo4 { + regulator-name =3D "vreg_l4c_1p8_3p0"; + regulator-min-microvolt =3D <1620000>; + regulator-max-microvolt =3D <3300000>; + regulator-initial-mode =3D ; + }; + + vreg_l5c_1p8_3p0: ldo5 { + regulator-name =3D "vreg_l5c_1p8_3p0"; + regulator-min-microvolt =3D <1620000>; + regulator-max-microvolt =3D <3300000>; + regulator-initial-mode =3D ; + }; + + vreg_l6c_2p96: ldo6 { + regulator-name =3D "vreg_l6c_2p96"; + regulator-min-microvolt =3D <1650000>; + regulator-max-microvolt =3D <3544000>; + regulator-initial-mode =3D ; + }; + + vreg_l7c_3p0: ldo7 { + regulator-name =3D "vreg_l7c_3p0"; + regulator-min-microvolt =3D <3000000>; + regulator-max-microvolt =3D <3544000>; + regulator-initial-mode =3D ; + }; + + vreg_l8c_1p8: ldo8 { + regulator-name =3D "vreg_l8c_1p8"; + regulator-min-microvolt =3D <1620000>; + regulator-max-microvolt =3D <2000000>; + regulator-initial-mode =3D ; + regulator-always-on; + }; + + vreg_l9c_2p96: ldo9 { + regulator-name =3D "vreg_l9c_2p96"; + regulator-min-microvolt =3D <2700000>; + regulator-max-microvolt =3D <3544000>; + regulator-initial-mode =3D ; + }; + + vdd_a_dsi_0_0p9: + vdd_a_dsi_0_pll_0p9: + vdd_a_ufs_0_core: + vdd_a_usbhs_core: + vreg_l10c_0p88: ldo10 { + regulator-name =3D "vreg_l10c_0p88"; + regulator-min-microvolt =3D <720000>; + regulator-max-microvolt =3D <1050000>; + regulator-initial-mode =3D ; + regulator-allow-set-load; + regulator-allowed-modes =3D ; + }; + + vreg_l11c_2p8: ldo11 { + regulator-name =3D "vreg_l11c_2p8"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <3544000>; + regulator-initial-mode =3D ; + }; + + vreg_l12c_1p8: ldo12 { + regulator-name =3D "vreg_l12c_1p8"; + regulator-min-microvolt =3D <1650000>; + regulator-max-microvolt =3D <2000000>; + regulator-initial-mode =3D ; + }; + + vreg_l13c_3p0: ldo13 { + regulator-name =3D "vreg_l13c_3p0"; + regulator-min-microvolt =3D <2700000>; + regulator-max-microvolt =3D <3544000>; + regulator-initial-mode =3D ; + }; + + vdd_flash: + vdd_iris_rgb: + vdd_mic_bias: + vreg_bob: bob { + regulator-name =3D "vreg_bob"; + regulator-min-microvolt =3D <3008000>; + regulator-max-microvolt =3D <3960000>; + regulator-initial-mode =3D ; + }; + }; +}; + +&gcc { + protected-clocks =3D , + , + , + , + , + , + , + , + , + , + , + , + ; +}; + +&gpi_dma0 { + status =3D "okay"; +}; + +&gpi_dma1 { + status =3D "okay"; +}; + +&gpu { + status =3D "okay"; +}; + +&gpu_zap_shader { + firmware-name =3D "qcom/sm7325/xiaomi/lisa/a660_zap.mbn"; +}; + +&i2c1 { + clock-frequency =3D <100000>; + status =3D "okay"; + + pm8008: pmic@8 { + compatible =3D "qcom,pm8008"; + reg =3D <0x8>; + + interrupts-extended =3D <&tlmm 25 IRQ_TYPE_EDGE_RISING>; + reset-gpios =3D <&pm8350c_gpios 3 GPIO_ACTIVE_LOW>; + + vdd-l1-l2-supply =3D <&vreg_s8b_1p256>; + vdd-l3-l4-supply =3D <&vreg_bob>; + vdd-l5-supply =3D <&vreg_s1b_1p856>; + vdd-l6-supply =3D <&vreg_bob>; + vdd-l7-supply =3D <&vreg_bob>; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pm8008_int_default>, <&pm8008_reset_n_default>; + + gpio-controller; + #gpio-cells =3D <2>; + gpio-ranges =3D <&pm8008 0 0 2>; + + interrupt-controller; + #interrupt-cells =3D <2>; + + #thermal-sensor-cells =3D <0>; + + regulators { + vreg_l1p: ldo1 { + regulator-name =3D "vreg_l1p"; + regulator-min-microvolt =3D <1000000>; + regulator-max-microvolt =3D <1200000>; + regulator-always-on; + }; + + vreg_l2p: ldo2 { + regulator-name =3D "vreg_l2p"; + regulator-min-microvolt =3D <950000>; + regulator-max-microvolt =3D <1200000>; + regulator-always-on; + }; + + vreg_l3p: ldo3 { + regulator-name =3D "vreg_l3p"; + regulator-min-microvolt =3D <2700000>; + regulator-max-microvolt =3D <3000000>; + regulator-always-on; + }; + + vreg_l4p: ldo4 { + regulator-name =3D "vreg_l4p"; + regulator-min-microvolt =3D <2700000>; + regulator-max-microvolt =3D <2900000>; + regulator-always-on; + }; + + vreg_l5p: ldo5 { + regulator-name =3D "vreg_l5p"; + regulator-min-microvolt =3D <1700000>; + regulator-max-microvolt =3D <1900000>; + regulator-always-on; + }; + + vreg_l6p: ldo6 { + regulator-name =3D "vreg_l6p"; + regulator-min-microvolt =3D <2700000>; + regulator-max-microvolt =3D <2900000>; + regulator-always-on; + }; + + vreg_l7p: ldo7 { + regulator-name =3D "vreg_l7p"; + regulator-min-microvolt =3D <2700000>; + regulator-max-microvolt =3D <3000000>; + regulator-always-on; + }; + }; + }; + + /* awinic,aw210xx_led @ 20 */ + + fsa4480: typec-mux@42 { + compatible =3D "fcs,fsa4480"; + reg =3D <0x42>; + + interrupts-extended =3D <&tlmm 2 IRQ_TYPE_LEVEL_LOW>; + + vcc-supply =3D <&vreg_bob>; + mode-switch; + orientation-switch; + + port { + fsa4480_sbu_mux: endpoint { + remote-endpoint =3D <&pmic_glink_sbu>; + }; + }; + }; +}; + +&i2c4 { + clock-frequency =3D <100000>; + status =3D "okay"; + + /* awinic,aw8624_haptic @ 5a */ +}; + +&ipa { + qcom,gsi-loader =3D "self"; + memory-region =3D <&ipa_fw_mem>; + firmware-name =3D "qcom/sm7325/xiaomi/lisa/ipa_fws.mbn"; + + status =3D "okay"; +}; + +&pm7325_gpios { + volume_up_default: volume-up-default-state { + pins =3D "gpio6"; + function =3D PMIC_GPIO_FUNC_NORMAL; + power-source =3D <1>; + bias-pull-up; + input-enable; + }; +}; + +&pm8350c_gpios { + pm8008_reset_n_default: pm8008-reset-n-default-state { + pins =3D "gpio3"; + function =3D PMIC_GPIO_FUNC_NORMAL; + bias-pull-down; + }; +}; + +&pm8350c_flash { + status =3D "okay"; + + led-0 { + function =3D LED_FUNCTION_FLASH; + color =3D ; + led-sources =3D <1>, <4>; + led-max-microamp =3D <500000>; + flash-max-microamp =3D <1500000>; + flash-max-timeout-us =3D <1280000>; + }; +}; + +&pmk8350_adc_tm { + status =3D "okay"; + + /* PMK8350 */ + xo-therm@0 { + reg =3D <0>; + io-channels =3D <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us =3D <200>; + }; + + /* PM7325 */ + quiet-therm@1 { + reg =3D <1>; + io-channels =3D <&pmk8350_vadc PM7325_ADC7_AMUX_THM1_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us =3D <200>; + }; + + cam-flash-therm@2 { + reg =3D <2>; + io-channels =3D <&pmk8350_vadc PM7325_ADC7_AMUX_THM2_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us =3D <200>; + }; + + sdm-skin-therm@3 { + reg =3D <3>; + io-channels =3D <&pmk8350_vadc PM7325_ADC7_AMUX_THM3_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us =3D <200>; + }; + + wide-rfc-therm@4 { + reg =3D <4>; + io-channels =3D <&pmk8350_vadc PM7325_ADC7_AMUX_THM4_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us =3D <200>; + }; + + 5g-pa-therm@5 { + reg =3D <5>; + io-channels =3D <&pmk8350_vadc PM7325_ADC7_AMUX_THM5_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us =3D <200>; + }; + + 4g-pa-therm@6 { + reg =3D <6>; + io-channels =3D <&pmk8350_vadc PM7325_ADC7_GPIO3_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us =3D <200>; + }; + + /* PM8350B */ + chg-skin-therm@7 { + reg =3D <7>; + io-channels =3D <&pmk8350_vadc PM8350B_ADC7_GPIO2_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us =3D <200>; + }; +}; + +&pmk8350_rtc { + status =3D "okay"; +}; + +&pmk8350_vadc { + /* PMK8350 */ + channel@44 { + reg =3D ; + qcom,ratiometric; + qcom,hw-settle-time =3D <200>; + qcom,pre-scaling =3D <1 1>; + label =3D "pmk8350_xo_therm"; + }; + + /* PM7325 */ + channel@144 { + reg =3D ; + qcom,ratiometric; + qcom,hw-settle-time =3D <200>; + qcom,pre-scaling =3D <1 1>; + label =3D "pm7325_quiet_therm"; + }; + + channel@145 { + reg =3D ; + qcom,ratiometric; + qcom,hw-settle-time =3D <200>; + qcom,pre-scaling =3D <1 1>; + label =3D "pm7325_cam_flash_therm"; + }; + + channel@146 { + reg =3D ; + qcom,ratiometric; + qcom,hw-settle-time =3D <200>; + qcom,pre-scaling =3D <1 1>; + label =3D "pm7325_sdm_skin_therm"; + }; + + channel@147 { + reg =3D ; + qcom,ratiometric; + qcom,hw-settle-time =3D <200>; + qcom,pre-scaling =3D <1 1>; + label =3D "pm7325_wide_rfc_therm"; + }; + + channel@148 { + reg =3D ; + qcom,ratiometric; + qcom,hw-settle-time =3D <200>; + qcom,pre-scaling =3D <1 1>; + label =3D "pm7325_5g_pa_therm"; + }; + + channel@14c { + reg =3D ; + qcom,ratiometric; + qcom,hw-settle-time =3D <200>; + qcom,pre-scaling =3D <1 1>; + label =3D "pm7325_4g_pa_therm"; + }; + + /* PM8350B */ + channel@34b { + reg =3D ; + qcom,ratiometric; + qcom,hw-settle-time =3D <200>; + qcom,pre-scaling =3D <1 1>; + label =3D "pm8350b_chg_skin_therm"; + }; +}; + +&pon_pwrkey { + status =3D "okay"; +}; + +&pon_resin { + linux,code =3D ; + + status =3D "okay"; +}; + +&qfprom { + vcc-supply =3D <&vdd_qfprom>; +}; + +&qup_spi13_cs { + drive-strength =3D <6>; + bias-disable; +}; + +&qup_spi13_data_clk { + drive-strength =3D <6>; + bias-disable; +}; + +&qup_uart5_rx { + drive-strength =3D <2>; + bias-disable; +}; + +&qup_uart5_tx { + drive-strength =3D <2>; + bias-disable; +}; + +&qupv3_id_0 { + status =3D "okay"; +}; + +&qupv3_id_1 { + status =3D "okay"; +}; + +&remoteproc_adsp { + firmware-name =3D "qcom/sm7325/xiaomi/lisa/adsp.mbn"; + + status =3D "okay"; +}; + +&remoteproc_cdsp { + firmware-name =3D "qcom/sm7325/xiaomi/lisa/cdsp.mbn"; + + status =3D "okay"; +}; + +&remoteproc_mpss { + firmware-name =3D "qcom/sm7325/xiaomi/lisa/modem.mbn"; + + status =3D "okay"; +}; + +&remoteproc_wpss { + firmware-name =3D "qcom/sm7325/xiaomi/lisa/wpss.mbn"; + + status =3D "okay"; +}; + +&sdc2_clk { + drive-strength =3D <16>; + bias-disable; +}; + +&sdc2_cmd { + drive-strength =3D <10>; + bias-pull-up; +}; + +&sdc2_data { + drive-strength =3D <10>; + bias-pull-up; +}; + +&sdhc_2 { + vmmc-supply =3D <&vreg_l7b_2p96>; + vqmmc-supply =3D <&vreg_l19b_1p8>; + + pinctrl-0 =3D <&sdc2_clk>, <&sdc2_cmd>, <&sdc2_data>; + pinctrl-1 =3D <&sdc2_clk_sleep>, <&sdc2_cmd_sleep>, <&sdc2_data_sleep>; + + status =3D "okay"; +}; + +&spi13 { + status =3D "okay"; + + touchscreen@0 { + compatible =3D "goodix,gt9897"; + reg =3D <0>; + spi-max-frequency =3D <6000000>; + + interrupt-parent =3D <&tlmm>; + interrupts =3D <81 IRQ_TYPE_LEVEL_LOW>; + + reset-gpios =3D <&tlmm 105 GPIO_ACTIVE_LOW>; + + avdd-supply =3D <&vreg_l7c_3p0>; + vddio-supply =3D <&vreg_l2c_1p8>; + + touchscreen-size-x =3D <1080>; + touchscreen-size-y =3D <2400>; + }; +}; + +&tlmm { + /* + * 32-33: SMB1394 (SPMI) + * 56-59: fingerprint reader (SPI) + */ + gpio-reserved-ranges =3D <32 2>, <48 4>, <56 4>; + + qup_uart7_sleep_cts: qup-uart7-sleep-cts-state { + pins =3D "gpio28"; + function =3D "gpio"; + /* + * Configure a bias-bus-hold on CTS to lower power + * usage when Bluetooth is turned off. Bus hold will + * maintain a low power state regardless of whether + * the Bluetooth module drives the pin in either + * direction or leaves the pin fully unpowered. + */ + bias-bus-hold; + }; + + qup_uart7_sleep_rts: qup-uart7-sleep-rts-state { + pins =3D "gpio29"; + function =3D "gpio"; + /* + * Configure pull-down on RTS. As RTS is active low + * signal, pull it low to indicate the BT SoC that it + * can wakeup the system anytime from suspend state by + * pulling RX low (by sending wakeup bytes). + */ + bias-pull-down; + }; + + qup_uart7_sleep_tx: qup-uart7-sleep-tx-state { + pins =3D "gpio30"; + function =3D "gpio"; + /* + * Configure pull-up on TX when it isn't actively driven + * to prevent BT SoC from receiving garbage during sleep. + */ + bias-pull-up; + }; + + qup_uart7_sleep_rx: qup-uart7-sleep-rx-state { + pins =3D "gpio31"; + function =3D "gpio"; + /* + * Configure a pull-up on RX. This is needed to avoid + * garbage data when the TX pin of the Bluetooth module + * is floating which may cause spurious wakeups. + */ + bias-pull-up; + }; + + bluetooth_enable_default: bluetooth-enable-default-state { + pins =3D "gpio85"; + function =3D "gpio"; + output-low; + bias-disable; + }; + + sw_ctrl_default: sw-ctrl-default-state { + pins =3D "gpio86"; + function =3D "gpio"; + bias-pull-down; + }; + + pm8008_int_default: pm8008-int-default-state { + pins =3D "gpio25"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; +}; + +&uart5 { + compatible =3D "qcom,geni-debug-uart"; + status =3D "okay"; +}; + +&uart7 { + /delete-property/interrupts; + interrupts-extended =3D <&intc GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 31 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-1 =3D <&qup_uart7_sleep_cts>, + <&qup_uart7_sleep_rts>, + <&qup_uart7_sleep_tx>, + <&qup_uart7_sleep_rx>; + pinctrl-names =3D "default", "sleep"; + + status =3D "okay"; + + bluetooth: bluetooth { + compatible =3D "qcom,wcn6750-bt"; + + pinctrl-0 =3D <&bluetooth_enable_default>, <&sw_ctrl_default>; + pinctrl-names =3D "default"; + + enable-gpios =3D <&tlmm 85 GPIO_ACTIVE_HIGH>; + swctrl-gpios =3D <&tlmm 86 GPIO_ACTIVE_HIGH>; + + vddio-supply =3D <&vreg_l19b_1p8>; + vddaon-supply =3D <&vreg_s7b_0p952>; + vddbtcxmx-supply =3D <&vreg_s7b_0p952>; + vddrfacmn-supply =3D <&vreg_s7b_0p952>; + vddrfa0p8-supply =3D <&vreg_s7b_0p952>; + vddrfa1p2-supply =3D <&vdd13_pmu_rfa_i>; + vddrfa1p7-supply =3D <&vdd19_pmu_rfa_i>; + vddrfa2p2-supply =3D <&vreg_s1c_2p2>; + vddasd-supply =3D <&vreg_l11c_2p8>; + max-speed =3D <3200000>; + + qcom,local-bd-address-broken; + }; +}; + +&ufs_mem_hc { + reset-gpios =3D <&tlmm 175 GPIO_ACTIVE_LOW>; + + vcc-supply =3D <&vreg_l7b_2p96>; + vcc-max-microamp =3D <800000>; + /* + * Technically l9b enables an eLDO (supplied by s1b) which then powers + * VCCQ2 of the UFS. + */ + vccq-supply =3D <&vreg_l9b_1p2>; + vccq-max-microamp =3D <900000>; + + status =3D "okay"; +}; + +&ufs_mem_phy { + vdda-phy-supply =3D <&vdd_a_ufs_0_core>; + vdda-pll-supply =3D <&vdd_a_ufs_0_1p2>; + + status =3D "okay"; +}; + +&usb_1 { + /* USB 2.0 only */ + qcom,select-utmi-as-pipe-clk; + + dr_mode =3D "otg"; + usb-role-switch; + maximum-speed =3D "high-speed"; + /* Remove USB3 phy */ + phys =3D <&usb_1_hsphy>; + phy-names =3D "usb2-phy"; + + status =3D "okay"; +}; + +&usb_1_dwc3_hs { + remote-endpoint =3D <&pmic_glink_hs_in>; +}; + +&usb_1_hsphy { + vdda-pll-supply =3D <&vdd_a_usbhs_core>; + vdda18-supply =3D <&vdd_a_usbhs_1p8>; + vdda33-supply =3D <&vdd_a_usbhs_3p1>; + + status =3D "okay"; +}; + +&venus { + firmware-name =3D "qcom/sm7325/xiaomi/lisa/vpu20_1v.mbn"; + + status =3D "okay"; +}; + +&wifi { + status =3D "okay"; +}; --=20 2.55.0