From patchwork Thu Jun 2 05:32:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 578409 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 639B6CCA47C for ; Thu, 2 Jun 2022 05:33:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230118AbiFBFdq (ORCPT ); Thu, 2 Jun 2022 01:33:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229974AbiFBFdo (ORCPT ); Thu, 2 Jun 2022 01:33:44 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D10380218 for ; Wed, 1 Jun 2022 22:33:37 -0700 (PDT) Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220602053332epoutp04eb0154987ef04d7f4b90b6631c0658f2~0ttqKUoXA0839608396epoutp04y for ; Thu, 2 Jun 2022 05:33:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220602053332epoutp04eb0154987ef04d7f4b90b6631c0658f2~0ttqKUoXA0839608396epoutp04y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654148012; bh=H8PocrFmk9EXhUhBzdiSu6B6SsAREiwwPU3cBKm2TFI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bd5jR+bFzJ9NXOFuVvJElQdoZAihyZ2c6vz12mII0HrhNDS6MH6ccfMJVA56FF6jB uhbZ5Vp0i3ZIBpxh9D7ABA+sCxy0iub+4dWBN6z90R8LOlU1mulRGqkOZYojP0VrmW xLCPqCzSYHJcWhB1srAPf0qsb5IB7sV1vSgNwM+M= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20220602053332epcas2p401784b5e2968ad35552970b53e02afcd~0ttpieswm0310603106epcas2p43; Thu, 2 Jun 2022 05:33:32 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.89]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4LDF6f3tqnz4x9QG; Thu, 2 Jun 2022 05:33:30 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 0F.06.10028.9AB48926; Thu, 2 Jun 2022 14:33:29 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20220602053329epcas2p4c2baca2d161814f5d51dc48722f904b1~0ttmxAS9n0810308103epcas2p4U; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220602053329epsmtrp188a1e1c7ee74502d99822c3bb1fe7f94~0ttmv170G1619216192epsmtrp1B; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) X-AuditID: b6c32a47-589ff7000000272c-72-62984ba9802f Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id EB.28.08924.9AB48926; Thu, 2 Jun 2022 14:33:29 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220602053329epsmtip2b6d4dc7454f96113809bee3321b07638~0ttmilbGL0794907949epsmtip2p; Thu, 2 Jun 2022 05:33:28 +0000 (GMT) From: Chanho Park To: Kishon Vijay Abraham I , Vinod Koul , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH v2 1/6] dt-bindings: phy: samsung,ufs-phy: make pmu-syscon as phandle-array Date: Thu, 2 Jun 2022 14:32:45 +0900 Message-Id: <20220602053250.62593-2-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220602053250.62593-1-chanho61.park@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJsWRmVeSWpSXmKPExsWy7bCmue5K7xlJBjNPaVg8mLeNzeLyfm2L +UfOsVpceNrDZtH34iGzxd7XW9ktNj2+xmoxYdU3FosZ5/cxWbTuPcJusfPOCWYHbo9NqzrZ PO5c28PmsXlJvUffllWMHsdvbGfy+LxJLoAtKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453tTM wFDX0NLCXEkhLzE31VbJxSdA1y0zB+g6JYWyxJxSoFBAYnGxkr6dTVF+aUmqQkZ+cYmtUmpB Sk6BeYFecWJucWleul5eaomVoYGBkSlQYUJ2xutjP5kKjnJVzJi6h62BcRVHFyMnh4SAicSz Nc9Zuxi5OIQEdjBKvHo4iQnC+cQocfHCbmYI5zOjRNeVd4wwLYvur2WBSOxilDh2fhcrSEJI 4COjxPd5xiA2m4CuxJbnrxhBikQE2pkkTtybyw7iMAtsZpQ4OWEDM0iVsECsxNqrs9lBbBYB VYlvTYvZQGxeATuJN7uOsEKsk5fYML8XqJ6Dg1PAXmLLGQ+IEkGJkzOfsIDYzEAlzVtng50q ITCVQ6J1/0l2iF4Xia7bD6BsYYlXx7dA2VISL/vboOxiiaWzPjFBNDcwSlze9osNImEsMetZ OyPIYmYBTYn1u/RBTAkBZYkjt6D28kl0HP7LDhHmlehoE4JoVJc4sH06C4QtK9E95zPUJx4S Z089hYb1JEaJz9O3sk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0veT83E2M4DjQ0trBuGfV B71DjEwcjIcYJTiYlUR4S3ZNTRLiTUmsrEotyo8vKs1JLT7EKM3BoiTOe6HrZLyQQHpiSWp2 ampBahFMlomDU6qBafaJM1rf56S82rFDly9SYd+WV/9men3ePKvn4cyq3dxPw5k2WNdx5tse WHP79aL7Hua6OfNYN9SLv7CrPyboxOGwgEcnQMkq9MvJpLvH9iucSdyQqMA3WfTrGSHN0pbs ioVMO3xfRBzs+GAeqPY98tfN78Ub1ymduGKTmXV42nZ7hnuptjot3+ewveW2vrV34frdd7+2 yd7pWXPJOP7eRU2+zLBXMy1u/71QF+6y6LX1j+S6CW+K+Q6JB4tKf0/90cspuLW4YbLo6yvy LTyF0n/4i9nLfs2e6P1rTkxBf8SVDQ87O9wyfv0I8HB757vk3QQTM271ak2WwtlPeL6yaaVf +9/2xZNL89h7gzvv5iixFGckGmoxFxUnAgChGS9K8gIAAA== X-CMS-MailID: 20220602053329epcas2p4c2baca2d161814f5d51dc48722f904b1 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220602053329epcas2p4c2baca2d161814f5d51dc48722f904b1 References: <20220602053250.62593-1-chanho61.park@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org To support secondary ufs phy devices, we need to get an offset value from pmu-syscon. Signed-off-by: Chanho Park --- .../devicetree/bindings/phy/samsung,ufs-phy.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml index f6ed1a005e7a..d0ba92aa578d 100644 --- a/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml +++ b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml @@ -40,9 +40,16 @@ properties: - const: tx0_symbol_clk samsung,pmu-syscon: - $ref: '/schemas/types.yaml#/definitions/phandle' - description: phandle for PMU system controller interface, used to - control pmu registers bits for ufs m-phy + $ref: '/schemas/types.yaml#/definitions/phandle-array' + items: + minItems: 1 + items: + - description: phandle for PMU system controller interface, used to + control pmu registers bits for ufs m-phy + - description: offset of the pmu control register + description: + It can be phandle/offset pair. The second cell which can represent an + offset is optional. required: - "#phy-cells" From patchwork Thu Jun 2 05:32:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 578407 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 9750BCCA479 for ; Thu, 2 Jun 2022 05:33:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230099AbiFBFdt (ORCPT ); Thu, 2 Jun 2022 01:33:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230116AbiFBFdp (ORCPT ); Thu, 2 Jun 2022 01:33:45 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50F3D6C578 for ; Wed, 1 Jun 2022 22:33:37 -0700 (PDT) Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220602053332epoutp0457ef34da3b3ce4ec11d5efe1aaa6afad~0ttpdIo600848808488epoutp04r for ; Thu, 2 Jun 2022 05:33:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220602053332epoutp0457ef34da3b3ce4ec11d5efe1aaa6afad~0ttpdIo600848808488epoutp04r DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654148012; bh=WgvzKcHvfk9gUWzad49jIUGGE8V9NcBo2HSwvhCse7M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XIr0Ip6Q/tMQGKh1eLkIUsOqVr2Ul3wy2AWoPuInz90yBJ5xsZ1OzN+N0sUAlexfG JBm8R7TSgPQWDpDY8O7LMORI840EqKBD9UBLxJSxG3wdCrcsKAjHa90maCCHAKbJ/C i3XgJYkps790s4Z+OaeUFVhvDL8oUjTq3p9GKd0I= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20220602053331epcas2p324cc6438bffd229c8daab763e0e2539f~0ttolIAsP1927619276epcas2p3L; Thu, 2 Jun 2022 05:33:31 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.100]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4LDF6f0hf2z4x9QB; Thu, 2 Jun 2022 05:33:30 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 7E.23.09764.9AB48926; Thu, 2 Jun 2022 14:33:29 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20220602053329epcas2p238f5019ff98e4d9fcf5fea0001a773a9~0ttm2BqXV0634006340epcas2p2h; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220602053329epsmtrp13bb802533e673910d4ffa5b7c371d124~0ttmzRqyB1617116171epsmtrp1W; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) X-AuditID: b6c32a46-f75ff70000002624-ec-62984ba95338 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id BC.28.08924.9AB48926; Thu, 2 Jun 2022 14:33:29 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220602053329epsmtip2e0bed9f29b22452577a1e10eeaa6eeee~0ttmoIUeT0736507365epsmtip2f; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) From: Chanho Park To: Kishon Vijay Abraham I , Vinod Koul , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH v2 2/6] phy: samsung: ufs: constify samsung_ufs_phy_cfg Date: Thu, 2 Jun 2022 14:32:46 +0900 Message-Id: <20220602053250.62593-3-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220602053250.62593-1-chanho61.park@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJsWRmVeSWpSXmKPExsWy7bCmhe5K7xlJBreeG1o8mLeNzeLyfm2L +UfOsVpceNrDZtH34iGzxd7XW9ktNj2+xmoxYdU3FosZ5/cxWbTuPcJusfPOCWYHbo9NqzrZ PO5c28PmsXlJvUffllWMHsdvbGfy+LxJLoAtKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453tTM wFDX0NLCXEkhLzE31VbJxSdA1y0zB+g6JYWyxJxSoFBAYnGxkr6dTVF+aUmqQkZ+cYmtUmpB Sk6BeYFecWJucWleul5eaomVoYGBkSlQYUJ2xsTFX9kLPvNWbP20jb2B8RN3FyMnh4SAicT1 bfcYuxi5OIQEdjBKLHnznR3C+cQoseXNHSYI5zOjxOqDW5lgWi60P4Zq2cUoMa/lGBuE85FR 4vLn/ewgVWwCuhJbnr8CqxIRaGeSOHFvLthgZoHNjBInJ2xgBqkSFnCXuHT9JSuIzSKgKtGz dhFYN6+AncTkJadYIfbJS2yY3wtU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wgpR9J5R4kXr ImaQBJuArsSW56/AukUEupkk5mzqZwJxmAW2M0p8WLqOBaRKWMBd4tL1l6wgNouAqkTP2kVg Y3kF7CQmLznFCrFCXmLD/F6gqRwcnAL2ElvOeICEhYBKNl/ewApRLihxcuYTsJHMQOXNW2cz T2AUmIUkNQtJagEj0ypGydSC4tz03GLDAqO81HK94sTc4tK8dL3k/NxNjOA40NLawbhn1Qe9 Q4xMHIyHGCU4mJVEeEt2TU0S4k1JrKxKLcqPLyrNSS0+xCjNwaIkznuh62S8kEB6Yklqdmpq QWoRTJaJg1OqgWniMRV7VSmOM33l+4Jc5YVYTgpLPXRQe8hQWqT6V7lf1sjjVOhtBY537prr m4OMuKcnPX3xWvfHg1fx017r7rZdck1u+qOy6buYTgSnGKke9fWIar568ajQXVuXyrRnvdtP mt2a0lDHXha/LO7svNNtDyLfSR92Pc+w4scvow/2NqsvbXy5u+jrbwY5tk+cSX9+dhw022m8 wTAh+lp3asQ3Nt3o8rlVVWp/XgYdX/OkVZu9/4XHCq+5lv7MKocPBM5TZppRK6LwkZchKtWm liWqPuyXetHSR0FsT/KX7f3X3LvIyc1U996CAw8vVNZ8LXCefLZl7rnG3LaJjNVtFSvy2quP C5gp+rb8bTC6rsRSnJFoqMVcVJwIAPwPwazyAgAA X-CMS-MailID: 20220602053329epcas2p238f5019ff98e4d9fcf5fea0001a773a9 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220602053329epcas2p238f5019ff98e4d9fcf5fea0001a773a9 References: <20220602053250.62593-1-chanho61.park@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Put const qualifier of samsung_ufs_phy_cfg pointer because they will not be changed from drvdata. Signed-off-by: Chanho Park --- drivers/phy/samsung/phy-samsung-ufs.c | 4 ++-- drivers/phy/samsung/phy-samsung-ufs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/phy/samsung/phy-samsung-ufs.c b/drivers/phy/samsung/phy-samsung-ufs.c index 602ddef259eb..b7ddb91a02be 100644 --- a/drivers/phy/samsung/phy-samsung-ufs.c +++ b/drivers/phy/samsung/phy-samsung-ufs.c @@ -75,7 +75,7 @@ static int samsung_ufs_phy_wait_for_lock_acq(struct phy *phy) static int samsung_ufs_phy_calibrate(struct phy *phy) { struct samsung_ufs_phy *ufs_phy = get_samsung_ufs_phy(phy); - struct samsung_ufs_phy_cfg **cfgs = ufs_phy->cfg; + const struct samsung_ufs_phy_cfg **cfgs = ufs_phy->cfg; const struct samsung_ufs_phy_cfg *cfg; int err = 0; int i; @@ -327,7 +327,7 @@ static int samsung_ufs_phy_probe(struct platform_device *pdev) drvdata = match->data; phy->dev = dev; phy->drvdata = drvdata; - phy->cfg = (struct samsung_ufs_phy_cfg **)drvdata->cfg; + phy->cfg = drvdata->cfg; phy->isol = &drvdata->isol; phy->lane_cnt = PHY_DEF_LANE_CNT; diff --git a/drivers/phy/samsung/phy-samsung-ufs.h b/drivers/phy/samsung/phy-samsung-ufs.h index 91a0e9f94f98..8c3696b3c5ec 100644 --- a/drivers/phy/samsung/phy-samsung-ufs.h +++ b/drivers/phy/samsung/phy-samsung-ufs.h @@ -121,7 +121,7 @@ struct samsung_ufs_phy { struct clk *rx0_symbol_clk; struct clk *rx1_symbol_clk; const struct samsung_ufs_phy_drvdata *drvdata; - struct samsung_ufs_phy_cfg **cfg; + const struct samsung_ufs_phy_cfg **cfg; const struct pmu_isol *isol; u8 lane_cnt; int ufs_phy_state; From patchwork Thu Jun 2 05:32:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 578611 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 9CA20CCA47D for ; Thu, 2 Jun 2022 05:33:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229899AbiFBFdr (ORCPT ); Thu, 2 Jun 2022 01:33:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230087AbiFBFdo (ORCPT ); Thu, 2 Jun 2022 01:33:44 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 680C2A0D33 for ; Wed, 1 Jun 2022 22:33:37 -0700 (PDT) Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220602053333epoutp042d6cb9217af46365737ccfd9e5b31002~0ttqlEa670845408454epoutp04t for ; Thu, 2 Jun 2022 05:33:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220602053333epoutp042d6cb9217af46365737ccfd9e5b31002~0ttqlEa670845408454epoutp04t DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654148013; bh=o7bKOgQqbI2VTypSvHHm073NNT2b9Nxi77ZmZqtwTLE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZYgQoVyBWB+FnGZvGXLVG+oqCwhdNYeZTxDN0C5WMd/w8Q6cOiPW/ZcGWM178ofJu a8X8lqvo3GYUO0tnGiGnss+jVKSvMOD6+U93YBtkH0I4a2ftV+ZK5wVBQzD30+pcQ7 DwoQsTK7UmgkTb3XsYjQJX2vXcAyTr4MvgKbnxUA= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20220602053332epcas2p13e2946d2fce19d8cf92cbaa0fb8b8187~0ttp9Zf8D2241822418epcas2p1G; Thu, 2 Jun 2022 05:33:32 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.88]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4LDF6g46Wvz4x9Pr; Thu, 2 Jun 2022 05:33:31 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 1F.06.10028.9AB48926; Thu, 2 Jun 2022 14:33:29 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20220602053329epcas2p19785735bcbf08ad274ff887797485b8c~0ttm6D4va2241822418epcas2p1_; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220602053329epsmtrp1c992b5af223f7be6caad72ea3ea56cc6~0ttm44SRO1617116171epsmtrp1X; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) X-AuditID: b6c32a47-573ff7000000272c-73-62984ba9442d Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id F3.1E.11276.9AB48926; Thu, 2 Jun 2022 14:33:29 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220602053329epsmtip265b5ee48c36a66ac17e60881deec68cc~0ttmtnTpb0505705057epsmtip2I; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) From: Chanho Park To: Kishon Vijay Abraham I , Vinod Koul , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH v2 3/6] phy: samsung: ufs: support secondary ufs phy Date: Thu, 2 Jun 2022 14:32:47 +0900 Message-Id: <20220602053250.62593-4-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220602053250.62593-1-chanho61.park@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJsWRmVeSWpSXmKPExsWy7bCmqe5K7xlJBve26Vg8mLeNzeLyfm2L +UfOsVpceNrDZtH34iGzxd7XW9ktNj2+xmoxYdU3FosZ5/cxWbTuPcJusfPOCWYHbo9NqzrZ PO5c28PmsXlJvUffllWMHsdvbGfy+LxJLoAtKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453tTM wFDX0NLCXEkhLzE31VbJxSdA1y0zB+g6JYWyxJxSoFBAYnGxkr6dTVF+aUmqQkZ+cYmtUmpB Sk6BeYFecWJucWleul5eaomVoYGBkSlQYUJ2xv3Ph1kLLgtW7O3/w97A+ISvi5GTQ0LAROLx m0csXYxcHEICOxglDi96wgqSEBL4BOSsV4NIfGOUmNRyiRmm4+u51VAdexklmt+2QzkfGSUu //zNAlLFJqArseX5K0aQhIhAO5PEiXtz2UEcZoHNjBInJ2wAmyUs4CKx5McjsA4WAVWJ47f6 weK8AnYSW460M0Lsk5fYML8XKM7BwSlgL7HljAdEiaDEyZlPwFqZgUqat85mBpkvIdDLITF9 wTQWiF4XiVvz9rNB2MISr45vYYewpSRe9rdB2cUSS2d9YoJobgB6YdsvqAZjiVnPQI7gANqg KbF+lz6IKSGgLHHkFtRePomOw3/ZIcK8Eh1tQhCN6hIHtk+HukBWonvOZ1YI20Piy52j7JDA msQo0bv7GcsERoVZSN6ZheSdWQiLFzAyr2IUSy0ozk1PLTYqMIZHcXJ+7iZGcHLVct/BOOPt B71DjEwcjIcYJTiYlUR4S3ZNTRLiTUmsrEotyo8vKs1JLT7EaAoM64nMUqLJ+cD0nlcSb2hi aWBiZmZobmRqYK4kzuuVsiFRSCA9sSQ1OzW1ILUIpo+Jg1OqgUnBdnHg2ag0tt2hWhohy8+d bvfVf/TruvfKu7b8CfJ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3Sc Hbe+spBP4njw2sPHr8uZ9t2PnCfjXxHgs21DZBi/J4/u/dNneEqDPOdWbpnKlesf+ft+QcOr zxe3BLOER0xk+Fj64+jLg9H+5ga7N0+y2HyCLcj46bWK9b0eRcstNvb79s3uXmb2wjDB9ab3 gnXatlyHtt8LfDKvzV//3/wopq4kKevl0VpagVaVDS97TBckRP37FrTXVNG6YqYt5/uND5u3 LF5sG7k0+/8sJZbijERDLeai4kQAr3T7JvECAAA= X-CMS-MailID: 20220602053329epcas2p19785735bcbf08ad274ff887797485b8c X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220602053329epcas2p19785735bcbf08ad274ff887797485b8c References: <20220602053250.62593-1-chanho61.park@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org To support secondary ufs phy device, we need to get an offset for phy isolation from the syscon DT node. If the first index argument of the node is existing, we can read the offset value and set it as isol->offset. To allow this assignment, we need to change the field so the isol data needs to be allocated and copied from drvdata. Signed-off-by: Chanho Park --- drivers/phy/samsung/phy-samsung-ufs.c | 14 +++++++++++++- drivers/phy/samsung/phy-samsung-ufs.h | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/phy/samsung/phy-samsung-ufs.c b/drivers/phy/samsung/phy-samsung-ufs.c index b7ddb91a02be..7716b6dc955b 100644 --- a/drivers/phy/samsung/phy-samsung-ufs.c +++ b/drivers/phy/samsung/phy-samsung-ufs.c @@ -288,6 +288,7 @@ static int samsung_ufs_phy_probe(struct platform_device *pdev) struct phy *gen_phy; struct phy_provider *phy_provider; const struct samsung_ufs_phy_drvdata *drvdata; + u32 isol_offset; int err = 0; match = of_match_node(samsung_ufs_phy_match, dev->of_node); @@ -324,11 +325,22 @@ static int samsung_ufs_phy_probe(struct platform_device *pdev) goto out; } + phy->isol = devm_kzalloc(dev, sizeof(struct pmu_isol), GFP_KERNEL); + if (!phy->isol) { + err = -ENOMEM; + goto out; + } + drvdata = match->data; phy->dev = dev; phy->drvdata = drvdata; phy->cfg = drvdata->cfg; - phy->isol = &drvdata->isol; + memcpy(phy->isol, &drvdata->isol, sizeof(struct pmu_isol)); + + if (!of_property_read_u32_index(dev->of_node, "samsung,pmu-syscon", 1, + &isol_offset)) + phy->isol->offset = isol_offset; + phy->lane_cnt = PHY_DEF_LANE_CNT; phy_set_drvdata(gen_phy, phy); diff --git a/drivers/phy/samsung/phy-samsung-ufs.h b/drivers/phy/samsung/phy-samsung-ufs.h index 8c3696b3c5ec..d3e1c2016b27 100644 --- a/drivers/phy/samsung/phy-samsung-ufs.h +++ b/drivers/phy/samsung/phy-samsung-ufs.h @@ -122,7 +122,7 @@ struct samsung_ufs_phy { struct clk *rx1_symbol_clk; const struct samsung_ufs_phy_drvdata *drvdata; const struct samsung_ufs_phy_cfg **cfg; - const struct pmu_isol *isol; + struct pmu_isol *isol; u8 lane_cnt; int ufs_phy_state; enum phy_mode mode; From patchwork Thu Jun 2 05:32:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 578410 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 03EA6C433EF for ; Thu, 2 Jun 2022 05:33:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230115AbiFBFdo (ORCPT ); Thu, 2 Jun 2022 01:33:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbiFBFdo (ORCPT ); Thu, 2 Jun 2022 01:33:44 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50727579BC for ; Wed, 1 Jun 2022 22:33:37 -0700 (PDT) Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220602053332epoutp0154c0c1053b512d36ed3c4bb4071fecc3~0ttp3fOFV0840008400epoutp014 for ; Thu, 2 Jun 2022 05:33:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220602053332epoutp0154c0c1053b512d36ed3c4bb4071fecc3~0ttp3fOFV0840008400epoutp014 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654148012; bh=y7U1+XljJ0V/0OcxWuR03Dp51+4XXglk/YjHGZ7jVhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RHJcEwpu2l+xAQH3eoV+7pShbEZkaYyrCMmkhruN7ed1tE9fdgDLoNbEJvpeW0XvR qQyPMewCHveqUOO8eO7Gp25CcZAHV6BVxr3UFE8ipZpu3WovmdvoJZQW54G0OW49cN VjJP8uP6WwG/Qy57SyvFs/26W1bBeP4iJ2zujHxs= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20220602053331epcas2p10096a9f20c0decc8e906dca8816ba0e4~0ttpEVqTY2185921859epcas2p1X; Thu, 2 Jun 2022 05:33:31 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.98]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4LDF6f0g65z4x9QF; Thu, 2 Jun 2022 05:33:30 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 6F.23.09764.9AB48926; Thu, 2 Jun 2022 14:33:29 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20220602053329epcas2p407039a6087b6c460d6687b1cc1f3872a~0ttm_owG42584825848epcas2p4P; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220602053329epsmtrp263d507c490fd7004c2658e12b4622db9~0ttm9o4512524025240epsmtrp2D; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) X-AuditID: b6c32a46-f8bff70000002624-ef-62984ba93068 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 04.1E.11276.9AB48926; Thu, 2 Jun 2022 14:33:29 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220602053329epsmtip2292bd47951e222b7167126a46aac02a0~0ttmyA1pt0794307943epsmtip2k; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) From: Chanho Park To: Kishon Vijay Abraham I , Vinod Koul , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH v2 4/6] arm64: dts: exynosautov9: adjust DT style of ufs nodes Date: Thu, 2 Jun 2022 14:32:48 +0900 Message-Id: <20220602053250.62593-5-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220602053250.62593-1-chanho61.park@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJsWRmVeSWpSXmKPExsWy7bCmqe4q7xlJBkd7mSwezNvGZnF5v7bF /CPnWC0uPO1hs+h78ZDZYu/rrewWmx5fY7WYsOobi8WM8/uYLFr3HmG32HnnBLMDt8emVZ1s Hneu7WHz2Lyk3qNvyypGj+M3tjN5fN4kF8AWlW2TkZqYklqkkJq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pTgj0VCLuag4EQCK FKVANwQAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPLMWRmVeSWpSXmKPExsWy7bCSvO5K7xlJBjtmils8mLeNzeLyfm2L +UfOsVpceNrDZtH34iGzxd7XW9ktNj2+xmoxYdU3FosZ5/cxWbTuPcJusfPOCWYHbo9NqzrZ PO5c28PmsXlJvUffllWMHsdvbGfy+LxJLoAtissmJTUnsyy1SN8ugSujc/1b5oIHPBXLumez NjAu4Opi5OSQEDCROHNgJ2sXIxeHkMBuRok/e7rZIBKyEs/e7WCHsIUl7rccgSp6zyjxe+lu ZpAEm4CuxJbnrxhBEiIC3UwSczb1M4E4zALbGSU+LF3HAlIlLOAnse3LIVYQm0VAVWLK4s9g 3bwCdhJPJv5ghVghL7Fhfi9QnIODU8BeYssZD5CwEFDJ5ssbWCHKBSVOznwCNpIZqLx562zm CYwCs5CkZiFJLWBkWsUomVpQnJueW2xYYJiXWq5XnJhbXJqXrpecn7uJERwHWpo7GLev+qB3 iJGJg/EQowQHs5IIb8muqUlCvCmJlVWpRfnxRaU5qcWHGKU5WJTEeS90nYwXEkhPLEnNTk0t SC2CyTJxcEo1MGU5TV+j2fqkocJotUhiriSz4rk13ZstL/yLlirZNkOoIbmIVz9ScRd3I8+y nbMkIxSr/AUfie8Q8J97w53BMpTda29vr6rdjx/l3x+rfT6kuHuNrJpU1Vdvu1aezHThVWEL Hbd6zOAKl59Vpad3jfFN37ylO/5P36J35CDTUVm3k2aJxlZ1Cc32FzjnNhgkLGxdmBJ45uaW 8PmS3zasXvpkoeb9zfZhx8uPv1UsSrq9dsVp+c+zgnbeOduRHN+Y+fxF2EWuywfck568dFpT ULyN06w7xG9npVGq1qQzklNeTGF+F/Slr7xPK061982ZOV2uR5qSl20KYGF5Y68s9UBOJOdq /5TiTbzPzmquU2Ipzkg01GIuKk4EABuMKXnyAgAA X-CMS-MailID: 20220602053329epcas2p407039a6087b6c460d6687b1cc1f3872a X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220602053329epcas2p407039a6087b6c460d6687b1cc1f3872a References: <20220602053250.62593-1-chanho61.park@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Drop "ufs0-" label name usage of ufs phy and hci nodes. Regarding the comments of reg properties, we don't need to illustrate here because we can find the description from the dt-binding doc. Suggested-by: Krzysztof Kozlowski Signed-off-by: Chanho Park --- arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynosautov9.dtsi b/arch/arm64/boot/dts/exynos/exynosautov9.dtsi index 26e427295946..beb46b5a83b6 100644 --- a/arch/arm64/boot/dts/exynos/exynosautov9.dtsi +++ b/arch/arm64/boot/dts/exynos/exynosautov9.dtsi @@ -369,7 +369,7 @@ serial_0: serial@10300000 { }; }; - ufs_0_phy: ufs0-phy@17e04000 { + ufs_0_phy: phy@17e04000 { compatible = "samsung,exynosautov9-ufs-phy"; reg = <0x17e04000 0xc00>; reg-names = "phy-pma"; @@ -380,13 +380,13 @@ ufs_0_phy: ufs0-phy@17e04000 { status = "disabled"; }; - ufs_0: ufs0@17e00000 { + ufs_0: ufs@17e00000 { compatible = "samsung,exynosautov9-ufs"; - reg = <0x17e00000 0x100>, /* 0: HCI standard */ - <0x17e01100 0x410>, /* 1: Vendor-specific */ - <0x17e80000 0x8000>, /* 2: UNIPRO */ - <0x17dc0000 0x2200>; /* 3: UFS protector */ + reg = <0x17e00000 0x100>, + <0x17e01100 0x410>, + <0x17e80000 0x8000>, + <0x17dc0000 0x2200>; reg-names = "hci", "vs_hci", "unipro", "ufsp"; interrupts = ; clocks = <&cmu_fsys2 CLK_GOUT_FSYS2_UFS_EMBD0_ACLK>, From patchwork Thu Jun 2 05:32:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 578408 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 B38CAC43334 for ; Thu, 2 Jun 2022 05:33:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229974AbiFBFdr (ORCPT ); Thu, 2 Jun 2022 01:33:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230105AbiFBFdo (ORCPT ); Thu, 2 Jun 2022 01:33:44 -0400 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 577EF6CAAC for ; Wed, 1 Jun 2022 22:33:37 -0700 (PDT) Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220602053332epoutp02e9b41be1562b5e31f498c893a90ec6db~0ttp_GW-A2612626126epoutp02f for ; Thu, 2 Jun 2022 05:33:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220602053332epoutp02e9b41be1562b5e31f498c893a90ec6db~0ttp_GW-A2612626126epoutp02f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654148012; bh=ZxRg88qK8qztD6NotaBYGtI2yR+16T/RMmgA5R92Q4s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r3BULmTaTjX8V7K8dh9P+HYxfxBO5EPx6fewU+nfn673e6vZVH0WC4FTwbc4A4d4k y3eCVFE7ZNWGK4xX5P7FF1gLj/ou496OSlcGWvNvZQtYfuAjV0a8peGMfpc1TsKoiR O0WPFTlQQenfprXlrpjXIqecM6ve0fWHqN9NRXDc= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20220602053332epcas2p39f60655682a423be374938f3eed57763~0ttpbkrI22395823958epcas2p3b; Thu, 2 Jun 2022 05:33:32 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.92]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4LDF6f1trJz4x9Pv; Thu, 2 Jun 2022 05:33:30 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 9E.23.09764.9AB48926; Thu, 2 Jun 2022 14:33:29 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20220602053329epcas2p3dc1aa5e50c5eab03309e67b95e2993ff~0ttnFaDKd2395823958epcas2p3P; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220602053329epsmtrp1e74cad7b2f193854096d195474603f16~0ttnEnNUL1617116171epsmtrp1Y; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) X-AuditID: b6c32a46-f8bff70000002624-ed-62984ba9e501 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id C4.1E.11276.9AB48926; Thu, 2 Jun 2022 14:33:29 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220602053329epsmtip2e73549035cbceedfef62f3b3b8ac3fbb~0ttm2cZee0794907949epsmtip2q; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) From: Chanho Park To: Kishon Vijay Abraham I , Vinod Koul , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH v2 5/6] arm64: dts: exynosautov9: add secondary ufs devices Date: Thu, 2 Jun 2022 14:32:49 +0900 Message-Id: <20220602053250.62593-6-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220602053250.62593-1-chanho61.park@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMJsWRmVeSWpSXmKPExsWy7bCmhe5K7xlJBtfvmFs8mLeNzeLyfm2L +UfOsVpceNrDZtH34iGzxd7XW9ktNj2+xmoxYdU3FosZ5/cxWbTuPcJusfPOCWYHbo9NqzrZ PO5c28PmsXlJvUffllWMHsdvbGfy+LxJLoAtKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453tTM wFDX0NLCXEkhLzE31VbJxSdA1y0zB+g6JYWyxJxSoFBAYnGxkr6dTVF+aUmqQkZ+cYmtUmpB Sk6BeYFecWJucWleul5eaomVoYGBkSlQYUJ2xtxTD5gKJvJW9B3axt7AeJSri5GTQ0LAROLE lduMXYxcHEICOxglejYfZYVwPjFKPJm+lQXC+cYo0fF3OXMXIwdYS/92Q4j4XkaJ+QeuQHV8 ZJSYu385K8hcNgFdiS3PX4HNFRFoZ5I4cW8uO4jDLLCZUeLkhA3MIFXCAt4S2zacZwOxWQRU JWa03mEEsXkF7CRO/D3ICnGhvMSG+b1gqzkF7CW2nPGAKBGUODnzCQuIzQxU0rx1NjPIfAmB qRwSJ85/YYHodZGYMX891BxhiVfHt7BD2FISL/vboOxiiaWzPjFBNDcwSlze9osNImEsMetZ OyPIYmYBTYn1u/Qh3leWOHILai+fRMfhv+wQYV6JjjYhiEZ1iQPbp0NdICvRPecz1AUeEpu3 bAeLCwlMYpRYuNVyAqPCLCTfzELyzSyEvQsYmVcxiqUWFOempxYbFRjBYzg5P3cTIzi1arnt YJzy9oPeIUYmD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ml5IID2xJDU7 NbUgtQgmy8TBKdXAtG6dSsSH894OSyb8OPf0yaNQheNvp7Heq5LSZEqtOCmn8LLkuE2c17NC xSkv3bbP5Zn8tn3h1aUmH7V0Yp8f+9TuMN1h3/5nUeV7/nzfzsrWcGHWS/nr98LOC1x+cc/Q f53oiwmv3nEvC3TZse/ZnIPc5V1cEo36IrZfP69wq3BwYbXtnX3xafqZOvlzRryfj7+RlN3g 02B88VcyX1JfmcsUQ8PUxhdvGfp9cx9tzNgjo7Hn1OUXCpZ3dwT0uUb92edy5obO0sz0t5r7 O1fdmtoVZxFmwTzRpfMb26zYH19cpwcdMmA/Ia1nZVwoceWtueKlJYqLFlXl/RVtKrFsjTlx WfDE6sgFk4/obmdJ+K3EUpyRaKjFXFScCAA8eLYD8QIAAA== X-CMS-MailID: 20220602053329epcas2p3dc1aa5e50c5eab03309e67b95e2993ff X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220602053329epcas2p3dc1aa5e50c5eab03309e67b95e2993ff References: <20220602053250.62593-1-chanho61.park@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add ufs_1_phy and ufs_1 for secondary ufs hci controller and phy device. Signed-off-by: Chanho Park --- arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynosautov9.dtsi b/arch/arm64/boot/dts/exynos/exynosautov9.dtsi index beb46b5a83b6..161fd36e718d 100644 --- a/arch/arm64/boot/dts/exynos/exynosautov9.dtsi +++ b/arch/arm64/boot/dts/exynos/exynosautov9.dtsi @@ -400,6 +400,38 @@ ufs_0: ufs@17e00000 { samsung,sysreg = <&syscon_fsys2 0x710>; status = "disabled"; }; + + ufs_1_phy: phy@17f04000 { + compatible = "samsung,exynosautov9-ufs-phy"; + reg = <0x17f04000 0xc00>; + reg-names = "phy-pma"; + samsung,pmu-syscon = <&pmu_system_controller 0x72c>; + #phy-cells = <0>; + clocks = <&xtcxo>; + clock-names = "ref_clk"; + status = "disabled"; + }; + + ufs_1: ufs@17f00000 { + compatible = "samsung,exynosautov9-ufs"; + + reg = <0x17f00000 0x100>, + <0x17f01100 0x410>, + <0x17f80000 0x8000>, + <0x17de0000 0x2200>; + reg-names = "hci", "vs_hci", "unipro", "ufsp"; + interrupts = ; + clocks = <&cmu_fsys2 CLK_GOUT_FSYS2_UFS_EMBD1_ACLK>, + <&cmu_fsys2 CLK_GOUT_FSYS2_UFS_EMBD1_UNIPRO>; + clock-names = "core_clk", "sclk_unipro_main"; + freq-table-hz = <0 0>, <0 0>; + pinctrl-names = "default"; + pinctrl-0 = <&ufs_rst_n_1 &ufs_refclk_out_1>; + phys = <&ufs_1_phy>; + phy-names = "ufs-phy"; + samsung,sysreg = <&syscon_fsys2 0x714>; + status = "disabled"; + }; }; }; From patchwork Thu Jun 2 05:32:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 578610 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 1E682C433EF for ; Thu, 2 Jun 2022 05:33:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230105AbiFBFds (ORCPT ); Thu, 2 Jun 2022 01:33:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbiFBFdo (ORCPT ); Thu, 2 Jun 2022 01:33:44 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 769A61E3009 for ; Wed, 1 Jun 2022 22:33:37 -0700 (PDT) Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220602053333epoutp03cb0e3cb02b3b29a32103f2673f1251e9~0ttqQ9Gmh1197211972epoutp03i for ; Thu, 2 Jun 2022 05:33:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220602053333epoutp03cb0e3cb02b3b29a32103f2673f1251e9~0ttqQ9Gmh1197211972epoutp03i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654148013; bh=NBWjWlY2TaMrSi0e6sb5p2UTiyWC5KJi9atCINvmi4Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=feurMHa8HIomfQHkgaNL8nbdtR0CBsmB/KInusiUUZZLyu4kbCxIQjq8Z+6JOsPnD vBvPVJYOVjXWGpxePEQ29+t/Wf6OxhExYnvYRqcf6+xI+1Yphb8RxJOp4+H4ze5uym sBMw+2VjGup9pogl+JtQPEb9avpI5n6QzqFUjzRU= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20220602053332epcas2p2bbf486c6d8a18e60912c73062d8f0c6b~0ttpqwDIA2933229332epcas2p2A; Thu, 2 Jun 2022 05:33:32 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.99]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4LDF6f6pDpz4x9Q7; Thu, 2 Jun 2022 05:33:30 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 5B.1E.09694.AAB48926; Thu, 2 Jun 2022 14:33:30 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20220602053329epcas2p263a77beaaa17d20655bbf55874760054~0ttnLwHC10634006340epcas2p2i; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220602053329epsmtrp138e23b09f86bfc6019ef69ca7834cf06~0ttnKwZkU1619216192epsmtrp1F; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) X-AuditID: b6c32a48-47fff700000025de-ed-62984baab1f5 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 36.1E.11276.9AB48926; Thu, 2 Jun 2022 14:33:29 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220602053329epsmtip2cc946e13eac19c236f59e98c88d2b61e~0ttm62US80794307943epsmtip2l; Thu, 2 Jun 2022 05:33:29 +0000 (GMT) From: Chanho Park To: Kishon Vijay Abraham I , Vinod Koul , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH v2 6/6] arm64: dts: exynosautov9-sadk: enable secondary ufs devices Date: Thu, 2 Jun 2022 14:32:50 +0900 Message-Id: <20220602053250.62593-7-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220602053250.62593-1-chanho61.park@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJsWRmVeSWpSXmKPExsWy7bCmme4q7xlJBj+v81s8mLeNzeLyfm2L +UfOsVpceNrDZtH34iGzxd7XW9ktNj2+xmoxYdU3FosZ5/cxWbTuPcJusfPOCWYHbo9NqzrZ PO5c28PmsXlJvUffllWMHsdvbGfy+LxJLoAtKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453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0oLoSS3FGoqEWc1FxIgCOuorY NwQAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLLMWRmVeSWpSXmKPExsWy7bCSvO5K7xlJBjPfKVk8mLeNzeLyfm2L +UfOsVpceNrDZtH34iGzxd7XW9ktNj2+xmoxYdU3FosZ5/cxWbTuPcJusfPOCWYHbo9NqzrZ PO5c28PmsXlJvUffllWMHsdvbGfy+LxJLoAtissmJTUnsyy1SN8ugStj/+znjAVbOSsuN/1h b2C8yd7FyMkhIWAi0fb+GSuILSSwm1Fi11o2iLisxLN3O6BqhCXutxwBquECqnnPKHFv339G kASbgK7EluevGEESIgLdTBJzNvUzgTjMAtsZJT4sXcfSxcjBISwQLPHhugNIA4uAqsTkBbvA NvAK2EncfX2UFWKDvMSG+b3MIOWcAvYSW854QBxkJ7H58gZWiHJBiZMzn7CA2MxA5c1bZzNP YBSYhSQ1C0lqASPTKkbJ1ILi3PTcYsMCw7zUcr3ixNzi0rx0veT83E2M4BjQ0tzBuH3VB71D jEwcjIcYJTiYlUR4S3ZNTRLiTUmsrEotyo8vKs1JLT7EKM3BoiTOe6HrZLyQQHpiSWp2ampB ahFMlomDU6qBKc1TJDp208RMmQccr253X3u2YG9oQHWpErfWovT+Jyd/9ifVlTHI3MmLdldm PRPO5Vias6zme8KefxME2UWmrlizJWNti1r9zbsXN3fx3+IVvm3sp2H8waBE//F3r47b/E1s 37cL11Ur6D8/X3Ciq/ds/BK99w9u39l5aMaeMg11rqLa+Ef6S36W+JZstpBk+xtmfHXvxMn2 Ld6fm7eVBO6fXHjgjcO7VhPHHXI7zG0qGzlVeUUSDHSn/dxb/Fd8/+zXcj80m5QyrE2L3mop zjc/xWj+bPHidkMegcUvdvDbbT7kn3C29Mbm99af5Bl4d95erjX749mr3AftCtJeuL/qLXW9 /z5D/tXaWxZWSizFGYmGWsxFxYkAAd4Ag/ACAAA= X-CMS-MailID: 20220602053329epcas2p263a77beaaa17d20655bbf55874760054 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220602053329epcas2p263a77beaaa17d20655bbf55874760054 References: <20220602053250.62593-1-chanho61.park@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Enable ufs_1_phy and ufs_1 devices with ufs_1_fixed_vcc_reg regulator. Signed-off-by: Chanho Park --- .../boot/dts/exynos/exynosautov9-sadk.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts b/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts index 17e568853eb6..2b30a7458297 100644 --- a/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts +++ b/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts @@ -39,6 +39,14 @@ ufs_0_fixed_vcc_reg: regulator-0 { regulator-boot-on; enable-active-high; }; + + ufs_1_fixed_vcc_reg: regulator-1 { + compatible = "regulator-fixed"; + regulator-name = "ufs-vcc"; + gpio = <&gpg2 2 GPIO_ACTIVE_HIGH>; + regulator-boot-on; + enable-active-high; + }; }; &serial_0 { @@ -49,12 +57,22 @@ &ufs_0_phy { status = "okay"; }; +&ufs_1_phy { + status = "okay"; +}; + &ufs_0 { status = "okay"; vcc-supply = <&ufs_0_fixed_vcc_reg>; vcc-fixed-regulator; }; +&ufs_1 { + status = "okay"; + vcc-supply = <&ufs_1_fixed_vcc_reg>; + vcc-fixed-regulator; +}; + &usi_0 { status = "okay"; };