From patchwork Sat Nov 25 12:19:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13468472 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="wTpPLHW8" Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA295D6; Sat, 25 Nov 2023 04:20:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1700914777; bh=UdGEv17E3hADi12SsQvKXsMSfqGDSsuNeaYFESGrjdk=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=wTpPLHW8z7ca6AJhErXFAC4R4WnTbREJAmiDLia0GxyUp5/5Q4KHlTnKg6iDlkPna kTo3ROnMqYdJnI/wQnZYfh3FXJqaxfSDzd6CXb/RqR+dg7BcOM00LVIPdIuOuK1jVu CYtOC+Wfe6hlDyKLngymph9mCDMh31rQS4pYFshg= From: Luca Weiss Date: Sat, 25 Nov 2023 13:19:27 +0100 Subject: [PATCH v2 1/2] arm64: dts: qcom: msm8953: Set initial address for memory Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231125-msm8953-misc-fixes-v2-1-df86655841d9@z3ntu.xyz> References: <20231125-msm8953-misc-fixes-v2-0-df86655841d9@z3ntu.xyz> In-Reply-To: <20231125-msm8953-misc-fixes-v2-0-df86655841d9@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1096; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=UdGEv17E3hADi12SsQvKXsMSfqGDSsuNeaYFESGrjdk=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlYeZXvatWXYJzXEZ6FjI5/HS4cRAQyBJuohxSV V7kqHpbO1KJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZWHmVwAKCRBy2EO4nU3X VhMHEACjjLgF+I7uJI59zY9sXv37xkBYt5o69pWh54DCFVOcMb1RHJ0Yop4cvkZmwa9hA/S+gBI sDmfSXsYGvqpZ3TdHf4uyZ4Hfxsb27bv+ltjLvluvzZColbtZVKK9tmvT9j9kq2RixrUWQFBUME 1DE9+74FQKqX9hTKocOwS4nkBcv3rV4bgnoz+ZZJ3+zQMi4ZCDEYKcSSOkFP2CI9h+4OUT1GK3V q3W5vF8M+972KQxSC/Yi375dIpqyqeHlU/pLISeVs+TTu+vZVo/hPRruAtyT71oe1DyFwFcU7c8 7L26cQuu3IMWkaFGkOSBj51727SsTHEGFrFLEYo7jMoQ50BJjAnLBIPJAU2t8DeHQCNgkR4AVql pms9lVmHXIV8X/xxJLp9D9ZhlF4pmr1+GFhor5xkF9S1pn12jk966c0NQOwDmgdjOoaYy/q8sZG MGx1TxLnsS3LAiIUJ+3RlJcj8p/msQD4lN5iL1rP/EnLi6QGodBqyjxd1OlEKzjsM2JqBMUIKHw 7M5QpIYRwFHZwairzNMfMOs8ktp0k/7uApMZ9U1HPmHLEB7tPWNrt8f5Ru9AEB660ylGNReATA+ cOwOJ+WnPQjjC9Zk3baI2ESMO4HDIjJDCO2oxXuKTyWUHcCSA01ou9UElDzL+7K9gIkJfNrJlSX bcOvLIVjE1KtfnQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD The dtbs_check really doesn't like having memory without reg set. The base address depends on the amount of RAM you have: <= 2.00 GiB RAM: 0x80000000 = 3.00 GiB RAM: 0x40000000 = 3.75 GiB RAM: 0x10000000 (more does not fit into the 32-bit physical address space) So, let's pick one of the values, 0x10000000 which is used on devices with 3.75 GiB RAM. Since the bootloader will update it to what's present on the device it doesn't matter too much. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/msm8953.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index e7de7632669a..a3ba24ca599b 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -174,10 +174,10 @@ scm: scm { }; }; - memory { + memory@10000000 { device_type = "memory"; /* We expect the bootloader to fill in the reg */ - reg = <0 0 0 0>; + reg = <0 0x10000000 0 0>; }; pmu { From patchwork Sat Nov 25 12:19:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13468473 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="LYGjtIk/" Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38ECBFE; Sat, 25 Nov 2023 04:20:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1700914777; bh=QTIX2lakcP39cCuE3Qc425XXiB73jdaU3uagPJrvxtI=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=LYGjtIk/DHWDP2NVbhlAr1JcfRKrOtq0X+/OC/suBGJlBNCfAhPuYOEgwiZhpcwPP qVJP94AgVGMphHnKtnE8UXiTZjdEX0kD7lHX0/q9dTNmQUA0SwqiqE2Wd3vRLpA7Pq PxiIV/PU6rBSZlD0GRn0ZpqgUlITBN/Cp+WIftwo= From: Luca Weiss Date: Sat, 25 Nov 2023 13:19:28 +0100 Subject: [PATCH v2 2/2] arm64: dts: qcom: msm8953: Use non-deprecated qcom,domain in LPASS Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231125-msm8953-misc-fixes-v2-2-df86655841d9@z3ntu.xyz> References: <20231125-msm8953-misc-fixes-v2-0-df86655841d9@z3ntu.xyz> In-Reply-To: <20231125-msm8953-misc-fixes-v2-0-df86655841d9@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=852; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=QTIX2lakcP39cCuE3Qc425XXiB73jdaU3uagPJrvxtI=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlYeZYNkegUK0xhOcT7BhUYYzLbqYRKMGegeNEw x/Ke8IHHDmJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZWHmWAAKCRBy2EO4nU3X VpLSEADMD22OIhmor6tCMPaYWcyWLLl41rH5EcfMIdY3+pt2r0UxptAswlNHepD7BTx+PZ02oEq AQP1q/4k0y/Ml0RX0xCJAQdTwvXaa3SBG6lGaHCROvg6sB3l9LpVBWx31zJdwHfqeL1kbYg1LwT SXyJQCAR4qnaoE8EOYnqUxZkfzX2g4fwYnDST9yulIJSnHS6aQJgfltTlg3Y7L2tjdYO94mVjj3 sWacrcGTfL19sEsgWBJOdDf4s0G6tSQUS6dao84WscV9zkeuXeuXRaHGpHdqfopAJEK84q+gAjw cUyhchTg2o0ICwXxT6smrjgrD3pYzxWgSlCSPf7A/m7W6lg9i5PMjasmQkMLNEMZBj2u/Pqd8U7 WFOyDiuBezmr8ab651rtOOTl+AnrTvaYfdWzrU/t55IKJl+rFmlxopa9IL8prGTZ+owRj18jNyK vfM9yntrRGvUtXnSm800wgkJxNZk5MTQaNJjySzTY0zcab4NK6wgxS/HD4SRAIuUUkaZZIPaQz/ FAmizMnfN1MGLfXYZSTjaf0qM7JtF7NPQHHcNRObozjYNSehWdhKf3Ysp1slLnMg9C5dpGP+yFr 933vhgAADWJByuZfu9IUBeV/4cg+g3t4qYW9wFOuAGtYEfzG/qWNOkWL6VxAqYgbSmQfPi6W606 MKT3xx84Noqf54w== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Use the qcom,domain property instead of the deprecated qcom,apr-domain, which in turn also fixes a bunch of dtbs_checks warnings. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/msm8953.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index a3ba24ca599b..8374f9af8273 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -1645,7 +1645,7 @@ smd-edge { apr { compatible = "qcom,apr-v2"; qcom,smd-channels = "apr_audio_svc"; - qcom,apr-domain = ; + qcom,domain = ; #address-cells = <1>; #size-cells = <0>;