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: 12867526 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4D910C433EF for ; Thu, 2 Jun 2022 05:35:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Eg4DYAd/dL+xMrvzvfkPrKiS/a7GciUSmFfGT12pVco=; b=FrZ/oUvq6cXxcy BwixZ2DpcyOmU+pX9bX4w3ABvrq10G+PeLX9INQy4041AfyrlC5RFD3KAANnfyDJlDeoHtf3SlQZs RyJymb72XqIcHmUjZzdFFG1cPl7Qic/NbffxeGCd5jKD0/2szbouWHP0X+1q5eamNyMtI74FX+CoR yk9D4z5gUysUN/mYlos1ARE1mgD0lKjsbojSRBJpvda6CyYHh01FjViTRSOPW4Sr23kmhUOD3QkFf 1xsG2EWZXqKvxorj8HGHPKw/Eu4dSU1W/YbxCAXJ5Fz9IHMBwZPEu6a3dLl0Q7csAjaGVQRkWeprK EA1+PG2RCFtO4oS+3W8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwdTB-001TtJ-6C; Thu, 02 Jun 2022 05:34:05 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwdSm-001Tj5-Qm for linux-arm-kernel@lists.infradead.org; Thu, 02 Jun 2022 05:33:44 +0000 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220602053332epoutp024195621118d83d94337658040a72410b~0ttp9622O2751727517epoutp02k for ; Thu, 2 Jun 2022 05:33:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220602053332epoutp024195621118d83d94337658040a72410b~0ttp9622O2751727517epoutp02k 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/cxWbTuPcJusfPOC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ixFGckGmoxFxUnAgChGS9K8gIAAA== 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220601_223341_346665_F0852777 X-CRM114-Status: GOOD ( 14.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: 12867525 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 95C13C43334 for ; Thu, 2 Jun 2022 05:35:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NP0CtPX057JXldIxfcs0HPXVpIxe8ZMHQsQqd479ESQ=; b=lHD+X2FmkE6k0D kZbR5NMRBtcdkvLvI7OmyJA/UVagH+UmZpnWVbONxC0Ka81OlZUr3pt1NSiM1o33v1pUmMwaP1IyU ypujpk1j2B0PIPUIDYLwH1yN5ge2xP+dVEWWq/td94jZ2DGVTBci7eU7BU2o6+ohW0ly0Go0NPhFF WOu2JrUJ0pXr61JlGZOPWmqGrvAB7RAFY0cjbFKH3XgdYxd5i35FBd1isB1Xm8drpvdIp163XZ2XZ PpTi6Vmg2+HYHcp+FRq/obp/e+H2crkeHt9xdUfs8N5Me7/qxOSOWdfBG3AGSmskft4YineA+mOpj PUwelYGpsJ7h3U6+V8iA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwdT1-001Tqe-AW; Thu, 02 Jun 2022 05:33:55 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwdSk-001TgP-FZ for linux-arm-kernel@lists.infradead.org; Thu, 02 Jun 2022 05:33:42 +0000 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220602053332epoutp0192ae5dca5953933af53d7975f1097e28~0ttpVXwUt0840008400epoutp013 for ; Thu, 2 Jun 2022 05:33:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220602053332epoutp0192ae5dca5953933af53d7975f1097e28~0ttpVXwUt0840008400epoutp013 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 PO5c28PmsX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A 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220601_223338_930729_707806A6 X-CRM114-Status: GOOD ( 20.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: 12867530 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8E651C433EF for ; Thu, 2 Jun 2022 05:36:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=s0SLSVmLJM5qfjkWAZBuAsEwfpZZ9Q00JBUAqWdrU+E=; b=EPGswMt1Nlxf+q sxI8iJclNR5tBItwOlhKQAHTCEpXswWBZ4XKRW0SqlHCaEojiQoesfaSJGtLqebWvCPBJwS1asFM4 abug3R/z7XeA/arrolvcdxQK9tLZXcMTNqn9VyWXl2TEnv+i8Uya6OhmcqiBdn5o/OZ/6uE+FM3mE eh/mBB62lK/GXZe3bU9AFN4lYdKsEAWT6R1s7gZIFJfQuR7uSrT6y5tU937nGwZT1+cED7YDub1aT rh97wjPP9ApDd/rwpL4TlAS0PgdGFNok/mKTpImQFhm9YrTGbAx2Va9MByitbp/cWwZIji4OtyMkJ OLZORwqi2qO3yrvIXxiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwdUT-001UNK-Iy; Thu, 02 Jun 2022 05:35:26 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwdSn-001Thx-Mb for linux-arm-kernel@lists.infradead.org; Thu, 02 Jun 2022 05:33:46 +0000 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220602053333epoutp0403109285e712e269292505cdb48b87f3~0ttqfQM1t0952809528epoutp04C for ; Thu, 2 Jun 2022 05:33:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220602053333epoutp0403109285e712e269292505cdb48b87f3~0ttqfQM1t0952809528epoutp04C 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 B71DjEwcjIcYJ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5I474Wuk/FCAumJJanZqakF qUUwWSYOTqkGpkNP+GLknc939Goce+3euGyJskA3/wNPtaZft1bzzQqYnlh0jvNGulFL+Ble /gCZvz8ihScz1mh+q9C/fEBwwtlZ/lf8tkfnNugwlEmaiyTEG9x8Nat9+r6noTq2TxZNF3Sc 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220601_223342_310943_A21B3330 X-CRM114-Status: GOOD ( 21.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: 12867529 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6466BC43334 for ; Thu, 2 Jun 2022 05:36:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Kd5sl7eMdnAbk66GzPQNk8auaHKzptCkeFTEdoOZzbM=; b=GxSnuWrcPMO3Ez RonbBhv/IVPig6uqAKxSubgo4dzlIlORZVVUWYFqqv8lz4alnBKH6u/hGqtN0vDvFIVofr5vStFTV sJKw/Xo0zvMy76q1jYWhoZmL13G82UXjwMiJPDRCSvpvyIGnfkhleWTN10WNBEqm7AQsDRZtJCX0k b74pHBTQbJnnXJO0Sf65PqKupoHzjoegMuQbl7xILMDp7UngjjKJF6V4Ocb+tdqU81aeUm/5+9qcB 8maliwLZV9CuOSKvBdp3QKgPnS2flonRTbZiNc5zDTZBIbV42NzstI5RwDTrETzbjT42xAL3N+gUh zpE535tAwNPNLLpakwZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwdU3-001UDM-O4; Thu, 02 Jun 2022 05:35:00 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwdSn-001Tgt-Mb for linux-arm-kernel@lists.infradead.org; Thu, 02 Jun 2022 05:33:46 +0000 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220602053332epoutp0494d333ec08a5470a96035e6337b053b0~0ttptJ7tr0839608396epoutp04v for ; Thu, 2 Jun 2022 05:33:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220602053332epoutp0494d333ec08a5470a96035e6337b053b0~0ttptJ7tr0839608396epoutp04v 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+M3tjN5fN4kF8AWlW2TkZqYklqkkJqXnJ+SmZduq+QdHO8cb2pm YKhraGlhrqSQl5ibaqvk4hOg65aZA3SdkkJZYk4pUCggsbhYSd/Opii/t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sWy7bCSvO5K7xlJBjtmils8mLeNzeLyfm2L +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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220601_223342_303478_0722CFA6 X-CRM114-Status: GOOD ( 15.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: 12867528 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 00D34C433EF for ; Thu, 2 Jun 2022 05:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=T+yZYlBFypldS4RRqGhRIqF3x3mvmXqv6jIJpZQ+yrc=; b=JpfobzMwUfkI9S UKHP4SmeciHYAzqKtN46hDesCsMPeSgldwcl84WumsoUBVizYBL8kh2lV3BXXReZBH50BoNM4SRDz CJHC2SNObSF4juBVTHvHfs8/FXZudfA32JRV19zX+daKpmEYRp9Nza2MEdDxeQxv/4gqqg+fUTPky UjH+AnHElJ8gC7uIS4kh2aTRnAq9ILGELt2QW2nt+QQV3RSmnj+TH6zLf8rkqbbV3kR3bvC4g8WjZ pPgB94o7mH0q0Qe2SK6FMM2nn1UysU6y2+SZZFYo6li6UjwHXgCIsFcX9ye39ixqNED6hxVy1PYmy k9hjLM2aSysnSuH391ww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwdTd-001U3V-SS; Thu, 02 Jun 2022 05:34:34 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwdSn-001Thj-Md for linux-arm-kernel@lists.infradead.org; Thu, 02 Jun 2022 05:33:46 +0000 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220602053332epoutp0498589b6afaf4e887f0913a32be0ac2d8~0ttqC5s_W0839608396epoutp04x for ; Thu, 2 Jun 2022 05:33:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220602053332epoutp0498589b6afaf4e887f0913a32be0ac2d8~0ttqC5s_W0839608396epoutp04x 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+NgFlrMJsWRmVeSWpSXmKPExs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r7 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220601_223342_285681_342DB426 X-CRM114-Status: GOOD ( 13.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: 12867524 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22E00C433EF for ; Thu, 2 Jun 2022 05:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P39gaS9Rr9My4Kc2NdyJAx37tnpTTG2prkIons2+zg0=; b=offUxrrl+30FTb kwNXdnfJh3A7Cp+f3NOOWHejhLPY/mW29Io4qzImuiclRGSk/T09nsU51+UL4AoxXKP+CVI45Fmnu r1zNWRzg1xUBxH0pDDBVbpYVs8dxdeKOPaGJgH7Q1VAyPuZFTOu+wsOPCSUcgwiImygjFs0Xqn6Lt lQkBcNO5GN4TRtvky/pZBoKagUIhAY/WQen1mnGd4bNfiX2zMdcsLPqWUx4b4wqGv0pmFNv8SHeGK TNa42Wj+sL5XT5gH93YbJZHtI5TGrP+lxheXHYZk86nQOPfcj4dabjAoWKK+wHeBwAXdIRCnHsDkD 9dpacyu7LRZPSNypGqVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwdSr-001Tmi-6R; Thu, 02 Jun 2022 05:33:45 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwdSk-001Tgz-Fa for linux-arm-kernel@lists.infradead.org; Thu, 02 Jun 2022 05:33:42 +0000 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220602053332epoutp01d6c689a46e4a00aa04193de837306741~0ttqJ70Zw0943909439epoutp01B for ; Thu, 2 Jun 2022 05:33:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220602053332epoutp01d6c689a46e4a00aa04193de837306741~0ttqJ70Zw0943909439epoutp01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654148012; bh=NBWjWlY2TaMrSi0e6sb5p2UTiyWC5KJi9atCINvmi4Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=necU3vwgfNHcJ2F0+4BiRfz+bcCGGnI3ugSdRYyIGXGicOm4BmTQCdBlusAsfBNCd IsOHaU+6mDqVarDYSl7Aku1y747C8Aq88CBumJn/xfsAmduamHde2GhxKxgs7GQ6mT XIkTxKabMa5lpzYi1FLuB8AA14jGu7DA8xUfCqLc= 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/dVsk7ON453tTM wFDX0NLCXEkhLzE31VbJxSdA1y0zB+g6JYWyxJxSoFBAYnGxkr6dTVF+aUmqQkZ+cYmtUmpB Sk6BeYFecWJucWleul5eaomVoYGBkSlQYUJ2xv7ZzxkLtnJWXG76w97AeJO9i5GTQ0LAROLN i5dANheHkMAORon7v84wQzifGCX+/tzABuF8Y5Q4+vk8K0xL2/tnYLaQwF5GiYv7ayGKPjJK zHnzBizBJqArseX5K0aQhIhAO5PEiXtzwZYwC2xmlDg5YQMzSJWwQKhE46cLYDaLgKrE5AW7 2EBsXgE7ibuvj0Ktk5fYML8XqIaDg1PAXmLLGQ+IEkGJkzOfsIDYzEAlzVtng90tIdDLIbHo 9g2oXheJKdfOMELYwhKvjm+B+lpK4mV/G5RdLLF01icmiOYGRonL236xQSSMJWY9a2cEWcws oCmxfpc+iCkhoCxx5BbUXj6JjsN/2SHCvBIdbUIQjeoSB7ZPZ4GwZSW653yGusZDonP5M2jw TmKU2DLrPtsERoVZSN6ZheSdWQi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tzBuH3VB71D 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220601_223338_930554_463AD350 X-CRM114-Status: GOOD ( 16.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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"; };