From patchwork Fri May 5 18:52:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13232974 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 C44D4C7EE24 for ; Fri, 5 May 2023 18:53:26 +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:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=pU7xS3wTSQL1Jh8RN0edSTYmHa6Q0tw9dO/m+540gZQ=; b=d+zUy5ttQ0Ge29 zXuP6AW0hrUauj0xpF4pEahXfpa6HjTzEbwhtHUyZ8sUeekioK5S8iio7W/KNPEPBjyRr0nrrquy4 ZAaWU6uUjhl9XE3x1KhilIPNDlJDSsx/39lXwLxphy2fPYhZfewaPrqCvUCoMu+Yood47vTzCqGh7 LdbFopuVr4SteZSiG1BJatNkPRGbA0TucYeztnF/1hGZHLDMWvPoS3E+tCdsx9PgWbj/IigpnCF4A 8VlXSFRT/PyBuus0T4OZQKgqN4EFTq99y8xLW9TGuXi0X0jx1PNHSGXZ+d6BrXAcgPBziNbBufh7B CD56/P3YRnYKUt9lt/4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pv0YY-00BYgf-1B; Fri, 05 May 2023 18:53:26 +0000 Received: from mail-dbaeur03on2061e.outbound.protection.outlook.com ([2a01:111:f400:fe1a::61e] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pv0YV-00BYfG-05; Fri, 05 May 2023 18:53:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nMqtFkSsmcpwCrEY6603/61gIOnyRltfVwGpyk7v1pH4264JzRyQdfuoKTzEclk7g+H3SgD0ViMCygOZ5cBgvRzHpQzsdE/m2k7NxIOsdDiYwL2EhaME+Fuab0434OXjakc0UvR2YO6SSVBbE2opWIELopOWrdYq/RGWSpoSRK1x3lNp4EoTmRczs4zXvGaKvex1S1OpaIsexr1YpytPyGNqtMe37fleFWegr1kuG86mIaRu1x56LxXAgeLV/boaZdGAmAf3+eC2F6+TIW7tDxiOq0H6kJ+hJusIlQBPfNWRDcQj/LcQ0DE+SGAFOllkY17MHztXqKJYPZCnqesK6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=H17YH8D3prWN9qaM4RX078K1Xg1rukN5XHrFEfhFGSE=; b=UUrjOUpNlXPvbraOjM4rsBPQ/J8iK7dFdt6cfYxYmD8VTjfmZNplLk12gMSTzPLp+rWIAHvR+VqtYjU8nI/vEcOKsp34rw2qsAxZIXOo6osduJGbSX7MXoSnLwg+x7s8+n3IzTVROPBtRyeKkvQWY9KymwMMtiqvjiGgYpugLHfKAu8zU31YKWck+FRPFuwtDCwQ5O0LfUPSajpyw4Xy48+Uf0Q5gsiHs6apCeHwL8sZ8RsgWtrDZB/Hc1D/686Gyml76gu8IiqOoTgaBmqD0xLe3GFuXQRfgi/xlZQA/4RgDHGyuCCN1/KNWsA1u+VkW4kMIplOfb2u41YFMVDt6w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H17YH8D3prWN9qaM4RX078K1Xg1rukN5XHrFEfhFGSE=; b=cc4KYMf91RZ0Ef5aj5mf0Ou6Wm4MIvG8vXFBG6uLaLrcUqDltCEORi7u2Kt5BeMRWH3N5utrAiCgLeWk69CtN09g/yMHrnjjL9aAoq2YVflZIVO63oGtP36j9M61/Lw+mrKbe4W3yXhTG+3h0st7gLC8jRsyFwLDVKa2wDuffTg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by AS5PR04MB9894.eurprd04.prod.outlook.com (2603:10a6:20b:655::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.22; Fri, 5 May 2023 18:53:17 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::bcdd:75c9:176c:39ed]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::bcdd:75c9:176c:39ed%4]) with mapi id 15.20.6363.027; Fri, 5 May 2023 18:53:17 +0000 From: Frank Li To: vkoul@kernel.org, kishon@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, fushi.peng@nxp.com Subject: [PATCH 1/2] phy: cadence: salvo: Add usb2-disconnect-threshold-microvolt property Date: Fri, 5 May 2023 14:52:46 -0400 Message-Id: <20230505185247.1854677-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BY5PR17CA0060.namprd17.prod.outlook.com (2603:10b6:a03:167::37) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AS5PR04MB9894:EE_ X-MS-Office365-Filtering-Correlation-Id: 690dc766-0ab7-4382-bb37-08db4d99fcfd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: r1UD/guvWabD6XYKaf/JETJMjJqln6oTh479QzJSGywPhv1Z8vRVL8GYGLjgu02KwISdgaR34qWesLNaaUFcwnGvTtO5R5yUvqLpaKatGQLPaYPeWBW7oFcYtAMxthrPhKGVp+x2ylD0jkzhWcdZLx0MdM2GVdajZnhRAige4fWolrStsRUQECmKDxT94gBrHL9tdEwId6rU305LZIJAsDHARETD+NHIpDWsHluO45xO+08CplYMesZ3iSRb6BFImI78kAEVpqJKiQi2lSQHuEmNrE1swVfpqOSsv2hk6cZ500c4LeL4FLqiF1EfFkKJOtWmIflEuYIoLX9NsiseqPGwGtnII6+qLCtGGcU30UF61brPsyFAZbKSmP3wVyMnx4jujplwi/rndEZY+MTKINDpR/i8lOkSZZvPkr1JKo5hYcBCXPpSmPuzaCRz4HHQsxUIyQjn1d2zGDtbbQzL2yDnVzVJ/Y6qKBdR1eVtOkcu42wGYB9qBir3aGi3yn9kLUassz2hGvxcDTwZzyhFo8msr717Mwp/kYPfumV7fjHY7RmN88v+4ktCl2mXaqcyaqJx8Ng9HX7aHEFdISZrsbBHKAcGskCsF2wayGGFji4sbcRDfHOvfIEEJ5fVNye5QXSJ4lY8jpt0t5EZeFi35A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(376002)(366004)(136003)(39860400002)(396003)(451199021)(7416002)(5660300002)(8936002)(2906002)(83380400001)(8676002)(2616005)(36756003)(186003)(921005)(86362001)(38100700002)(38350700002)(1076003)(6506007)(26005)(6512007)(52116002)(316002)(41300700001)(478600001)(66476007)(66946007)(6636002)(66556008)(6486002)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oVREFqihoF/9Y/+5VFmSmGO7mSY6LeXB6CNKuMU80Hh8omEU1G0H6zyn7PBNpqdKbF+yYG6Qwjk//oRMhVBpVyl8VV/1Vc3T6BPgCHlqUu9haw2YWxbRmfgic7IDKgaFVOq4pGjnNSWWaJFE5WwHKzEVAahIFcd+2c3re5UuVGNZTe8AdeqS+7HTZtiEis7IatUDbWKOlGGns3N9xJTb7Wc+goQJGeK2Kbf4CmmcWlOkgMcd/+2b2MyJjuNZAcSOKouPP40qO+JPcrIj4zAVWrPFEriJocDQEGVB30mHZcfE7PRQ8zZZDTXgq6CoKykQXthTPg6q38pFLrAA1T6GCNcDoygiEcYQbdwJanYEfkHJOEMV4MCLnIUQuqrOv+WDr30BPWLsmT10UEWH59StaacTGJHMRj1DsMNJG2Btm2QeN+wfxwpL/1Sz31loytvgh6QNxPLL1yTIPNxh/t40YRTegWdAhTgxACk1B9m+6204uf1tE8LzGtTEUpZocC3AqPi8+PW+Etxo8BOUREW/IvpkpK6SyHIwyKDuhn/OUZ7cWkgggmAOoqqV9OT6H9/i2a8mnWP+svaVOGDalvyVVoI8iy3Tt363+qhtkhmlDJR/n/SaH0uqcyenukCa71t2yk9CiQTfcgwe5K7e0OJYE+1ZX7W5DkWCMSXOxXGHOQq8sMEc3XI2okBIA7aMZ+gLBBFisMzEU/IIMzy9SrqQw0OmnhcQbH38PT279Og2mBk8Ec0eXAqW7XGfxjJGulef8wCvfjhPFt9wyCw2Unso0AaSIENBLLt11BAbpGe/3I1nihxQKOegRf5qnwkoTKOrNyaXsiDbS/sepSwll4rqLq/ue783k3m+gPjd5yYRe0QkbK7tIIxM8QCNcMHwsOtQvs8DdaMxa5Fx+5mwt5DHuqu6sGvcZxNWdEbrpAGChMI9oP+I4IaTanUX8inr5nbFeoZ7pb8/YMPAoi7nlzKtvk8LH2jX0lSiYXf0fl5lTbWNPBi0tT6jUUDE1sWM3mr9/hnkWTaXct/HNXv5QMNcbWynXkC4LL3e2XSoEQuYkN5ZezxwQSD+EIBzkVIEEm0JEuc52PLtQL4NgLCs6Xn34ttj4rkbAofrjbK2qd/ZWZmIUb6zw04aa0iM0ccwBJdNhXh1VtO8u5/vBeEPyNoc2I/TRw1ISuM7pi/h36PD+t+0GX8JU6iaCifD2Ju5+CugqJJUSZF+0EAi9LArA+FJJ91zdpoQmXDb9ZodMRuzo3qIx27YDjtefTmmnUOaSWed+RZQbCEMLX6JqBettOBWZYx88PC1/dDEBY4isnKm751HgMOTRDQ6nycgBhgxyYnwPWotSOBv0HxLOfFSg1gaKfMENGkihXgLxAry3+ixIFORPi/jglXRWp3UgU5DhPDoE4eTj8mhXqMVsPCNo4lJ8S19QtGKAFQOCZ4VKFLS6bNyv2iNohSfzqQzGjw0DDzecPLP5DRpN4CNecy4tWG1Bk1/yH6cTulVb9cQNcT5vY1XRZICSXqyb/olMNkca4UHQ6cTI0n8NjRGUOSo3crAA+UKEn99o/PKIcloV6A31sJJjkLX9bVp+QU5GgN613Ms X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 690dc766-0ab7-4382-bb37-08db4d99fcfd X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2023 18:53:17.4314 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1OuiS4Ruj3fMLem8kS9G8+kEcI8VCMFEltiwb/hBHxXtxA/mqmn0ahX0Ecjdh+J7R1/ZRWxDSFnm4j+KqDFkFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9894 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230505_115323_142326_5F9E6A2E X-CRM114-Status: GOOD ( 14.62 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Add usb2-disconnect-threshold-microvolt property to address fake USB disconnection issue during enumeration or suspend state for difference platform. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8x-mek.dtsi | 1 + drivers/phy/cadence/phy-cadence-salvo.c | 30 +++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8x-mek.dtsi b/arch/arm64/boot/dts/freescale/imx8x-mek.dtsi index 2f8fe59fc131..6a396844c02d 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-mek.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-mek.dtsi @@ -1051,6 +1051,7 @@ &usbotg1 { &usb3_phy { status = "okay"; + usb2-disconnect-threshold-microvolt = <645>; }; &usbotg3 { diff --git a/drivers/phy/cadence/phy-cadence-salvo.c b/drivers/phy/cadence/phy-cadence-salvo.c index 23be27a747a9..06e705dbbc3c 100644 --- a/drivers/phy/cadence/phy-cadence-salvo.c +++ b/drivers/phy/cadence/phy-cadence-salvo.c @@ -5,7 +5,7 @@ * * Copyright (c) 2019-2020 NXP */ - +#include #include #include #include @@ -91,9 +91,19 @@ /* USB2 PHY register definition */ #define UTMI_REG15 0xaf +#define UTMI_AFE_RX_REG0 0x0d #define UTMI_AFE_RX_REG5 0x12 #define UTMI_AFE_BC_REG4 0x29 +/* Align UTMI_AFE_RX_REG0 bit[7:6] define */ +enum usb2_disconn_threshold { + USB2_DISCONN_THRESHOLD_575 = 0x0, + USB2_DISCONN_THRESHOLD_610 = 0x1, + USB2_DISCONN_THRESHOLD_645 = 0x3, +}; + +#define RX_USB2_DISCONN_MASK GENMASK(7, 6) + /* TB_ADDR_TX_RCVDETSC_CTRL */ #define RXDET_IN_P3_32KHZ BIT(0) /* @@ -125,6 +135,7 @@ struct cdns_salvo_phy { struct clk *clk; void __iomem *base; struct cdns_salvo_data *data; + enum usb2_disconn_threshold usb2_disconn; }; static const struct of_device_id cdns_salvo_phy_of_match[]; @@ -261,6 +272,12 @@ static int cdns_salvo_phy_init(struct phy *phy) cdns_salvo_write(salvo_phy, USB2_PHY_OFFSET, UTMI_AFE_RX_REG5, 0x5); + + value = cdns_salvo_read(salvo_phy, USB2_PHY_OFFSET, UTMI_AFE_RX_REG0); + value &= ~RX_USB2_DISCONN_MASK; + value = FIELD_PREP(RX_USB2_DISCONN_MASK, salvo_phy->usb2_disconn); + cdns_salvo_write(salvo_phy, USB2_PHY_OFFSET, UTMI_AFE_RX_REG0, value); + udelay(10); clk_disable_unprepare(salvo_phy->clk); @@ -315,6 +332,7 @@ static int cdns_salvo_phy_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct cdns_salvo_phy *salvo_phy; struct cdns_salvo_data *data; + u32 val; data = (struct cdns_salvo_data *)of_device_get_match_data(dev); salvo_phy = devm_kzalloc(dev, sizeof(*salvo_phy), GFP_KERNEL); @@ -326,6 +344,16 @@ static int cdns_salvo_phy_probe(struct platform_device *pdev) if (IS_ERR(salvo_phy->clk)) return PTR_ERR(salvo_phy->clk); + if (of_property_read_u32(dev->of_node, "usb2-disconnect-threshold-microvolt", &val)) + val = 575; + + if (val < 610) + salvo_phy->usb2_disconn = USB2_DISCONN_THRESHOLD_575; + else if (val < 645) + salvo_phy->usb2_disconn = USB2_DISCONN_THRESHOLD_610; + else + salvo_phy->usb2_disconn = USB2_DISCONN_THRESHOLD_645; + salvo_phy->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(salvo_phy->base)) return PTR_ERR(salvo_phy->base); From patchwork Fri May 5 18:52:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13232975 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 1A355C77B75 for ; Fri, 5 May 2023 18:53:28 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VVBIUT+aDSSNdVnmT4ryYl8ng8KEl/yGJWx8HEU+S8k=; b=DXxzoh9Ss9Ue1i 2tpq228Qd4LGcjDS2jVF4F7SmPZysa7qFFka+nI2LIYJHaK40e6AZI4BFvx8XsqBTcTp8RM42aUUa k218YBtXWfYupAJf18fChWVAeZHMdQDDbsJ64QQ6cpk5cpUSOkqgStuYUbqHleoT71BYFxOWZI9Xh 4CYJrePzx1IZndrEz9rukewL45/koaIW4AEJ9Sjg1JYN9uhkQ/FMdG/yNMc0343DYA9AhZ7haoyUQ vDj9IEwjHhndzwOLT4jOf/t0FYd/4RP7DcaCGkhq/4ZVmFF3QKEzZw3gZrVby2ZAfTuJet9+BTsLt TK9/yJRT04EYQ6kvKGnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pv0YZ-00BYhA-2E; Fri, 05 May 2023 18:53:27 +0000 Received: from mail-dbaeur03on2061e.outbound.protection.outlook.com ([2a01:111:f400:fe1a::61e] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pv0YW-00BYfG-2P; Fri, 05 May 2023 18:53:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VVwuJs7YmyZZlX+2Cte8Y3zoQ3vSK7RVMegOTjih/Wb1H/b7OuNPuenAf8IxdrTL0XTppaqAX0Ud6Zy44KY6RJ1iXPn6JqY+AwDdpLzv7+UuMw3ExLbgspAvj0jiGg9Kgp8lBuz/LxGXXVTisWBRr5MTLo4NT6l1iTMi/HbSM1fTBOPcXGJ3yBsuBeOY4bFbyP/5BvFd41ZexrzcPJy+WQXcd5j0PCHsGMKRi2nlqQCOPZmlCFBSfJzFioYb2qUy04Rrz83mb/E3R+55XWpcbC1N5V50Y7TdVzKbOlZIw8d8g/h3j4fPEC2nTm8QIiNBr0Ybv7haoPs3mhhiO3uBQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3GHLZh3DdzcsfQ3aabNJU7ytOcAr9J5LQDbSGS7Vvmw=; b=Oxg+ddWZ3bkomRiwWYJ2uTWsLSNCwslQOxu6BSZHlC9yWbGaaD10cZsvZ7CXuqhsvO8VhG2tjqSra3Cd/uRuvcRYx338CcmHovMs/HdwLWfKWoCbC2K7m3HU/o+C8ay+OdrElNk6LFh/0xqwfurLoe0o5qMgGN+eOYCHbsMJmI/uVCIP6CYt032HcjOEx0tVXefkYS57wXn5oa/s/4/dq9fRVWt7dcJbRVaLflVXi0NjuEupZ4mtOMZx57gIvjES5w5nW3lLkC5PRrOPzKqAE0NjklEwe83ZVdS8badzxkK/ZQaiCR/o0piDJdHyvlO52wZXlOcv7hrSDNjAR1o6HA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3GHLZh3DdzcsfQ3aabNJU7ytOcAr9J5LQDbSGS7Vvmw=; b=KAfCEPRlAEHrpaMFLpiaHEPyc+gzqbMsqRK6JSJcVXch5zk5Uie7hmpqOyBgBUxJHGdmxND3U4Tc+7hxRYWQ8WZlmFE/UuiNoVlG9gAfPBC1Hdd4WQIYFxoY3bzJjKUp7xsi14o1Up3tmPZSJG4uU+tNXj2gU1tm+IjE/TywB74= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by AS5PR04MB9894.eurprd04.prod.outlook.com (2603:10a6:20b:655::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.22; Fri, 5 May 2023 18:53:20 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::bcdd:75c9:176c:39ed]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::bcdd:75c9:176c:39ed%4]) with mapi id 15.20.6363.027; Fri, 5 May 2023 18:53:20 +0000 From: Frank Li To: vkoul@kernel.org, kishon@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, fushi.peng@nxp.com Subject: [PATCH 2/2] doc: dt-binding: cdns-salvo-phy: add property usb2-disconnect-threshold-microvolt Date: Fri, 5 May 2023 14:52:47 -0400 Message-Id: <20230505185247.1854677-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230505185247.1854677-1-Frank.Li@nxp.com> References: <20230505185247.1854677-1-Frank.Li@nxp.com> X-ClientProxiedBy: BY5PR17CA0060.namprd17.prod.outlook.com (2603:10b6:a03:167::37) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AS5PR04MB9894:EE_ X-MS-Office365-Filtering-Correlation-Id: 70c0f5ae-d2b2-4665-c23d-08db4d99fef4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dyzr7KLNChv6neh3x/KlEoD9M2y3eQ1BpeLLWVumAH10fWCCAZgmRcK3QLtUOhsyV6onvo54jJ9pXE6RIfFRUnIuo7LwoO0ccQNvNHOVcyh52R1FD17NjmCUK66znWWvycLfu2Y2e5iBiBh3Rtd+kdOJLRyxcmyMF6INhs31Ctz85x5r4nV+2IuCWMdVZ6xmIHP17ZAJi3UzbOPEwi4yAo3QZwweMRudLuT6KYSD0/cA5fCxDtx5TQd4m4NY9ap3DnQ1VMsh5QonOymwLBavf+KzMy0AYDpGeIQfAdg9anmBH7HDKcA89EI/vPAYSImtQklS37DjPE3nRPun37wimjgJ3MBHKZUwFBQ2SG/eSXBNnmp0x98aRqi/Y0kP9hMr6cFvFFL5fhEeo4XKIR6ehHi+KmwfFzjTGffm004X4nUi9uJBtIebYzUYY1PAXQnAxJLIO4m204F0I4EOjCpjOuGt1dxf/8ufNkHMsCVi3LulIO943J2FkAoMSP4mmnRL5yJaa243hZ5tA3ZoSABajy+OussIK0O79h2htAXgoWApUGD6gh9irCqih3jerKNAzexrtE2gSZ0OTyF8MQtaSYxNBH8LNG1fMJNw4SsQSSXqvuwC8xjU699D4n6RaPJSgNK7DnvqXMvf6O/oIwf1kw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(376002)(366004)(136003)(39860400002)(396003)(451199021)(7416002)(5660300002)(8936002)(2906002)(83380400001)(8676002)(4744005)(2616005)(36756003)(186003)(921005)(86362001)(38100700002)(38350700002)(1076003)(6506007)(26005)(6512007)(52116002)(316002)(41300700001)(478600001)(66476007)(66946007)(6636002)(66556008)(6486002)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: og+frlSBe2l+P1sE8Z8kneH0IZd17TJuj/C1Jgi0F/WNRYvvb4xs2pyKA2InoyLN8BGdWCUH+ZJyVHU7ybWThMw3PTZ8e0Qy62Nbgb564bt8Sjy2oxmQBD7NeV2nYODBRq7PPHzEYVvCoBW7wQ2w+NnCKzfQ6QPbT/z2YpfCxA9arC5ACK4NzeG7oK8gNVky6EPeLp/6q2i3Ln4lHMM7+RImaXtChTrYCI+h0s1+49Pk81UHOoqyjBrg/wjh/73zryM2bTwO45t2Mbszr5MwafB5CqSgaGm2VMIEZsAZAftR6NaZfadEJe4FhEoLDik8Q333doEq5BD1AbP4/n6Njti9JGe6wVcm99SMlnc51yUZYasV2nl2oXNZi7EekbZPfxJP2zAcZZoaNQYARab/ugHzUKt4S3yJIBh1ZVrl+gNna9Htb84q3RJpqxdLMiMp4t4CpHZDHikQApehyaFyZZtH0r1E44mZXkX6DH94sJIWLYmzkK3ruQpdX6gFUlvsVOKZ8qZ3JqHtf+rHZd+ShMiGjXpDIOV1E8BDpDAcR3bl1aP1iwyhbJ8ET9LrdIeonuiRB2spSsTKpD6dJBE3vqGhhlEe5U1Xv586JO9Q9JW4+cDizLJYisiNqBfFl4YQ0sWIkjtKXaqxerIaK8ARbmZbD2/jddhW5PY/sbaM1XHhR+0ZT1B89Zq8CbDALIPfX7X9QsvaFZi1YqpUxYcXR3SwV0Cg8yb3/1hXH7ixPEZfMz+h/6zNuoPvRoMFAWO64ef+KxKPk+ypkr+V0tmF9Jl1yXEklY5i8m4wzHTf7kxRUnU0n1sK60kP1qH25mCiUkZ7C0XMtId3TsTfiS12ye6ZZlEL+NsdPU7nyg8mEpi6DW/6XxB9NAC5mnojkdguW+uokSUv+wolZiYKOYclB2nZ89XPuvgmfG1zAp/0xDHKPmW2NynJFNHP4iTAoMv3IyF2F1ZdUINuQyBt9Lz4N++gweFkhOykHn6VIFvV3G2SSIbNNLAP7smJLLST644+iOxFglvSpawPOXCO8dp6lWkPjJvo+0TQg2pZLe2dK6HdF1Ef8U4C3Ca+0BzdKfiPfx/WMYOWj6FDfMyOjVYutC3VM8bkhgmY8ZnTCg1FFwTv0stXvcjLw3Cw1yyREbegq7IDn6ekR3xS1rFur+IoynUIRxY+3boyXGq3VUj5Lg6+wjg3V3zu+iwbEO7vovesXbD9nB/rRyCBS2u6x7dBz45nrdaXEY3o2IBVSsAOg67Q0I/t8MdDpXDG70d+1Ru6nyO6rZwiY5OKeexWlP1hreDSFgSGNlBSzakOL4nh+KsivD/nwJqY+XR8EP+klk8uMgMO7Xfzbr7pq6KSuIRF/xlZ3xcdsh6aMN+RbJqT6sx0LXwvIOix/+fpGe/N9eSuC/OUPyGy6FildqF7OYVOeYUQQR7dmyn2wJrAAWDxVWp64NVKPbB7dJVnR9/G9Ecg5n6WSfvgP0AmltyIYmVAAbwnnnQFJlKQuA4bnVGuhmSakzwB4ZalKUvIfRmRpGT1M4676OFQfOAPu2PYY7E0GSJmEm1F+T25nA1M+jz4ls2uZ+IC4CS4hSq/0AorJOuv X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70c0f5ae-d2b2-4665-c23d-08db4d99fef4 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2023 18:53:20.9052 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1FKBOjAL0uKdcfA6ko1hzv/5L+/XXp2MP+0gwn+zU9gIKCPW2vJaT4zZWOrHnsY9ZYcmfJcrGzys/7O+OXQBxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9894 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230505_115324_786907_8E7D8274 X-CRM114-Status: UNSURE ( 7.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Add usb2-disconnect-threshold-microvolt property to address fake USB disconnection issue during enumeration or suspend state for difference platform. Signed-off-by: Frank Li --- Documentation/devicetree/bindings/phy/cdns,salvo-phy.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/cdns,salvo-phy.yaml b/Documentation/devicetree/bindings/phy/cdns,salvo-phy.yaml index 3a07285b5470..3c7f5b3f9211 100644 --- a/Documentation/devicetree/bindings/phy/cdns,salvo-phy.yaml +++ b/Documentation/devicetree/bindings/phy/cdns,salvo-phy.yaml @@ -31,6 +31,13 @@ properties: "#phy-cells": const: 0 + usb2-disconnect-threshold-microvolt: + description: The microvolt threshold value utilized for detecting + USB disconnection event. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [575, 610, 645] + default: 575 + required: - compatible - reg