From nobody Tue Feb 10 18:58:52 2026 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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/Makef= ile 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) +=3D \ 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/ar= m/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 =3D "Samsung Galaxy Note 3"; + compatible =3D "samsung,hlte", "qcom,msm8974"; + chassis-type =3D "handset"; + + aliases { + mmc0 =3D &sdhc_1; /* SDC1 eMMC slot */ + mmc1 =3D &sdhc_3; /* SDC3 SD card slot */ + serial0 =3D &blsp1_uart1; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + + pinctrl-0 =3D <&gpio_keys_pin_a>; + pinctrl-names =3D "default"; + + key-home { + label =3D "Home Key"; + gpios =3D <&pm8941_gpios 3 GPIO_ACTIVE_LOW>; + linux,code =3D ; + wakeup-source; + debounce-interval =3D <15>; + }; + + key-volume-down { + label =3D "Volume Down"; + gpios =3D <&pm8941_gpios 2 GPIO_ACTIVE_LOW>; + linux,code =3D ; + debounce-interval =3D <15>; + }; + + key-volume-up { + label =3D "Volume Up"; + gpios =3D <&pm8941_gpios 5 GPIO_ACTIVE_LOW>; + linux,code =3D ; + debounce-interval =3D <15>; + }; + }; + + touch_ldo: regulator-touch { + compatible =3D "regulator-fixed"; + regulator-name =3D "touch-ldo"; + + gpio =3D <&pm8941_gpios 9 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-boot-on; + + pinctrl-0 =3D <&touch_ldo_pin>; + pinctrl-names =3D "default"; + }; +}; + +&blsp1_i2c2 { + status =3D "okay"; + + touchscreen@20 { + compatible =3D "syna,rmi4-i2c"; + reg =3D <0x20>; + + interrupt-parent =3D <&pm8941_gpios>; + interrupts =3D <30 IRQ_TYPE_EDGE_FALLING>; + + vdd-supply =3D <&pm8941_l10>; + vio-supply =3D <&touch_ldo>; + + pinctrl-0 =3D <&touch_pin>; + pinctrl-names =3D "default"; + + syna,startup-delay-ms =3D <100>; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + rmi4-f01@1 { + reg =3D <0x1>; + syna,nosleep-mode =3D <1>; + }; + + rmi4-f12@12 { + reg =3D <0x12>; + syna,sensor-type =3D <1>; + }; + }; +}; + +&blsp2_i2c6 { + status =3D "okay"; + + fuelgauge@36 { + compatible =3D "maxim,max17048"; + reg =3D <0x36>; + + maxim,double-soc; + maxim,rcomp =3D /bits/ 8 <0x56>; + + interrupt-parent =3D <&pm8941_gpios>; + interrupts =3D <26 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-0 =3D <&fuelgauge_pin>; + pinctrl-names =3D "default"; + }; +}; + +&blsp1_uart2 { + status =3D "okay"; +}; + +&pm8941_gpios { + gpio_keys_pin_a: gpio-keys-active-state { + pins =3D "gpio2", "gpio3", "gpio5"; + function =3D "normal"; + bias-pull-up; + power-source =3D ; + }; + + fuelgauge_pin: fuelgauge-int-state { + pins =3D "gpio26"; + function =3D "normal"; + bias-disable; + input-enable; + power-source =3D ; + }; + + touch_pin: touchscreen-int-state { + pins =3D "gpio30"; + function =3D "normal"; + bias-disable; + input-enable; + power-source =3D ; + }; + + touch_ldo_pin: touchscreen-ldo-state { + pins =3D "gpio9"; + function =3D "normal"; + output-high; + power-source =3D ; + qcom,drive-strength =3D ; + }; +}; + +&remoteproc_adsp { + cx-supply =3D <&pm8841_s2>; + status =3D "okay"; +}; + +&remoteproc_mss { + cx-supply =3D <&pm8841_s2>; + mss-supply =3D <&pm8841_s3>; + mx-supply =3D <&pm8841_s1>; + pll-supply =3D <&pm8941_l12>; + status =3D "okay"; +}; + +&rpm_requests { + regulators-0 { + compatible =3D "qcom,rpm-pm8841-regulators"; + + pm8841_s1: s1 { + regulator-min-microvolt =3D <675000>; + regulator-max-microvolt =3D <1050000>; + }; + + pm8841_s2: s2 { + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <1050000>; + }; + + pm8841_s3: s3 { + regulator-min-microvolt =3D <1050000>; + regulator-max-microvolt =3D <1050000>; + }; + + pm8841_s4: s4 { + regulator-min-microvolt =3D <815000>; + regulator-max-microvolt =3D <900000>; + }; + }; + + regulators-1 { + compatible =3D "qcom,rpm-pm8941-regulators"; + + pm8941_s1: s1 { + regulator-min-microvolt =3D <1300000>; + regulator-max-microvolt =3D <1300000>; + regulator-always-on; + }; + + pm8941_s2: s2 { + regulator-min-microvolt =3D <2150000>; + regulator-max-microvolt =3D <2150000>; + }; + + pm8941_s3: s3 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + }; + + pm8941_l1: l1 { + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1200000>; + }; + + pm8941_l2: l2 { + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1200000>; + }; + + pm8941_l3: l3 { + regulator-min-microvolt =3D <1050000>; + regulator-max-microvolt =3D <1225000>; + }; + + pm8941_l4: l4 { + regulator-min-microvolt =3D <1225000>; + regulator-max-microvolt =3D <1225000>; + }; + + pm8941_l5: l5 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + }; + + pm8941_l6: l6 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + }; + + pm8941_l7: l7 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + }; + + pm8941_l8: l8 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + }; + + pm8941_l9: l9 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <2950000>; + }; + + pm8941_l10: l10 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + }; + + pm8941_l11: l11 { + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1350000>; + }; + + pm8941_l12: l12 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-always-on; + }; + + pm8941_l13: l13 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <3300000>; + }; + + pm8941_l14: l14 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + }; + + pm8941_l15: l15 { + regulator-min-microvolt =3D <2050000>; + regulator-max-microvolt =3D <2050000>; + }; + + pm8941_l16: l16 { + regulator-min-microvolt =3D <2700000>; + regulator-max-microvolt =3D <2700000>; + }; + + pm8941_l17: l17 { + regulator-min-microvolt =3D <2850000>; + regulator-max-microvolt =3D <3000000>; + }; + + pm8941_l18: l18 { + regulator-min-microvolt =3D <2850000>; + regulator-max-microvolt =3D <2850000>; + }; + + pm8941_l19: l19 { + regulator-min-microvolt =3D <2900000>; + regulator-max-microvolt =3D <3350000>; + }; + + pm8941_l20: l20 { + regulator-min-microvolt =3D <2950000>; + regulator-max-microvolt =3D <2950000>; + regulator-system-load =3D <200000>; + regulator-allow-set-load; + }; + + pm8941_l21: l21 { + regulator-min-microvolt =3D <2950000>; + regulator-max-microvolt =3D <2950000>; + regulator-system-load =3D <200000>; + regulator-allow-set-load; + }; + + pm8941_l22: l22 { + regulator-min-microvolt =3D <2500000>; + regulator-max-microvolt =3D <3000000>; + }; + + pm8941_l23: l23 { + regulator-min-microvolt =3D <2400000>; + regulator-max-microvolt =3D <3300000>; + }; + + pm8941_l24: l24 { + regulator-min-microvolt =3D <3075000>; + regulator-max-microvolt =3D <3075000>; + }; + }; +}; + +&sdhc_1 { + vmmc-supply =3D <&pm8941_l20>; + vqmmc-supply =3D <&pm8941_s3>; + + pinctrl-0 =3D <&sdhc1_pin_a>; + pinctrl-names =3D "default"; + + status =3D "okay"; +}; + +&sdhc_3 { + max-frequency =3D <100000000>; + + vmmc-supply =3D <&pm8941_l21>; + vqmmc-supply =3D <&pm8941_l21>; + + pinctrl-0 =3D <&sdhc3_pin_a>; + pinctrl-names =3D "default"; + + status =3D "okay"; +}; + +&tlmm { + sdhc1_pin_a: sdhc1-pin-active-state { + clk-pins { + pins =3D "sdc1_clk"; + drive-strength =3D <4>; + bias-disable; + }; + + cmd-data-pins { + pins =3D "sdc1_cmd", "sdc1_data"; + drive-strength =3D <4>; + bias-pull-up; + }; + }; + + sdhc3_pin_a: sdhc3-pin-active-state { + pins =3D "gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40"; + function =3D "sdc3"; + drive-strength =3D <8>; + bias-disable; + }; +}; + +&usb { + phys =3D <&usb_hs1_phy>; + phy-select =3D <&tcsr 0xb000 0>; + + hnp-disable; + srp-disable; + adp-disable; + + status =3D "okay"; +}; + +&usb_hs1_phy { + v1p8-supply =3D <&pm8941_l6>; + v3p3-supply =3D <&pm8941_l24>; + + qcom,init-seq =3D /bits/ 8 <0x1 0x64>; + + status =3D "okay"; +}; --=20 2.44.0