From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.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 53D41486B8A for ; Thu, 10 Sep 2026 12:27:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789043267; cv=none; b=YG0kN5hAtRw8E2281K2E9m3Lk7mOaYgn9Pc0GoIx1+TCQwHRKQJ/L1PyWxSO1gCckWJ675Qr/aidC3E1i9QiJSjTBeuXW3qFgiNWP4yHDYp5Qn63cfDNJtINE9bt/NDSosyHZNo4OVSDD2r8YzVOvDy9u1ox6ABpwsGOBr3hkHc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789043267; c=relaxed/simple; bh=y7qTaUqOuDmovjKbFqe/kBler1pzDLA/0TpRGZrsYhc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BeAv/cSS0QBbIdcCNTXbQW/+V9niQszS1kJ/imyAH0zM8oF8tcdVtjy6b5f1y6SmBKeKkBd5eVuk7u3oU1kFZCwPtYcq1NGVPcMoyIbikHPJAezixv5HF7JA1aVgAIBCGU9FeXjPnXbBKxyPQhZ8nMT03+a/rNMQC7Weq1qoH7Q= 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=faG14dNF; arc=none smtp.client-ip=209.85.218.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="faG14dNF" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-c294183384fso248546766b.1 for ; Thu, 10 Sep 2026 05:27:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789043262; x=1789648062; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ovYk5oD81cOi3Vk9u8rJLzZKtEkaCEJKfLyOwquiyf8=; b=faG14dNFRp5BclU33zxTUQnYKzvA0qVDmcHlhBZeMmr8IRaj0vJr/lGt6U1aYyAEJM LH9hTptqVqY4LE0ouiEkQP6Des2gXi/fb0fe8PfqSKYSIGHWkK774x2OWxzULEFl2GvZ u/q3nUQJyZzYKOa2Jp2H1riIc6bC5JIREIMnwO9yLyRmnXuWBI9iLAghAjZMCbr5+qtW 2MmgI4VZd8SdcxHr79WxS9Yu8/PSphIp1V5XhYJMheQJzLhhAHK6Lk04uFgaoaiyDlnQ RFmkU9XgaOkUHJnTE/8XUwjw+Culm9o04KaLQQ6Pi/4or2Piyi7empja2xH5HQXQglW3 e7Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789043262; x=1789648062; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ovYk5oD81cOi3Vk9u8rJLzZKtEkaCEJKfLyOwquiyf8=; b=ehF28SMBt3BpGmC8WNtKkFYefgfQT9UniDwXwlH45db8bdnlpyKvHz0z7Y0cJ/ILoj 6tDA5a4sP8lo65mmKcHSuG1csQhydDaH9MfxLYtwGEj8QqJxV9tH0nsjavlKF2shdhNB K9EFjYk/ezHD3bjLq+E7eZ7oIpbirB9BGLejrpMSIuaquK+Kb+/J/xmuSCzYG6AJvUHG dG5Eg52t19vj5g+kmEtea0SRPDhFWAiEOc6sr3hlpJDUJAi5Y/JKmNCxSeTA9PC3HpDD QZLSfPOJ413tRLTdwK1yY+8jbFD/pb4osROPd3ZIUad5NsdHpoAW75PZy15H+tLnqGvq OfKg== X-Forwarded-Encrypted: i=1; AKwUvBwNBn9kjK0IY2Y4OE9HZzOk62yFotf/8Ny0P2WrYIq4l4NjBxTRG/8Q3y+7uvE/3v7NMwRhaALTApcYy+I=@vger.kernel.org X-Gm-Message-State: AFuF++mOW5Jj3mirtxsHxXcsUxe+Tuhud5b+dPjC2gGzCcZDVERPVupT IpYF+2/9BlUovw9norB0xyfpmLBIrWFCOpyDbkywfUjO0FcBml7m4d75 X-Gm-Gg: AYBFou1DHmwBRDhhdxMFQSh8PSO8LCNKIOK6nnf1U0+tGuZlof5Udx96o6NpZl1rqVw cQlUnVIBWYteqGoHn/zyPGBNwcPOKWEd5vDnzBV967EHxbGp8jQ8Mxv1I2DPsA1tfrpz3lonlv2 VASlqxpkkqPkTfMsRQPDULPmqY5TSmYALz6IvNW+DTb5ADXclk7gnQYR+RzPcGCIbQyYpe61YdY 3fjkU9ChrVhOziaB8Gge/8+nHANCSsj2gD60T7DFwrx2PeALeue0Xbx3O642c9Q9t24du/RoiXb goT1S2ogdUKneVQgDp7K6pq9pizzpT1HIThREetnzrUWMD9XmoySxSY4R9bTMKr6x7w4JPhWMX0 fugLg27NCeNXHKbKSm3UrbZ1F+8lSVpEQxc7Ms5fw1EdZ7+stzEtZOUmK8Rcepv0IPoC2GycbhA Yhotw+fgspkahGv31vXh8e8hzDDsMMPOKdyG645JqPV47KhkOcBoBtDll0fseHXF+itKrmCaSw X-Received: by 2002:a17:907:3e1d:b0:c21:9870:c4f7 with SMTP id a640c23a62f3a-c260c9f91f5mr1642421766b.20.1789043262017; Thu, 10 Sep 2026 05:27:42 -0700 (PDT) Received: from [192.168.0.68] ([79.133.247.80]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c2951217d12sm65136066b.44.2026.09.10.05.27.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2026 05:27:40 -0700 (PDT) From: Erikas Bitovtas Date: Thu, 10 Sep 2026 15:27:23 +0300 Subject: [PATCH RESEND v3 3/3] arm64: dts: qcom: sm7125-samsung: add initial device tree Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260910-sm7125-samsung-v3-3-c467bea0fb9c@gmail.com> References: <20260910-sm7125-samsung-v3-0-c467bea0fb9c@gmail.com> In-Reply-To: <20260910-sm7125-samsung-v3-0-c467bea0fb9c@gmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bartosz Golaszewski , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Hansson , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, David Heidelberg , Erikas Bitovtas , Konrad Dybcio X-Mailer: b4 0.15.2 Samsung Galaxy A52/A72 are devices released on atoll (SM7125) platform in 2021. Add initial device tree for SM7125 Samsung platform with support for: - Framebuffer - GPIO keys - Hall sensor - Vibrator - Regulators - Reset input - Real-time clock - SD card - UFS - USB Tested-by: Stefan Hansson Reviewed-by: Konrad Dybcio Reviewed-by: David Heidelberg Signed-off-by: Erikas Bitovtas --- arch/arm64/boot/dts/qcom/Makefile | 2 + arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts | 20 + arch/arm64/boot/dts/qcom/sm7125-samsung-a72q.dts | 20 + .../arm64/boot/dts/qcom/sm7125-samsung-common.dtsi | 536 +++++++++++++++++++++ 4 files changed, 578 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 1c86e7e98f55..874db77c0e25 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -349,6 +349,8 @@ dtb-$(CONFIG_ARCH_QCOM) += sm6125-xiaomi-laurel-sprout.dtb dtb-$(CONFIG_ARCH_QCOM) += sm6125-xiaomi-willow.dtb dtb-$(CONFIG_ARCH_QCOM) += sm6350-sony-xperia-lena-pdx213.dtb dtb-$(CONFIG_ARCH_QCOM) += sm6375-sony-xperia-murray-pdx225.dtb +dtb-$(CONFIG_ARCH_QCOM) += sm7125-samsung-a52q.dtb +dtb-$(CONFIG_ARCH_QCOM) += sm7125-samsung-a72q.dtb dtb-$(CONFIG_ARCH_QCOM) += sm7125-xiaomi-curtana.dtb dtb-$(CONFIG_ARCH_QCOM) += sm7125-xiaomi-joyeuse.dtb dtb-$(CONFIG_ARCH_QCOM) += sm7225-fairphone-fp4.dtb diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts b/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts new file mode 100644 index 000000000000..ecba5be8164e --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * SM7125 Samsung Galaxy A52 (a52q) specific device tree source + * + * Copyright (c) 2026, Erikas Bitovtas. All rights reserved. + */ + +/dts-v1/; + +#include "sm7125-samsung-common.dtsi" + +/ { + model = "Samsung Galaxy A52"; + compatible = "samsung,a52q", "qcom,sm7125"; + qcom,board-id = <0x22 0x6>; +}; + +&rmtfs_mem { + reg = <0x0 0xf4f00000 0x0 0x202000>; +}; diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-a72q.dts b/arch/arm64/boot/dts/qcom/sm7125-samsung-a72q.dts new file mode 100644 index 000000000000..f18d03de1585 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-a72q.dts @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * SM7125 Samsung Galaxy A72 (a72q) specific device tree source + * + * Copyright (c) 2026, Erikas Bitovtas. All rights reserved. + */ + +/dts-v1/; + +#include "sm7125-samsung-common.dtsi" + +/ { + model = "Samsung Galaxy A72"; + compatible = "samsung,a72q", "qcom,sm7125"; + qcom,board-id = <0x22 0x5>; +}; + +&rmtfs_mem { + reg = <0x0 0xf3700000 0x0 0x202000>; +}; diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi new file mode 100644 index 000000000000..b8863e111bc4 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi @@ -0,0 +1,536 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * SM7125 Samsung common device tree source + * + * Copyright (c) 2026, Erikas Bitovtas. All rights reserved. + */ + +#include +#include +#include +#include +#include "sm7125.dtsi" +#include "pm6150.dtsi" +#include "pm6150l.dtsi" + +/delete-node/ &rmtfs_mem; +/delete-node/ &ipa_fw_mem; +/delete-node/ &tz_mem; + +/ { + chassis-type = "handset"; + + qcom,msm-id = ; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer@9c000000 { + compatible = "simple-framebuffer"; + memory-region = <&cont_splash_mem>; + width = <1080>; + height = <2400>; + stride = <(1080 * 4)>; + format = "a8r8g8b8"; + clocks = <&gcc GCC_DISP_HF_AXI_CLK>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&key_vol_up_default>, <&hall_sensor_default>; + pinctrl-names = "default"; + + button-vol-up { + label = "Volume Up"; + gpios = <&pm6150l_gpios 8 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + + event-hall-sensor { + label = "Hall Effect Sensor"; + gpios = <&pm6150_gpios 10 GPIO_ACTIVE_LOW>; + linux,input-type = ; + linux,code = ; + debounce-interval = <15>; + }; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + tz_mem: memory@80b00000 { + reg = <0x0 0x80b00000 0x0 0x7100000>; + no-map; + }; + + mpss_mem: memory@8b000000 { + reg = <0x0 0x8b000000 0x0 0x8900000>; + no-map; + }; + + wlan_mem: memory@93900000 { + reg = <0x0 0x93900000 0x0 0x200000>; + no-map; + }; + + ipa_fw_mem: memory@93b00000 { + reg = <0x0 0x93b00000 0x0 0x10000>; + no-map; + }; + + ipa_gsi_region: memory@93b10000 { + reg = <0x0 0x93b10000 0x0 0x5000>; + no-map; + }; + + gpu_mem: memory@93b15000 { + reg = <0x0 0x93b15000 0x0 0x2000>; + no-map; + }; + + adsp_mem: memory@93c00000 { + reg = <0x0 0x93c00000 0x0 0x3e00000>; + no-map; + }; + + camera_region: memory@97a00000 { + reg = <0x0 0x97a00000 0x0 0x500000>; + no-map; + }; + + pil_npu_region: memory@97f00000 { + reg = <0x0 0x97f00000 0x0 0x500000>; + no-map; + }; + + venus_mem: memory@98400000 { + reg = <0x0 0x98400000 0x0 0x500000>; + no-map; + }; + + cdsp_mem: memory@98900000 { + reg = <0x0 0x98900000 0x0 0x1e00000>; + no-map; + }; + + cont_splash_mem: memory@9c000000 { + reg = <0x0 0x9c000000 0x0 (1080 * 2400 * 4)>; + no-map; + }; + + qseecom_region: memory@9e000000 { + reg = <0x0 0x9e000000 0x0 0x2000000>; + no-map; + }; + + pstore_mem: ramoops@b4600000 { + compatible = "ramoops"; + reg = <0x0 0xb4600000 0x0 0x100000>; + record-size = <0x40000>; + console-size = <0x40000>; + ftrace-size = <0x40000>; + pmsg-size = <0x40000>; + }; + + rmtfs_mem: memory { + compatible = "qcom,rmtfs-mem"; + qcom,use-guard-pages; + no-map; + + qcom,client-id = <1>; + qcom,vmid = ; + }; + }; + + vibrator { + compatible = "gpio-vibrator"; + enable-gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>; + }; +}; + +&apps_rsc { + regulators-0 { + compatible = "qcom,pm6150-rpmh-regulators"; + qcom,pmic-id = "a"; + + vreg_s1a_1p1: smps1 { + regulator-min-microvolt = <1128000>; + regulator-max-microvolt = <1128000>; + }; + + vreg_s4a_1p0: smps4 { + regulator-min-microvolt = <824000>; + regulator-max-microvolt = <1120000>; + }; + + vreg_s5a_2p0: smps5 { + regulator-min-microvolt = <1744000>; + regulator-max-microvolt = <2040000>; + }; + + vreg_l1a_1p2: ldo1 { + regulator-min-microvolt = <1178000>; + regulator-max-microvolt = <1256000>; + regulator-initial-mode = ; + }; + + vreg_l2a_1p0: ldo2 { + regulator-min-microvolt = <944000>; + regulator-max-microvolt = <1056000>; + regulator-initial-mode = ; + }; + + vreg_l3a_1p0: ldo3 { + regulator-min-microvolt = <968000>; + regulator-max-microvolt = <1064000>; + regulator-initial-mode = ; + }; + + vreg_l4a_0p9: ldo4 { + regulator-min-microvolt = <824000>; + regulator-max-microvolt = <928000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l5a_2p7: ldo5 { + regulator-min-microvolt = <3304000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l6a_0p6: ldo6 { + regulator-min-microvolt = <568000>; + regulator-max-microvolt = <648000>; + regulator-initial-mode = ; + }; + + vdd_cx_wlan: + vreg_l9a_0p8: ldo9 { + regulator-min-microvolt = <488000>; + regulator-max-microvolt = <800000>; + regulator-initial-mode = ; + }; + + vreg_l10a_1p8: ldo10 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1832000>; + regulator-initial-mode = ; + }; + + vreg_l11a_1p8: ldo11 { + regulator-min-microvolt = <1696000>; + regulator-max-microvolt = <1904000>; + regulator-initial-mode = ; + }; + + vreg_l12a_1p8: ldo12 { + regulator-min-microvolt = <1696000>; + regulator-max-microvolt = <1952000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l13a_1p8: ldo13 { + regulator-min-microvolt = <1696000>; + regulator-max-microvolt = <1904000>; + regulator-initial-mode = ; + }; + + vreg_l14a_1p8: ldo14 { + regulator-min-microvolt = <1728000>; + regulator-max-microvolt = <1832000>; + regulator-initial-mode = ; + }; + + vreg_l15a_1p8: ldo15 { + regulator-min-microvolt = <1696000>; + regulator-max-microvolt = <1904000>; + regulator-initial-mode = ; + }; + + vreg_l16a_2p7: ldo16 { + regulator-min-microvolt = <2496000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l17a_3p1: ldo17 { + regulator-min-microvolt = <2920000>; + regulator-max-microvolt = <3232000>; + regulator-initial-mode = ; + }; + + vreg_l18a_3p0: ldo18 { + regulator-min-microvolt = <2496000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l19a_2p85: ldo19 { + regulator-min-microvolt = <2696000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + }; + + regulators-1 { + compatible = "qcom,pm6150l-rpmh-regulators"; + qcom,pmic-id = "c"; + + vreg_s8c_1p3: smps8 { + regulator-min-microvolt = <1120000>; + regulator-max-microvolt = <1408000>; + }; + + vreg_l1c_1p8: ldo1 { + regulator-min-microvolt = <1616000>; + regulator-max-microvolt = <1984000>; + regulator-initial-mode = ; + }; + + vreg_l2c_1p3: ldo2 { + regulator-min-microvolt = <1168000>; + regulator-max-microvolt = <1304000>; + regulator-initial-mode = ; + }; + + vreg_l3c_1p2: ldo3 { + regulator-min-microvolt = <1144000>; + regulator-max-microvolt = <1304000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + + vreg_l4c_1p8: ldo4 { + regulator-min-microvolt = <1648000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l5c_1p8: ldo5 { + regulator-min-microvolt = <1648000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l6c_3p0: ldo6 { + regulator-min-microvolt = <1648000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l7c_3p0: ldo7 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-initial-mode = ; + }; + + vreg_l8c_1p8: ldo8 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + + vreg_l9c_2p95: ldo9 { + regulator-min-microvolt = <2952000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l10c_3p3: ldo10 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3400000>; + regulator-initial-mode = ; + }; + + vreg_l11c_3p3: ldo11 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3400000>; + regulator-initial-mode = ; + }; + + vreg_bob: bob { + regulator-min-microvolt = <3008000>; + regulator-max-microvolt = <3960000>; + regulator-initial-mode = ; + }; + }; +}; + +&dispcc { + /* HACK: disable until a panel driver is ready to retain simplefb */ + status = "disabled"; +}; + +&pm6150l_gpios { + key_vol_up_default: key-vol-up-default-state { + pins = "gpio8"; + function = "normal"; + input-enable; + bias-pull-up; + power-source = <0>; + }; +}; + +&pm6150_gpios { + hall_sensor_default: hall-sensor-default-state { + pins = "gpio10"; + function = "normal"; + output-disable; + bias-disable; + power-source = <0>; + }; +}; + +&pm6150_pon { + /* + * LinuxLoader fastboot implementation has most of its commands removed + * by Samsung, making it useless. So reboot to Odin download mode instead. + */ + mode-bootloader = <0x15>; +}; + +&pm6150_resin { + linux,code = ; + + status = "okay"; +}; + +&pm6150_rtc { + status = "okay"; +}; + +&qfprom { + vcc-supply = <&vreg_l11a_1p8>; +}; + +&sdhc_2 { + vmmc-supply = <&vreg_l9c_2p95>; + vqmmc-supply = <&vreg_l6c_3p0>; + cd-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + pinctrl-names = "default", "sleep"; + + status = "okay"; +}; + +&tlmm { + gpio-reserved-ranges = <59 4>; /* Fingerprint sensor SPI */ + + sdc2_on: sdc2-on-state { + clk-pins { + pins = "sdc2_clk"; + bias-disable; + drive-strength = <16>; + }; + + cmd-pins { + pins = "sdc2_cmd"; + bias-pull-up; + drive-strength = <10>; + }; + + data-pins { + pins = "sdc2_data"; + bias-pull-up; + drive-strength = <10>; + }; + + sd-cd-pins { + pins = "gpio69"; + function = "gpio"; + bias-pull-up; + drive-strength = <2>; + }; + }; + + sdc2_off: sdc2-off-state { + clk-pins { + pins = "sdc2_clk"; + bias-disable; + drive-strength = <2>; + }; + + cmd-pins { + pins = "sdc2_cmd"; + bias-pull-up; + drive-strength = <2>; + }; + + data-pins { + pins = "sdc2_data"; + bias-pull-up; + drive-strength = <2>; + }; + + sd-cd-pins { + pins = "gpio69"; + function = "gpio"; + bias-pull-up; + drive-strength = <2>; + }; + }; +}; + +&ufs_mem_hc { + vcc-supply = <&vreg_l19a_2p85>; + vcc-max-microamp = <600000>; + vccq2-supply = <&vreg_l12a_1p8>; + vccq2-max-microamp = <600000>; + + status = "okay"; +}; + +&ufs_mem_phy { + vdda-phy-supply = <&vreg_l4a_0p9>; + vdda-pll-supply = <&vreg_l3c_1p2>; + + status = "okay"; +}; + +&usb_1 { + qcom,select-utmi-as-pipe-clk; + + status = "okay"; +}; + +&usb_1_dwc3 { + dr_mode = "peripheral"; + maximum-speed = "high-speed"; + + status = "okay"; +}; + +&usb_1_hsphy { + vdd-supply = <&vreg_l4a_0p9>; + vdda-pll-supply = <&vreg_l11a_1p8>; + vdda-phy-dpdm-supply = <&vreg_l17a_3p1>; + + status = "okay"; +}; + +&usb_1_qmpphy { + vdda-phy-supply = <&vreg_l4a_0p9>; + vdda-pll-supply = <&vreg_l3c_1p2>; + + status = "okay"; +}; -- 2.55.0