From nobody Fri Jun 12 01:40:43 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 AC45E3E835E; Tue, 9 Jun 2026 08:13:56 +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=1780992836; cv=none; b=sPVlX9Ccvw7cfjk6dEPU3c4UWrRm8YmNLWRLJPRHS+CRJ6zCUuJmrRdUokZGxLBeKSYqzKtHt33Eec144HxtqHE/fQOOXEW5wOnZX/DvFQD02D2AwSsP5KNqYHTQ18oxeul2uIqLtgwIcKV3SQR5E+CKJAPEnxYlacCzAS5CnKI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780992836; c=relaxed/simple; bh=UQADokhMMs9ijQx/8MIvZTTkJpSOxP4ort4y3prZCtk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=drmOWsHSDKaVIpoDRNia07+jKnXY1V2ltahuzJ7Mmvr28fkYt9BZf2XJJ+Gb2846MRVekiygwfc3yIZ7f7JlthYcvXnIT71/EbPVr9OZHfqU8iGkaY84/keviYJ5wx69eb3tZ/nO8KJGlHUFaWpCPob2f+RURUgk3iKzKybIqN8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c2Gyq1ot; 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="c2Gyq1ot" Received: by smtp.kernel.org (Postfix) with ESMTPS id 424B7C2BCB4; Tue, 9 Jun 2026 08:13:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1780992836; bh=UQADokhMMs9ijQx/8MIvZTTkJpSOxP4ort4y3prZCtk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=c2Gyq1otZ/yySsQw9ulQoVWns/Gl20Ud6rFtvfVm/cexzcNcYHXVGXTNgTC1UVaVq xjXEi29t23V7C580LQ6WChscGuyuJvyIhjvg6rCrsfMvC4BG5B1ypM1M0aN7JkML/u Y0Lv01sZl4qBRTPt+uuraPi+qp52s4thX4LZ6DF30SwQA7MRtmt0ceSF4WlmvHmxBE H4IVO0LzKvRekXvODxIy5LqEdN4R0bPgMijQnJkHkzSpXTp9MUBCK/jky2hqDH35GL OPPSVRLspZDpsC+IalmC7nA71lNLi+NI8BXaqxun/XibqROoFIbuTGJ38M47578IOU 6t1bjej40S4og== 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 289D5CD8CAD; Tue, 9 Jun 2026 08:13:56 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 09 Jun 2026 10:13:44 +0200 Subject: [PATCH v4 1/6] 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: <20260609-mainline-send-v1-sending-v4-1-83768fbf404d@alex-min.fr> References: <20260609-mainline-send-v1-sending-v4-0-83768fbf404d@alex-min.fr> In-Reply-To: <20260609-mainline-send-v1-sending-v4-0-83768fbf404d@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 , 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, phone-devel@vger.kernel.org, Alexandre MINETTE , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780992834; l=854; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=Lrgs0k4d0tyivYZbLbwfL0EK902GKco2rWAQQHTAiDQ=; b=iG960oqpG5Gws+WwzouqzOgwg0yO/ydb451Lct7m2qqXkK6j/9yNPVS2AiPGC3iSmOHyygAN6 VNfxO5HAzpdBankvatXefIZzsLlQROSAzrKV9sHFmTZUsrAcXjYyzxt 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 Fri Jun 12 01:40:43 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 AC4F43EA960; Tue, 9 Jun 2026 08:13:56 +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=1780992836; cv=none; b=mBa9eSaadpI2xj+47ZKasSaSL6yPFNKTDPNmo9WtbcVlAFAyJvxnFaUzK+sC3FI1bNELrMeHwv1gIQ4LzP0bSEABK4j15U9f//LuTz8TxCWc8KsABVrc1x2aqub9P93PMcn4RNu8J6MmkXauRnPmtZwhEunUlJNRHp2LM08PXSE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780992836; 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=ug1H/a3BqrZ1vwF5GGwIPXCNJrEki9g/nX7+NlNGhvmgTB4d5Jzyf5iGvyfWp8f2YLS5BX8W0XGLd95I39EbahQHtUN+8xFxpXXhWZNTKDw6eBHLkVI6VAHCdr4YpKUdUmY0a4Wu7Kdr1BEwmpE9r9QEcOrPCLQ4e9dtW7pU27w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CWOELbB8; 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="CWOELbB8" Received: by smtp.kernel.org (Postfix) with ESMTPS id 54473C4AF14; Tue, 9 Jun 2026 08:13:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1780992836; bh=7DeREkHBuy3CC/OxlxoJowva/HyNWfGd+W2ZNWZknP8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=CWOELbB8IQffBpp32Xxy7uNHNgdX5kV9vYYSX0s1dXb8DpvPE3LdZO5E0JDYXgEB7 rD4w/6bhh+0JCZ97PTbzLciQUZrZzv8QtC63aWGiJQuj+Pj+COYdE279k9PdTIdyU7 Z9XRWmdM8G0lDiIIp4uEpKGaqrlb8UNkOgCdMSo0cYETDvMVnVU4ho2yu+VLz7O8w+ J+itGKcbMj5wJgwM40fVQG/PSVu7/kWo7o+rQa/PnV2cTw+YGy+XUrjOS/IRWCbHGj ANnHMbz+CsLkfZ7zPXkVGGEo1+gn/zN/NMxpsIJGp6SCzbsIDK64p2B267FUojhyQB a/uILlsKYsepg== 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 46302CD8CBD; Tue, 9 Jun 2026 08:13:56 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 09 Jun 2026 10:13:45 +0200 Subject: [PATCH v4 2/6] 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: <20260609-mainline-send-v1-sending-v4-2-83768fbf404d@alex-min.fr> References: <20260609-mainline-send-v1-sending-v4-0-83768fbf404d@alex-min.fr> In-Reply-To: <20260609-mainline-send-v1-sending-v4-0-83768fbf404d@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 , 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, phone-devel@vger.kernel.org, Alexandre MINETTE X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780992834; l=2004; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=gqK5qmgCceA2ln5R06RBqAB8HOklQ9gk21qwB8S51xo=; b=oBXpglylxTL8r10fHries+jj6sz0vvWF+pd91bThspg4YbX+vsu5D/py2VN/VVL2saD7OMEIs tTcEhnLN/F2BihmfHOaQaRt8roOJubzk8/A0jBBIY2YOXy41lsUczPl 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 Fri Jun 12 01:40:43 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 AC6463EAC86; Tue, 9 Jun 2026 08:13:56 +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=1780992836; cv=none; b=SQmHkKUieIWkTHyRNf9mO5b0TDFOyofuKbk0qqUMyQzJ47Sm9Ootnsnvzu6smqenWYWF+M//RvyspZPC/ERrWv5Px8jc988ukCGjgg8itfQ29l5j6P1Gq1670BLuHftGSca583RDUwCW0XgRuuSTvLZu6r1U81VidBwbBISMyxk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780992836; c=relaxed/simple; bh=BXZ5QG6v4UDK57mLHZRzAVjTQ4P7nYL957IdTPYYDiM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JtVhIDZ29+eJFokf5xq1jtVdzlCwntTnHA/ckkPk273jq8T58ajfsVTu2VxgOUvfWrvuWr1R+aCQA8UqKIeORLKSbB1w9pwCwnAkenpSlAw5IA8i0iAYBfNLsw04gs1VKQxKjCdr67L1xPaOrlFisnq+vRCXcUKMNH0ULqOM4tE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t9EoloyR; 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="t9EoloyR" Received: by smtp.kernel.org (Postfix) with ESMTPS id 6CD2EC4AF19; Tue, 9 Jun 2026 08:13:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1780992836; bh=BXZ5QG6v4UDK57mLHZRzAVjTQ4P7nYL957IdTPYYDiM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=t9EoloyRnEUNQKI6/doAKImNzACYIFXQiUJMDeENYQySjR6urxvvFJH8Qq3sM+n2N VSscgmfQt6WOn0adzJJAjlZhUa9l8ZStnLXEGbqlANrE71aX7tATooOQp0wUrSyTUR aXa+hq5bvtXc9kq77EyxXKR7D8hEInDzN6z3w3M66MDfAsZZqr2HZWZaQW3KcVCCYr Asqmnqh24suqpuJ83ad7xYX3e9n1ZAQBF/NzGfLtVT8F+1aO9YmJJ9+WNLb4ojtrSx 0rkc8RxVYVVfh7UBVK51YBiU9Y/N/0vo5DdPoCiTpMRRoHxBlX2aYkPD8xu1lXjEUP X5fAuMdlWpI1g== 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 6114CCD8CBF; Tue, 9 Jun 2026 08:13:56 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 09 Jun 2026 10:13:46 +0200 Subject: [PATCH v4 3/6] 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: <20260609-mainline-send-v1-sending-v4-3-83768fbf404d@alex-min.fr> References: <20260609-mainline-send-v1-sending-v4-0-83768fbf404d@alex-min.fr> In-Reply-To: <20260609-mainline-send-v1-sending-v4-0-83768fbf404d@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 , 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, 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=1780992834; l=3024; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=GqHsba4If8+Q0/z6LsTrLfjYZUS+n2wsp24jrmw+SmI=; b=WtpNUFqzLuML7j28Xhycbr2yVGrBcroxfjqO4B71uk1XC4A/nZSBPPn6utz7xEYTaGQY3Upe2 Dglq3H8GIf0AmVMamW1i5+fs7CFO7Px+xYHakpk4tsrhCUPqx4b4KuE 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 Fri Jun 12 01:40:43 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 B1B8C3EBF02; Tue, 9 Jun 2026 08:13:56 +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=1780992836; cv=none; b=Y50Ya5arcPlZFKbenYSl8n1mdjrn+Q3OZy2KedMd2JxMh3UYcsBxhcZszHpf9eLs4cqbeFakkttT4EJnhwACgApdaJCjI2EDkWHFEl39430PepgtmuxKSHnXXWUTcp5T1pKdiv8vLMikG2+QvaCuCo/hIJlFyX+nsNqYPlOUCJI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780992836; c=relaxed/simple; bh=eK5KW5XaUhZgqtyPX8V2F4qYGjamjcNJA3BtmtkTQS8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XB1nahkv0cWToBjxaEf5cRg9b5+vlX9Chfuz8majOTjYQMSu8UeG8P5jfj6LZ+yoVcpl13bo56o7DDqcsXScedQCzihBSRcCvjhUNravZ7VqjxjIXpLFUMU6xdS4W2nPC5C/Zz/3tWARkNtDt4bhU4+XsfvXVPDr9cLNSauXdNg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=axerFYFb; 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="axerFYFb" Received: by smtp.kernel.org (Postfix) with ESMTPS id 8AFBCC4AF17; Tue, 9 Jun 2026 08:13:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1780992836; bh=eK5KW5XaUhZgqtyPX8V2F4qYGjamjcNJA3BtmtkTQS8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=axerFYFb1yFaRZh1VhB/KrjnyFqOYsfDUSNnZcT3tAavh2gS1xc2Y7/ZRYzBwnuHi 8VXRH+vF+VFZRp5TGNNaV6bxA8HYR90LLRMYWh8N5wBDtPvH4kb2qoci/BOncdWaew FkCkVfWqsZC+90m0raCN4STp7//qLCRGBcBmxRAVsDwYRw0FXUiZ0D/XRD3FbrsrbV BiLanEwx5r/Yi4PZwiS3ryEh3wfA2HNyuyehkGVyI9pECUZFgdQ6DrelWE4GHYJYFr 852IgVufbYIwcAii8Y0NSo1WikYWjHiGqS2nX5CUNe8w70P2rY6WGwMVsn67MLqol5 q3oS7MEtco+xg== 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 7C426CD8CBD; Tue, 9 Jun 2026 08:13:56 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 09 Jun 2026 10:13:47 +0200 Subject: [PATCH v4 4/6] mfd: qcom-pm8xxx: register PM8921 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: <20260609-mainline-send-v1-sending-v4-4-83768fbf404d@alex-min.fr> References: <20260609-mainline-send-v1-sending-v4-0-83768fbf404d@alex-min.fr> In-Reply-To: <20260609-mainline-send-v1-sending-v4-0-83768fbf404d@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 , 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, phone-devel@vger.kernel.org, Alexandre MINETTE X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780992834; l=4481; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=wPc9N22m75KCBH5Mx8x+Rn9GxrIKl+3I5FlNe49Dud8=; b=IvoIuxNwisTPcXH+KYP8fWilf8j8ySunTiY75aoSMz0Yq0jEWEpw5NXD7p1Lt8W/7X557L0df 2MGBMsieOQqBwsO9zMfmlrNRU2ayRoWAXANhf4ua+yuFZRocnIBI9f0 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 reports the USB ID pin through interrupt 49 of its interrupt controller. Unlike PM8941, this path has no separate addressable misc block to represent as a devicetree child node. Register a child platform device for the existing Qualcomm USB extcon driver after creating the PMIC IRQ domain. Pass the USB ID interrupt as a named resource and reuse the PM8921 firmware node, allowing consumers to reference the PMIC node directly as their extcon provider. Unregister the child device and dispose of the IRQ mapping when the PMIC is removed or probing fails. Signed-off-by: Alexandre MINETTE --- drivers/mfd/qcom-pm8xxx.c | 78 +++++++++++++++++++++++++++++++++++++++++++= ++-- 1 file changed, 76 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/qcom-pm8xxx.c b/drivers/mfd/qcom-pm8xxx.c index 0cf374c015ce..884fc99a1488 100644 --- a/drivers/mfd/qcom-pm8xxx.c +++ b/drivers/mfd/qcom-pm8xxx.c @@ -7,6 +7,7 @@ =20 #include #include +#include #include #include #include @@ -64,12 +65,15 @@ =20 struct pm_irq_data { int num_irqs; + int usb_id_irq; struct irq_chip *irq_chip; irq_handler_t irq_handler; }; =20 struct pm_irq_chip { struct regmap *regmap; + struct platform_device *usb_extcon; + unsigned int usb_id_irq; spinlock_t pm_irq_lock; struct irq_domain *irqdomain; unsigned int num_blocks; @@ -492,6 +496,13 @@ static const struct pm_irq_data pm8xxx_data =3D { .irq_handler =3D pm8xxx_irq_handler, }; =20 +static const struct pm_irq_data pm8921_data =3D { + .num_irqs =3D PM8XXX_NR_IRQS, + .usb_id_irq =3D 49, + .irq_chip =3D &pm8xxx_irq_chip, + .irq_handler =3D pm8xxx_irq_handler, +}; + static const struct pm_irq_data pm8821_data =3D { .num_irqs =3D PM8821_NR_IRQS, .irq_chip =3D &pm8821_irq_chip, @@ -501,11 +512,60 @@ static const struct pm_irq_data pm8821_data =3D { static const struct of_device_id pm8xxx_id_table[] =3D { { .compatible =3D "qcom,pm8058", .data =3D &pm8xxx_data}, { .compatible =3D "qcom,pm8821", .data =3D &pm8821_data}, - { .compatible =3D "qcom,pm8921", .data =3D &pm8xxx_data}, + { .compatible =3D "qcom,pm8921", .data =3D &pm8921_data}, { } }; MODULE_DEVICE_TABLE(of, pm8xxx_id_table); =20 +static int pm8xxx_add_usb_extcon(struct platform_device *pdev, + struct pm_irq_chip *chip, + unsigned int hwirq) +{ + struct irq_fwspec fwspec =3D { + .fwnode =3D dev_fwnode(&pdev->dev), + .param_count =3D 2, + .param =3D { hwirq, IRQ_TYPE_EDGE_BOTH }, + }; + struct platform_device_info pdevinfo =3D { + .parent =3D &pdev->dev, + .fwnode =3D dev_fwnode(&pdev->dev), + .of_node_reused =3D true, + .name =3D "qcom-pm8xxx-usb-id", + .id =3D PLATFORM_DEVID_NONE, + }; + struct resource resource; + + chip->usb_id_irq =3D irq_create_fwspec_mapping(&fwspec); + if (!chip->usb_id_irq) + return -ENXIO; + + resource =3D DEFINE_RES_IRQ_NAMED(chip->usb_id_irq, "usb_id"); + pdevinfo.res =3D &resource; + pdevinfo.num_res =3D 1; + + chip->usb_extcon =3D platform_device_register_full(&pdevinfo); + if (IS_ERR(chip->usb_extcon)) { + int ret =3D PTR_ERR(chip->usb_extcon); + + chip->usb_extcon =3D NULL; + irq_dispose_mapping(chip->usb_id_irq); + chip->usb_id_irq =3D 0; + + return ret; + } + + return 0; +} + +static void pm8xxx_remove_usb_extcon(struct pm_irq_chip *chip) +{ + if (chip->usb_extcon) + platform_device_unregister(chip->usb_extcon); + + if (chip->usb_id_irq) + irq_dispose_mapping(chip->usb_id_irq); +} + static int pm8xxx_probe(struct platform_device *pdev) { const struct pm_irq_data *data; @@ -570,9 +630,22 @@ static int pm8xxx_probe(struct platform_device *pdev) =20 irq_set_irq_wake(irq, 1); =20 + if (data->usb_id_irq) { + rc =3D pm8xxx_add_usb_extcon(pdev, chip, data->usb_id_irq); + if (rc) + goto err_domain; + } + rc =3D of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev); if (rc) - irq_domain_remove(chip->irqdomain); + goto err_extcon; + + return 0; + +err_extcon: + pm8xxx_remove_usb_extcon(chip); +err_domain: + irq_domain_remove(chip->irqdomain); =20 return rc; } @@ -582,6 +655,7 @@ static void pm8xxx_remove(struct platform_device *pdev) struct pm_irq_chip *chip =3D platform_get_drvdata(pdev); =20 of_platform_depopulate(&pdev->dev); + pm8xxx_remove_usb_extcon(chip); irq_domain_remove(chip->irqdomain); } =20 --=20 2.43.0 From nobody Fri Jun 12 01:40:43 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 D48463EC2F6; Tue, 9 Jun 2026 08:13:56 +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=1780992836; cv=none; b=lHxHYmWgkpXRZY4B5fOuIw2vHEbuPGmtgQrAE+jUHRCH3zsLkKu8SlKlXSNt4dZZ2bpwuHn5GllQBmVJFSY3G38UQT1DsXymHJt5n/z+ZZg8t2MR9tksjjs11MOakX4PnK6jEOASAA/6AsOr1WctZyGPQ8WTdefg2AU+ejEkYHc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780992836; c=relaxed/simple; bh=ho6QcQ1LKbLfIoHgvQi0DuiBjdbVeMQkcjFmCfEHeC0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ci8u3V/uDUH4yYOv+5CdBf+wOr/icj4g+78r7CqrLTitRWfX9grDpn+s9UEs5QsboP2CxGsbzbfP0hh3pZ0mqYkN05u3/znUJnwne5opg0zrNYmZazpbZmznHCO6tNlEsxvCE665FqfQj/nNoaP1WxFNz+xTlL4nM96WEtVLWeE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WEuLlFcP; 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="WEuLlFcP" Received: by smtp.kernel.org (Postfix) with ESMTPS id AADD2C4AF16; Tue, 9 Jun 2026 08:13:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1780992836; bh=ho6QcQ1LKbLfIoHgvQi0DuiBjdbVeMQkcjFmCfEHeC0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=WEuLlFcPD25pD1JsFV5F98hDxGKGT6tMS4pT/0ANjYGVxdL4e+hkbs7CTnzIQkYhB kvNPRc1le3wzi0oL5g+A34e+eoX9+cxzXfUgEeZuMGdNID+ZRDgQu0zTuPWT26ILGa qt9IGWARDJ215xsRnSHt5P5a49mt80ALuOKXTyv50csU3qlnbxwtGpA7i0XOP6vnxw vlvHHWy7AdZgG4DBlxlFLLssDJI/TI9eJZ26xMQjBfvyY5znZ2bp8sfome8NL0QuLp E4PePC96dC1/sueLQmx5Qbk9O3q2e0weEmjBpp+qosef33ru/3R26jAmer6tS/JApH fZy4s2k56oH5w== 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 A13D2CD8CAD; Tue, 9 Jun 2026 08:13:56 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 09 Jun 2026 10:13:48 +0200 Subject: [PATCH v4 5/6] extcon: qcom-spmi-misc: match PM8xxx USB ID platform device 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: <20260609-mainline-send-v1-sending-v4-5-83768fbf404d@alex-min.fr> References: <20260609-mainline-send-v1-sending-v4-0-83768fbf404d@alex-min.fr> In-Reply-To: <20260609-mainline-send-v1-sending-v4-0-83768fbf404d@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 , 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, phone-devel@vger.kernel.org, Alexandre MINETTE X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780992834; l=1259; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=GY8HHAKQAe9p+CGliq7ltiYrSns53pS1wL6cDILgUI0=; b=skemK+Zp/FmuoQmJTzt7VfdYD823Gi0WCTalR2GX7d3y38xUZRqrR9AZpe+wvZAZS/XnugA1d D5sU4RPm8MIBfTjpY9nRbB9vvdbLJD9af3l0BIZLQ3phHRKqAdRUHFA 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 PM8xxx MFD registers the PM8921 USB ID detector as a platform device named "qcom-pm8xxx-usb-id". Its reused firmware node remains compatible with "qcom,pm8921", so it does not match the extcon driver's OF table. Add a platform device ID so the existing extcon driver binds to this device and consumes its named USB ID interrupt. Signed-off-by: Alexandre MINETTE --- drivers/extcon/extcon-qcom-spmi-misc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/extcon/extcon-qcom-spmi-misc.c b/drivers/extcon/extcon= -qcom-spmi-misc.c index afaba5685c3d..e16c109b553e 100644 --- a/drivers/extcon/extcon-qcom-spmi-misc.c +++ b/drivers/extcon/extcon-qcom-spmi-misc.c @@ -204,8 +204,15 @@ static const struct of_device_id qcom_usb_extcon_dt_ma= tch[] =3D { }; MODULE_DEVICE_TABLE(of, qcom_usb_extcon_dt_match); =20 +static const struct platform_device_id qcom_usb_extcon_id[] =3D { + { "qcom-pm8xxx-usb-id" }, + { } +}; +MODULE_DEVICE_TABLE(platform, qcom_usb_extcon_id); + static struct platform_driver qcom_usb_extcon_driver =3D { .probe =3D qcom_usb_extcon_probe, + .id_table =3D qcom_usb_extcon_id, .driver =3D { .name =3D "extcon-pm8941-misc", .pm =3D &qcom_usb_extcon_pm_ops, --=20 2.43.0 From nobody Fri Jun 12 01:40:43 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 2ED133EDE64; Tue, 9 Jun 2026 08:13:57 +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=1780992837; cv=none; b=OxB+2YnfINSk0qH18unDXBNSi5vpAVZBC4pVcq17eX+8k9Pl8VTqI29LCzB0qIdzLj5ylbmPlHwdVVvGI6m5w3WISoZkb4HW4XDIWN2SJTiR6IKd/KUSi4/XgHJNcdGUQnZtuncQlmAKGa/zps2yvlo5Kn4ZraTRRxzHj/sj4yk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780992837; c=relaxed/simple; bh=ndg4zfj6eHURyeX3YFUhtfw53BUBtjqFldZvPpjbIFM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Buf/r+APcl3HYTflmSXlrQGCQfJPKpcp8tb1ghSKIEKGpQZYBaKJncSviY6tXKC+YmPjUn5jkLchuNXpsAXqNBRUIljFWeIg7jwjl6iUalYIKOvqde/b4wCdtGR3bpnuRI/6oEzWf7yfh00l6eOn9aaMDJ+akGhDe9tDikyGSM4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DB5rB350; 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="DB5rB350" Received: by smtp.kernel.org (Postfix) with ESMTPS id C7A4CC4AF48; Tue, 9 Jun 2026 08:13:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1780992836; bh=ndg4zfj6eHURyeX3YFUhtfw53BUBtjqFldZvPpjbIFM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=DB5rB3503xShGiyarKKvrHYvXw+zaWZLLlSXLj/+vv2bbJL0NXBxXO/pSivFLTI9O rPZ8L27Rlc9zpgEpTgxArEDjuPA2HICSXZOr2bdUTeQjjNxkule+7Zre8kgikklrIP 1Lov9oA67S3VGTvHyMFG/uWDcupQjaIIbwsA6NiMcLysBEiFTNJx4CX7z8dctcZkjN QEv+qFWVctGPffmwrmiATYeo0od/vrjB6/LB5XtWF9RO/oh0HQixO4iWeFL9NX/4bi Y2vk97zkqmKWCFH7hvmPEz78SUpBD6kzt6ZHct5fFtd92tToNqHMm4xBz8u5gW+96L KgHgCQWn7B2HA== 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 BC6E0CD8CA4; Tue, 9 Jun 2026 08:13:56 +0000 (UTC) From: Alexandre MINETTE via B4 Relay Date: Tue, 09 Jun 2026 10:13:49 +0200 Subject: [PATCH v4 6/6] 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: <20260609-mainline-send-v1-sending-v4-6-83768fbf404d@alex-min.fr> References: <20260609-mainline-send-v1-sending-v4-0-83768fbf404d@alex-min.fr> In-Reply-To: <20260609-mainline-send-v1-sending-v4-0-83768fbf404d@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 , 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, phone-devel@vger.kernel.org, Alexandre MINETTE X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780992834; l=11902; i=contact@alex-min.fr; s=20260421; h=from:subject:message-id; bh=nctRB+KA+oUj8EPwfdjz/B+lJlxwLzH4CwLXPFywPY8=; b=U80ELQyGqWqDbDuzC0HkfjeNdREk1eC0vr1yyVDU2DXLCXT7fWUSaaTfLjUdPtV/qMdkbLyhP fmPrdzhXv7ZB3KaMGH4DV7jqFrv/IofA1jJWp5rLH6nC13WB4T6MW0/ 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 Acked-by: David Heidelberg --- arch/arm/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/qcom-apq8064-samsung-jflte.dts | 481 +++++++++++++++++= ++++ 2 files changed, 482 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..75ae19af96e5 --- /dev/null +++ b/arch/arm/boot/dts/qcom/qcom-apq8064-samsung-jflte.dts @@ -0,0 +1,481 @@ +// 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 | GPIO_OPEN_DRAIN)>; + scl-gpios =3D <&tlmm_pinmux 23 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + 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>; +}; + +&usb1 { + dr_mode =3D "otg"; + extcon =3D <&muic>, <&pm8921>; + + status =3D "okay"; +}; --=20 2.43.0