From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (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 E6D7846F4A4 for ; Fri, 21 Aug 2026 12:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787315243; cv=none; b=Lmfdn5CA/WHVAm6x3ivygxzm/01+TxEsWgn3zFVw653rPE6mAil1S/rg1ogLr8lC2PYtd2ZEhOybz3PeED7HmuipaXlwBW62DHkFGT+Si2RQNboZsOHgQ5X2KjvW65Tc/xc0WwQQyo9pRN/sJGlGFINhrhPhfTWndUtMcR0/ync= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787315243; c=relaxed/simple; bh=1pBeOFInfo4f8OOSK/oz1Vqq5v7quohiuMcpWK+BHWM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cCIquBktNhNEuMpNAG+s9KzlzKdsTYngwVNlC9qtCr/8VXpf/C6f6JDO8ewfAfAqeOk5WejPgfyuywfBx2Iu2JwN+QBiRV0ATIIOD8rAwdAtngMQEt1oNSMm4mb0z3JrKwWikO9vX0zeDJyXk5kSoSN9goFZVGNRT6KAJH1LwcU= 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=jrGMgkFn; arc=none smtp.client-ip=209.85.208.51 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="jrGMgkFn" Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-6a17cb94b26so2007510a12.3 for ; Fri, 21 Aug 2026 05:27:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787315234; x=1787920034; 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=A3orM3enhWS/a0xspM0Ho2S9W+rwvYr4BPxZ7fEK5CM=; b=jrGMgkFnkRFGsgu3kaaobDXGsG4KahDqTjiCMkSSh6aKbYdFGx6NlVzxDixa/b5mlI ij/PPuf5g8uWWcywJwV6V5ep5+asORpZHGvSRpxLjBmmTVTbpml380rSj/UQFmz62c70 M8phYDPmJOgh7DjCImcYcsZBG5BdRKEJ0ihH5Tw+m4P40Puw8b3re1P1csvDe29gIcnO +tVKhsN7py0LsnIF78eQ2WCJHSaRepGRrDnSxCPxiRQwoCE7i3Qz9paOGl7Ngq5daJvO Lgw+CC0EWysNqwgAGtONEVA9YnhMhp4yP/QhzJMlLP4+vGTtF3876acH8UWaI/vdycU5 nyzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787315234; x=1787920034; 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=A3orM3enhWS/a0xspM0Ho2S9W+rwvYr4BPxZ7fEK5CM=; b=pIjz/LZ0at8w3CEFiP26PrhN8Res5uPBSlzrB28VTAkfkSTszqBvYO1enNdiNS8F2x yh0dBfb+QrH/ktiS9xIPgdODYKWliJkY1y2FzvR64mGCASKolEL8Lbov+2r0yEQl/lQN OMpRK2mn7/4pLaqDU40JO/ivCLfDilSkyhx9s9zdfsMhUsXFgzZB3eDbplBUXQoIuf9Q VZczNzR4CXi4e7+2E9JuXVetobJJc1WZC00na+jcb0KZHQTpPTTKBArEPbkY+yIVRY0b 1+CDG1K845LgmYedSKia4pT/KXpK+aBJahO00Y41SdrE04AX2wK8DN4lRdpufyr1DesS ecIw== X-Forwarded-Encrypted: i=1; AHgh+Rr9BXsD+7nEd/QLodU0Ct9UOe27s0Tvcm9NCmH/BVr0YmBKP5TGxIQEfmEoowZgi/ZKxgQoJuoGvn7n@vger.kernel.org X-Gm-Message-State: AFuF++l3jX00m1H+l7SPN46Vng15b6eZhTPTpo72kf1BNu3eP3HggVHo 3UbE5K3OMnKBExZK3QkYIVO2IA/Ul8ZIbRyFNz7liZktrtFKWH+c4Iy5 X-Gm-Gg: AR+sD11Ar74LTjSQm3OdZVpNAbXPafmTkgSCK/hnqIK3jpdGA4fT6UPfCzEro9KaoCp u4ACOH277BXP46EbwtqnFLgw2Nhpm4dzOCsyuwDeftzlxxpP0ijV2VGB8aFGR7kx7SmpBXDvljk H8OxkvxYKhBFs6Pl0nk/yrk7BgWi5fjql76IKHC5Iwn7FVnZ/iZksiU2vTBg3LyPXbXy9+QoNnz DpyPaSS7bWu/BFotIbTtidftyKM74mtmcaWos9MAYWMIoV7TUJ1TPSkDcyYW6VsQrmNOLIdnlnv 9MJxioRJAz0CUvingI4siK8K8y33J+6Mb8qbes0xF0isoYR/0BQx8MAT3mSNdzYKXCUyJDyc5mu Ld2Qyt097vMS1aj9sOwOUYv0kLzpiHGVYN8fe1UEzOgGNfcNdVmyegzg1DhvoBE8Oz/Atx6R8uH vOXI+nMz9oIXsrBiwDr/BPJ20sGb4Eq++mWyY+Ie8fG2rJCKjiEyqbDjTitqf23QHHwCgwk7hlC w3+PFsmtY7SLKvftXvZqi9bWgM= X-Received: by 2002:a05:6402:27c6:b0:6a3:f34d:8f67 with SMTP id 4fb4d7f45d1cf-6a42f19fca6mr6177275a12.5.1787315233842; Fri, 21 Aug 2026 05:27:13 -0700 (PDT) Received: from [127.0.1.1] (83.24.178.112.ipv4.supernova.orange.pl. [83.24.178.112]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6a3ff0c315dsm6220262a12.9.2026.08.21.05.27.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2026 05:27:13 -0700 (PDT) From: Adam Skladowski Date: Fri, 21 Aug 2026 14:27:04 +0200 Subject: [PATCH v5 5/7] arm64: dts: qcom: Add LeEco Le2 Precedence: bulk X-Mailing-List: devicetree@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: <20260821-next-patches-v5-5-ec81cee63e09@gmail.com> References: <20260821-next-patches-v5-0-ec81cee63e09@gmail.com> In-Reply-To: <20260821-next-patches-v5-0-ec81cee63e09@gmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Adam Skladowski X-Mailer: b4 0.15.2 Add a devicetree for the LeEco Le2 smartphone, which is based on the Eldarion/MSM8976 SoC. Supported functionality as of this initial submission: * I2C peripherals (Touchscreen,Audio amp, Haptics, Extcon, Led) * Power Button, Volume Keys * Regulators (PM8950) * WLED (PMI8950) * Remoteprocs (WCNSS) * GPU Device tree also contains supply maps to other subsystems like MDSS but due to missing dependencies like panel those are disabled. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts | 442 ++++++++++++++++++++++++++ 2 files changed, 443 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 11e953657691..1487f2beff3d 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -128,6 +128,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-tissot.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-vince.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-kugo.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-suzu.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8976-leeco-s2.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8976-longcheer-l9360.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-10.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-101.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts b/arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file mode 100644 index 000000000000..b6c652102ec6 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts @@ -0,0 +1,442 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * Copyright (c) 2026 Adam Skladowski + */ + +/dts-v1/; + +#include "msm8976.dtsi" +#include "pm8950.dtsi" +#include "pm8004.dtsi" +#include "pmi8950.dtsi" +#include +#include +#include +#include +#include +#include +#include +#include + +/ { + model = "Leeco Le S2"; + compatible = "leeco,s2", "qcom,msm8976"; + chassis-type = "handset"; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&gpio_key_default>; + pinctrl-names = "default"; + + key-volume-up { + label = "Volume Up"; + gpios = <&tlmm 113 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + reserved-memory { + /delete-node/ ext-region@85b00000; + + ext_region: memory@84a00000 { + reg = <0x0 0x84a00000 0x0 0x1900000>; + no-map; + }; + }; + + vph_pwr: regulator-vph-pwr { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on; + }; +}; + +&adreno_gpu { + status = "okay"; +}; + +&blsp1_i2c4 { + status = "okay"; + + touchscreen@4b { + compatible = "syna,rmi4-i2c"; + reg = <0x4b>; + interrupts-extended = <&tlmm 65 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-0 = <&touch_default_state>; + pinctrl-names = "default"; + + reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>; + + vdd-supply = <&pm8950_l17>; + vio-supply = <&pm8950_l6>; + + syna,reset-delay-ms = <100>; + syna,startup-delay-ms = <500>; + + #address-cells = <1>; + #size-cells = <0>; + + rmi4-f01@1 { + reg = <0x01>; + syna,nosleep-mode = <1>; + }; + + rmi4-f12@12 { + reg = <0x12>; + syna,sensor-type = <1>; + syna,clip-x-low = <0>; + syna,clip-x-high = <1080>; + syna,clip-y-low = <0>; + syna,clip-y-high = <1920>; + }; + }; +}; + +&blsp2_i2c2 { + status = "okay"; + + haptics: haptics@5a { + compatible = "ti,drv2604"; + reg = <0x5a>; + enable-gpios = <&tlmm 109 GPIO_ACTIVE_HIGH>; + mode = ; + library-sel = ; + }; + + tiusb320: typec@47 { + compatible = "ti,tusb320"; + reg = <0x47>; + interrupts-extended = <&tlmm 21 IRQ_TYPE_EDGE_RISING>; + + pinctrl-0 = <&tusb320_int_active>; + pinctrl-names = "default"; + }; +}; + +&blsp2_i2c4 { + status = "okay"; + + led-controller@45 { + compatible = "awinic,aw2013"; + reg = <0x45>; + vcc-supply = <&pm8950_l10>; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + led-max-microamp = <5000>; + function = LED_FUNCTION_INDICATOR; + color = ; + }; + + led@1 { + reg = <1>; + led-max-microamp = <5000>; + function = LED_FUNCTION_INDICATOR; + color = ; + }; + + led@2 { + reg = <2>; + led-max-microamp = <5000>; + function = LED_FUNCTION_INDICATOR; + color = ; + }; + }; + + speaker_codec: audio-codec@34 { + compatible = "nxp,tfa9890"; + reg = <0x34>; + vddd-supply = <&pm8950_l5>; + sound-name-prefix = "Speaker"; + #sound-dai-cells = <0>; + }; +}; + +&gcc { + vdd_gfx-supply = <&pm8004_s5>; +}; + +&mdss_dsi0 { + vdd-supply = <&pm8950_l17>; + vdda-supply = <&pm8950_l1>; + vddio-supply = <&pm8950_l6>; +}; + +&mdss_dsi0_out { + data-lanes = <0 1 2 3>; +}; + +&mdss_dsi0_phy { + vddio-supply = <&pm8950_l6>; +}; + +&otg { + extcon = <&tiusb320>; +}; + +&pm8004_lsid5 { + status = "okay"; +}; + +&pm8004_spmi_regulators { + vdd_s2-supply = <&vph_pwr>; + vdd_s5-supply = <&vph_pwr>; + + status = "okay"; + + /* Cluster 1 supply */ + pm8004_s2: s2 { + regulator-name = "VDD_APC1"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1165000>; + regulator-always-on; + regulator-boot-on; + }; + + pm8004_s5: s5 { + regulator-name = "VDD_GFX"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1165000>; + regulator-enable-ramp-delay = <500>; + regulator-always-on; + }; +}; + +&pm8950_spmi_regulators { + vdd_s5-supply = <&vph_pwr>; + + /* Cluster 0 supply */ + pm8950_spmi_s5: s5 { + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1165000>; + regulator-name = "VDD_APC0"; + regulator-always-on; + regulator-boot-on; + }; +}; + +&pm8950_resin { + linux,code = ; + + status = "okay"; +}; + +&pmi8950_wled { + qcom,current-limit-microamp = <20000>; + qcom,enabled-strings = <0 1>; + qcom,ovp-millivolt = <29500>; +}; + +&rpm_requests { + regulators { + compatible = "qcom,rpm-pm8950-regulators"; + + vdd_s1-supply = <&vph_pwr>; + vdd_s2-supply = <&vph_pwr>; + vdd_s3-supply = <&vph_pwr>; + vdd_s4-supply = <&vph_pwr>; + vdd_s6-supply = <&vph_pwr>; + vdd_l1_l19-supply = <&pm8950_s3>; + vdd_l2_l23-supply = <&pm8950_s3>; + vdd_l3-supply = <&pm8950_s3>; + vdd_l5_l6_l7_l16-supply = <&pm8950_s4>; + vdd_l8_l11_l12_l17_l22-supply = <&vph_pwr>; + vdd_l9_l10_l13_l14_l15_l18-supply = <&vph_pwr>; + + pm8950_s3: s3 { + regulator-min-microvolt = <1325000>; + regulator-max-microvolt = <1325000>; + }; + + pm8950_s4: s4 { + regulator-min-microvolt = <2050000>; + regulator-max-microvolt = <2050000>; + }; + + pm8950_l1: l1 { + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1300000>; + }; + + pm8950_l2: l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + pm8950_l3: l3 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1100000>; + }; + + pm8950_l5: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8950_l6: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8950_l7: l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1900000>; + }; + + pm8950_l8: l8 { + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <2900000>; + }; + + pm8950_l9: l9 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + }; + + pm8950_l10: l10 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + pm8950_l11: l11 { + /* TUSB320 power supply */ + regulator-always-on; + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + }; + + pm8950_l12: l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pm8950_l13: l13 { + regulator-min-microvolt = <3075000>; + regulator-max-microvolt = <3075000>; + }; + + pm8950_l14: l14 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + pm8950_l15: l15 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + pm8950_l16: l16 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8950_l17: l17 { + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2900000>; + }; + + pm8950_l19: l19 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1350000>; + }; + + pm8950_l22: l22 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + }; + + pm8950_l23: l23 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + }; +}; + +&sdhc_1 { + vmmc-supply = <&pm8950_l8>; + vqmmc-supply = <&pm8950_l5>; + + status = "okay"; +}; + +&tlmm { + gpio-reserved-ranges = <0 4>, /* Unknown */ + <8 4>; /* Fingerprint SPI */ + + disp_reset_n_active: disp-reset-n-active-state { + pins = "gpio25"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; + + disp_reset_n_sleep: disp-reset-n-sleep-state { + pins = "gpio25"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + disp_te_default: disp-te-default-state { + pins = "gpio24"; + function = "mdp_vsync"; + drive-strength = <2>; + bias-pull-down; + }; + + gpio_key_default: gpio-key-default-state { + pins = "gpio113"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + + touch_default_state: touch-default-state { + irq-pins { + pins = "gpio65"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + + reset-pins { + pins = "gpio64"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + }; + + tusb320_int_active: tusb320-int-active-state { + pins = "gpio21"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; +}; + +&wcnss { + vddpx-supply = <&pm8950_l5>; + + status = "okay"; +}; + +&wcnss_iris { + compatible = "qcom,wcn3680"; + + vddxo-supply = <&pm8950_l7>; + vddrfa-supply = <&pm8950_l19>; + vddpa-supply = <&pm8950_l9>; + vdddig-supply = <&pm8950_l5>; +}; + +&xo_board { + clock-frequency = <19200000>; +}; + -- 2.55.0