From patchwork Mon May 12 14:36:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Moussalem via B4 Relay X-Patchwork-Id: 889438 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 0CEF7229B28; Mon, 12 May 2025 14:37:06 +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=1747060627; cv=none; b=U+hUoWqLSwD/OaLEXMTDOwZCUKXDOr6N57HBPXg/HrQwagyREmnmFUNqdzz8xnhKMybmrRm5k6cAXQN7FLUkNJtzVOApCZUsMqaS2ATT33QviZv+ofEjODzm5fsQbt/KYAfEBKET6xX5UQTxHzJ9s9e7tkD7ssXxHIxt7S8XWic= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747060627; c=relaxed/simple; bh=9c73iXDXvgnARot8nAst3Y4sWhj8Zc0sgUgQkOUXnus=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lR7PPEN4W148I4/iiWGMObn1oJqAozKKFuH2oVB9dJJqPEsrL1ywE1IYjfW2DIEplrA/kBi1o1hQWG0Y38SekYujvEsQbSsJJ4ZCSaWZ8e3f4qLhOoV7IeLY3IT2aDjuZxG4ToRdrS5SJR/bq5zl1lWB5Q1X80hg+NF0hD8D60A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=svwjgVzr; 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="svwjgVzr" Received: by smtp.kernel.org (Postfix) with ESMTPS id 884C3C4CEED; Mon, 12 May 2025 14:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747060626; bh=9c73iXDXvgnARot8nAst3Y4sWhj8Zc0sgUgQkOUXnus=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=svwjgVzrcRFlGzuwSkn7LXEcGAgdarmp8Z2M0KR3z/5NrxHDg7M2Dp9+tVEXUaGkd R4XyhfdO5KjpHwMpso/HoL5emPQ/lEW65i+GGnkxpLH9XQzBEiWEePDy1JhCht92fc DQDFKNHWSa6DLgqn2oHk7bRg/aqtuwIa+uaqTwYYL0ix4ysT7ygjFi0v7D4QSjCrWW jtvMcnZuT1d2yZuO7wm2aj3OCF+ukT9G2oXRK4y60ZBTpRXR39L33FIwCmafL5KOV4 LItTt2KhfuOe9F3hAxP7XjLTpacPRDZRhO6GZ8ogIcSRFRxigfm2v2f2/Q4x4qkYoz l8curXkP1W5Aw== 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 74076C3ABD4; Mon, 12 May 2025 14:37:06 +0000 (UTC) From: George Moussalem via B4 Relay Date: Mon, 12 May 2025 18:36:46 +0400 Subject: [PATCH 1/2] dt-bindings: mfd: qcom,tcsr: Add compatible for ipq5018 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250512-ipq5018-syscon-v1-1-eb1ad2414c3c@outlook.com> References: <20250512-ipq5018-syscon-v1-0-eb1ad2414c3c@outlook.com> In-Reply-To: <20250512-ipq5018-syscon-v1-0-eb1ad2414c3c@outlook.com> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, George Moussalem X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1747060624; l=819; i=george.moussalem@outlook.com; s=20250321; h=from:subject:message-id; bh=rWOkA/E/Z9CidEDzLfL6fySdOSwBg0HFYVj2bD8wwdw=; b=LSN1rRYrwfvEn4O7StFZU1xBujSdtqhZxWawpLyOp9hgyF3qqVNvORk4/ukQx7HAnRPJe5GZT ezqM3qrCST2COMQfNk/JlEt+NO+seQruVnmAuXvci/CqL+rcGnVo3hO X-Developer-Key: i=george.moussalem@outlook.com; a=ed25519; pk=/PuRTSI9iYiHwcc6Nrde8qF4ZDhJBlUgpHdhsIjnqIk= X-Endpoint-Received: by B4 Relay for george.moussalem@outlook.com/20250321 with auth_id=364 X-Original-From: George Moussalem Reply-To: george.moussalem@outlook.com From: George Moussalem Document the qcom,tcsr-ipq5018 compatible. Signed-off-by: George Moussalem Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml b/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml index 7e7225aadae3285f59ec303294cf1515772a629b..14ae3f00ef7e00e607bba93f49f03bb244253b0e 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml @@ -41,6 +41,7 @@ properties: - qcom,sm8450-tcsr - qcom,tcsr-apq8064 - qcom,tcsr-apq8084 + - qcom,tcsr-ipq5018 - qcom,tcsr-ipq5332 - qcom,tcsr-ipq5424 - qcom,tcsr-ipq6018 From patchwork Mon May 12 14:36:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Moussalem via B4 Relay X-Patchwork-Id: 890358 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 DAF4D22839A; Mon, 12 May 2025 14:37:06 +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=1747060627; cv=none; b=CSJs+xB9Wh8MZlQUjFsMxyfGoHKa17izxyea150fHK6Ee9TRCzM5na3a5g/z65++kwpamwnyL5jLN01ZRRlxPOLwM5FeHRTcJxzKLsI0I+z0dNgANkwpLMvpalQDOhCOd92sevNUC5z5XxffvfJnFRjnANq0zOoaRt+NiHS3VVk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747060627; c=relaxed/simple; bh=0LAPDXa5I0NdmsoCsYbDuS1YJZWQGmhLYM6Mki0Mgc4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uf9f13GdnCwZ3UOfEeySPMNVTk7YMJGTGFZOFU6jAsqciAAOlXCwr+GyVI6oic/LRZUABA5gfG4YCwr2vypp3EukkyJj6mpkmWV2JraraSH7DCu0ZC78CrLIYvWuLu7Ay1FP4XzcDroPYK7epqZGZ3RA+JBWhBVKcAW9D3qNvPM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=m0cFB3JP; 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="m0cFB3JP" Received: by smtp.kernel.org (Postfix) with ESMTPS id 9A8A8C4CEF4; Mon, 12 May 2025 14:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747060626; bh=0LAPDXa5I0NdmsoCsYbDuS1YJZWQGmhLYM6Mki0Mgc4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=m0cFB3JPEoyG5mXQJqXFk513jDuvGFS2x6oPrtP7UfCRCvbSHB45vK5Bi0ZcKWh9X FvFT7s1atJt2z2XIM/SGjK28Y2ycPMGk/hMx2iZ8gXLfyEGLZGOEcBZa+WpFVCshmF vTIEvTAST9ox1Ev8ow8lkZeqhn5yI2xLx3myPQStLTulQLqjvEVM5FOU2hgvIeqjgq X+BJTOKEeLLU/fyEPKGmV91ajPLvj9sT+UUpyVJ60mFggbz5iZyCSOuC0noxufz6np /K/A6Og3I58z1jgcX30YK96P7ZURfAORS/AgBLI1UHI7MXKvaQGALbpvji5Qe4FyeW PN22VI1V8I7kA== 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 86AF2C3ABC3; Mon, 12 May 2025 14:37:06 +0000 (UTC) From: George Moussalem via B4 Relay Date: Mon, 12 May 2025 18:36:47 +0400 Subject: [PATCH 2/2] arm64: dts: qcom: ipq5018: enable the download mode support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250512-ipq5018-syscon-v1-2-eb1ad2414c3c@outlook.com> References: <20250512-ipq5018-syscon-v1-0-eb1ad2414c3c@outlook.com> In-Reply-To: <20250512-ipq5018-syscon-v1-0-eb1ad2414c3c@outlook.com> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, George Moussalem X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1747060624; l=1075; i=george.moussalem@outlook.com; s=20250321; h=from:subject:message-id; bh=zfAYNmt44Rxqlg/ZxmVRJXn5Sdnp96Uz5P6gJVc6Rpc=; b=otGj6mDMvVAeW3DAnmE1Q52E32RMPaedTO6pqYspuD6W7nLLCdgSbUcoPZ8FCW9RkP3EoOjvK vpkAT0R9w69DE2lsQLoC8nc9mo+VGfpPJ3n1Os6uxVbMzXJRwGyZzy1 X-Developer-Key: i=george.moussalem@outlook.com; a=ed25519; pk=/PuRTSI9iYiHwcc6Nrde8qF4ZDhJBlUgpHdhsIjnqIk= X-Endpoint-Received: by B4 Relay for george.moussalem@outlook.com/20250321 with auth_id=364 X-Original-From: George Moussalem Reply-To: george.moussalem@outlook.com From: George Moussalem Enable support for download mode to collect RAM dumps in case of a system crash, allowing post mortem analysis. Signed-off-by: George Moussalem --- arch/arm64/boot/dts/qcom/ipq5018.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq5018.dtsi b/arch/arm64/boot/dts/qcom/ipq5018.dtsi index 8914f2ef0bc47fda243b19174f77ce73fc10757d..0abb00cfe4ce2f9bdea73deebedad8297f56322c 100644 --- a/arch/arm64/boot/dts/qcom/ipq5018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5018.dtsi @@ -79,6 +79,7 @@ opp-1008000000 { firmware { scm { compatible = "qcom,scm-ipq5018", "qcom,scm"; + qcom,dload-mode = <&tcsr 0x6100>; qcom,sdi-enabled; }; }; @@ -187,6 +188,11 @@ tcsr_mutex: hwlock@1905000 { #hwlock-cells = <1>; }; + tcsr: syscon@1937000 { + compatible = "qcom,tcsr-ipq5018", "syscon"; + reg = <0x01937000 0x21000>; + }; + sdhc_1: mmc@7804000 { compatible = "qcom,ipq5018-sdhci", "qcom,sdhci-msm-v5"; reg = <0x7804000 0x1000>;