From patchwork Tue May 31 12:19:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12865479 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 8306DC433EF for ; Tue, 31 May 2022 12:21:43 +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=YeyuO1nl86TRTQ6JcqCmmWbKAVC9uDUaoZEL67CO4P0=; b=jWxcxXTngkvdUW +hOrnSEd7KFNYTB3i8GtnygndJ6cs8AFwxMsh9yul3TlZdySUip9d6U+jv7rIzIQ+UI30TEPiOv8X SWxBHfFPoRsDEE90z8lyxZ027APXmaTyvcVD1voiduQW1jmdCxQnleW2sN1eYewRHqyaaCxrX2vSI cbB582Zha2sEhnpbpB7a62Zbanj9CXUxKoUU6DXNcwDPCCqfUsXAQjgS531rZeqLb+PNXkyNGa2px NzLPv1VGVUsVyewkSdyQE2k5ZXAUaUq+lPyVbhigng03vjSHsamC4/KbTGrPpvdqn8w20i5Ib+iqf xEUp9W7pEq6YwKiTcH5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nw0rB-00AhBl-SZ; Tue, 31 May 2022 12:20:18 +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 1nw0qS-00AgtQ-Qs for linux-arm-kernel@lists.infradead.org; Tue, 31 May 2022 12:19:36 +0000 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220531121924epoutp01862b8b2302135c757edcc8022e56ba5f~0L9dR2ve02409424094epoutp01u for ; Tue, 31 May 2022 12:19:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220531121924epoutp01862b8b2302135c757edcc8022e56ba5f~0L9dR2ve02409424094epoutp01u DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1653999565; bh=BGTzFkl+9ZuSWt6gduZRv2Xb9WWqKG0b5iW1d82t38I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hiFFXq75cHe6mVThKLdO74zKnOmXJqxGybXz6EM+VP7X7Ci95yTEMdHXczzLYKbpa g8HAgRT8kuNk0BmIZSkMfpRg/g7eHOt1cF/JSTCuWRDeadTuPLZbjmg+H2KYGeCyxx soMdT0vm3hcKh5PeV0YWoK/1rIq3ryhlpLKkDWzE= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20220531121924epcas2p3fe7d26e5a2d153c0d0e39d533af15317~0L9ch68oY2465724657epcas2p3K; Tue, 31 May 2022 12:19:24 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.97]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4LCBCt5B3Qz4x9Q1; Tue, 31 May 2022 12:19:22 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id E3.47.09694.AC706926; Tue, 31 May 2022 21:19:22 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20220531121922epcas2p15861df56f7253265c591a88244520446~0L9axLynX2033520335epcas2p14; Tue, 31 May 2022 12:19:22 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220531121922epsmtrp1e9076f647044e919e4456ebc5500bf59~0L9awYczY1304613046epsmtrp1C; Tue, 31 May 2022 12:19:22 +0000 (GMT) X-AuditID: b6c32a48-47fff700000025de-02-629607ca1916 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id F1.E1.11276.AC706926; Tue, 31 May 2022 21:19:22 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220531121922epsmtip13a35cbb821bbec8cd0ad1a727f692113~0L9alg54v1935019350epsmtip1g; Tue, 31 May 2022 12:19:22 +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-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH 1/4] dt-bindings: phy: samsung,ufs-phy: make pmu-syscon as phandle-array Date: Tue, 31 May 2022 21:19:10 +0900 Message-Id: <20220531121913.48722-2-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220531121913.48722-1-chanho61.park@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHJsWRmVeSWpSXmKPExsWy7bCmhe4p9mlJBhPeKFs8mLeNzeLyfm2L +UfOsVpceNrDZtH34iGzxd7XW9ktNj2+xmoxYdU3FovWvUfYLXbeOcHswOWxaVUnm8eda3vY PDYvqffo27KK0eP4je1MHp83yQWwRWXbZKQmpqQ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uNuV2TKYfR4vb5/eFKLMUZiYZazEXFiQAih03I MQQAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBLMWRmVeSWpSXmKPExsWy7bCSnO4p9mlJBoff81k8mLeNzeLyfm2L +UfOsVpceNrDZtH34iGzxd7XW9ktNj2+xmoxYdU3FovWvUfYLXbeOcHswOWxaVUnm8eda3vY PDYvqffo27KK0eP4je1MHp83yQWwRXHZpKTmZJalFunbJXBlXO55zlqwk7fi3qbPTA2Mu7i6 GDk5JARMJH5u2c/axcjFISSwm1HiwptDjBAJWYln73awQ9jCEvdbjkAVvWeUOLbkOlgRm4Cu xJbnrxhBEiIC3UwSczb1M4EkmAUmMUr8+RsBYgsLREjse72PFcRmEVCV2DL9KdBUDg5eATuJ J2t9IRbIS2yY38sMEuYUsJfYMsMOJCwEVHFlajdYJ6+AoMTJmU9YIKbLSzRvnc08gVFgFpLU LCSpBYxMqxglUwuKc9Nziw0LDPNSy/WKE3OLS/PS9ZLzczcxggNfS3MH4/ZVH/QOMTJxMB5i lOBgVhLhLdk1NUmINyWxsiq1KD++qDQntfgQozQHi5I474Wuk/FCAumJJanZqakFqUUwWSYO TqkGpiCmjCdykafemZvdfvt2Tau2s5b8ZMV9a6M46l53p8nfWPaFh9VhaXyHrufFnwrv3u9+ lzxng9t1ycwfV5skbfS+R4hw/5FtvWLxxOn1otnVHF95uo7etJ13cecqiZkBhu4ms63Xs10x vMGhqpY7q+vw9fSc0EmsB2KzVznEKH4943Jl7+73N1yfTS56U3vycE7bPY5NqWuvGE+xZHM9 OXlD8nuBTgnunX9LpWddmPJn0aOKG/kNwt2TErd+v7uDU2Fx4xX2C5zPwqyNlf98cha8zSn9 vvLYtdeavNsjDv7pPyfVtqKtPf3xPO3Za9e9v1xw4i4jWwm3hJaJdqDPqbZtZw6Ird6oxDg9 wlws/aYSS3FGoqEWc1FxIgBuK3rW6wIAAA== X-CMS-MailID: 20220531121922epcas2p15861df56f7253265c591a88244520446 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220531121922epcas2p15861df56f7253265c591a88244520446 References: <20220531121913.48722-1-chanho61.park@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220531_051933_430521_6CA1535F X-CRM114-Status: GOOD ( 17.87 ) 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, 9 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml index f6ed1a005e7a..80c3ec14375a 100644 --- a/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml +++ b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml @@ -40,9 +40,14 @@ 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: + - items: + - description: phandle for PMU system controller interface, used to + control pmu registers bits for ufs m-phy + - description: offset of pmu control register for ufs m-phy + description: + can be phandle/offset pair. The offset can be optional. required: - "#phy-cells" @@ -63,7 +68,7 @@ examples: compatible = "samsung,exynos7-ufs-phy"; reg = <0x15571800 0x240>; reg-names = "phy-pma"; - samsung,pmu-syscon = <&pmu_system_controller>; + samsung,pmu-syscon = <&pmu_system_controller 0x720>; #phy-cells = <0>; clocks = <&clock_fsys1 SCLK_COMBO_PHY_EMBEDDED_26M>, <&clock_fsys1 PHYCLK_UFS20_RX1_SYMBOL_USER>, From patchwork Tue May 31 12:19:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12865478 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 2FA0CC433EF for ; Tue, 31 May 2022 12:21:20 +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=4I0DxaKYdlxiJSKauFpSRwZz+nhjHPe9p9A+z7kbpy4=; b=CLai6BoODqk4LP UxKk+PTIX6yvTVYGJcvABofC7bCJyde8fm9L6MTHjO/JU578ebZFJSYbkVOedtpZxuE5duwZUGa/h UlI0d2+Yj644pyHXcKMc8Vb/GY90ozCgdx0IaeFdMJZVM8Ik0K7Q0B77kSiBgZmkXoR1wX5rxYtzd Vjnr879br6DZ6/wYQTnfH3HtH7qvCUZTBWGnUYeTkeiD3wZaOQ6MLksf3kQwAblF+N7ncS61NZbIl mEj2ngNPC2DNJ2f7NiIrcKWoQtWteYf+Qi8Jw7zwePVoD+9dffZjk4oFGlV5FQGOgY34o1SVFgez7 F6kQvq7x24Yroj6gvhNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nw0qs-00Ah4w-P7; Tue, 31 May 2022 12:19:59 +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 1nw0qQ-00AgtA-GS for linux-arm-kernel@lists.infradead.org; Tue, 31 May 2022 12:19:33 +0000 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220531121924epoutp04b22380bfd43ef3525e33aafbdbfaf90a~0L9cxCNjn1890118901epoutp04o for ; Tue, 31 May 2022 12:19:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220531121924epoutp04b22380bfd43ef3525e33aafbdbfaf90a~0L9cxCNjn1890118901epoutp04o DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1653999564; bh=bt9eJGxpGB4Idj/b/nTRYM+1lQYvFBux+4s6f9TfviI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RmraLzbI1Rb7xjM2FdHNb8Mh9RYAZhMAi7Cb71hxdPaJPneE27N+UmtMzNk7dfMeL 91H5U4eF7zwhYItDRwhGzDJJa1V+69l2IV80pc8vGnhXUz8MPvmM0AH5bKnPsnSrlJ bnfAuFhYob3J5PVDmvTz8wphYB+W7zeHzlMWyo9g= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20220531121923epcas2p2f5b4fa0718e56e8da3dbc106277074de~0L9cUfRYH0530905309epcas2p2o; Tue, 31 May 2022 12:19:23 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.98]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4LCBCv0x8fz4x9Pw; Tue, 31 May 2022 12:19:23 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 94.47.09694.AC706926; Tue, 31 May 2022 21:19:23 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20220531121922epcas2p3c37a39cd28f56326c4f3980ac76f3b5c~0L9aydBcu2954529545epcas2p3i; Tue, 31 May 2022 12:19:22 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220531121922epsmtrp28584f6a8b587bf1972a25d6242bb4125~0L9awu5j62232122321epsmtrp2Y; Tue, 31 May 2022 12:19:22 +0000 (GMT) X-AuditID: b6c32a48-495ff700000025de-03-629607ca9a85 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 02.E1.11276.AC706926; Tue, 31 May 2022 21:19:22 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220531121922epsmtip1b78dddc886c7f487e577e85288b6c3ad~0L9apAUiq1600216002epsmtip1C; Tue, 31 May 2022 12:19:22 +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-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH 2/4] phy: samsung: ufs: support secondary ufs phy Date: Tue, 31 May 2022 21:19:11 +0900 Message-Id: <20220531121913.48722-3-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220531121913.48722-1-chanho61.park@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLJsWRmVeSWpSXmKPExsWy7bCmqe5p9mlJBmf/MVo8mLeNzeLyfm2L +UfOsVp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rJwuz9dl 7FZiKc5INNRiLipOBAA9H4i46wIAAA== X-CMS-MailID: 20220531121922epcas2p3c37a39cd28f56326c4f3980ac76f3b5c X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220531121922epcas2p3c37a39cd28f56326c4f3980ac76f3b5c References: <20220531121913.48722-1-chanho61.park@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220531_051931_184853_6440DECC X-CRM114-Status: GOOD ( 20.09 ) 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, we should drop the const qualifier of struct pmu_isol. Signed-off-by: Chanho Park --- drivers/phy/samsung/phy-samsung-ufs.c | 7 ++++++- drivers/phy/samsung/phy-samsung-ufs.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/phy/samsung/phy-samsung-ufs.c b/drivers/phy/samsung/phy-samsung-ufs.c index 602ddef259eb..bb0f8e481a4b 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); @@ -328,7 +329,11 @@ static int samsung_ufs_phy_probe(struct platform_device *pdev) phy->dev = dev; phy->drvdata = drvdata; phy->cfg = (struct samsung_ufs_phy_cfg **)drvdata->cfg; - phy->isol = &drvdata->isol; + phy->isol = (struct pmu_isol *)&drvdata->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 91a0e9f94f98..75dc533273f9 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; 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 Tue May 31 12:19:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12865477 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 9B93EC433EF for ; Tue, 31 May 2022 12:21: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=As8ct42DDAR+/BwXeYZXWUw0HC5bKJKw8D0X75BPfDg=; b=k9l4GT1/UKXZnh hZJGBHmvY1eedkWebOBG2vYl/eH4IyTjNVPuac3gSOjd3Eq4qWptVw22+QQtox7f9KfOU9E7Hp6aD JPVaSOTB9Ewf3DXRXqJJEEMoM6hDpGxTa4tSNI1kPQuk2f0wIu5OUOn0pGYkNOC1PycphEobT/sww S6UgwUZL8ZLc0UK+xDkIAgLUXxBmrMtmH/H/IoLkSLT66kSk4wYEtZfPHgimLQzIt1e4grF46X790 pZASLxSSqugK7Vwu6uMuuecjACLv2pg/Ju+fHFpVE+yexVdwJxGGw4JTPsJUdtx5Cw2camWcFOcOh 0MteHNiMsmmsPmpM3QGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nw0qg-00Ah1h-Ck; Tue, 31 May 2022 12:19:46 +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 1nw0qQ-00AgtD-GS for linux-arm-kernel@lists.infradead.org; Tue, 31 May 2022 12:19:32 +0000 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220531121925epoutp04539a7e26440ab5daa68a5b2f6e835193~0L9dviF1r1890118901epoutp04q for ; Tue, 31 May 2022 12:19:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220531121925epoutp04539a7e26440ab5daa68a5b2f6e835193~0L9dviF1r1890118901epoutp04q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1653999565; bh=D/ZcotWpVaQeVIfuUFsbhS1M/TS7osi7M9+ZOlhv51I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o991PgoXvy77Ova0c1FpfuAh3vm9LrCz1rYG4ZkVhSuCLZ/FXwIcgxqsUYdwfe3jE hk8EXj/de7mTgoZyNlaOOpExytlyx6xXJEhwsU/zm5ihHuQ0WpCm1xVNtktYyQAnXp j80ysK9gGnbFCpxkPPB4G06B6R8VtqrvddIolvMg= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20220531121924epcas2p37121c2681572d02a35f694abb767a258~0L9c_XR1Y2465724657epcas2p3O; Tue, 31 May 2022 12:19:24 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.68]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4LCBCt5Gfvz4x9QB; Tue, 31 May 2022 12:19:22 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id DC.BA.09764.AC706926; Tue, 31 May 2022 21:19:22 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20220531121922epcas2p428c51f13e61e06477d96ab4aa6d1377c~0L9a7Ktex0343703437epcas2p4Z; Tue, 31 May 2022 12:19:22 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220531121922epsmtrp14a3a74453409922644034a75d7093cb3~0L9a6N0Y11304613046epsmtrp1D; Tue, 31 May 2022 12:19:22 +0000 (GMT) X-AuditID: b6c32a46-f8bff70000002624-af-629607ca95e0 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 38.2B.08924.AC706926; Tue, 31 May 2022 21:19:22 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220531121922epsmtip1f9a5f5f8938c1e1d5c4fc22234ab3f54~0L9asTTRe1778017780epsmtip1w; Tue, 31 May 2022 12:19:22 +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-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH 3/4] arm64: dts: exynosautov9: add secondary ufs devices Date: Tue, 31 May 2022 21:19:12 +0900 Message-Id: <20220531121913.48722-4-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220531121913.48722-1-chanho61.park@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLJsWRmVeSWpSXmKPExsWy7bCmme4p9mlJBlM2aFk8mLeNzeLyfm2L +UfOsVpceNrDZtH34iGzxd7XW9ktNj2+xmoxYdU3FovWvUfYLXbeOcHswOWxaVUnm8eda3vY PDYvqffo27KK0eP4je1MHp83yQWwRWXbZKQmpqQWKaTmJeenZOal2yp5B8c7x5uaGRjqGlpa mCsp5CXmptoqufgE6Lpl5gAdpqRQlphTChQKSCwuVtK3synKLy1JVcjILy6xVUotSMkpMC/Q K07MLS7NS9fLSy2xMjQwMDIFKkzIzpi8JbGgjb9i1/67jA2M3TxdjJwcEgImEkcnTmTrYuTi EBLYwShx42cvM0hCSOATo8TrOXIQic+MEv/3zWOF6Vg7/QgzRGIXo0TbrNVQ7R8ZJY5tmQtW xSagK7Hl+StGkISIQDuTxIl7c9lBHGaBCYwSFy/tYAKpEhbwkOjpeckCYrMIqEp0nD3MBmLz CthJfN38hhlin7zEhvkgR3FwcArYS2yZYQdRIihxcuYTsFZmoJLmrbPBTpIQaOWQ+LHiGQtI vYSAi8SU034QY4QlXh3fwg5hS0m87G+Dsoslls76xATR28AocXnbLzaIhLHErGftjCBzmAU0 Jdbv0ocYqSxx5BbUWj6JjsN/2SHCvBIdbUIQjeoSB7ZPZ4GwZSW653yGBpyHROekGUyQsJrE KPFg73/WCYwKs5B8MwvJN7MQFi9gZF7FKJZaUJybnlpsVGAEj+Dk/N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REue90HUyXkggPbEkNTs1tSC1CCbLxMEp 1cCku3GB3IF0e6tX8+fGC70v1doj/XfB1yuHL108vLS2Tnf2nC255VGTVrKIZU4uWJEZqJew XnrJj8lc88+Xv+y1E5ky8R1z/MMpIZlJq3hjlhbLK6lHlIguPBFkcnvON7PPmXo1YXbT92yb 7Gmwc1r48g2lSVlVHSvPSVxeNsno+jHdEs1tchmrFrUKpW1NT71xz7vKatUuDp5OzU27Gl5u 3mSxLCu42fHIhNK1qY5bQo1ETgQfrM37ILjQ0kEybHnLTgbnI0WPHliqnVMwPlmdcbJSZs2G T5wudySrgmd+uLCQ5XfAjGf3079oT77+d5Lj1vm7Si9WfNRwTlppfvtuw0KmFynNCzk2Hzup pSJUp8RSnJFoqMVcVJwIANuT+ITrAgAA X-CMS-MailID: 20220531121922epcas2p428c51f13e61e06477d96ab4aa6d1377c X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220531121922epcas2p428c51f13e61e06477d96ab4aa6d1377c References: <20220531121913.48722-1-chanho61.park@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220531_051931_184321_45B8F51D X-CRM114-Status: GOOD ( 14.61 ) 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 3e23db8f09d9..c146271af477 100644 --- a/arch/arm64/boot/dts/exynos/exynosautov9.dtsi +++ b/arch/arm64/boot/dts/exynos/exynosautov9.dtsi @@ -380,6 +380,17 @@ ufs_0_phy: ufs0-phy@17e04000 { status = "disabled"; }; + ufs_1_phy: ufs0-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_0: ufs0@17e00000 { compatible ="samsung,exynosautov9-ufs"; @@ -400,6 +411,27 @@ ufs_0: ufs0@17e00000 { samsung,sysreg = <&syscon_fsys2 0x710>; status = "disabled"; }; + + ufs_1: ufs0@17f00000 { + compatible ="samsung,exynosautov9-ufs"; + + reg = <0x17f00000 0x100>, /* 0: HCI standard */ + <0x17f01100 0x410>, /* 1: Vendor-specific */ + <0x17f80000 0x8000>, /* 2: UNIPRO */ + <0x17de0000 0x2200>; /* 3: UFS protector */ + 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 Tue May 31 12:19:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12865480 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 E4963C433EF for ; Tue, 31 May 2022 12:22:03 +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=jFU5fGvhuO1KrL MWexnFJ6V0Y1/4ZPZRfi9s91vtXDeDMiwmmqIlVdK3csgpcoi5/Bo+hZV/ZxyvfF+RiGy8DZYqjHL cMutGQVRwMvPwtnvXVdmz5K4OY8Ab9JHIyfm5s0QQXK5VGNp3AKcL9wDaCI4Xn9im1Ly0RsT0X2ME UP35L2T8NIDGJKuweiANJu+/UywXiSG8zjjaqGQ43HrvR3cMMSK4S3Ep6rHN3eq9DnJzdbdkV6OLW j1IU6E9muJrBgefuK9vnd4cPM171SJJzKMoWg/zCBLrSeQ/4zc6kFCRsWgZHPpgPxjYy8Oh7DKEUD bvqUPrRu6C/r5TwNfo7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nw0rd-00AhN7-8O; Tue, 31 May 2022 12:20:45 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nw0qV-00Agtq-Eq for linux-arm-kernel@lists.infradead.org; Tue, 31 May 2022 12:19:37 +0000 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220531121926epoutp03d3b5f1ed8330520c5924a83dca0a2f35~0L9eab2ls2892228922epoutp03N for ; Tue, 31 May 2022 12:19:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220531121926epoutp03d3b5f1ed8330520c5924a83dca0a2f35~0L9eab2ls2892228922epoutp03N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1653999566; bh=NBWjWlY2TaMrSi0e6sb5p2UTiyWC5KJi9atCINvmi4Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xsqefx917tHduohDy8NhQ6NCZu0eO7amlqLQTmg7emzOw6XgA8JtO6abmNuDQPl9t pMmSrKQEidAl+RLyuVfIMN9XB9pgogQEbW+ysuCFYV2H1S8o2zLt2sra7fOtWQA5ly ZstQ6nRMKPozBpqnlSDK7JsM3FOzx5R7sf/1PFko= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20220531121925epcas2p48980f048e654b62a36012f27840e364f~0L9d4iHm10344803448epcas2p4Y; Tue, 31 May 2022 12:19:25 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.36.68]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4LCBCv58XRz4x9Q9; Tue, 31 May 2022 12:19:23 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id AC.F2.10069.BC706926; Tue, 31 May 2022 21:19:23 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20220531121922epcas2p4753a8b704540799711f03d33346fc6ff~0L9bESv_k0344803448epcas2p4V; Tue, 31 May 2022 12:19:22 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220531121922epsmtrp1cc514865fc242a220218ff2b2af7c18e~0L9a-nyGw1304613046epsmtrp1E; Tue, 31 May 2022 12:19:22 +0000 (GMT) X-AuditID: b6c32a45-a79ff70000002755-d9-629607cb6c70 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id F3.E1.11276.AC706926; Tue, 31 May 2022 21:19:22 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220531121922epsmtip166a7906511b689906e0312af5f6b6cd0~0L9avjuzq1777617776epsmtip1N; Tue, 31 May 2022 12:19:22 +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-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH 4/4] arm64: dts: exynosautov9-sadk: enable secondary ufs devices Date: Tue, 31 May 2022 21:19:13 +0900 Message-Id: <20220531121913.48722-5-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220531121913.48722-1-chanho61.park@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPJsWRmVeSWpSXmKPExsWy7bCmue5p9mlJBhuna1o8mLeNzeLyfm2L +UfOsVpceNrDZtH34iGzxd7XW9ktNj2+xmoxYdU3FovWvUfYLXbeOcHswOWxaVUnm8eda3vY PDYvqffo27KK0eP4je1MHp83yQWwRWXbZKQmpqQWKaTmJeenZOal2yp5B8c7x5uaGRjqGlpa mCsp5CXmptoqufgE6Lpl5gAdpqRQlphTChQKSCwuVtK3synKLy1JVcjILy6xVUotSMkpMC/Q K07MLS7NS9fLSy2xMjQwMDIFKkzIztg/+zljwVbOistNf9gbGG+ydzFyckgImEgcPLS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dU3FovWvUfYLXbeOcHswOWxaVUnm8eda3vY PDYvqffo27KK0eP4je1MHp83yQWwRXHZpKTmZJalFunbJXBl7J/9nLFgK2fF5aY/7A2MN9m7 GDk5JARMJNputbN0MXJxCAnsZpSYcuUxG0RCVuLZux1QRcIS91uOsILYQgLvGSXm7wGrYRPQ ldjy/BUjSLOIQDeTxJxN/UwgCWaBSYwSf/5GgNjCAgESLR1XWEBsFgFVib1rvjB3MXJw8ArY Sby97AkxX15iw/xesDCngL3Elhl2EKvsJK5M7QZbyysgKHFy5hMWiOnyEs1bZzNPYBSYhSQ1 C0lqASPTKkbJ1ILi3PTcYsMCw7zUcr3ixNzi0rx0veT83E2M4LDX0tzBuH3VB71DjEwcjIcY JTiYlUR4S3ZNTRLiTUmsrEotyo8vKs1JLT7EKM3BoiTOe6HrZLyQQHpiSWp2ampBahFMlomD U6qBiXFx/zxpy3t7Cwu40pZHfbzbwrRJuHORT/iG52ypJ3RrN8eV3bxz7kATw7Sgtd8D6zc4 Gj6993fhhufGRsWrvbnOzksR2G8483vOOUMhQbeQuyaf9VsUX7UFBGTJl4YwJNvVfi/dpyjd 9/qShFHUx0uJ9/K8bq6p3jb18ry8Od+MN60075f5wF71fepR7d6HTL/OFHEL7pg+f8N3JhWu rfef/DONVjoqvN6AbZlPIt+OTbOWlR1YcVnoOmuwD980JjXJMvYZYXcems32PK8SW9PGcvNW 79tDPl6HvR/lv3v4/dqU6f+jDQwZ/pnqxopEmh9XrNz08IGlYY6CwWOLjz67blZzB3z5Ezz1 1WJ2TSWW4oxEQy3mouJEACQUKdfqAgAA X-CMS-MailID: 20220531121922epcas2p4753a8b704540799711f03d33346fc6ff X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220531121922epcas2p4753a8b704540799711f03d33346fc6ff References: <20220531121913.48722-1-chanho61.park@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220531_051935_966250_DCF64519 X-CRM114-Status: GOOD ( 13.94 ) 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"; };