From patchwork Mon Oct 24 09:15:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 617977 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5E24C38A2D for ; Mon, 24 Oct 2022 09:16:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230440AbiJXJQX (ORCPT ); Mon, 24 Oct 2022 05:16:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231263AbiJXJQF (ORCPT ); Mon, 24 Oct 2022 05:16:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4923569BC2; Mon, 24 Oct 2022 02:15:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 43A35B81012; Mon, 24 Oct 2022 09:15:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF0E2C433D6; Mon, 24 Oct 2022 09:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666602940; bh=F2XhYBJZZ37OeuVyzuENkOhMW0tF0uumy5Gl7HJ9FuM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U/2cjFd3YdLFKC5d3m2XSW15zYiclRfeDu3OI5KMLbdRnuSwfo2fic75U6IbXbUJ/ Nct0sDie9P3Hp2sDg+kpIqNaIN89A7G7bXL2G2ZZjKn0sYYYxuMPOXL14Mca4eIAgg JaTloAuKwus4B4PwST92Q7HdVrF8xDort+T5zyNV2biG0P3e3EJ8lHGYIVj8RsIj5a QEuhSxz6Up4Xcjqsy4a2bj5c8LM8Nne5M1ZHaAiRlQTRWwX6yIoetArZcZZhpGQbY5 WtuqC/VMOWBUraRkFFkT5EQPwu5KPXDm6YdDmUYrA/RYJMAFBs2yCaHe0SOfYfdeW6 gkLerNUPVW3yg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1omtYK-0005Iy-AC; Mon, 24 Oct 2022 11:15:24 +0200 From: Johan Hovold To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Vinod Koul , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 1/4] arm64: dts: qcom: sm8150: fix UFS PHY registers Date: Mon, 24 Oct 2022 11:15:04 +0200 Message-Id: <20221024091507.20342-2-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221024091507.20342-1-johan+linaro@kernel.org> References: <20221024091507.20342-1-johan+linaro@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The sizes of the UFS PHY register regions are too small and does specifically not cover all registers used by the Linux driver. As Linux maps these regions as full pages this is currently not an issue on Linux, but let's update the sizes to match the vendor driver. Fixes: 3834a2e92229 ("arm64: dts: qcom: sm8150: Add ufs nodes") Signed-off-by: Johan Hovold --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index cef8c4f4f0ff..4a527a64772b 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2032,11 +2032,11 @@ ufs_mem_phy: phy@1d87000 { status = "disabled"; ufs_mem_phy_lanes: phy@1d87400 { - reg = <0 0x01d87400 0 0x108>, - <0 0x01d87600 0 0x1e0>, - <0 0x01d87c00 0 0x1dc>, - <0 0x01d87800 0 0x108>, - <0 0x01d87a00 0 0x1e0>; + reg = <0 0x01d87400 0 0x16c>, + <0 0x01d87600 0 0x200>, + <0 0x01d87c00 0 0x200>, + <0 0x01d87800 0 0x16c>, + <0 0x01d87a00 0 0x200>; #phy-cells = <0>; }; }; From patchwork Mon Oct 24 09:15:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 618243 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9726FA3746 for ; Mon, 24 Oct 2022 09:16:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230242AbiJXJQW (ORCPT ); Mon, 24 Oct 2022 05:16:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbiJXJQF (ORCPT ); Mon, 24 Oct 2022 05:16:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D406712AF9; Mon, 24 Oct 2022 02:15:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 977816112B; Mon, 24 Oct 2022 09:15:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D642AC43470; Mon, 24 Oct 2022 09:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666602940; bh=yBETrzXWGt7pb8QzxS3UVCAJWEhIrqkv9EtCngJvm68=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LeTOjYcHs1TfRqT0RUEUvBS+n8Cji67bFNF+54A0HK7+FVNp+VXWWHUlz0HlRbpOE gv97jgHLe/2vlyic/tUZ9gSQz4M0Y0VjIxQCp/wegd9HM0tNSrxCbmrWNgVhjPrFZ4 +5fROlBaCPy9Q7bE/X5dzV4FM1w9YWtkS52NRioRhQKdu8Rg68J1WkXYA6jT3RDuu1 R+IzwcV5q6jCBYfrbCY60cvz3fQ9D6+kqgIU4MtSwFilkPkgsz8KgGhvPbOBJGDpju E2ptDe1rbntZlu8uS5/ZYMh6cjutKWkM7ZF66W60GSoMYg6ch3aC+ldJq1WzUwJ6lM lN+ZwTaXo4I8g== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1omtYK-0005J0-DQ; Mon, 24 Oct 2022 11:15:24 +0200 From: Johan Hovold To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Vinod Koul , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 2/4] arm64: dts: qcom: sm8250: fix UFS PHY registers Date: Mon, 24 Oct 2022 11:15:05 +0200 Message-Id: <20221024091507.20342-3-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221024091507.20342-1-johan+linaro@kernel.org> References: <20221024091507.20342-1-johan+linaro@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The sizes of the UFS PHY register regions are too small and does specifically not cover all registers used by the Linux driver. As Linux maps these regions as full pages this is currently not an issue on Linux, but let's update the sizes to match the vendor driver. Fixes: b7e2fba06622 ("arm64: dts: qcom: sm8250: Add UFS controller and PHY") Signed-off-by: Johan Hovold --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index a5b62cadb129..0fd768a4f308 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2179,11 +2179,11 @@ ufs_mem_phy: phy@1d87000 { status = "disabled"; ufs_mem_phy_lanes: phy@1d87400 { - reg = <0 0x01d87400 0 0x108>, - <0 0x01d87600 0 0x1e0>, - <0 0x01d87c00 0 0x1dc>, - <0 0x01d87800 0 0x108>, - <0 0x01d87a00 0 0x1e0>; + reg = <0 0x01d87400 0 0x16c>, + <0 0x01d87600 0 0x200>, + <0 0x01d87c00 0 0x200>, + <0 0x01d87800 0 0x16c>, + <0 0x01d87a00 0 0x200>; #phy-cells = <0>; }; }; From patchwork Mon Oct 24 09:15:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 617978 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20B89FA3741 for ; Mon, 24 Oct 2022 09:16:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231244AbiJXJQT (ORCPT ); Mon, 24 Oct 2022 05:16:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230517AbiJXJQE (ORCPT ); Mon, 24 Oct 2022 05:16:04 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32C7D6A49A; Mon, 24 Oct 2022 02:15:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4A0A3B81014; Mon, 24 Oct 2022 09:15:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D866DC4347C; Mon, 24 Oct 2022 09:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666602940; bh=FdN33m7qh8wPHoMj/+tmhrdjUqB83uz8MCt9pB9Y6yE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZKddshhGR/n5UkBSMiVK4AsktNDI6RoGqfKd9I+8VH8sCv1vToZIThg5odY6rPQbE VhfP61SdjcVlF2Cw5yZO7RrSp+da1OcrboTlXMHZrZlp30nGdKZ4qFa1lCsfiqtw7P lrViBLvnohMoJJkRebuUgQRwAU3ld+OXEouh1OfUwo+fcUAh6WDxBpfjlrYC0JrxiY 4rMJcSajwXRzoSJhRr0LHpGJ8FIAP5egAl4iIGMkO/NnfXN/Qt/Mh5cRZW9BJrBIX/ LV9d3qFwMBO6jiIcc8GqqoWXkR1bStxo7Q+teZHSX9xat+runc5nB425KiVoVms6Jk tTW4i+u8LWkAQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1omtYK-0005J2-GL; Mon, 24 Oct 2022 11:15:24 +0200 From: Johan Hovold To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Vinod Koul , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 3/4] arm64: dts: qcom: sm8350: fix UFS PHY registers Date: Mon, 24 Oct 2022 11:15:06 +0200 Message-Id: <20221024091507.20342-4-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221024091507.20342-1-johan+linaro@kernel.org> References: <20221024091507.20342-1-johan+linaro@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The sizes of the UFS PHY register regions are too small and does specifically not cover all registers used by the Linux driver. As Linux maps these regions as full pages this is currently not an issue on Linux, but let's update the sizes to match the vendor driver. Fixes: 59c7cf814783 ("arm64: dts: qcom: sm8350: Add UFS nodes") Signed-off-by: Johan Hovold --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index a86d9ea93b9d..a6270d97a319 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -2142,11 +2142,11 @@ ufs_mem_phy: phy@1d87000 { status = "disabled"; ufs_mem_phy_lanes: phy@1d87400 { - reg = <0 0x01d87400 0 0x108>, - <0 0x01d87600 0 0x1e0>, - <0 0x01d87c00 0 0x1dc>, - <0 0x01d87800 0 0x108>, - <0 0x01d87a00 0 0x1e0>; + reg = <0 0x01d87400 0 0x188>, + <0 0x01d87600 0 0x200>, + <0 0x01d87c00 0 0x200>, + <0 0x01d87800 0 0x188>, + <0 0x01d87a00 0 0x200>; #phy-cells = <0>; }; }; From patchwork Mon Oct 24 09:15:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 618245 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 761FAFA3740 for ; Mon, 24 Oct 2022 09:16:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230055AbiJXJQV (ORCPT ); Mon, 24 Oct 2022 05:16:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231261AbiJXJQE (ORCPT ); Mon, 24 Oct 2022 05:16:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DBA94D162; Mon, 24 Oct 2022 02:15:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 924666108B; Mon, 24 Oct 2022 09:15:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D434BC433D7; Mon, 24 Oct 2022 09:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666602940; bh=/59S997d8HJo0WppUTEKLowxRoQ4GCM2JDP0Y998Dq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LV0WQ8I27+oCDDOeeB8dTlnh2+56dc9iq1ssU4q6pmXt7dlxZcE0yix/IlXBlsAEv HkdaSwbSaugB+uM6/2eMSs1Ws620zoMCBrZmP7XY0grc4yfJRemxlEskdCGkGbWSmC KT5Ft2+GWpunOssq+TD8/36HJ/HwgG4V951GeDDwJsUYHo+The0+A/ytN6cHtgp5xe VfSiGQRDsrUDpxTLA6qwrNnYW4ojZjSDiFMkPIHE97mnlNS7U2AwzgHHKpHTtvzlRR iwPJYyKR17hKAPDvHLy7i3HoW0QNF5GXAw0nWuEhzmhLhfFEJI9hwNWEGyRxaNyZGF 5A7lLRHqRdlpQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1omtYK-0005J4-JD; Mon, 24 Oct 2022 11:15:24 +0200 From: Johan Hovold To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Vinod Koul , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 4/4] arm64: dts: qcom: sm8450: fix UFS PHY registers Date: Mon, 24 Oct 2022 11:15:07 +0200 Message-Id: <20221024091507.20342-5-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221024091507.20342-1-johan+linaro@kernel.org> References: <20221024091507.20342-1-johan+linaro@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The sizes of the UFS PHY register regions are too small and does specifically not cover all registers used by the Linux driver. As Linux maps these regions as full pages this is currently not an issue on Linux, but let's update the sizes to match the vendor driver. Fixes: 07fa917a335e ("arm64: dts: qcom: sm8450: add ufs nodes") Signed-off-by: Johan Hovold --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index d32f08df743d..dfc799244180 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -3161,11 +3161,11 @@ ufs_mem_phy: phy@1d87000 { status = "disabled"; ufs_mem_phy_lanes: phy@1d87400 { - reg = <0 0x01d87400 0 0x108>, - <0 0x01d87600 0 0x1e0>, - <0 0x01d87c00 0 0x1dc>, - <0 0x01d87800 0 0x108>, - <0 0x01d87a00 0 0x1e0>; + reg = <0 0x01d87400 0 0x188>, + <0 0x01d87600 0 0x200>, + <0 0x01d87c00 0 0x200>, + <0 0x01d87800 0 0x188>, + <0 0x01d87a00 0 0x200>; #phy-cells = <0>; }; };