From nobody Mon Feb 9 03:34:06 2026 Received: from mail-4325.protonmail.ch (mail-4325.protonmail.ch [185.70.43.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EECAD3FBAD; Fri, 2 Aug 2024 08:07:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.25 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722586054; cv=none; b=K19dwlf+KGuL6zh+2iGVyhoEjiKeoG3jJpNXAscLV/yjoTlnp5c5972Kf6HFXuC7JZuo2c7JjrdRpT/+bcN3T1Hy1NVQTl1mrchhIUaBlwUIxkHRTiH42oLY8MYEv/3Okhjuwah9SQINiMdRGfPkieMS3Vccs1zC1TMr5YXguE0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722586054; c=relaxed/simple; bh=ZmQwW/wDeR90OUcShfj1AaExlHjUr7arz/oq1GU52zU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=P7QTvNfdDiAKmMfnwRFUnFfUcwQdkZvh7QZD4orzoy3VqKudwTnQZZw6zsDSGbD1Uq602SUFFf7a8migjGoMSM0gVdi0s3pLaKWnMCbl8qzpBmm7gsPaCKkLOce4DVo8XqA79gxh1L/Vdwhg8JAXf16MVe/C9t5sfiTLu8eDcFY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=GLbaG3Pz; arc=none smtp.client-ip=185.70.43.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="GLbaG3Pz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1722586051; x=1722845251; bh=iemyoq2lYHkRLjl5ZVLhpqkXKCDblZObCfWltrVdYyk=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=GLbaG3Pzs7YEM1ig3c/3IJyH77Nifrs8IWrnM2i76xNEyXtQD72MNVd2ijpvP20Ev eckkc/H93v5KNXcBdU3ePBFYNOlWGF2GIf6JWZDXuK/mbu723+D6L1IkAtIRfACIn/ 1IwVe+SMuTWK8CVgX8Lylk51QPHhIX6JDigmdF0BDhY6LVTtQ9Jokpoqzjt4jlc/Ig Omo9HJHha9S0qSx6NU3LPiTnva4pPCNjFIqRJ8JFy3aMMALXq9arlIXMlN+hMwkcMe bNmhkDrXKM5PbyL+brJBy8DNFl+ZqjkTJoHOQBCkFdelycArs62tlFRUQmZNVaPAgT fE2VOd5t7rM3w== Date: Fri, 02 Aug 2024 08:07:27 +0000 To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephan Gerhold , Nikita Travkin , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH 1/2] dt-bindings: qcom: Document samsung,j3ltetw Message-ID: <20240802080701.3643-2-linmengbo06890@proton.me> In-Reply-To: <20240802080701.3643-1-linmengbo06890@proton.me> References: <20240802080701.3643-1-linmengbo06890@proton.me> Feedback-ID: 112742687:user:proton X-Pm-Message-ID: 1862562a16d6a63aaafa332366fe9d2e56232e76 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" Document samsung,j3ltetw bindings used in its device tree. Signed-off-by: "Lin, Meng-Bo" --- 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 4ef456cefd6c..c0529486810f 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -235,6 +235,7 @@ properties: - samsung,grandprimelte - samsung,gt510 - samsung,gt58 + - samsung,j3ltetw - samsung,j5 - samsung,j5x - samsung,rossa --=20 2.39.2 From nobody Mon Feb 9 03:34:06 2026 Received: from mail-40141.protonmail.ch (mail-40141.protonmail.ch [185.70.40.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B96D63D6A for ; Fri, 2 Aug 2024 08:07:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722586075; cv=none; b=T5JUNNnxy0eRzQJucsHY8+5UjQ38lHMGaVilv49Ku9Uq+MYGy44A6yCGuPVYgcDaexf0bh6vtb1lcffiCRZLYd1UnyTEooHpDjegUuo8QTzquePQrzUhNNvV+KRDPwV4kBj7P3+PsjZ4laRCtfnRY8l849Z4f6290LkkXfDOHlA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722586075; c=relaxed/simple; bh=41pfhpflsg7DV1+KUJw1txSwyG5YdldhU2NtRf9DNb8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=t9sh9n303E/QEvmj4us5YllATh5CiNxHCc4Otd5oys+NHY5cS9d12lbgPpNNtP/OvZjNwCROAJYneLvoKP2qGTc5tq5kRs0T9CSh7KWtIVBhzsYdBjD8vhUqFt2L64xQTz6xGB2/hyd451hV/+L30Rw4FdTHEvrlfwaMv+OeodM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=Ar5Y7CgL; arc=none smtp.client-ip=185.70.40.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="Ar5Y7CgL" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1722586064; x=1722845264; bh=NxfY5VIYEw47GQ6HQQDXvjOHUAitAdjIAcHz6X21/e4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Ar5Y7CgLNThf/Z8fc+5ZrLEoOV4shfMG2ScuO2Ruh9BJnvKPjzKIgSOwhIWGFGkeZ H2wiEsHE/jhCp5IinDwjC8Hgdbq7d080Psf2icb/p426DxNFE8HJ2wV4VXFgL3DyeK 2+1c6x+X+79n2oxR9Sz0PwV9cZRTptpNUTZTMnAp5kF+21CjNvBQcOlrVE7KVqJHBL u6v17fY6V77oWImJuCYuqXw4mTzUQAFe+3oiVJx+Y1tINh4u9v4nLxTD/4RqjLMhQ7 wv0+1a6hkw9wwwHIJqgVGha82q9a/WBynCqWtdGXiZRlq0SynJa8jNTici5ishRShh +xFMF8JO+yv4Q== Date: Fri, 02 Aug 2024 08:07:39 +0000 To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephan Gerhold , Nikita Travkin , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH 2/2] arm64: dts: qcom: msm8916-samsung-j3ltetw: Add initial device tree Message-ID: <20240802080701.3643-3-linmengbo06890@proton.me> In-Reply-To: <20240802080701.3643-1-linmengbo06890@proton.me> References: <20240802080701.3643-1-linmengbo06890@proton.me> Feedback-ID: 112742687:user:proton X-Pm-Message-ID: 17725581a6c2c34a83eb2b6c798b2202465d0f00 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" The dts and dtsi add support for msm8916 variant of Samsung Galaxy J3 SM-J320YZ smartphone released in 2016. Add a device tree for SM-J320YZ with initial support for: - GPIO keys - SDHCI (internal and external storage) - USB Device Mode - UART (on USB connector via the SM5703 MUIC) - WCNSS (WiFi/BT) - Regulators - QDSP6 audio - Speaker/earpiece/headphones/microphones via digital/analog codec in MSM8916/PM8916 - WWAN Internet via BAM-DMUX - Touchscreen There are different variants of J3, with some differences in MUIC, sensor, NFC and touch key I2C buses. The common parts are shared in msm8916-samsung-j3-common.dtsi to reduce duplication. Signed-off-by: "Lin, Meng-Bo" --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../dts/qcom/msm8916-samsung-j3-common.dtsi | 53 +++++++++++++++++++ .../boot/dts/qcom/msm8916-samsung-j3ltetw.dts | 20 +++++++ 3 files changed, 74 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-j3-common.dtsi create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-j3ltetw.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/M= akefile index e534442620a1..197ab325c0b9 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -48,6 +48,7 @@ dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-grandmax.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-grandprimelte.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-gt510.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-gt58.dtb +dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-j3ltetw.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-j5.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-j5x.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-rossa.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j3-common.dtsi b/arch= /arm64/boot/dts/qcom/msm8916-samsung-j3-common.dtsi new file mode 100644 index 000000000000..ce5c1ee450f1 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j3-common.dtsi @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include "msm8916-samsung-j5-common.dtsi" + +/ { + reserved-memory { + /delete-node/ tz-apps@85500000; + + /* Additional memory used by Samsung firmware modifications */ + tz-apps@85800000 { + reg =3D <0x0 0x85800000 0x0 0x800000>; + no-map; + }; + }; + + reg_vdd_tsp_a: regulator-vdd-tsp-a { + compatible =3D "regulator-fixed"; + regulator-name =3D "vdd_tsp_a"; + regulator-min-microvolt =3D <3000000>; + regulator-max-microvolt =3D <3000000>; + + gpio =3D <&tlmm 16 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 =3D <&tsp_ldo_en_default>; + pinctrl-names =3D "default"; + }; +}; + +&gpio_hall_sensor { + status =3D "disabled"; +}; + +&i2c_muic { + /* GPIO pins vary depending on model variant */ +}; + +&i2c_sensors { + /* GPIO pins vary depending on model variant */ +}; + +&touchscreen { + vdd-supply =3D <®_vdd_tsp_a>; +}; + +&tlmm { + tsp_ldo_en_default: tsp-ldo-en-default-state { + pins =3D "gpio16"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j3ltetw.dts b/arch/ar= m64/boot/dts/qcom/msm8916-samsung-j3ltetw.dts new file mode 100644 index 000000000000..344e63588531 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j3ltetw.dts @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-samsung-j3-common.dtsi" + +/ { + model =3D "Samsung Galaxy J3 (2016) (SM-J320YZ)"; + compatible =3D "samsung,j3ltetw", "qcom,msm8916"; + chassis-type =3D "handset"; +}; + +&i2c_muic { + sda-gpios =3D <&tlmm 0 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + scl-gpios =3D <&tlmm 1 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; +}; + +&muic_i2c_default { + pins =3D "gpio0", "gpio1"; +}; --=20 2.39.2