From nobody Mon May 25 03:56:55 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 084DF3CDBC0; Tue, 19 May 2026 07:16:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; cv=none; b=spJVimtj0fsRR2Y0ofMIqYBTDVwVsQoTUfPwcH4bAw/kdNVL53Z2+lsVyTqto0espM/GSZ0U7pXlqMxT6jCXN9SWvVLyqeJ3vZY5llRTWSLbesdhsArBXLjWtXS+Ac7CwXuGdeyE5dyPEy1ywBeAd5Rz5rBrxd+zmfQcRmoIK5Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; c=relaxed/simple; bh=UQADokhMMs9ijQx/8MIvZTTkJpSOxP4ort4y3prZCtk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=u1awI2kjQGAAJjIMDJBAuDY8sme/KAUAk/ToZ6zJuwzP9YlU0cAOveFhWTHZjp8Zpq9Hgd3b4zd/IKp0P5fxLx1EaAXM838l5FMT5LGdC7+HTUHKJFJ1ImIa/235X55Eo0Y1FqdxQxfdIIa5FDrcnf2qcw9zhk3AKJlxav7ehgU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HmfOwC93; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HmfOwC93" Received: by smtp.kernel.org (Postfix) with ESMTPS id B6295C2BCC9; Tue, 19 May 2026 07:16:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779175000; bh=UQADokhMMs9ijQx/8MIvZTTkJpSOxP4ort4y3prZCtk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=HmfOwC93OGRqyRBIoE/dR39txN+EzTRj/z7+ZrKEI6NZzSGaqtR2YBoFGR6HxevEK 8npXNxwC1aMRpFFTejB89PMMscRTLiZ4mo854jo8j/97EsX5rG/MxfIr0/UPFwZP4i uKS3ZMv58ScqoKkgSg4i8DGc8XFV43Lj5kGUxZTPpH6wKH9KVLNDNKMQZ9YjymuIOU GxcPzJ3ytcdfXfFtgzyZBiUGoUTcBbzdMTP1oTb5H2s6eQwugonOofgZNyDCYpnFIK J4skthMlfD3AB4XLcKDxfK4ZXa+FDoYchm+jrnXwrSMVBiASbKlWBRvTr5lHnTeWeL Op3FIaYzppfwA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9DE2CD4F58; Tue, 19 May 2026 07:16:40 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 19 May 2026 09:16:31 +0200 Subject: [PATCH v3 1/8] dt-bindings: arm: qcom: Add Samsung Galaxy S4 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: <20260519-mainline-send-v1-sending-v3-1-3dd7aa125353@alex-min.fr> References: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> In-Reply-To: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , MyungJoo Ham , Chanwoo Choi , Guru Das Srinagesh , Linus Walleij , Rob Clark , Joerg Roedel , Will Deacon , Robin Murphy , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, iommu@lists.linux.dev, phone-devel@vger.kernel.org, Alexandre MINETTE , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779174999; l=854; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=Lrgs0k4d0tyivYZbLbwfL0EK902GKco2rWAQQHTAiDQ=; b=yKgecBaL28xrFxt9EXzq6vqZz9fDhYaRFlfh3PWLw7gbcNaEdFb/yAP+TJZhpg+LDUHxV6YDG i93mTeJ1bFdAGu8pW0CIGBHk1TDK34oJ6Cpdy0EeVhDKNqhwFBZTzGX X-Developer-Key: i=contact@alex-min.fr; a=ed25519; pk=KOCaxY4v16ptaT0uk1FRkuaDF2n1JhmnYwLiqWD76M4= X-Endpoint-Received: by B4 Relay for contact@alex-min.fr/20260421 with auth_id=743 X-Original-From: Alexandre MINETTE Reply-To: contact@alex-min.fr From: Alexandre MINETTE Add the compatible for the Qualcomm APQ8064-based Samsung Galaxy S4, codenamed jflte. Acked-by: Krzysztof Kozlowski Signed-off-by: Alexandre MINETTE --- 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 b4943123d2e4..b7e186ed2efc 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -39,6 +39,7 @@ properties: - enum: - asus,nexus7-flo - lg,nexus4-mako + - samsung,jflte - sony,xperia-yuga - qcom,apq8064-cm-qs600 - qcom,apq8064-ifc6410 --=20 2.43.0 From nobody Mon May 25 03:56:55 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 12F1D3CDBDD; Tue, 19 May 2026 07:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; cv=none; b=uCfVI/Hw18hKSyazw4EaWQMcMdcVugunicIoxQUNOHt20MxJY0et+UN0aKZUnq/B+oFI/mAIjgDdH7+hqIwfIavmOiJVRugXuBCQzs9v1mjlNXCM2m9LI0FIRhffm8E6l5wEpZnZJS1/dEA3ViVF4stz5l7hXpbSNEM8/UXF1DM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; c=relaxed/simple; bh=26/B1BppBfes5RCO1Ic1nT0B6Eke9pZ1Ck4puuNbwjM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pmCqn10mhZF+JFz+9ylLduaS4SXR2yyFuMzEx0P+N/pbOOYF0V7Ze+m8BIhDoiCeXSiRjOMo+NwFz6AaK6vcTI/nJG/7PmthC8f4k4MgyHM61tKgGyq10I6BTn1KnAbYMpPjkIRCvgXLcwvFQxKSFI0+Vz0eJ3Op//bdGZdS/Gw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HTywY77f; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HTywY77f" Received: by smtp.kernel.org (Postfix) with ESMTPS id C73DAC2BCC6; Tue, 19 May 2026 07:16:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779175000; bh=26/B1BppBfes5RCO1Ic1nT0B6Eke9pZ1Ck4puuNbwjM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=HTywY77fP/we1H4I9ihH794nXjq920YY6znzDGdxOQBkxkxBxi6HjVUJKSMmvdbi1 WOlevq53iQzjbcjsPkCO1v4QQG0k+lBk12j1dATmlEUDY7JDT2vN1GRc/YB8+3Vsl+ HVURUqOMZLWsLrUpCdoXVxBrUYw7UUrkjnHTGPrrXHmwgppGQzu+cQNM1Vdx93WD7O f2NmkyicL1dDZ71uTcNzJA4iK+K86bdW+JuKi76pZk3ekt4EjSz0j0LapyIkdfiLs4 +Fq8uDIzjH80jvr+CuoEXRXjg9pDjm0aUCms4iIyDe+qnLfyH3idrgOgalY4mJ3o+l 3akE9KbO4/vdA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA126CD4F5B; Tue, 19 May 2026 07:16:40 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 19 May 2026 09:16:32 +0200 Subject: [PATCH v3 2/8] dt-bindings: extcon: qcom,pm8941-misc: Add PM8921 compatible 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: <20260519-mainline-send-v1-sending-v3-2-3dd7aa125353@alex-min.fr> References: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> In-Reply-To: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , MyungJoo Ham , Chanwoo Choi , Guru Das Srinagesh , Linus Walleij , Rob Clark , Joerg Roedel , Will Deacon , Robin Murphy , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, iommu@lists.linux.dev, phone-devel@vger.kernel.org, Alexandre MINETTE X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779174999; l=1917; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=vqyH0stw0peI1PfW63PuN6liDgMjrgI82QMhyQ70tz8=; b=kfGk6oeX1jcJazd0LrLbLbrKjzAeHCn17Gykl81HwU6hC/n4HYIMy2AS3EA5AlZ+BjCHH8ps1 2ZjakS2tToND/apPmb78Ssbk/V6ztUhGMdI2raQwI77ABYN+r11BrEW X-Developer-Key: i=contact@alex-min.fr; a=ed25519; pk=KOCaxY4v16ptaT0uk1FRkuaDF2n1JhmnYwLiqWD76M4= X-Endpoint-Received: by B4 Relay for contact@alex-min.fr/20260421 with auth_id=743 X-Original-From: Alexandre MINETTE Reply-To: contact@alex-min.fr From: Alexandre MINETTE PM8921/PM8821 provide USB ID detection through the PMIC USB block. The USB_ID_IN interrupt is exposed by the PM8921 interrupt controller and is used by APQ8064 platforms for OTG role detection. The device is modeled as a child of the SSBI-connected PM8921 PMIC. Unlike PM8941, the downstream PM8xxx misc device is not instantiated with a register resource for this path, and the mainline extcon driver only needs the named USB ID interrupt. Allow qcom,pm8921-misc without requiring reg. Signed-off-by: Alexandre MINETTE --- .../devicetree/bindings/extcon/qcom,pm8941-misc.yaml | 17 +++++++++++++= ---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml= b/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml index 6b80518cbf62..4e3d0aadb83c 100644 --- a/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml +++ b/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/extcon/qcom,pm8941-misc.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# =20 -title: Qualcomm Technologies, Inc. PM8941 USB ID Extcon device +title: Qualcomm Technologies, Inc. PMIC USB ID Extcon device =20 maintainers: - Guru Das Srinagesh @@ -15,8 +15,9 @@ description: | =20 properties: compatible: - items: - - const: qcom,pm8941-misc + enum: + - qcom,pm8921-misc + - qcom,pm8941-misc =20 reg: maxItems: 1 @@ -37,10 +38,18 @@ properties: - const: usb_vbus required: - compatible - - reg - interrupts - interrupt-names =20 +allOf: + - if: + properties: + compatible: + const: qcom,pm8941-misc + then: + required: + - reg + additionalProperties: false =20 examples: --=20 2.43.0 From nobody Mon May 25 03:56:55 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2FD0D3CEB8D; Tue, 19 May 2026 07:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; cv=none; b=mYN++O90jxkxz2L4NhoKHmtHAdLOL8E/73ymkTi8CnXqGPl3I3QqfJORNvyf/tthkXE3eBnD/MPNgtqmnc7TOak0gOsTr5MOcO1HyH//v3C7z4vFHAkEXbyqwyjO9tacdmpuudxz+wnl4UnlvDGP6ZXvCYZeVveHH80HNWCuEyQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; c=relaxed/simple; bh=7DeREkHBuy3CC/OxlxoJowva/HyNWfGd+W2ZNWZknP8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hqhcso+qkuYn40lJUE57HuINpMqquo9gKSnjnnAo2/tRKRE0nwDnCSuJKmc8bFRVXlqI8YQ29KZ8Mvm4K1tpobUjHcmawSdFsgoBgs73q7HtUIENoIuFgnLkp3ovAE2SBr6+/S0r1QUlZzLsWamUENZBc+LTz2mRvgU6VXAzSg4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DxXZVszL; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DxXZVszL" Received: by smtp.kernel.org (Postfix) with ESMTPS id F3B05C2BCF6; Tue, 19 May 2026 07:16:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779175001; bh=7DeREkHBuy3CC/OxlxoJowva/HyNWfGd+W2ZNWZknP8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=DxXZVszL1Vd2/gJ1oZnQtwUbS+JFr6nh9GxWNU2qiCCVguxmCKn5osIhCLA1kJxh3 K0p5w/+zQxIwNd2FLIoJgInRdXcXRP99aONWCoS3wPxuOwZ3vbVDou+IRic8TF7ixz 3Xula5ZK+VtDd3N6nG2qwYk6CNdt7Q+WDOIV+mi/3EfrEnzc0j6mIdFYInAvfkRmTy hPzl7jFTMA4+wSuh6LxuTaPR7eBtUSRXeBE6u9OnqBr8V81f/K+MCGrivQmYUq/uBY M4lL/uAQIB2RqfdG/Gbj6fMiBZMKJHWQQZ4izZuA96M2+RliLrM1TMI+nf7Fvi1L91 D8oSBx9A7EbAg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E858ECD4851; Tue, 19 May 2026 07:16:40 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 19 May 2026 09:16:33 +0200 Subject: [PATCH v3 3/8] pinctrl: qcom: Register functions before enabling pinctrl 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: <20260519-mainline-send-v1-sending-v3-3-3dd7aa125353@alex-min.fr> References: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> In-Reply-To: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , MyungJoo Ham , Chanwoo Choi , Guru Das Srinagesh , Linus Walleij , Rob Clark , Joerg Roedel , Will Deacon , Robin Murphy , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, iommu@lists.linux.dev, phone-devel@vger.kernel.org, Alexandre MINETTE X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779174999; l=2004; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=gqK5qmgCceA2ln5R06RBqAB8HOklQ9gk21qwB8S51xo=; b=CawgQZH3ABWHU9Zr9Up8crfhnEMz2Vgaed7AUvvpvQiEn2eArchcgd/osjmRXfG6JU04X/0OP x4JynWe0q+DDi4kl6i1jGvf7xzq50ctXBEggP9kyPYSUAlxVIBcV0Ge X-Developer-Key: i=contact@alex-min.fr; a=ed25519; pk=KOCaxY4v16ptaT0uk1FRkuaDF2n1JhmnYwLiqWD76M4= X-Endpoint-Received: by B4 Relay for contact@alex-min.fr/20260421 with auth_id=743 X-Original-From: Alexandre MINETTE Reply-To: contact@alex-min.fr From: Alexandre MINETTE pinctrl consumers can request states while the pinctrl core enables the controller. On Qualcomm pinctrl drivers this can happen before the SoC function list has been registered, which leaves the function table incomplete during state lookup. On APQ8064 this can fail while claiming pinctrl hogs: apq8064-pinctrl 800000.pinctrl: invalid function ps_hold in map table apq8064-pinctrl 800000.pinctrl: error claiming hogs: -22 apq8064-pinctrl 800000.pinctrl: could not claim hogs: -22 Register Qualcomm pinctrl with devm_pinctrl_register_and_init(), add the SoC pin functions, and only then enable the pinctrl device. Signed-off-by: Alexandre MINETTE --- drivers/pinctrl/qcom/pinctrl-msm.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinc= trl-msm.c index 45b3a2763eb8..a2a1e0835735 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -1593,11 +1593,11 @@ int msm_pinctrl_probe(struct platform_device *pdev, pctrl->desc.pins =3D pctrl->soc->pins; pctrl->desc.npins =3D pctrl->soc->npins; =20 - pctrl->pctrl =3D devm_pinctrl_register(&pdev->dev, &pctrl->desc, pctrl); - if (IS_ERR(pctrl->pctrl)) { - dev_err(&pdev->dev, "Couldn't register pinctrl driver\n"); - return PTR_ERR(pctrl->pctrl); - } + ret =3D devm_pinctrl_register_and_init(&pdev->dev, &pctrl->desc, + pctrl, &pctrl->pctrl); + if (ret) + return dev_err_probe(&pdev->dev, ret, + "Couldn't register pinctrl driver\n"); =20 for (i =3D 0; i < soc_data->nfunctions; i++) { func =3D &soc_data->functions[i]; @@ -1607,6 +1607,11 @@ int msm_pinctrl_probe(struct platform_device *pdev, return ret; } =20 + ret =3D pinctrl_enable(pctrl->pctrl); + if (ret) + return dev_err_probe(&pdev->dev, ret, + "Couldn't enable pinctrl driver\n"); + ret =3D msm_gpio_init(pctrl); if (ret) return ret; --=20 2.43.0 From nobody Mon May 25 03:56:55 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3D2D43CF661; Tue, 19 May 2026 07:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; cv=none; b=To8/8mr93RXw7Wb0ueqIBk3k6KJtc1lRgwsEt3/yUmZp11zZy+gz7wjbdeRSPV+Ru2YurgxGyqLX0CCms9ukmC1bCXQHTQ6gRGsG52p9hy9MbT8BU4TMyT8iV038X5s2UD7pl4DjnVgN+6KMIl2bMjp7Qkas7ffHHzXrAwWG9zY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; c=relaxed/simple; bh=Djj4DA8V0onSZ02OPE+IzZkuFDVGk+DrM9lo8y2SZSQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RFt2XJzG9mz6taJy+QpmySvCHhb7+eU8CrFRzo7Ey64q5j0KWqiV399powB1/Hltk5F1e4BF8qkvoRGfhxMU5DEAYlrW8nk+lfm6Is82ooJCqiEPe6MbP55O9ueuVYG0bkChsHIA9CK5lOrq44vMzDTZmQyA3qme3gOPmG9XDZI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WYIcLnXD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WYIcLnXD" Received: by smtp.kernel.org (Postfix) with ESMTPS id 0E884C2BCF5; Tue, 19 May 2026 07:16:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779175001; bh=Djj4DA8V0onSZ02OPE+IzZkuFDVGk+DrM9lo8y2SZSQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=WYIcLnXDhN/HpwyOetdA/X0HaCUvQRuyacn8o8UvCnsiqW+l6sDXXrirDHriwbf9d OC8FIPZpFAoBVOy60gjzcvKVwyx8zRJpYcRwQNBbdeM9Sv9RfMforwGPArSVuFbPr5 DAW+GNR9qwFHgvpPuGCttEqxUnqbbZAopPHxvT3M/3lg/d3T3x5u7PHPt2DBUedxmv p1zUep7HBiIOZQ+peF3/+vaW145+WzvqJiu7bOKIzjYrg0KJo0bLLMrHPnvEpxt+6C 1QGAcKR22jAT54BjkYON2k16ZB/18vx0YSH7u43HeGP5arZ8KCStEBh2gCDS+O8AQa h35pMy2wA37Nw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04B2ACD4F5E; Tue, 19 May 2026 07:16:41 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 19 May 2026 09:16:34 +0200 Subject: [PATCH v3 4/8] iommu/msm: Look up masters per IOMMU instance 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: <20260519-mainline-send-v1-sending-v3-4-3dd7aa125353@alex-min.fr> References: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> In-Reply-To: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , MyungJoo Ham , Chanwoo Choi , Guru Das Srinagesh , Linus Walleij , Rob Clark , Joerg Roedel , Will Deacon , Robin Murphy , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, iommu@lists.linux.dev, phone-devel@vger.kernel.org, Alexandre MINETTE X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779174999; l=3959; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=1JcBVPryARcXpHswW3TvhWpd0BaNOt71q4/rKhmP4NY=; b=43/ECducmaYKKHHryMjqR7lNJK88dsGF3kxnxiw9osUZuI+wGngT5yo7SAUym0nV8DwnHMncF rJhmDU6EW9pD3pdRnzOuKg845DjY30uaPf0tIdbuZwnLCwieqKR9t/1 X-Developer-Key: i=contact@alex-min.fr; a=ed25519; pk=KOCaxY4v16ptaT0uk1FRkuaDF2n1JhmnYwLiqWD76M4= X-Endpoint-Received: by B4 Relay for contact@alex-min.fr/20260421 with auth_id=743 X-Original-From: Alexandre MINETTE Reply-To: contact@alex-min.fr From: Alexandre MINETTE MSM IOMMU stores context descriptors on each IOMMU instance. Looking up the descriptor through dev_iommu_priv_get() is not sufficient because a device can reference multiple IOMMU provider nodes. Look up the master from the target IOMMU ctx_list instead, and use the same helper when probing and attaching devices. This avoids dereferencing a NULL master when an IOMMU already has context entries for another device, and keeps separate context descriptors for separate IOMMU instances. On APQ8064 this crashes during IOMMU probe while qcom_iommu_of_xlate() adds stream IDs for a device referencing multiple IOMMU provider nodes. The failure comes from insert_iommu_master() dereferencing a NULL master after dev_iommu_priv_get() returns no context descriptor for the current IOMMU instance: Unable to handle kernel NULL pointer dereference at virtual address 00000= 088 PC is at qcom_iommu_of_xlate+0x84/0x174 Call trace: qcom_iommu_of_xlate from of_iommu_configure+0x140/0x234 of_iommu_configure from of_dma_configure_id+0xec/0x3b0 of_dma_configure_id from platform_dma_configure+0xb0/0xcc platform_dma_configure from __iommu_probe_device+0x270/0x450 __iommu_probe_device from probe_iommu_group+0x24/0x48 probe_iommu_group from bus_for_each_dev+0x7c/0xcc bus_for_each_dev from iommu_device_register+0xcc/0x220 iommu_device_register from msm_iommu_probe+0x47c/0x578 This is required to boot APQ8064 boards using multiple IOMMU contexts. Signed-off-by: Alexandre MINETTE --- drivers/iommu/msm_iommu.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/drivers/iommu/msm_iommu.c b/drivers/iommu/msm_iommu.c index 0ad5ff431d5b..9c03878d0d2c 100644 --- a/drivers/iommu/msm_iommu.c +++ b/drivers/iommu/msm_iommu.c @@ -357,17 +357,25 @@ static int msm_iommu_domain_config(struct msm_priv *p= riv) return 0; } =20 +static struct msm_iommu_ctx_dev *find_iommu_master(struct msm_iommu_dev *i= ommu, + struct device *dev) +{ + struct msm_iommu_ctx_dev *master; + + list_for_each_entry(master, &iommu->ctx_list, list) + if (master->of_node =3D=3D dev->of_node) + return master; + + return NULL; +} + /* Must be called under msm_iommu_lock */ static struct msm_iommu_dev *find_iommu_for_dev(struct device *dev) { struct msm_iommu_dev *iommu, *ret =3D NULL; - struct msm_iommu_ctx_dev *master; =20 list_for_each_entry(iommu, &qcom_iommu_devices, dev_node) { - master =3D list_first_entry(&iommu->ctx_list, - struct msm_iommu_ctx_dev, - list); - if (master->of_node =3D=3D dev->of_node) { + if (find_iommu_master(iommu, dev)) { ret =3D iommu; break; } @@ -405,10 +413,7 @@ static int msm_iommu_attach_dev(struct iommu_domain *d= omain, struct device *dev, =20 spin_lock_irqsave(&msm_iommu_lock, flags); list_for_each_entry(iommu, &qcom_iommu_devices, dev_node) { - master =3D list_first_entry(&iommu->ctx_list, - struct msm_iommu_ctx_dev, - list); - if (master->of_node =3D=3D dev->of_node) { + if (find_iommu_master(iommu, dev)) { ret =3D __enable_clocks(iommu); if (ret) goto fail; @@ -601,10 +606,10 @@ static int insert_iommu_master(struct device *dev, struct msm_iommu_dev **iommu, const struct of_phandle_args *spec) { - struct msm_iommu_ctx_dev *master =3D dev_iommu_priv_get(dev); + struct msm_iommu_ctx_dev *master =3D find_iommu_master(*iommu, dev); int sid; =20 - if (list_empty(&(*iommu)->ctx_list)) { + if (!master) { master =3D kzalloc_obj(*master, GFP_ATOMIC); if (!master) { dev_err(dev, "Failed to allocate iommu_master\n"); @@ -612,7 +617,6 @@ static int insert_iommu_master(struct device *dev, } master->of_node =3D dev->of_node; list_add(&master->list, &(*iommu)->ctx_list); - dev_iommu_priv_set(dev, master); } =20 for (sid =3D 0; sid < master->num_mids; sid++) --=20 2.43.0 From nobody Mon May 25 03:56:55 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4F3DF3AE1B9; Tue, 19 May 2026 07:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; cv=none; b=MYHNDEY4i1i8VnHI2RNjlgqp2Jp39eENjPJ3rJMi74cIv4USLi++hZyRTlYqyGL7jl6bn2OXwk32jm4gZCmAgWCrBdHcGmKZi1fzMWNQhXOETw3oqoTePs/QWWga31s8GfwK0HBjjZ/RfNUUt64dlpCzMtsL/bYoA765Rcx74bE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; c=relaxed/simple; bh=WNKuF6RSfJJpBdCamEGqR3W7qXg5/+ogwwgye8Q1EvM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ruv5yGLNKuR9k6TwES0O/qPt2Ryy7Y/UGGUdSWm3dI9QySuXnAwuMNKRqXcY4gxHWkVc09RLmTBjyvuXL4uLcTxAX0UFWfV32zi4AHBHB2MWJ7ViQWgypMV++8tYxYwNssQtYV1Q1a6awEnPRzeWE78stJMl74lWeazHuwgUh0k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KSzQ7N7d; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KSzQ7N7d" Received: by smtp.kernel.org (Postfix) with ESMTPS id 1C989C2BCFA; Tue, 19 May 2026 07:16:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779175001; bh=WNKuF6RSfJJpBdCamEGqR3W7qXg5/+ogwwgye8Q1EvM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=KSzQ7N7d8TNhQj7f0HdUrd0Ewt4UJJfJ2P1d1L8d0H5zAfOpgKR284LLuuFP+JSm/ 0zPQbeJ/YLwnlb/COu1NPyVwRZTfLTpSyUoBixU3DxpQpr+SETkaJDxbs6vPyRGUN4 mPyAr1VDRgJ2QK5JA7AvfjcnBAI+r3J6I98fwVL5ZUxLzXPXBOnwUY+rE4LCFpwEi7 EpaExzGc4QNBpHHv6/cne35pI9j2klFG/tnmyO9r22mALxIVMQ3aGjCcsqqegH++Dr yD6784ZLFQwih38xB7BOzLc4NtJkqaUcLwUrps8gIbccp04/SGD3GFeHBEEfnywZCS MCToYwg4WwHxw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14A70CD4F3C; Tue, 19 May 2026 07:16:41 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 19 May 2026 09:16:35 +0200 Subject: [PATCH v3 5/8] extcon: qcom-spmi-misc: Add PM8921 compatible 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: <20260519-mainline-send-v1-sending-v3-5-3dd7aa125353@alex-min.fr> References: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> In-Reply-To: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , MyungJoo Ham , Chanwoo Choi , Guru Das Srinagesh , Linus Walleij , Rob Clark , Joerg Roedel , Will Deacon , Robin Murphy , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, iommu@lists.linux.dev, phone-devel@vger.kernel.org, Alexandre MINETTE , Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779174999; l=1058; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=iPN1QHXFsQOXf0SQsyqhUUJSl5VgJN77+PTGDreI2sE=; b=GUPdpxtwxlfhxgB8BcyeB+YRACMht2Dcv6JTRm1UswqhzI076kAAI3/cD5xQyTRf13721PH3w 2yif5cxXVJyCNxID8t32s/sunX2Ya6+y2Ke4/j82qk8A26swE/+ofZo X-Developer-Key: i=contact@alex-min.fr; a=ed25519; pk=KOCaxY4v16ptaT0uk1FRkuaDF2n1JhmnYwLiqWD76M4= X-Endpoint-Received: by B4 Relay for contact@alex-min.fr/20260421 with auth_id=743 X-Original-From: Alexandre MINETTE Reply-To: contact@alex-min.fr From: Alexandre MINETTE PM8921 exposes the USB ID signal through the PMIC interrupt controller as USB_ID_IN. The qcom-spmi-misc extcon driver already supports interrupt-only USB ID detection, so add the PM8921 compatible. This lets APQ8064 boards describe the PM8921 USB ID interrupt as an extcon provider for USB role detection. Signed-off-by: Alexandre MINETTE Reviewed-by: Dmitry Baryshkov --- drivers/extcon/extcon-qcom-spmi-misc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/extcon/extcon-qcom-spmi-misc.c b/drivers/extcon/extcon= -qcom-spmi-misc.c index afaba5685c3d..6811d3383254 100644 --- a/drivers/extcon/extcon-qcom-spmi-misc.c +++ b/drivers/extcon/extcon-qcom-spmi-misc.c @@ -199,6 +199,7 @@ static SIMPLE_DEV_PM_OPS(qcom_usb_extcon_pm_ops, qcom_usb_extcon_suspend, qcom_usb_extcon_resume); =20 static const struct of_device_id qcom_usb_extcon_dt_match[] =3D { + { .compatible =3D "qcom,pm8921-misc", }, { .compatible =3D "qcom,pm8941-misc", }, { } }; --=20 2.43.0 From nobody Mon May 25 03:56:55 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 70A2F3D0923; Tue, 19 May 2026 07:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; cv=none; b=CWc+m8+nrGK3rCSszUQ799PafIwZF0+eHcxEfgJu9a0HvnYqd63JabSASThAupUbLNBeciWbp+UmFCwraqrTuZ0af6bnfsFD7pnO012CqHOV5xNpSRWCYkAJgO3zVL5qi2hDFXJ0xcpvOSEPO4Io4dzWgZqdMGZkizAgLDTrb+A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; c=relaxed/simple; bh=BXZ5QG6v4UDK57mLHZRzAVjTQ4P7nYL957IdTPYYDiM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U11XxMd/eTCpKtt3XQ+qokKvqp9/B2VdLsF+/dxr/43XjPJbnKkTASTJjQ7pt5yAn9P11Sm0vFSM+S+ds23b/KMXKixk/GjyQnYxp4lsL8M7yT/i37A7cuGuyAdwdCfdViXfpjtX2KEXZ3FnHRS+IkZ12dmxIpP3vNHF3bWqNfU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q7fJ8U4w; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q7fJ8U4w" Received: by smtp.kernel.org (Postfix) with ESMTPS id 2DE74C2BCB3; Tue, 19 May 2026 07:16:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779175001; bh=BXZ5QG6v4UDK57mLHZRzAVjTQ4P7nYL957IdTPYYDiM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Q7fJ8U4w2LS//sUtpSAi47FUZ8arIrbjVo6q++GYBwEXx+GdHIH0QXkyNXU1vE1pM tLeh7qbjlFM/wsYw8K6nTgPaTG50jEpgMBqON8FW6T91uPL+Qcm3jEmdhSXxBK67yy PyHvsoWAS00f3kefdfAucE6KA0WXqPw5kWcqfLpUPPKDrpCiCgZASknCHanRUv8FnH rP/l88nCGH7eHgWXHgU1rC0C2TLQ/FVTBXByPtqroHVhVqpk1h/BGX/vCNwVQ9URax I3tBEbjzPH5cuLagzvlSkDwXcTBL2sda3x8VCS+141R5Xv8iw9UhWoTy+3ITI/N7bm TQmk/Y3P7w9Dw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 256FACD4851; Tue, 19 May 2026 07:16:41 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 19 May 2026 09:16:36 +0200 Subject: [PATCH v3 6/8] ARM: dts: qcom: apq8064: Fix USB controller clocks 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: <20260519-mainline-send-v1-sending-v3-6-3dd7aa125353@alex-min.fr> References: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> In-Reply-To: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , MyungJoo Ham , Chanwoo Choi , Guru Das Srinagesh , Linus Walleij , Rob Clark , Joerg Roedel , Will Deacon , Robin Murphy , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, iommu@lists.linux.dev, phone-devel@vger.kernel.org, Alexandre MINETTE , Antony Kurniawan Soemardi , Konrad Dybcio , Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779174999; l=3024; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=GqHsba4If8+Q0/z6LsTrLfjYZUS+n2wsp24jrmw+SmI=; b=R0Eq64jo957su/Rext/H7XxyzLwR6QiweC1EQrpy3yXxnhcRhSfMKd8ghkpNPDaP6URdnuglq edWyyDJy9uPAthgpk785Ozy6cLi+Gtvco2qMkreSDBI7saUUfsWyJYL X-Developer-Key: i=contact@alex-min.fr; a=ed25519; pk=KOCaxY4v16ptaT0uk1FRkuaDF2n1JhmnYwLiqWD76M4= X-Endpoint-Received: by B4 Relay for contact@alex-min.fr/20260421 with auth_id=743 X-Original-From: Alexandre MINETTE Reply-To: contact@alex-min.fr From: Alexandre MINETTE The APQ8064 HS USB controller nodes describe the transceiver clock as "core", but the ChipIdea MSM glue expects "core" to be the controller fabric clock and "fs" to be the transceiver clock. This mismatch can leave the fabric clock disabled while the controller is accessed. Some boards may tolerate that if the clock is already enabled elsewhere, but it is not a correct description of the hardware. Describe the RPM Daytona fabric clock as "core", the AHB clock as "iface", and the transceiver clock as "fs" for all APQ8064 HS USB controllers. Without this, USB does not probe reliably on Samsung Galaxy S4 because the fabric clock remains disabled. Link: https://lore.kernel.org/all/20260516-qcom-ci-hdrc-clock-fix-v2-1-aaec= 8d33d0aa@smankusors.com/ Suggested-by: Antony Kurniawan Soemardi Signed-off-by: Alexandre MINETTE Acked-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov Reviewed-by: Linus Walleij --- arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/q= com/qcom-apq8064.dtsi index 09062b2ad8ba..d64a162abdad 100644 --- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi @@ -813,8 +813,10 @@ usb1: usb@12500000 { reg =3D <0x12500000 0x200>, <0x12500200 0x200>; interrupts =3D ; - clocks =3D <&gcc USB_HS1_XCVR_CLK>, <&gcc USB_HS1_H_CLK>; - clock-names =3D "core", "iface"; + clocks =3D <&gcc USB_HS1_H_CLK>, + <&rpmcc RPM_DAYTONA_FABRIC_CLK>, + <&gcc USB_HS1_XCVR_CLK>; + clock-names =3D "iface", "core", "fs"; assigned-clocks =3D <&gcc USB_HS1_XCVR_CLK>; assigned-clock-rates =3D <60000000>; resets =3D <&gcc USB_HS1_RESET>; @@ -844,8 +846,10 @@ usb3: usb@12520000 { reg =3D <0x12520000 0x200>, <0x12520200 0x200>; interrupts =3D ; - clocks =3D <&gcc USB_HS3_XCVR_CLK>, <&gcc USB_HS3_H_CLK>; - clock-names =3D "core", "iface"; + clocks =3D <&gcc USB_HS3_H_CLK>, + <&rpmcc RPM_DAYTONA_FABRIC_CLK>, + <&gcc USB_HS3_XCVR_CLK>; + clock-names =3D "iface", "core", "fs"; assigned-clocks =3D <&gcc USB_HS3_XCVR_CLK>; assigned-clock-rates =3D <60000000>; resets =3D <&gcc USB_HS3_RESET>; @@ -875,8 +879,10 @@ usb4: usb@12530000 { reg =3D <0x12530000 0x200>, <0x12530200 0x200>; interrupts =3D ; - clocks =3D <&gcc USB_HS4_XCVR_CLK>, <&gcc USB_HS4_H_CLK>; - clock-names =3D "core", "iface"; + clocks =3D <&gcc USB_HS4_H_CLK>, + <&rpmcc RPM_DAYTONA_FABRIC_CLK>, + <&gcc USB_HS4_XCVR_CLK>; + clock-names =3D "iface", "core", "fs"; assigned-clocks =3D <&gcc USB_HS4_XCVR_CLK>; assigned-clock-rates =3D <60000000>; resets =3D <&gcc USB_HS4_RESET>; --=20 2.43.0 From nobody Mon May 25 03:56:55 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 745D13D0924; Tue, 19 May 2026 07:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; cv=none; b=gzPC1a20owOXiFyalEsmulX+aCjIdCKO2kl0/3fPQ+84JFMR7vMeIPjHOqTYmmh1nQOmRpKVsfrAx8jIluzWxrgQciFTGULW07/HS7uSkEz881WIQSUtUjag9iHbPdbggC/4iVtjKjg3Dk4Po9r7fXB1sOTeJtQJgxWSs+zgtws= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; c=relaxed/simple; bh=YNV4oMrK6Qs5jSigZA6uUXDiqIGdLX01+lYl4OrYnKo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=f59RocolbtfhijzGcs8sT1bjKlBjKWTQ31V41YuLMctX94I4Z6aADext1KQFoJdhYXDyBiWGPpAWA09A/Nzfsz8YmvGX8T6Np0xBLJhVwRWCrj4W4HqMm8BjaGWMC8/l4qbCuWHsBNdWEHpA4cmvTjNxD0KQWJva4+707+tVoAs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nZ0aH4KH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nZ0aH4KH" Received: by smtp.kernel.org (Postfix) with ESMTPS id 3CFF3C2BCC9; Tue, 19 May 2026 07:16:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779175001; bh=YNV4oMrK6Qs5jSigZA6uUXDiqIGdLX01+lYl4OrYnKo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=nZ0aH4KHmDgOj0cAW+2vbzm73+0D+ziwYZHeSnI9/MDevk0YXFCBh+JmD+wfOisSJ ryUbdyYYQW4PuY1HMP9CZ3oRwMw/E53OxOsLyTTf/zSCiTAKlsgfSLxLqlwmY0aZ9D lHEMYynnpxMZ0mz0A64DRkD2pQw8Pj5XMJMillWIykcqj88vCEQfV1bTBkxyee51rX rV2Fi0PYkGEMYjj2dQqHE32qkLxHTqEZsVmKtjgcsDyx3m4pyVkRvMspuQV8oMDGAx y19aBnRifgV6PeEgo4a5PW2Tn0hGT4IcjL6sk7F2YYCTqliWzZWr8Ts7AKq4LHqYm+ P20+pZ1lQqMNg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3567ACD4F5B; Tue, 19 May 2026 07:16:41 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 19 May 2026 09:16:37 +0200 Subject: [PATCH v3 7/8] ARM: dts: qcom: pm8921: Add USB ID extcon 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: <20260519-mainline-send-v1-sending-v3-7-3dd7aa125353@alex-min.fr> References: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> In-Reply-To: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , MyungJoo Ham , Chanwoo Choi , Guru Das Srinagesh , Linus Walleij , Rob Clark , Joerg Roedel , Will Deacon , Robin Murphy , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, iommu@lists.linux.dev, phone-devel@vger.kernel.org, Alexandre MINETTE X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779174999; l=1141; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=7LFsLsEUiYEeh3bW/vbTHCTwzetxBuEF5Bgg6PKOt0I=; b=yCJ9eifEYu/jios1gp2u4NSu25jxUULeTqywdYHiosDCBM7LTZDJkiHGBM79I0YtLqq2beTgt v9okRz/c/mkCU3PbN4EyuYOaE8TnKH1tNG4E18/PoZYAxkFXHLcN9sZ X-Developer-Key: i=contact@alex-min.fr; a=ed25519; pk=KOCaxY4v16ptaT0uk1FRkuaDF2n1JhmnYwLiqWD76M4= X-Endpoint-Received: by B4 Relay for contact@alex-min.fr/20260421 with auth_id=743 X-Original-From: Alexandre MINETTE Reply-To: contact@alex-min.fr From: Alexandre MINETTE PM8921 exposes the USB ID signal through the PMIC interrupt controller as USB_ID_IN. Add an extcon child for this interrupt so USB controllers can consume it for role detection. Unlike PM8941, the PM8921 USB ID interrupt path has no known register resource. The downstream PM8xxx misc device is also instantiated without one, and the mainline extcon driver only consumes the named USB ID interrupt. Keep the node non-addressable and describe only the interrupt. Signed-off-by: Alexandre MINETTE --- arch/arm/boot/dts/qcom/pm8921.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/qcom/pm8921.dtsi b/arch/arm/boot/dts/qcom/pm= 8921.dtsi index 535cb6a2543f..30366536f580 100644 --- a/arch/arm/boot/dts/qcom/pm8921.dtsi +++ b/arch/arm/boot/dts/qcom/pm8921.dtsi @@ -121,6 +121,13 @@ ref_muxoff: adc-channel@f { reg =3D <0x00 0x0f>; }; }; + + usb_id: usb-detect { + compatible =3D "qcom,pm8921-misc"; + interrupt-names =3D "usb_id"; + interrupts-extended =3D <&pm8921 49 IRQ_TYPE_EDGE_BOTH>; + status =3D "disabled"; + }; }; }; =20 --=20 2.43.0 From nobody Mon May 25 03:56:55 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7C9B63D0935; Tue, 19 May 2026 07:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; cv=none; b=FDcStAKOWAfdBgfPw5fSQsVHzNqr5eolVp7fEtp+AWN4KiQHmdV4iXDRhwDsBQKSfn7vy4WIL/OV2HxGHkpBCPtZLHGBuDEnInsG3LW83bEvMmQafAZfdRWyDbyFzM9AMa2y7UNY00BQMk4voAKM2gixlWE6RdMVGAkdVtFdXzM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175001; c=relaxed/simple; bh=hIyKoRmKYI82bZ6t96ct2DgS2XY/ujBgGU0Klry0GFc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rma4HDue/jkMNTv6Q7Bt+TNiAqITCFpYKXA90lz8mtT8FAsjxew6iq8hU8pZR9KgH+uuO549uPZ7VYe3g2XVJmy2YiR8VrRWSfmVrREkx8LH6Cp+75Wb4ldMQPc6JADjMmlMjjldpCAH0Dit1CdqqsulZJmaDroYH1LyNBZCnSM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YywnGfDY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YywnGfDY" Received: by smtp.kernel.org (Postfix) with ESMTPS id 4F40EC2BCC6; Tue, 19 May 2026 07:16:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779175001; bh=hIyKoRmKYI82bZ6t96ct2DgS2XY/ujBgGU0Klry0GFc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YywnGfDYpwy6S79RVNx/ywNm8RRiDRW/FehIGS1BV/OqJLMj47wpklfVedptePXa2 v4OE4kAJjcqo2mZJu+FWPEyTaBlJowt2oVATS2EcEPiEI2Jk+IJbo2VLXWcP2AbEVZ fZulsHICejR0s+06Cdk90sueb/sPcWu2QkLJbsLDXJXHTqN88Lpa0Xkp6ItH34uJSW MjUZY3fKQFJY7UMzC/AgBEK7v49YtUQZuskcpnWVF1F3D8BC1w12tpToiuhPpRYKEZ FHUUzr6hHHTDFpSAhax8apto9U22OVazRM4uBHnw/6MmL3HfPo6kor/Ys4jECT19Uf aRvoXeFLVPdnw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 466C3CD4F3C; Tue, 19 May 2026 07:16:41 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 19 May 2026 09:16:38 +0200 Subject: [PATCH v3 8/8] ARM: dts: qcom: Add Samsung Galaxy S4 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: <20260519-mainline-send-v1-sending-v3-8-3dd7aa125353@alex-min.fr> References: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> In-Reply-To: <20260519-mainline-send-v1-sending-v3-0-3dd7aa125353@alex-min.fr> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , MyungJoo Ham , Chanwoo Choi , Guru Das Srinagesh , Linus Walleij , Rob Clark , Joerg Roedel , Will Deacon , Robin Murphy , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, iommu@lists.linux.dev, phone-devel@vger.kernel.org, Alexandre MINETTE X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779174999; l=11902; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=i+JEVK1Bhe67WKumh2+HJg4W0xvtHU2jnpl9BixFwsg=; b=DeudmFgofvsX0BEdqrkE/mMtPs/gRC9Pr9vgWsI5ME8u/zP2wHaYmZAFOX3Wp7vxhrCqPzRw0 /2eMFASvDaNCb2TrKxnd9qmy2WKdy5/W15dsTt7mRZ66L15dvMYaxAF X-Developer-Key: i=contact@alex-min.fr; a=ed25519; pk=KOCaxY4v16ptaT0uk1FRkuaDF2n1JhmnYwLiqWD76M4= X-Endpoint-Received: by B4 Relay for contact@alex-min.fr/20260421 with auth_id=743 X-Original-From: Alexandre MINETTE Reply-To: contact@alex-min.fr From: Alexandre MINETTE Add a device tree for the Samsung Galaxy S4, codenamed jflte. This has been tested on a Samsung Galaxy S4 GT-I9505. The initial support covers UART, USB peripheral mode with USB networking, the front LED and the physical buttons. Signed-off-by: Alexandre MINETTE Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/qcom-apq8064-samsung-jflte.dts | 485 +++++++++++++++++= ++++ 2 files changed, 486 insertions(+) diff --git a/arch/arm/boot/dts/qcom/Makefile b/arch/arm/boot/dts/qcom/Makef= ile index 32a44b02d2fa..6f89ba426f98 100644 --- a/arch/arm/boot/dts/qcom/Makefile +++ b/arch/arm/boot/dts/qcom/Makefile @@ -13,6 +13,7 @@ dtb-$(CONFIG_ARCH_QCOM) +=3D \ qcom-apq8064-sony-xperia-lagan-yuga.dtb \ qcom-apq8064-asus-nexus7-flo.dtb \ qcom-apq8064-lg-nexus4-mako.dtb \ + qcom-apq8064-samsung-jflte.dtb \ qcom-apq8074-dragonboard.dtb \ qcom-ipq4018-ap120c-ac.dtb \ qcom-ipq4018-ap120c-ac-bit.dtb \ diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064-samsung-jflte.dts b/arch/a= rm/boot/dts/qcom/qcom-apq8064-samsung-jflte.dts new file mode 100644 index 000000000000..2f10466077c7 --- /dev/null +++ b/arch/arm/boot/dts/qcom/qcom-apq8064-samsung-jflte.dts @@ -0,0 +1,485 @@ +// SPDX-License-Identifier: GPL-2.0-only +#include +#include +#include +#include +#include + +#include "qcom-apq8064-v2.0.dtsi" +#include "pm8821.dtsi" +#include "pm8921.dtsi" + +/ { + model =3D "Samsung Galaxy S4 (jflte)"; + compatible =3D "samsung,jflte", "qcom,apq8064"; + chassis-type =3D "handset"; + + aliases { + serial0 =3D &gsbi7_serial; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + reserved-memory { + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges; + + ramoops@88d00000 { + compatible =3D "ramoops"; + reg =3D <0x88d00000 0x100000>; + record-size =3D <0x20000>; + console-size =3D <0x20000>; + ftrace-size =3D <0x20000>; + }; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + pinctrl-0 =3D <&gpio_keys_default>; + pinctrl-names =3D "default"; + + key-home { + label =3D "Home"; + gpios =3D <&pm8921_gpio 30 GPIO_ACTIVE_LOW>; + debounce-interval =3D <5>; + linux,code =3D ; + wakeup-source; + }; + + key-volume-up { + label =3D "Volume Up"; + gpios =3D <&pm8921_gpio 35 GPIO_ACTIVE_LOW>; + debounce-interval =3D <5>; + linux,code =3D ; + wakeup-source; + }; + + key-volume-down { + label =3D "Volume Down"; + gpios =3D <&pm8921_gpio 37 GPIO_ACTIVE_LOW>; + debounce-interval =3D <5>; + linux,code =3D ; + wakeup-source; + }; + }; + + i2c-led { + compatible =3D "i2c-gpio"; + sda-gpios =3D <&tlmm_pinmux 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + scl-gpios =3D <&tlmm_pinmux 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + i2c-gpio,delay-us =3D <2>; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + led-controller@30 { + compatible =3D "panasonic,an30259a"; + reg =3D <0x30>; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + led@1 { + reg =3D <1>; + function =3D LED_FUNCTION_STATUS; + color =3D ; + }; + + led@2 { + reg =3D <2>; + function =3D LED_FUNCTION_STATUS; + color =3D ; + }; + + led@3 { + reg =3D <3>; + function =3D LED_FUNCTION_STATUS; + color =3D ; + }; + }; + }; + + i2c-muic { + compatible =3D "i2c-gpio"; + sda-gpios =3D <&tlmm_pinmux 22 GPIO_ACTIVE_HIGH>; + scl-gpios =3D <&tlmm_pinmux 23 GPIO_ACTIVE_HIGH>; + i2c-gpio,delay-us =3D <2>; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + max77693: pmic@66 { + compatible =3D "maxim,max77693"; + reg =3D <0x66>; + interrupt-parent =3D <&tlmm_pinmux>; + interrupts =3D <55 IRQ_TYPE_EDGE_FALLING>; + pinctrl-0 =3D <&muic_int_default_state>; + pinctrl-names =3D "default"; + + muic: muic { + compatible =3D "maxim,max77693-muic"; + safeout1-supply =3D <&esafeout1_reg>; + safeout2-supply =3D <&esafeout2_reg>; + }; + + regulators { + esafeout1_reg: ESAFEOUT1 { + regulator-name =3D "ESAFEOUT1"; + }; + + esafeout2_reg: ESAFEOUT2 { + regulator-name =3D "ESAFEOUT2"; + }; + }; + }; + }; +}; + +&gsbi7 { + qcom,mode =3D ; + + status =3D "okay"; +}; + +&gsbi7_serial { + pinctrl-0 =3D <&gsbi7_uart_pin_a>; + pinctrl-names =3D "default"; + + status =3D "okay"; +}; + +&pm8821 { + interrupts-extended =3D <&tlmm_pinmux 76 IRQ_TYPE_LEVEL_LOW>; +}; + +&pm8921 { + interrupts-extended =3D <&tlmm_pinmux 74 IRQ_TYPE_LEVEL_LOW>; +}; + +&riva { + pinctrl-0 =3D <&riva_wlan_pin_a>, <&riva_bt_pin_a>, <&riva_fm_pin_a>; + pinctrl-names =3D "default"; + + vddcx-supply =3D <&pm8921_s3>; + vddmx-supply =3D <&pm8921_l24>; + vddpx-supply =3D <&pm8921_s4>; + + status =3D "okay"; + + iris { + vddxo-supply =3D <&pm8921_l4>; + vddrfa-supply =3D <&pm8921_s2>; + vddpa-supply =3D <&pm8921_l10>; + vdddig-supply =3D <&pm8921_lvs2>; + }; +}; + +&rpm { + regulators { + compatible =3D "qcom,rpm-pm8921-regulators"; + + vdd_l1_l2_l12_l18-supply =3D <&pm8921_s4>; + vdd_l24-supply =3D <&pm8921_s1>; + vdd_l25-supply =3D <&pm8921_s1>; + vdd_l26-supply =3D <&pm8921_s7>; + vdd_l27-supply =3D <&pm8921_s7>; + vdd_l28-supply =3D <&pm8921_s7>; + vin_lvs1_3_6-supply =3D <&pm8921_s4>; + vin_lvs2-supply =3D <&pm8921_s1>; + vin_lvs4_5_7-supply =3D <&pm8921_s4>; + + pm8921_l1: l1 { + regulator-min-microvolt =3D <1100000>; + regulator-max-microvolt =3D <1100000>; + regulator-always-on; + bias-pull-down; + }; + + /* mipi_dsi.1-dsi1_pll_vdda */ + pm8921_l2: l2 { + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1200000>; + bias-pull-down; + }; + + /* msm_otg-HSUSB_3p3 */ + pm8921_l3: l3 { + regulator-min-microvolt =3D <3075000>; + regulator-max-microvolt =3D <3500000>; + bias-pull-down; + }; + + /* msm_otg-HSUSB_1p8 */ + pm8921_l4: l4 { + regulator-always-on; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + }; + + /* msm_sdcc.1-sdc_vdd */ + pm8921_l5: l5 { + regulator-min-microvolt =3D <2950000>; + regulator-max-microvolt =3D <2950000>; + bias-pull-down; + }; + + /* earjack_debug */ + pm8921_l6: l6 { + regulator-min-microvolt =3D <3000000>; + regulator-max-microvolt =3D <3000000>; + bias-pull-down; + }; + + /* mipi_dsi.1-dsi_vci */ + pm8921_l8: l8 { + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <3000000>; + bias-pull-down; + }; + + /* wcnss_wlan.0-iris_vddpa */ + pm8921_l10: l10 { + regulator-min-microvolt =3D <2900000>; + regulator-max-microvolt =3D <2900000>; + bias-pull-down; + }; + + /* mipi_dsi.1-dsi1_avdd */ + pm8921_l11: l11 { + regulator-min-microvolt =3D <2850000>; + regulator-max-microvolt =3D <2850000>; + bias-pull-down; + }; + + /* touch_vdd */ + pm8921_l15: l15 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <2950000>; + bias-pull-down; + }; + + /* slimport_dvdd */ + pm8921_l18: l18 { + regulator-min-microvolt =3D <1100000>; + regulator-max-microvolt =3D <1100000>; + bias-pull-down; + }; + + /* touch_io */ + pm8921_l22: l22 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + bias-pull-down; + }; + + /* + * mipi_dsi.1-dsi_vddio + * pil_qdsp6v4.1-pll_vdd + * pil_qdsp6v4.2-pll_vdd + * msm_ehci_host.0-HSUSB_1p8 + * msm_ehci_host.1-HSUSB_1p8 + */ + pm8921_l23: l23 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + bias-pull-down; + }; + + /* + * tabla2x-slim-CDC_VDDA_A_1P2V + * tabla2x-slim-VDDD_CDC_D + */ + pm8921_l24: l24 { + regulator-min-microvolt =3D <750000>; + regulator-max-microvolt =3D <1150000>; + bias-pull-down; + }; + + pm8921_l25: l25 { + regulator-min-microvolt =3D <1250000>; + regulator-max-microvolt =3D <1250000>; + regulator-always-on; + bias-pull-down; + }; + + pm8921_l26: l26 { + regulator-min-microvolt =3D <375000>; + regulator-max-microvolt =3D <1050000>; + regulator-always-on; + bias-pull-down; + }; + + pm8921_l27: l27 { + regulator-min-microvolt =3D <1100000>; + regulator-max-microvolt =3D <1100000>; + }; + + pm8921_l28: l28 { + regulator-min-microvolt =3D <1050000>; + regulator-max-microvolt =3D <1050000>; + bias-pull-down; + }; + + /* wcnss_wlan.0-iris_vddio */ + pm8921_lvs1: lvs1 { + bias-pull-down; + }; + + /* wcnss_wlan.0-iris_vdddig */ + pm8921_lvs2: lvs2 { + bias-pull-down; + }; + + pm8921_lvs3: lvs3 { + bias-pull-down; + }; + + pm8921_lvs4: lvs4 { + bias-pull-down; + }; + + pm8921_lvs5: lvs5 { + bias-pull-down; + }; + + /* mipi_dsi.1-dsi_iovcc */ + pm8921_lvs6: lvs6 { + bias-pull-down; + }; + + /* + * pil_riva-pll_vdd + * lvds.0-lvds_vdda + * mipi_dsi.1-dsi1_vddio + * hdmi_msm.0-hdmi_vdda + */ + pm8921_lvs7: lvs7 { + bias-pull-down; + }; + + pm8921_ncp: ncp { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + qcom,switch-mode-frequency =3D <1600000>; + }; + + /* Buck SMPS */ + pm8921_s1: s1 { + regulator-always-on; + regulator-min-microvolt =3D <1225000>; + regulator-max-microvolt =3D <1225000>; + qcom,switch-mode-frequency =3D <3200000>; + bias-pull-down; + }; + + pm8921_s2: s2 { + regulator-min-microvolt =3D <1300000>; + regulator-max-microvolt =3D <1300000>; + qcom,switch-mode-frequency =3D <1600000>; + bias-pull-down; + }; + + /* msm otg HSUSB_VDDCX */ + pm8921_s3: s3 { + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <1150000>; + qcom,switch-mode-frequency =3D <4800000>; + bias-pull-down; + }; + + /* + * msm_sdcc.1-sdc-vdd_io + * tabla2x-slim-CDC_VDDA_RX + * tabla2x-slim-CDC_VDDA_TX + * tabla2x-slim-CDC_VDD_CP + * tabla2x-slim-VDDIO_CDC + */ + pm8921_s4: s4 { + regulator-always-on; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + qcom,switch-mode-frequency =3D <1600000>; + bias-pull-down; + qcom,force-mode =3D ; + }; + + /* + * supply vdd_l26, vdd_l27, vdd_l28 + */ + pm8921_s7: s7 { + regulator-min-microvolt =3D <1300000>; + regulator-max-microvolt =3D <1300000>; + qcom,switch-mode-frequency =3D <3200000>; + }; + + pm8921_s8: s8 { + regulator-min-microvolt =3D <2200000>; + regulator-max-microvolt =3D <2200000>; + qcom,switch-mode-frequency =3D <1600000>; + }; + }; +}; + +/* eMMC */ +&sdcc1 { + vmmc-supply =3D <&pm8921_l5>; + vqmmc-supply =3D <&pm8921_s4>; + + status =3D "okay"; +}; + +&pm8921_gpio { + gpio_keys_default: gpio-keys-default-state { + pins =3D "gpio30", "gpio35", "gpio37"; + function =3D PMIC_GPIO_FUNC_NORMAL; + input-enable; + bias-pull-up; + power-source =3D ; + }; +}; + +&tlmm_pinmux { + gsbi7_uart_pin_a: gsbi7-uart-pin-active-state { + rx-pins { + pins =3D "gpio83"; + function =3D "gsbi7"; + drive-strength =3D <2>; + bias-pull-up; + }; + + tx-pins { + pins =3D "gpio82"; + function =3D "gsbi7"; + drive-strength =3D <4>; + bias-disable; + }; + }; + + muic_int_default_state: muic-int-default-state { + pins =3D "gpio55"; + function =3D "gpio"; + drive-strength =3D <2>; + input-enable; + bias-disable; + }; +}; + +&usb_hs1_phy { + v3p3-supply =3D <&pm8921_l3>; + v1p8-supply =3D <&pm8921_l4>; + extcon =3D <&muic>; +}; + +&usb_id { + status =3D "okay"; +}; + +&usb1 { + dr_mode =3D "otg"; + extcon =3D <&muic>, <&usb_id>; + + status =3D "okay"; +}; --=20 2.43.0