From patchwork Thu Mar 14 19:00:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13592677 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (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 44BCE7580B; Thu, 14 Mar 2024 19:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710442839; cv=none; b=PIeR0uRL5BgSHo9GxN/OZxnNpXkGcPNb+6hGYc7Rzc/BVdN6GGoOjFp+LbKtr+8fUp+HvSTlShJzzNjhPawfxwULeXriN3SQsKQiV+dvAsy7raG9m2zGqK5j8LHesrnrOCPDRU3D7wq2wC885K9sa9h2/VsMWCsYK3jtDstNX+s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710442839; c=relaxed/simple; bh=eNFJevqRfDLr0CaUl1lVdY/o04DrNw/s+YIbhdNYSfU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kkn6wuym+pl057aiA4OITp9otnv6/GCWwy7kNya/STnZWUhsYoswOVb0uk/zEC08KFP0e+WsXy7vzDRAutAiFFht4gDfd1UxEPDne5V6IYDmt1NFOo+BFQMJIHNdjWWOa2Pvo9wS4uJU5ceQJnbB/cgvWPZ7hiDtxnctJL7hz9E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz; spf=pass smtp.mailfrom=z3ntu.xyz; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b=IC9AqsZe; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="IC9AqsZe" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1710442828; bh=eNFJevqRfDLr0CaUl1lVdY/o04DrNw/s+YIbhdNYSfU=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=IC9AqsZeYYVr3QiXp8gW28WfCV+opLsWGmH6eqWazeJlrjWQxTvs9s6Lth6xFkTUb mPT2ObY6m8TFcqj1PB5z2XIkZZraZDGMZi+21GxBXW/XBv/+XBewJvl8MkOTxp4XVy pBDTVWyGjWfoKF266YIrcVXHAI5DcU95+zZvTEzo= From: Luca Weiss Date: Thu, 14 Mar 2024 20:00:14 +0100 Subject: [PATCH v2 1/2] dt-bindings: arm: qcom: Add Samsung Galaxy Note 3 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240314-samsung-hlte-v2-1-84094b41c033@z3ntu.xyz> References: <20240314-samsung-hlte-v2-0-84094b41c033@z3ntu.xyz> In-Reply-To: <20240314-samsung-hlte-v2-0-84094b41c033@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Adam Honse Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=815; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=eNFJevqRfDLr0CaUl1lVdY/o04DrNw/s+YIbhdNYSfU=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBl80lDITKD63qIo+hj/Eih3pc5U1noMB7LAXJfP 0vvC/TTiQaJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZfNJQwAKCRBy2EO4nU3X VnM5D/9fPCeaulAQxOysZYE1UwaWPfschbXq6CYKG43q/ilI24f2+S60+DAVfiGZNocPcww63m5 XTWoKwQTlC6MIuQEevoT5ZcThqiAqylzV252guSWqxNlCyim4dOQBocC/BKdylp7b7/s5IQ8275 NodU03hwlH5kAEAk7wD+DyFGT8rPuPyiAW2WiqKIqg+jztDj7yiayXRWVvfRJE/89C997xvO5oK JTcVOUknsTjzc7GOgwvTmjPxR9fq1N9b8DB4vrrHo3PsbUOvz/dzignmL3ADIKyzyP0IGAdjFgD fARCowRgBscXR06rReR0Eapzj1wUzNVPEsIMyjTJVMgiRBJJMz/mhSeriAsgerxlOQhHU1Tp3Tr plegxJK7SIhNbZjfHy1LyWVYkUt0wC9cewSOBUHiF+qgA5NKSRo80+qOUuFP0XRPF/R8yn/dB3V 9wIZ+fgTyeNeCk0TBhoomdRY33INWjxJjkzOVIdF9ffMGsGgbuUYd0AkrkKpxszZzacbLHVEQj1 jI8HTi4dOf0ILAk6lDIV+H2nfloFPrnji7np42fwryonztfADYLCtwusT9Vf6dBxHOwp7mJ8MTQ BKyyF2/OKvrv1EZbpmCwPNp4rVqmOnNxeC8XVQC41H9kilVlIZQtjYQPMBuPMhYhNc2XBekBBGC dux7zCon3IcYteg== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Add the compatible for this Samsung smartphone ("phablet" as it was named in that era). Acked-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- 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 1a5fb889a444..57182bfa27ee 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -214,6 +214,7 @@ properties: - items: - enum: - lge,hammerhead + - samsung,hlte - sony,xperia-amami - sony,xperia-honami - const: qcom,msm8974 From patchwork Thu Mar 14 19:00:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13592676 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (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 95F537580D; Thu, 14 Mar 2024 19:00:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710442836; cv=none; b=cL27MvrMVIFsrLGoGW0saw5it3RRKEvd3IHYxfKtwqQACAcoKiWtTU/dzAqQs0QnsQOtsjVKoKwweZsFk2pCb1T5FcKBY9SCCmeomsaoGEuLeo0BGz6dK7kqij3geJuCpS2AEivIKuJaDhU5v9jmt+7s3rTnP36L/Ng/7bDNFA4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710442836; c=relaxed/simple; bh=k1EUM52/pGtlQBvmoPyzLXh9QwDn2Kef17+1XtrFe6Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bkMKxFDUG53Q2r1p9TTgqSsl/CcskIh9/78Ps8rzL0GRgholFDsYfpJ9p5IY/zBGOgS2NLCFl8l8IFJngEye1UPJrc1AO3c8uOSuyNbFCOiyDQwZLBMYW+2Qo2BvOlmToqVQcmI7w4V0uLW+W8/wdZ2O6Cbd6FHovktkRk8M54k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz; spf=pass smtp.mailfrom=z3ntu.xyz; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b=4U+gO66B; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="4U+gO66B" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1710442831; bh=k1EUM52/pGtlQBvmoPyzLXh9QwDn2Kef17+1XtrFe6Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=4U+gO66BoN71oewdRZp0SIiflNSryRgl5/OssbLZAgssM26ijKmXpG3vCDeCuwn4q eW4L1gIKkvz/siQ8Eh6F2It7VDEI/PV1st4NYQbLw1BDIvt9WPO2pfL9QQO3W77KAW WM/8EbycAaIMwlkdg80b35b4zPRaEXBBkKSAZ244= From: Luca Weiss Date: Thu, 14 Mar 2024 20:00:15 +0100 Subject: [PATCH v2 2/2] ARM: dts: qcom: msm8974: Add Samsung Galaxy Note 3 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240314-samsung-hlte-v2-2-84094b41c033@z3ntu.xyz> References: <20240314-samsung-hlte-v2-0-84094b41c033@z3ntu.xyz> In-Reply-To: <20240314-samsung-hlte-v2-0-84094b41c033@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Adam Honse Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=9723; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=hNrgnYCIw05P6KejFkBsgEIJHGH4vf3pz20hJhZSyuU=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBl80lErhjBUZc8EACELo0tjjwprMvcMgp4edr3F bYiACmOUKKJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZfNJRAAKCRBy2EO4nU3X VmVqD/9ujc/LtJESLyVPx0O3J11/Bb2tfupK6X0s2x0X5fhCgwRpDcQ9V30hPhYzgxGF2B5GXov G+kzJ/I4n0R4Ni3I0isDcTmwY0IFCPWRgrUA0hdNpbLNVDmY6cX5FE6v+dWq7Ru85zRRCsdW626 iuGkJ38SBnBXdNbPTfjMhSWKADT842Fe/S54WbWjQ/ERDQCW9YVU5TB82GDVE1V4j0Vfvt+3inN tvL4jNFULoSIc9AqD+xSWlzp+dD6QA/iV1rtE7/1ylG04DORz26FJOyqa7GIkpfMT1MipR8rDA1 UuWu8r92/ZO4E5TyK/MKux69KyqtoV75495aiOoo7foPMGd3AaxN35wGpIrh2MS/6QYk03BvchC D6Fc+Eaos0gNE0Eqx/LJLM6GJg0QSDQCGcYxDzGvx6sCWEXQFsG/1xlMuQQLkr2Iud6RSiaQ/YG q36mi5Qpn9yZSMi7ARf5rIs7VHW1i45gXMhx6g4uVS0XONKBwoWhv3hVUsYcVCVLorahSyODI3x Zouo49qgLaYYRBx5vWUK2unUa/RqWiMdJTIozMce9zH2kr8EftLzCJk3zyhQ6Pa2XmXdP6TFWhn /xZAN9W9I8ZLi0libVgIKQ9f1ovGwgscOe0U2mxJ+QiXURRG5EbOrD/fqhjWpjcvujEDnOhHExe 0YKShF6Les2yKTA== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD From: Adam Honse Add the devicetree for this "phablet" using the Snapdragon 800 SoC. Signed-off-by: Adam Honse [luca@z3ntu.xyz: clean up, prepare for upstream] Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/qcom-msm8974-samsung-hlte.dts | 401 +++++++++++++++++++++ 2 files changed, 402 insertions(+) diff --git a/arch/arm/boot/dts/qcom/Makefile b/arch/arm/boot/dts/qcom/Makefile index 9cc1e14e6cd0..845af12d15a2 100644 --- a/arch/arm/boot/dts/qcom/Makefile +++ b/arch/arm/boot/dts/qcom/Makefile @@ -39,6 +39,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-msm8960-cdp.dtb \ qcom-msm8960-samsung-expressatt.dtb \ qcom-msm8974-lge-nexus5-hammerhead.dtb \ + qcom-msm8974-samsung-hlte.dtb \ qcom-msm8974-sony-xperia-rhine-amami.dtb \ qcom-msm8974-sony-xperia-rhine-honami.dtb \ qcom-msm8974pro-fairphone-fp2.dtb \ diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974-samsung-hlte.dts b/arch/arm/boot/dts/qcom/qcom-msm8974-samsung-hlte.dts new file mode 100644 index 000000000000..903bb4d12513 --- /dev/null +++ b/arch/arm/boot/dts/qcom/qcom-msm8974-samsung-hlte.dts @@ -0,0 +1,401 @@ +// SPDX-License-Identifier: GPL-2.0 +#include "qcom-msm8974.dtsi" +#include "pm8841.dtsi" +#include "pm8941.dtsi" +#include +#include +#include + +/ { + model = "Samsung Galaxy Note 3"; + compatible = "samsung,hlte", "qcom,msm8974"; + chassis-type = "handset"; + + aliases { + mmc0 = &sdhc_1; /* SDC1 eMMC slot */ + mmc1 = &sdhc_3; /* SDC3 SD card slot */ + serial0 = &blsp1_uart1; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&gpio_keys_pin_a>; + pinctrl-names = "default"; + + key-home { + label = "Home Key"; + gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + + key-volume-down { + label = "Volume Down"; + gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + + key-volume-up { + label = "Volume Up"; + gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + }; + + touch_ldo: regulator-touch { + compatible = "regulator-fixed"; + regulator-name = "touch-ldo"; + + gpio = <&pm8941_gpios 9 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-boot-on; + + pinctrl-0 = <&touch_ldo_pin>; + pinctrl-names = "default"; + }; +}; + +&blsp1_i2c2 { + status = "okay"; + + touchscreen@20 { + compatible = "syna,rmi4-i2c"; + reg = <0x20>; + + interrupt-parent = <&pm8941_gpios>; + interrupts = <30 IRQ_TYPE_EDGE_FALLING>; + + vdd-supply = <&pm8941_l10>; + vio-supply = <&touch_ldo>; + + pinctrl-0 = <&touch_pin>; + pinctrl-names = "default"; + + syna,startup-delay-ms = <100>; + + #address-cells = <1>; + #size-cells = <0>; + + rmi4-f01@1 { + reg = <0x1>; + syna,nosleep-mode = <1>; + }; + + rmi4-f12@12 { + reg = <0x12>; + syna,sensor-type = <1>; + }; + }; +}; + +&blsp2_i2c6 { + status = "okay"; + + fuelgauge@36 { + compatible = "maxim,max17048"; + reg = <0x36>; + + maxim,double-soc; + maxim,rcomp = /bits/ 8 <0x56>; + + interrupt-parent = <&pm8941_gpios>; + interrupts = <26 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-0 = <&fuelgauge_pin>; + pinctrl-names = "default"; + }; +}; + +&blsp1_uart2 { + status = "okay"; +}; + +&pm8941_gpios { + gpio_keys_pin_a: gpio-keys-active-state { + pins = "gpio2", "gpio3", "gpio5"; + function = "normal"; + bias-pull-up; + power-source = ; + }; + + fuelgauge_pin: fuelgauge-int-state { + pins = "gpio26"; + function = "normal"; + bias-disable; + input-enable; + power-source = ; + }; + + touch_pin: touchscreen-int-state { + pins = "gpio30"; + function = "normal"; + bias-disable; + input-enable; + power-source = ; + }; + + touch_ldo_pin: touchscreen-ldo-state { + pins = "gpio9"; + function = "normal"; + output-high; + power-source = ; + qcom,drive-strength = ; + }; +}; + +&remoteproc_adsp { + cx-supply = <&pm8841_s2>; + status = "okay"; +}; + +&remoteproc_mss { + cx-supply = <&pm8841_s2>; + mss-supply = <&pm8841_s3>; + mx-supply = <&pm8841_s1>; + pll-supply = <&pm8941_l12>; + status = "okay"; +}; + +&rpm_requests { + regulators-0 { + compatible = "qcom,rpm-pm8841-regulators"; + + pm8841_s1: s1 { + regulator-min-microvolt = <675000>; + regulator-max-microvolt = <1050000>; + }; + + pm8841_s2: s2 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1050000>; + }; + + pm8841_s3: s3 { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + }; + + pm8841_s4: s4 { + regulator-min-microvolt = <815000>; + regulator-max-microvolt = <900000>; + }; + }; + + regulators-1 { + compatible = "qcom,rpm-pm8941-regulators"; + + pm8941_s1: s1 { + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <1300000>; + regulator-always-on; + }; + + pm8941_s2: s2 { + regulator-min-microvolt = <2150000>; + regulator-max-microvolt = <2150000>; + }; + + pm8941_s3: s3 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8941_l1: l1 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + pm8941_l2: l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + pm8941_l3: l3 { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1225000>; + }; + + pm8941_l4: l4 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1225000>; + }; + + pm8941_l5: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8941_l6: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8941_l7: l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8941_l8: l8 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8941_l9: l9 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pm8941_l10: l10 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8941_l11: l11 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1350000>; + }; + + pm8941_l12: l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + pm8941_l13: l13 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + pm8941_l14: l14 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8941_l15: l15 { + regulator-min-microvolt = <2050000>; + regulator-max-microvolt = <2050000>; + }; + + pm8941_l16: l16 { + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <2700000>; + }; + + pm8941_l17: l17 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <3000000>; + }; + + pm8941_l18: l18 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + pm8941_l19: l19 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <3350000>; + }; + + pm8941_l20: l20 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + regulator-system-load = <200000>; + regulator-allow-set-load; + }; + + pm8941_l21: l21 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + regulator-system-load = <200000>; + regulator-allow-set-load; + }; + + pm8941_l22: l22 { + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3000000>; + }; + + pm8941_l23: l23 { + regulator-min-microvolt = <2400000>; + regulator-max-microvolt = <3300000>; + }; + + pm8941_l24: l24 { + regulator-min-microvolt = <3075000>; + regulator-max-microvolt = <3075000>; + }; + }; +}; + +&sdhc_1 { + vmmc-supply = <&pm8941_l20>; + vqmmc-supply = <&pm8941_s3>; + + pinctrl-0 = <&sdhc1_pin_a>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&sdhc_3 { + max-frequency = <100000000>; + + vmmc-supply = <&pm8941_l21>; + vqmmc-supply = <&pm8941_l21>; + + pinctrl-0 = <&sdhc3_pin_a>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&tlmm { + sdhc1_pin_a: sdhc1-pin-active-state { + clk-pins { + pins = "sdc1_clk"; + drive-strength = <4>; + bias-disable; + }; + + cmd-data-pins { + pins = "sdc1_cmd", "sdc1_data"; + drive-strength = <4>; + bias-pull-up; + }; + }; + + sdhc3_pin_a: sdhc3-pin-active-state { + pins = "gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40"; + function = "sdc3"; + drive-strength = <8>; + bias-disable; + }; +}; + +&usb { + phys = <&usb_hs1_phy>; + phy-select = <&tcsr 0xb000 0>; + + hnp-disable; + srp-disable; + adp-disable; + + status = "okay"; +}; + +&usb_hs1_phy { + v1p8-supply = <&pm8941_l6>; + v3p3-supply = <&pm8941_l24>; + + qcom,init-seq = /bits/ 8 <0x1 0x64>; + + status = "okay"; +};