From patchwork Sun Jan 26 20:57:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 860019 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FBBC14B087; Sun, 26 Jan 2025 21:05:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737925504; cv=none; b=PLtmgNoZ7SQlhoDbprzuTQfxYe63077MH+X/jDs7Dqa3SYy5c2Epzg3MVN5SkrByLHHuvpGWqMpX8SNoOAep8l5SRyQq+9Hqf05WkgSsZggTpx+X4RBCRhGOvEGXWNq0Rz2466Uc0KhPVZevrwZ+WfGrI44BKm/AwzyTPttz2rQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737925504; c=relaxed/simple; bh=QB88oSJ58nRPGoid2GbZhWXQ2ne3fe4hsSh0Mxb8+xI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=G5ZrPDaorEFjTo6Ma0DyxNAU5E0qiXaTMgTE4laYGEqO+W2qgt7eqruCw8HSo+kDyAmbJia57wUq7OdJP/4a/zY5MWjKt/W50ScSdLsKuB/6ZueUzLaoM4To6m5r2AJh3qVRpQ4OFKp7nP2Ip/CxgSo9NUWvnlikEBQPo0smo4U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=lucaweiss.eu; spf=pass smtp.mailfrom=lucaweiss.eu; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b=SepZqt0j; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b="SepZqt0j" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucaweiss.eu; s=s1; t=1737925053; bh=QB88oSJ58nRPGoid2GbZhWXQ2ne3fe4hsSh0Mxb8+xI=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=SepZqt0jcyhIfoBvpyEK3EFImKnLJE+zbiz3nKUGguO0wpiOyDnNPF6BU4gXTEctC lJ3NDaN9yuPPnBhuytVCADIQNIVCL3wbWSnqm0jzHHluP8uHr7hKsrHHIrc9UhYu8T JXyU2ATwOMKuyto38iC7cPOjEY5pdFYM94H02Uus= From: Luca Weiss Date: Sun, 26 Jan 2025 21:57:20 +0100 Subject: [PATCH v2 1/9] dt-bindings: remoteproc: qcom,msm8916-mss-pil: Support platforms with one power domain Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250126-msm8226-modem-v2-1-e88d76d6daff@lucaweiss.eu> References: <20250126-msm8226-modem-v2-0-e88d76d6daff@lucaweiss.eu> In-Reply-To: <20250126-msm8226-modem-v2-0-e88d76d6daff@lucaweiss.eu> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephan Gerhold , Konrad Dybcio , =?utf-8?q?Matti_Lehtim=C3=A4ki?= Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2648; i=luca@lucaweiss.eu; h=from:subject:message-id; bh=+qI2c+ts+CJCqtBSLS6UHzkQMS7qXUiAtLuXbwfyhJE=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBnlqG0XJNwfawPFgepX92UoGVxbG5+/ZAPAlELx bIXUxuf9H2JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZ5ahtAAKCRBy2EO4nU3X VsdvEACRBzCEhRjKAaUiLEozFJrhcQw/9oHB8Q4net2dgILfAo08QSfmOZpXYRYo2/TqrLIjk3Z LHiyJYPCMP7UOAnv8gzfeRjofjn6nDRuMs0aEfVUc4Q1xp5+7908gHt6qEF/padd02PYXHTZ1h+ okXdfyabDQZWL9A+6vQh2sDM1HhgmzSZYf8kX8Np7NJCuhznI6WukrZRO699cI/T9XF5YwgX/PW z10gtPNECzbx36RoNhJGHPq3gF2kJDxvkmzLSsQq/NKymRE9BZWzUs5ZV0hxjWRHCh4xxs76Uj9 YogCFkbT/LeifSJStXc5+uoVglr4LqVSsJLJf7MXZ25JEZlLQk6o/8h+es9FTdude/bBpoe+JFP n+hsjkZLTw6Uh1psTbSFrLm7+yXVjA7AWsRKox3TfxJlIg3MtDDPlrk8itp2iqGWOaXcBCvY++U 6EZI5bJRYPuB37VGPigqIBJ0qUS5GSpyBrxb8/xWLeE8MWumfmIeRnOgzInaxSOaxDP0SHDlMRs /5ihUvs+DEJjLOu5v4lmm2e5c5JXaeuAwOtorIjDwRzKwsatxGtyCmjFwL7U25uwomB55DgmCHn LXVUmrJGpaOiAs+ZNO6kEpkN0BPKNRtEzY/7ptsz/MrO0IcTYr4lXy0kqR4RFDq31uBhmFLGo68 FBYynAoigr//zkQ== X-Developer-Key: i=luca@lucaweiss.eu; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD From: Matti Lehtimäki Add support for platforms such as MSM8974 which have the mx voltage rail exposed as regulator and only cx voltage rail as power domain. Signed-off-by: Matti Lehtimäki Signed-off-by: Luca Weiss --- New patch in v2 split from previous first patch - Improve description of changes - Add one power domain changes to existing MSM8974 - Add missing minItems to other platforms - Require mx-supply for MSM8974 --- .../bindings/remoteproc/qcom,msm8916-mss-pil.yaml | 34 +++++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,msm8916-mss-pil.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,msm8916-mss-pil.yaml index 588b010b2a9e53946a615219fc1468bc700deef8..c81364daa34b545e99261bf1f94ae2ad28d48ea7 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,msm8916-mss-pil.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,msm8916-mss-pil.yaml @@ -70,16 +70,17 @@ properties: items: - description: CX proxy power domain (control handed over after startup) - description: MX proxy power domain (control handed over after startup) + (not valid for qcom,msm8974-mss-pil) - description: MSS proxy power domain (control handed over after startup) (only valid for qcom,msm8953-mss-pil) - minItems: 2 + minItems: 1 power-domain-names: items: - const: cx - - const: mx + - const: mx # not valid for qcom,msm8974-mss-pil - const: mss # only valid for qcom,msm8953-mss-pil - minItems: 2 + minItems: 1 pll-supply: description: PLL proxy supply (control handed over after startup) @@ -207,13 +208,38 @@ allOf: required: - power-domains - power-domain-names - else: + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8909-mss-pil + - qcom,msm8916-mss-pil + then: properties: power-domains: + minItems: 2 maxItems: 2 power-domain-names: + minItems: 2 maxItems: 2 + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8974-mss-pil + then: + properties: + power-domains: + maxItems: 1 + power-domain-names: + maxItems: 1 + required: + - mx-supply + - if: properties: compatible: From patchwork Sun Jan 26 20:57:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 860018 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5961C156F3C; Sun, 26 Jan 2025 21:05:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737925505; cv=none; b=N0gmuM1lm73rvrAiypuNx2j9rBQDkRkwZCRi2CeaaUaQiU8npCdsSvNYAqpmsfOn91YoJTf+JK0rBR15p838GHOdlcj+zbAgtmYE9Qp6WNnoBU0yXCZtW5yqeceoMz6NW+B8bm8KMitNLxd2J78lLBsceP9AvDOTW4WpKNliIEc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737925505; c=relaxed/simple; bh=35jT1gY9WoG3GTktEbhEhnbkGf1JpRCR4+f5ruZr+ZE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iM+7KZHQXrfU4qlhwWGR4StPLmy6C9+aEHRLui3YHFrr6wZSmGLZlAXW+6qCh+rRaaiLp3QE3v4URaavll8VBkge3uUtIIYEvfD2b58VaiZWtkAqvTZnyenRvwJ3OO5fg7qvoiJE4cW1WhUv/JdW+AtUx1UwJE7SPgAi5dSzA8U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=lucaweiss.eu; spf=pass smtp.mailfrom=lucaweiss.eu; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b=ob+qo0WM; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b="ob+qo0WM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucaweiss.eu; s=s1; t=1737925053; bh=35jT1gY9WoG3GTktEbhEhnbkGf1JpRCR4+f5ruZr+ZE=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=ob+qo0WMlAkIK7cYNkQz2LVrd2k9shaK8q+p7Tz+P7YeJAvN5G62N24l7dFGNYLDH LS0BrMlXNY17MRnY4tzTAC+BYCpzkPAWnCXjMwSZh67kY8xVkx+rHxdYGYZ+3U12AX yzmP144T7PDiDd042IEEqjJGh7hEpvCvwKKTrsXo= From: Luca Weiss Date: Sun, 26 Jan 2025 21:57:22 +0100 Subject: [PATCH v2 3/9] remoteproc: qcom_q6v5_mss: Handle platforms with one power domain Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250126-msm8226-modem-v2-3-e88d76d6daff@lucaweiss.eu> References: <20250126-msm8226-modem-v2-0-e88d76d6daff@lucaweiss.eu> In-Reply-To: <20250126-msm8226-modem-v2-0-e88d76d6daff@lucaweiss.eu> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephan Gerhold , Konrad Dybcio , =?utf-8?q?Matti_Lehtim=C3=A4ki?= Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2157; i=luca@lucaweiss.eu; h=from:subject:message-id; bh=35jT1gY9WoG3GTktEbhEhnbkGf1JpRCR4+f5ruZr+ZE=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBnlqG2FVrNrus763G7T8flNROko4SlkuMnALsaZ A2BpkLMP1mJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZ5ahtgAKCRBy2EO4nU3X VtReD/4hHKyEJMF9iZVUkX7FJ4eGjEZmlOVxkFL1kaM2ioh84M3YNA7LsRcAVnfdqjz8/qFNMec 7BsJbiJrGG3sVBdVEA31Ld4BFjXkpg+qEaBOJyXSIONfzAsKEUWBi21+/3uAh8dr7XBIi61ySVl g2q24BWV8+Nkdo1XsueT86dp9tvb1SuFxRf7aVXRCCEL3TY/rqqMkvaFFkKIfy8qTQgHuwLGn2u gbjTmv2IXmYLjc+asDoezv6o+i+ggt0l0sxtD7FM0Ts60AFfkj3+yOVxhakGkequCCymZayaNIZ tlTREAg0cifHpDvi9yyBLhG2gsJxTgZWAdiEzVNZ0/OVxAfGOfHPdYDXxohc2iV50wPElHRuJe3 1wNte49EFqee7/bKl8z5Vy+zqUEF8oq7Fnay3FBIgroHEN8XCNwAZGq4CsCdmt5VoonW4J931tn M/Ki9cbRbFOgkh6pO0OzR9b+CoAYJXDS0ZXkJ9b9ljYeOU/1gyHaRg3M4yHkhhJpocJuNMbS1BM 4hpPOwJPmYROF+bcGXDstpKosovKKzykncE+XvtJk8iRw9u3gUYxQ6uILZC1ZJDhsly1gODQW5J He7pePt8swRQvnSJSVkc0vB8kViRIRTrHY8DFy3pcQWVBJp7mKdfFpQ3KkdjCoRnGSFgYzG50Ht nbAwR+tewY25TpA== X-Developer-Key: i=luca@lucaweiss.eu; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD For example MSM8974 has mx voltage rail exposed as regulator and only cx voltage rail is exposed as power domain. This power domain (cx) is attached internally in power domain and cannot be attached in this driver. Fixes: 8750cf392394 ("remoteproc: qcom_q6v5_mss: Allow replacing regulators with power domains") Co-developed-by: Matti Lehtimäki Signed-off-by: Matti Lehtimäki Signed-off-by: Luca Weiss --- Changes in v2: - Move MSM8974 mx-supply from "fallback_proxy_supply" to "proxy_supply" to match updated DT schema - Add fixes tag --- drivers/remoteproc/qcom_q6v5_mss.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_mss.c b/drivers/remoteproc/qcom_q6v5_mss.c index e78bd986dc3f256effce4470222c0a5faeea86ec..e2523b01febf393abfe50740a68b85a04011293c 100644 --- a/drivers/remoteproc/qcom_q6v5_mss.c +++ b/drivers/remoteproc/qcom_q6v5_mss.c @@ -1828,6 +1828,13 @@ static int q6v5_pds_attach(struct device *dev, struct device **devs, if (!pd_names) return 0; + /* Handle single power domain */ + if (dev->pm_domain) { + devs[0] = dev; + pm_runtime_enable(dev); + return 1; + } + while (pd_names[num_pds]) num_pds++; @@ -1851,8 +1858,15 @@ static int q6v5_pds_attach(struct device *dev, struct device **devs, static void q6v5_pds_detach(struct q6v5 *qproc, struct device **pds, size_t pd_count) { + struct device *dev = qproc->dev; int i; + /* Handle single power domain */ + if (dev->pm_domain && pd_count) { + pm_runtime_disable(dev); + return; + } + for (i = 0; i < pd_count; i++) dev_pm_domain_detach(pds[i], false); } @@ -2449,13 +2463,13 @@ static const struct rproc_hexagon_res msm8974_mss = { .supply = "pll", .uA = 100000, }, - {} - }, - .fallback_proxy_supply = (struct qcom_mss_reg_res[]) { { .supply = "mx", .uV = 1050000, }, + {} + }, + .fallback_proxy_supply = (struct qcom_mss_reg_res[]) { { .supply = "cx", .uA = 100000, From patchwork Sun Jan 26 20:57:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 860021 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A62575672; Sun, 26 Jan 2025 20:57:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737925065; cv=none; b=Ho0lk0eW9NDn0tMWSlnSwUP1GtPHJGooQbQYP5xkvJy+2bX/JECdSPE4DYfiaqhBNBf7GUhJYN4wFRGNClzqCzrB01er4jvzLnH0bORDL2iaxl2AonmHJgzlvRtlkhSXMmxt/sbOSXKegiK0wbsjTiARAgA6yKjTjkrTvipGTJI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737925065; c=relaxed/simple; bh=asbDMQ42SDs4b1srxiQIMMXY9QcxxqIiu1L0P2FyiPc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jIGWMvBFxEf7cXHARB1Ilre2tVIjaWck/j14ptjN3fqRU3NjrXoj+cMh6L4N0aBjgBjUlbdzIRJyE7Tj1QBU/FWZSlb5LDk8dUq6yHJSzDrbOERAYUTrlCmL9mKG0XVqu8bHg9dVwlSgNHIlkVYP4PemLYHbyE3yhRTL2AyCOR8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=lucaweiss.eu; spf=pass smtp.mailfrom=lucaweiss.eu; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b=ZnhvVbg7; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b="ZnhvVbg7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucaweiss.eu; s=s1; t=1737925054; bh=asbDMQ42SDs4b1srxiQIMMXY9QcxxqIiu1L0P2FyiPc=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=ZnhvVbg7incZNegJmcuX0IdV7Qmj/FD542qYDf9KbDMJaHrIlqfIdKaKY4OYIBuOX EcJEr8rKK2b7MX19X67vUJ0A0A3E5xEEUCkYygzvJB0n4zlsXSdT9/x74vLVrU3GCl 0u/+6h2lphTJojyz69NcLPRDOgnG50NGN0ODsHww= From: Luca Weiss Date: Sun, 26 Jan 2025 21:57:24 +0100 Subject: [PATCH v2 5/9] ARM: dts: qcom: msm8226: Add node for TCSR halt regs Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250126-msm8226-modem-v2-5-e88d76d6daff@lucaweiss.eu> References: <20250126-msm8226-modem-v2-0-e88d76d6daff@lucaweiss.eu> In-Reply-To: <20250126-msm8226-modem-v2-0-e88d76d6daff@lucaweiss.eu> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephan Gerhold , Konrad Dybcio , =?utf-8?q?Matti_Lehtim=C3=A4ki?= Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=916; i=luca@lucaweiss.eu; h=from:subject:message-id; bh=eB48oZipWmKlZ7VBf2h0qGYYC/OPKdoJotfz6BVVjs0=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBnlqG4kLtRx0Ez+mInLNBZInNTG7x5FsvcObxYk uffmJmvo/WJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZ5ahuAAKCRBy2EO4nU3X VowID/9Ljv8+MUuUrynldZtmINRn10JpoXtEyzULpEKYlk+aYJ22o0w8TsLIFam36op4mrTfQgJ ddR1PaWB050MU/DKONFNb2HGRiwkP8N/2/ZLIn4flXcKEEGE/DdIPfKBtGQTMvgGGaONpu7Ze6i 0Gj7SX41CWTd0mqIDzOAxnU0XO889IdaOa6jnhRJzPZ4glEZVvT3y6dGFIqCq3E22V4VAg8rFEx hafQU50BMbQdIOjY+1x0O6XDAjsSHcpxULOyqGk/G69wrMdia/kvKmcQjRRh+HgfJ0JZ2ljgbbY Upr8LRVuZjrpUg2vePFxzClOF/a9oDO60gLS8T3p/dmUJQgzfWV/99nC0GYTicp7c3lE5gBoWXm CRfWN0XfgBdslx3x05TZ/wj640JlhwzgcAeMkhrxF9MJqFQEYheoOVXDdM1euYHIHhEc2n8yvQV B1HjDMombyO32rrsrwPbkVj84xUrdKiIPszg/X3hK4xd12UipmB9/08L2wbZTpKMPgTgwvltE5J 5Urtsy9xo6k6WYQjaoYVVMZv6SbmqBaosNt8hqx/4ATu9M42OwkabhRDZwAKh+WZWoLr6BqQRbu X6hxwdlSWkFH6ZIG2GHZV2Zn5t3J7ANroCO8QAQlvKND9QKgkTs6G0aj7/btnwNl5NQOUm+fM8E lWIw2MrfFS0kbSg== X-Developer-Key: i=luca@lucaweiss.eu; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD From: Matti Lehtimäki Add a syscon device node for the TCSR halt regs needed by modem and other remoteprocs. Signed-off-by: Matti Lehtimäki Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi index 64c8ac94f352e46dc4a18f902d2c30114ecd91d2..caaeeadf289f78d29403312738bbb714eaad74d2 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi @@ -851,6 +851,11 @@ tcsr_mutex: hwlock@fd484000 { #hwlock-cells = <1>; }; + tcsr_regs_1: syscon@fd485000 { + compatible = "qcom,tcsr-msm8226", "syscon"; + reg = <0xfd485000 0x1000>; + }; + tlmm: pinctrl@fd510000 { compatible = "qcom,msm8226-pinctrl"; reg = <0xfd510000 0x4000>; From patchwork Sun Jan 26 20:57:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 860022 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56C00157A5A; Sun, 26 Jan 2025 20:57:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737925064; cv=none; b=t4RK7v4vXC3Vvh7Wq+7JQpImZlOpvCZHwGvXeNh3Ze/WiPElHFJWrO8lNT3y/dpqpCWHgmPX8XToBuqtrNsUEY22cS2cSoYt32FzPkBn4dSQ86Okc0fWHEXwwRYitWgnrnNscXQNFYdn68Z3a5Bfp7yuTyFmcHHc2fBYOI64Tts= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737925064; c=relaxed/simple; bh=waof2bb86V3ehXDWnkiTnDsneWiVuCdsHRRExFo3JxM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PY2PHawfE71UR20mHeLbp5Inui+oRljsz64PAd5OlxifVFWzhvli9LM1pzA1R2ByxN/nm3kSh7wJBhU7kbaoWnhAFOhMGJBMtNGi2QmtDELAFL9d2q0rWU7kBRq2EA7PRJUW23tpG/jxk2OX5Hm3l0g4DyjC1B41tXwSAOkiuxQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=lucaweiss.eu; spf=pass smtp.mailfrom=lucaweiss.eu; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b=5bIM+BGi; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b="5bIM+BGi" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucaweiss.eu; s=s1; t=1737925055; bh=waof2bb86V3ehXDWnkiTnDsneWiVuCdsHRRExFo3JxM=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=5bIM+BGiX3aCcikq3m1WO8pmS1fRe1bAdKdEC0MSkyFkrWEly3u8fE6mzjhfYHMAw XJs0weIL0bLk/YnSKU4ogE8sRvrbPbQTubvt1lGKretxnApASRNuQOjUl4/5T1HNJJ QRPc3FOQbuZ9Yv2mLTXT9i6ZsTYkBoDgVGrvYfbc= From: Luca Weiss Date: Sun, 26 Jan 2025 21:57:27 +0100 Subject: [PATCH v2 8/9] ARM: dts: qcom: msm8226: Add BAM DMUX Ethernet/IP device Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250126-msm8226-modem-v2-8-e88d76d6daff@lucaweiss.eu> References: <20250126-msm8226-modem-v2-0-e88d76d6daff@lucaweiss.eu> In-Reply-To: <20250126-msm8226-modem-v2-0-e88d76d6daff@lucaweiss.eu> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephan Gerhold , Konrad Dybcio , =?utf-8?q?Matti_Lehtim=C3=A4ki?= Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1592; i=luca@lucaweiss.eu; h=from:subject:message-id; bh=waof2bb86V3ehXDWnkiTnDsneWiVuCdsHRRExFo3JxM=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBnlqG78E13Qa8+1zNAHIOwtTjL9h7MNRFQnFQYv dwPMKydoV+JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZ5ahuwAKCRBy2EO4nU3X VpLhEAC/Ft52QYTcNdntWbQRFt559/Qihw8oUMi9fbSr2zP2a3YzOGfeW9+yPZqLSjdEoWE2dJK sXCMZUfHaYsYyTLPNIJTNkWQLfLQsyJQbcscSz9WKFo/24qTJjBsZ6ghYfv/z/9fdJU4BBWAy6y jZhr95wMqhrXtcM19NZemA7a5QjInvydA3k6YRhqNkHIAq6M24Coed/cWnaY1O34uE9Ja1tf75i eeJ3b+6bf5dRHXVy4B+a2Un2IJB8tVL8YsACCk+8U+x4oS2lvtkWYFurFxScRvTtX61a5VnQr3q g7OnFT0ixT62eD39+d3lyYKxazodctZbkp/r/Ah4oxd4HwxO+kUyVLKe+MDB5PKeU8GHgzrf+e/ 051TTE4COK6orJnbcXY1+T8zvHEpkU4a9hM0vzAH3GEQ+mvoOz/GVtvh7AOgF9y/NwxkjLA673w v8P1fAgfzMzS4aMctAXlU3lJRcZds+dn8fyjSza1emkbqnnUWbWMA65bDKayLg7juw2hKrhLTfx uOU3uNea23Bus2hdHFh8UG/m2rE6zbEPanBgdbIdfsjJAfj46GmxZi0f3LRIcNC0mUu5uYRB647 Vf7wPVtP8reh4H1qv/xbjgKL6kZrprQMtQ/CZ5J9Zeejm1VDHbov9QMnbhVmffBfxkdOWl9DizN lWp0u7BMpEcRaRw== X-Developer-Key: i=luca@lucaweiss.eu; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD BAM DMUX is used as the network interface to the modem. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi index f7f57c3f583557830c0a6dc9f0eebc2ddebbbe3c..5e82d871b81019d2f4f84d1228e8e9278ac44be3 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi @@ -914,6 +914,18 @@ spmi_bus: spmi@fc4cf000 { #interrupt-cells = <4>; }; + bam_dmux_dma: dma-controller@fc834000 { + compatible = "qcom,bam-v1.4.0"; + reg = <0xfc834000 0x7000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + + num-channels = <6>; + qcom,num-ees = <1>; + qcom,powered-remotely; + }; + modem: remoteproc@fc880000 { compatible = "qcom,msm8226-mss-pil"; reg = <0xfc880000 0x100>, @@ -949,6 +961,20 @@ modem: remoteproc@fc880000 { status = "disabled"; + bam_dmux: bam-dmux { + compatible = "qcom,bam-dmux"; + + interrupt-parent = <&modem_smsm>; + interrupts = <1 IRQ_TYPE_EDGE_BOTH>, <11 IRQ_TYPE_EDGE_BOTH>; + interrupt-names = "pc", "pc-ack"; + + qcom,smem-states = <&apps_smsm 1>, <&apps_smsm 11>; + qcom,smem-state-names = "pc", "pc-ack"; + + dmas = <&bam_dmux_dma 4>, <&bam_dmux_dma 5>; + dma-names = "tx", "rx"; + }; + smd-edge { interrupts = ;