From patchwork Thu Jul 9 10:58:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 11654201 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 84D3E13B1 for ; Thu, 9 Jul 2020 11:00:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5D9F22074B for ; Thu, 9 Jul 2020 11:00:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="z/XLk/HS"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="M4V4Y2nM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5D9F22074B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=4YHB3jHXvvJBFlZV/6910rZo7AKUcpc+g0YvKfnyLD4=; b=z/XLk/HS/tGfKZBHgTj7Mq0nvF Kccn22ZJuvObgg3310QSqJN+WY6HQAsEt23zpZQLZxyShklN0BSirJ5zkSgk2/sYf60YwTl4rHkKo MvLeKqdmQ3SFvmYAh7vedbNSMhWQ+ytAGcPoTOECer8bRnL9s3bLBISfkcN5afg3mG/pjKqo/YtTL ut175xJzAAtJZ0AsHOoqQbsj9Ndo4F7lLBn+a/DTWADzYW+zMEkII4e6SL6F0onZaZN641CgHJuKY GrEsUPPyOKzitUFGRRXkWCRrTE8EcfQY9+ff1tWWVJnxDHcL2H9CzaBfKqqF/O2UPodchPVS87vzO +pdva9IQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtUGm-0003ty-Ps; Thu, 09 Jul 2020 10:59:12 +0000 Received: from mail-eopbgr80083.outbound.protection.outlook.com ([40.107.8.83] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtUGj-0003rT-Me for linux-arm-kernel@lists.infradead.org; Thu, 09 Jul 2020 10:59:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C4XNQXQh5sIbWiZclrNgd5ixcVd7UwbKUnCbOYeT4GMPH7zh20h7iPgZKQQ79uFd2ytYTuxeJNQdSEHS0shla5QYAWa6K6lowkJRd7mXB3AhYaJaemo5JK72tN2ArEtI7YItIjp3GXrWre8HcTF3/ogBO3LzgP5PlEkx2OOmgBrhGpdMkbTbi5oB/3yxrvZefa/uFAtKWUpxcafL4wP08/roHzQcBN7woOmgZX/p2DA0VCjFo4fLiy5fOfcS2U1QbuoE9h64wxhly9OJElTu1i/hBg0E0osQHWOJMcciVe6VPSwPr7s/YiR/RB9SefrzNqSbbnfLvsng5RtH4QmOVA== 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-SenderADCheck; bh=Hy5onE1qdPtnNI+asmUIO0+YT5SmDhs/EsVQcMgLcI8=; b=IZG//dzSWhuz/VPDubkuxlv+6EVewapzaBLfPP5iv6E1frpoaKZaI8ciG4mTOtxif4oKfEDABqyHWc7c7a3MVbQ02OWkkPyI41dgVXF6Yg8iNRbErwZaq/tPKCBSxswzKYdmhv5ZACPbFvWdiw3AxdDKy2JjWBbKrEeR9ZdHDnd4Ffl2Tb+YFMdxN3zJ7/kuKx6GswNPWQOARpxSTd6yST9xrvIKXZYjG5xR+eZvFtUuzzbpzhLETCg0xKs1D9js3561Vek5uuZmuU9OTktHo6JNcRSZf1ub6Gkcba+ELyCORRy/hUCpCBt7ipZih/IUfQchCAtLjxomb3bgBXsI7g== 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=Hy5onE1qdPtnNI+asmUIO0+YT5SmDhs/EsVQcMgLcI8=; b=M4V4Y2nMd3quRS5aPlKvNC0+sRSfDdG8qZCvYMdo801rif1aBE/3qSaauzKrGyV1SYpTMuHF8KjXPFCGKtjjrDFlavdSauYCTD0cZIEBOGwI17RxWXvC8i81dDHlGA3MbVgbc13RNjmuKWLAirIRXHgVWJZNc3X6gu1rfR+oXk8= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7157.eurprd04.prod.outlook.com (2603:10a6:20b:118::20) by AM6PR04MB5736.eurprd04.prod.outlook.com (2603:10a6:20b:a8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Thu, 9 Jul 2020 10:59:05 +0000 Received: from AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::1101:adaa:ee89:af2a]) by AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::1101:adaa:ee89:af2a%3]) with mapi id 15.20.3174.022; Thu, 9 Jul 2020 10:59:05 +0000 From: Peter Chen To: shawnguo@kernel.org, robh+dt@kernel.org Subject: [PATCH 1/4] doc: dt-binding: ci-hdrc-usb2: add property for imx picophy Date: Thu, 9 Jul 2020 18:58:59 +0800 Message-Id: <20200709105902.23165-1-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SG2PR0401CA0012.apcprd04.prod.outlook.com (2603:1096:3:1::22) To AM7PR04MB7157.eurprd04.prod.outlook.com (2603:10a6:20b:118::20) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from b29397-desktop.ap.freescale.net (119.31.174.67) by SG2PR0401CA0012.apcprd04.prod.outlook.com (2603:1096:3:1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21 via Frontend Transport; Thu, 9 Jul 2020 10:59:02 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.67] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 29f511c6-5687-4464-5fd2-08d823f7188b X-MS-TrafficTypeDiagnostic: AM6PR04MB5736: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7eGEb9ZFeL8wyEDq/Ehvwnd8GLGUSbPTlPcbzo7pt2s709vACDoyh1HxciZ0uGBbOErnSaPK5Hozy7Dr4NccoqzyaTehccykpe9KpZvqrnpBHui3QXVky7xwgPlV/qP+F31hSCQKN/0oftH3OdeYN7rk5lWBYZi9U0Eq+cZ3u+a3W8IWPIHjh2JQaZZVQf7BWYsJBuHTkiEfA7Bact1qAFNDsPyHhx8vb/Mo93inxK2I5ono8Hproj3XLumguRmwSmScpVfbuRQXrjRHsCKP5zaRFWNA+FkxNtfjoEvZeh0Bx7tzmNcw7q1yQriw5rjA1lLHdD5+Scd97au0mTW3GA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR04MB7157.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(136003)(39860400002)(346002)(396003)(376002)(8676002)(6506007)(26005)(956004)(44832011)(1076003)(6666004)(66556008)(66476007)(66946007)(5660300002)(36756003)(6486002)(86362001)(2906002)(6512007)(478600001)(186003)(2616005)(16526019)(316002)(52116002)(4326008)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: yEic1x59ewLC7a7ZnOsopORk5U2AB4ovC/xkFYmEt7Q1VMf63h/n4K+hRM0sO66ZgundK7gu/E6NZGDIkg8eB+LO2Agti0hIUevX2Y7888vLeSuYVGs/CKXFj3zq5m+Usj+PMO76lDSCXA9yokihAjS37viyyiETL3fZ9kUQME1tnS60UhecXFryYOkXQN5m+95GbiPaICThjOrJ0nlhzhWIRfMVPzAmtmQNEpbPLOGXZDP0jPRKOBB7DI6NRQ4O82XEyo+5NZfWqoHOy6UJHF7WiUEPvzdzGMOq/Ic7mAOL1HchV8py5qTM9ZYh3f5wKpJzGfZGrsVsrnFAIjKZHUCiKRKQtlheImuW7Hxk7nVf472wGdvstmexeJTZ0wu3ceGIal9Myt1uCSj0bbpPNXEpQfVc8PUoPG7KwtnfwZlEvgbwgQX6KstiL/WgEeMkC7Y8TACEglCKU+W9NmK2vg9ZzE6n6E1yeLF7t8AkBuw= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 29f511c6-5687-4464-5fd2-08d823f7188b X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7157.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2020 10:59:05.2240 (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: KcCaTp0N9djgFoYX2XrJQ3uw0co4z+JKkqHEm4MKtJtK9OiwY+2aGZ0zWzpbl3IQbaEVLX5wDeX+3ipFnoGESw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB5736 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200709_065909_814113_BED93449 X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.8.83 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.8.83 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Peter Chen , linux-usb@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, linux-arm-kernel@lists.infradead.org, jun.li@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add two parameters which are used to tune USB signal for imx picophy, picophy is used at imx7d, imx8mm, and imx8mn. Reviewed-by: Jun Li Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt index 51376cbe5f3d..e9858dafb08f 100644 --- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt @@ -100,6 +100,13 @@ i.mx specific properties It's recommended to specify the over current polarity. - power-active-high: power signal polarity is active high - external-vbus-divider: enables off-chip resistor divider for Vbus +- picophy,pre-emp-curr-control: HS Transmitter Pre-Emphasis Current + Control. This signal controls the amount of current sourced to the + USB_OTG*_DP and USB_OTG*_DN pins after a J-to-K or K-to-J transition. + Details can refer to TXPREEMPAMPTUNE0 bits of USBNC_n_PHY_CFG1. +- picophy,dc-vol-level-adjust: HS DC Voltage Level Adjustment. + Adjust the high-speed transmitter DC level voltage, details can refer + to TXVREFTUNE0 bits of USBNC_n_PHY_CFG1. Example: From patchwork Thu Jul 9 10:59:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 11654203 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9C06913B1 for ; Thu, 9 Jul 2020 11:00:48 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 73FA62074B for ; Thu, 9 Jul 2020 11:00:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="pTo/q0h9"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="D2k19YUU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 73FA62074B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc: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:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=X+fSTNiuor86hVe4aGFoZQ0RxJihXsCjr1YX+PyxX2c=; b=pTo/q0h9AhXWUFYcXopqKEVyU 6bVg8QK6xRW2Ap5lxc0jA2zFggT7YxM8vUxZz2uIVo1noXzIJfKngD54p83zWxz/W0RH7vNjfiUbq lz5iunR7xxi6QXSc1rmeI6qVTDOp+isRBr2EebF6g+qVTLY3WSRwnTUOlbVH2E99lMG5H/wFxokxi WHMT/HJDlyEDY8M606nF33lhb94QyyAyMMLyt+nLWMfLorMgfI6wX1MzAANz9hO/WI2wo+xFp9pOw 0hzWgewOJJvBnBMuYkbZYs6Wz57VlK340aCNRO4G2t0DAfa2WZLcwIFgBKext5iFS3odBT3TAipL5 H0qnUuIfA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtUGv-0003wu-MW; Thu, 09 Jul 2020 10:59:22 +0000 Received: from mail-eopbgr10065.outbound.protection.outlook.com ([40.107.1.65] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtUGl-0003sV-1P for linux-arm-kernel@lists.infradead.org; Thu, 09 Jul 2020 10:59:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J4yFClCDLjDddCm4ll9JZGUQdIPQkOxGVxBPQHXifi8jbSK2bV1F00fYATlDd5XnCiWTzJsSxdXvaYM0QVlwnh3AFvBYLYV0lHyHitNoZ1MF6LaoZcdh8lrroXy3LqPZjL3IqKXecuDxY344coUcUfZa9TLV1FHsdXipDHzhsb+jPhft29hriT6S/XSyuBBP+KSLmt2GAh8GitGK/81eqrXrt2b3RswKyUoPUw3329nhb9bMGY7RIn2Nw5VACTsjIIAaFSdypaN46VYyrCeN6P9IOBuND10u+syTI9jXHmUJq4p097GVu3BqBAmLgW+lE4mrX8vA0XoLp50ZVzeYrQ== 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-SenderADCheck; bh=K6ePAqO/Bblr9Z0zJ3Tp+7SYqquWNtP74rVxcu0Noj8=; b=A+SPG69KcESZZDRcrcRuVvw7Bp7uuBDQAbgALH42oc6ELzo+/7nq8/5AD1v/9Ic/M7QPKpaoFGNueKB+pDDq3Scpfw59+ZZnaSTfZGcHXLzsuD01hWV9dHsBaFiGhij6ADGP9LJzh3NuFAE+uKgHMGF4SUc5Zx6rhmljFG8ob9xvU6AyxVbjx1xRZyKng3V2NFLlVwwo/yrYyv7oOjtKnZRd7A4k5O4Z6FAiJU11D7M1KqFvq2wTodsgcKVeMSHVOkY4i3YvmKxF+zSNVVL4x+wEBl0eVNZEzMSj9ELwriO0l73pOOsja+KwWhCG22kgbGn6dAKpW1YrUhOp1Mm7pg== 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=K6ePAqO/Bblr9Z0zJ3Tp+7SYqquWNtP74rVxcu0Noj8=; b=D2k19YUUxviCWgvfj8YXVSNaMtQ6+uQkaqSR3FNv+Ejbwx2dsUWAcD8xVN294MfITMFjIPNx0IDte77Q7gemMRc/HEvL8g7RW8va4TVfzeRH+QRMCeMScKHVS27tYVqK9nEpkgf08wIRCTd9RsA9mM9hMnkfs1KD4pE4Tne0Vyc= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7157.eurprd04.prod.outlook.com (2603:10a6:20b:118::20) by AM6PR04MB4982.eurprd04.prod.outlook.com (2603:10a6:20b:5::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20; Thu, 9 Jul 2020 10:59:08 +0000 Received: from AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::1101:adaa:ee89:af2a]) by AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::1101:adaa:ee89:af2a%3]) with mapi id 15.20.3174.022; Thu, 9 Jul 2020 10:59:08 +0000 From: Peter Chen To: shawnguo@kernel.org, robh+dt@kernel.org Subject: [PATCH 2/4] usb: chipidea: imx: add two picophy parameters tuning implementation Date: Thu, 9 Jul 2020 18:59:00 +0800 Message-Id: <20200709105902.23165-2-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200709105902.23165-1-peter.chen@nxp.com> References: <20200709105902.23165-1-peter.chen@nxp.com> X-ClientProxiedBy: SG2PR0401CA0012.apcprd04.prod.outlook.com (2603:1096:3:1::22) To AM7PR04MB7157.eurprd04.prod.outlook.com (2603:10a6:20b:118::20) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from b29397-desktop.ap.freescale.net (119.31.174.67) by SG2PR0401CA0012.apcprd04.prod.outlook.com (2603:1096:3:1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21 via Frontend Transport; Thu, 9 Jul 2020 10:59:05 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.67] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: bdbb9b6d-f8f8-41d2-b17d-08d823f71a9a X-MS-TrafficTypeDiagnostic: AM6PR04MB4982: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:826; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yfUz+zZon/09pMA39NleO5Q5/YnMpNWj2/2oZ6VPUZ/ovF1Wsx8ucwQlTffLbiAqEKHWriUaPBYA9YfslA6Ds0bzHW6GUfJU+1N0l106msA2/pI2ZwdPfvLM6lD4fn65ga7Dk7sZweUZttSfaXd7vtNNxlQAKXZIjSH7elHYI3U1Myf1WdMIo6OJSP2AgUi6PGdGVJJ3v3YUrm3gR2/wi3eWqcSQ/DLrYuIzdNeEBkQqo2oPeXqc8pr+TWv4eQ/2bqH9RKTjaqxqnaxuVO45ZCPw0QoEOEcBCVPJYtVjc5gsOfKHILjYoPPY6TyziEIn X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR04MB7157.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(39860400002)(376002)(136003)(346002)(366004)(2906002)(36756003)(478600001)(83380400001)(8936002)(5660300002)(6486002)(2616005)(86362001)(186003)(66556008)(956004)(16526019)(66476007)(4326008)(26005)(66946007)(1076003)(316002)(6666004)(6512007)(6506007)(52116002)(44832011)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: X9AT6uNEZlaYDg3L9Vy9oqcR9ZqsC43aGvbqjkufoxmBxFnLpQouAMEZSAAEnc/4X7digLhsSrNs/RhwrHN19THukLdYTrmGvM4oe8SNbdMvBUluxCPo8gLnjxSkS9bmbW9WVyvmxs7JBhQBxr0ufaGiChO4DThFW+LyKFRU5kXUWCoaCzUk+XoKzNNFF9lcrvktPwXuMkBNBflK8XO/RCYa4T3b8wW9BzURS9C/RXjCnjceuvGiYab7ii6R+rF1Az2K1rNs4Au1rzDWpGzOfqtaJOWLEZrpKxnZFDA8i7+rSYwwzIuTXJag2zztEp/gS6JsRXBKS8VjLVnxWtv9i2IXujrhHlAboMQmPUeh0WChkKj8CPUOFOV5KxDkCcxDToB3XaiTb8Iy5NFlOnQZYCqq7c4XdEWTj+QfDlO3Uoh4A3jawxToqYy4nLra9DQxTFjeEK7B+NJBJhp9gohj3ZNzDDJehptXSFh0JSAYI+M= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bdbb9b6d-f8f8-41d2-b17d-08d823f71a9a X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7157.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2020 10:59:08.5305 (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: SGrDXe8tZi73Pwio7XiEZUYlUUciPtTKhBuLILy54vNBcdwaRu892YpmJgjAzGXj7udU4t2GrI6iNZu4qPTUsQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4982 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200709_065911_147129_BC3DDAD9 X-CRM114-Status: GOOD ( 14.20 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.1.65 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.1.65 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Peter Chen , linux-usb@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, linux-arm-kernel@lists.infradead.org, jun.li@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org These two parameters are used to improve USB signal for board level, in this commit, we read it from the dtb, and write to related register during the initialization. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 5 +++++ drivers/usb/chipidea/ci_hdrc_imx.h | 2 ++ drivers/usb/chipidea/usbmisc_imx.c | 21 +++++++++++++++++++++ 3 files changed, 28 insertions(+) diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index 5ae16368a0c7..58de0f3ac0e9 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c @@ -165,6 +165,11 @@ static struct imx_usbmisc_data *usbmisc_get_init_data(struct device *dev) if (of_usb_get_phy_mode(np) == USBPHY_INTERFACE_MODE_ULPI) data->ulpi = 1; + of_property_read_u32(np, "picophy,pre-emp-curr-control", + &data->emp_curr_control); + of_property_read_u32(np, "picophy,dc-vol-level-adjust", + &data->dc_vol_level_adjust); + return data; } diff --git a/drivers/usb/chipidea/ci_hdrc_imx.h b/drivers/usb/chipidea/ci_hdrc_imx.h index 727d02b6dbd3..367bb0d0cb6b 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.h +++ b/drivers/usb/chipidea/ci_hdrc_imx.h @@ -25,6 +25,8 @@ struct imx_usbmisc_data { unsigned int ext_id:1; /* ID from exteranl event */ unsigned int ext_vbus:1; /* Vbus from exteranl event */ struct usb_phy *usb_phy; + int emp_curr_control; + int dc_vol_level_adjust; }; int imx_usbmisc_init(struct imx_usbmisc_data *data); diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c index f136876cb4a3..f9881aed468f 100644 --- a/drivers/usb/chipidea/usbmisc_imx.c +++ b/drivers/usb/chipidea/usbmisc_imx.c @@ -128,6 +128,12 @@ #define MX7D_USB_OTG_PHY_STATUS_VBUS_VLD BIT(3) #define MX7D_USB_OTG_PHY_STATUS_CHRGDET BIT(29) +#define MX7D_USB_OTG_PHY_CFG1 0x30 +#define TXPREEMPAMPTUNE0_BIT 28 +#define TXPREEMPAMPTUNE0_MASK (3 << 28) +#define TXVREFTUNE0_BIT 20 +#define TXVREFTUNE0_MASK (0xf << 20) + #define MX6_USB_OTG_WAKEUP_BITS (MX6_BM_WAKEUP_ENABLE | MX6_BM_VBUS_WAKEUP | \ MX6_BM_ID_WAKEUP) @@ -649,6 +655,21 @@ static int usbmisc_imx7d_init(struct imx_usbmisc_data *data) writel(reg | MX7D_USB_VBUS_WAKEUP_SOURCE_BVALID | MX7D_USBNC_AUTO_RESUME, usbmisc->base + MX7D_USBNC_USB_CTRL2); + /* PHY tuning for signal quality */ + reg = readl(usbmisc->base + MX7D_USB_OTG_PHY_CFG1); + if (data->emp_curr_control && data->emp_curr_control <= + (TXPREEMPAMPTUNE0_MASK >> TXPREEMPAMPTUNE0_BIT)) { + reg &= ~TXPREEMPAMPTUNE0_MASK; + reg |= (data->emp_curr_control << TXPREEMPAMPTUNE0_BIT); + } + + if (data->dc_vol_level_adjust && data->dc_vol_level_adjust <= + (TXVREFTUNE0_MASK >> TXVREFTUNE0_BIT)) { + reg &= ~TXVREFTUNE0_MASK; + reg |= (data->dc_vol_level_adjust << TXVREFTUNE0_BIT); + } + + writel(reg, usbmisc->base + MX7D_USB_OTG_PHY_CFG1); } spin_unlock_irqrestore(&usbmisc->lock, flags); From patchwork Thu Jul 9 10:59:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 11654207 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1773414DD for ; Thu, 9 Jul 2020 11:00:58 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E51152074B for ; Thu, 9 Jul 2020 11:00:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="n2mm6urM"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="lDQPh0SO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E51152074B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc: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:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FlAbo7BDxQiHlRWa2QKeRdDbO2VO1mwiiLVnUNX3xT0=; b=n2mm6urM2v8zIS34PQ2CKBcrC A7iuj14a70wToJU7EylU5dI0sJ86f4Vp/Ll0g73vq3izFdRaVYuLNXOTjaxVq8qldxRczDjrqOrQI gepHSvxMOepMQhsBsSDQ2u4Ngq4aMF+dPODbtEuPc1bPcZYkx+EcRfQb8kXDgl+AlQLw9nW8bN9aI A2KOJ9BvM6EyMEl+n/Cg/jdG481sk07DosoYzyvk60O38MnO2X9qYWixMLismYIqOEAnLFfZ/kApn 9rsTWfqLNaLoW5EbzHu3I3J4uwy76HHviRgtVzt9wUlUn8wKvda/HyJAdBvDxaZWGMAz7p0Old2eH omTOWDKTw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtUH6-0003zL-3s; Thu, 09 Jul 2020 10:59:32 +0000 Received: from mail-eopbgr80044.outbound.protection.outlook.com ([40.107.8.44] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtUGo-0003uP-OK for linux-arm-kernel@lists.infradead.org; Thu, 09 Jul 2020 10:59:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DaxRL/kMfUH8kGEwIR3264XHrvdvOffPQ0mKKMtSKYOzRBix5q/xYoqbdnAcjOm98aX6F2DybnFdXItst9hyTS5WFN6B/BAJxsQ1ULtzSuRghlgK9rt8JL+K6+w30ElvPVfta0hqrVH6ZPewGbcPi9/EHKXUsYdeh+IZ6IFJcrz6yCDnUSZJWdP5qRbuMULK+DNiT+ruCVMzwjyovkq1ZCLm8Y0iDz64RCNxqfysB6cI0NbszzTLO0ZkSEnoo3QOHpz/YW7ltEbcQv+AczXTE7oC+6t5ysR5y1E5YD/3mEwN7j+MDcP/N5cmOhsHV0XSNuVc197cB0hlVD/ApdotMA== 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-SenderADCheck; bh=7U5+fxFy/8iOwHPqNMFGUCQy11xfdREtbCw7pAj+YiY=; b=MDfNSkAj29YsgHC4m6ewFeYOf9MjwR+q0l8H5HwVsD9SWEAhaReQ3LEn9M+I1KS8f7/g8Eq5iurfXXD1ZUO1ygX5WzTSvdDXG4wzn3O1vfaVvD8KGN5PcKzLm5xidy6+KisARXkeHgu3CFwd6TRkgkx251dvRoAOVnaFlNOHVbZ2OkhtWRIM60e8Xn8TjFIctcWhVrc76j7r9KtAZzyyb1o195AGZz/ibtjey34rqHQBVbZnP2jn0Mo29EJd/V4xwqB0gXqKoHFJlOdBNyk7DQxePgu9kCmUMlbgxSVZQMMOXB2d4q3ZjrNocWCiQs+W4588tDuh6Yvl+1fiYaimqA== 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=7U5+fxFy/8iOwHPqNMFGUCQy11xfdREtbCw7pAj+YiY=; b=lDQPh0SOVryx9Dki9fa1NhZzezxeiJ9wMnYni4jH1XYLBg/o8kCDBKUfLfXZGUM19c7dNharyukxNpJiqkxKoo6beTLuR2X3lBXnGSebIBgjYtnz73/oq4tVF86yCTFJ+TOh77k3bddaF3WpBlE5totY63Uf/4qyA7S0j/5P3SE= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7157.eurprd04.prod.outlook.com (2603:10a6:20b:118::20) by AM6PR04MB5736.eurprd04.prod.outlook.com (2603:10a6:20b:a8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Thu, 9 Jul 2020 10:59:12 +0000 Received: from AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::1101:adaa:ee89:af2a]) by AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::1101:adaa:ee89:af2a%3]) with mapi id 15.20.3174.022; Thu, 9 Jul 2020 10:59:12 +0000 From: Peter Chen To: shawnguo@kernel.org, robh+dt@kernel.org Subject: [PATCH 3/4] ARM64: dts: fsl: imx8mm-evk: add two parameters for picophy tuning Date: Thu, 9 Jul 2020 18:59:01 +0800 Message-Id: <20200709105902.23165-3-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200709105902.23165-1-peter.chen@nxp.com> References: <20200709105902.23165-1-peter.chen@nxp.com> X-ClientProxiedBy: SG2PR0401CA0012.apcprd04.prod.outlook.com (2603:1096:3:1::22) To AM7PR04MB7157.eurprd04.prod.outlook.com (2603:10a6:20b:118::20) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from b29397-desktop.ap.freescale.net (119.31.174.67) by SG2PR0401CA0012.apcprd04.prod.outlook.com (2603:1096:3:1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21 via Frontend Transport; Thu, 9 Jul 2020 10:59:08 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.67] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: cef32165-dd63-4638-56e5-08d823f71c9c X-MS-TrafficTypeDiagnostic: AM6PR04MB5736: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:843; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6lHB2aQcCZKNTpglRrTFenTmMw9QllJQqOWIgbqNqbLU219T6jaRYvgsx/IA/FZ2fF+1OF+z9t1cU84cO/SwWbUieE3NLhHu9xCtrbJ+MTO26ZpuJ+fC8iIl5bH0JrHNHgYYPmmXWed0oG0hd1Ie8kg+3S0/wwPCBAfArd5jFGjHKfXmj360AH8hgFLxWKLHZd1mImInRndNkyLX4fRIeRYu5GGSDqQ32XS+EngsMFampCQmqOKJ8lG9CIfoVFkLec1BuibggXcSvMdtxmPcvduBO+hX9Gzp8BYO7U/vnAdErbGYFK+al3SYiYMewiEApATjwxMQ7gE1mjerzQFrXCQ36NKzuGyZSaYjZA1/6MiHSIr/ntOfUGnjMBpU3IZx X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR04MB7157.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(136003)(39860400002)(346002)(396003)(376002)(8676002)(6506007)(26005)(956004)(4744005)(44832011)(1076003)(6666004)(66556008)(66476007)(66946007)(5660300002)(36756003)(6486002)(86362001)(2906002)(6512007)(478600001)(186003)(2616005)(16526019)(316002)(52116002)(4326008)(8936002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: fFUXXnthk/ZLlLjLevbAsagrkmJLPwfZAow1vT48m/VfGcQYfAyzKtofS3v/X6Ve0uwIGV4HVZHZYtMJy0HuHuvgi8MJPYXb4EC48C7q8m5bjOiu1onh8ujzfPrIsbbsA11nvEWMAe+/FRD4wXjlCfOwr2l/C6NzQgSnBYQYgqxSjMIuB3oLFDtYU3pSufSS+Qr6nECJfYhgV6+gMCkeyOnI6rJ7zGFRyvvSzugqLDVdflC+FIfIHuVjM8PofchA9431OyjYq9qoMs3ccMogSgsc5Op4XTg2FPlL/+FylVU7ifJjejJ3NtSMesQDcni1ULp7r3DSBri47zTJX2acx35UweBTa2sPhzTPOlGwtkYtaOC/5VWBvyADuujZhV9drc3cgH4rhERyfIQa+9FYKm90P9eLSVEsfc6Gk6fIAJ8MMY2V8tuD/XY2KKJ/nABIXyB8Qp3EYfo0+3aL255zHB+idh19vw9saRzv+HtLx/c= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cef32165-dd63-4638-56e5-08d823f71c9c X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7157.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2020 10:59:12.0361 (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: i6wmxtHshE0PuhYA963KA+r4dHNgkuKNNsVHETthzPyi7QOuOBydOQOa84L3jM+mQXO2dfbKheuYqEweYt13cQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB5736 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200709_065914_877926_4BB88F46 X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.8.44 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.8.44 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Peter Chen , linux-usb@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, linux-arm-kernel@lists.infradead.org, jun.li@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org With these two parameters tuning, it can pass USB eye diagram at evk board. Reviewed-by: Jun Li Signed-off-by: Peter Chen --- arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts index 0f1d7f8aeac4..c432b628e1ed 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts @@ -324,6 +324,8 @@ srp-disable; adp-disable; usb-role-switch; + picophy,pre-emp-curr-control = <3>; + picophy,dc-vol-level-adjust = <7>; status = "okay"; port { From patchwork Thu Jul 9 10:59:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 11654205 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8035714DD for ; Thu, 9 Jul 2020 11:00:52 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 572D42074B for ; Thu, 9 Jul 2020 11:00:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="xYK6owdZ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="CJgHXXKv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 572D42074B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc: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:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sZjlnqjFVDJSKnI37sYm8oiKseePL8nHMNwKmyDx+JE=; b=xYK6owdZGs4Wc0uUJV3gpjXEp 41Wt9vv9lu4bTdXuP/pLL9ToXdtVp84f4pyUqiMXW19M/Rz7txkK/8vG1JsY1Wqdydwc9xCevoWNj Qz94bxZSXbtDdQm/FYiNj+8hi52vhw02n8Vc2YTkcCYTLQf7GrQp5Rhx5LZ1FDAAbROwuhwEkxX79 O5vl0tqhNsfFQJZo+46DIJ77nSU29XX0wJ1JY5D1AsQBR4Mb+YxhXjZ6Z/c2iqQDE6HZYsCKyEith ZMSeOCi9fWr5SCVMq6fO8lB0JcfLcHqhlAEwE8VYZjiDwFovw3uNf0pvGzclPfbgdU3KXL2gXnUop Hd+MmTlrw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtUH8-00040q-If; Thu, 09 Jul 2020 10:59:34 +0000 Received: from mail-eopbgr80044.outbound.protection.outlook.com ([40.107.8.44] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtUGs-0003uP-AO for linux-arm-kernel@lists.infradead.org; Thu, 09 Jul 2020 10:59:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iGq2v5B9PvhWnDw0xEp6ZbC284WJutpfR7J3HnpOCqW4aXjxqq1JF2AIpqZftYGNhrt6+M6yrP7zaG8DpDaVfx3DCBlum7Tn6QYV6HDKJEUFify4WP5+wjdLt2TyFlFbg3Qsg3ZE9yQe66GTpwhCwY/2Xd76VA0fw4KA6/WLgoZUSg1kUtlCf466QRqKPnwtAYhViTnr0F+SWeVBOCNvCGh17BwD0+YUNs69vu7HBk+E3uj6ZwnEAfYzr1qepDhsYEVw/BQyL+cgUOHDnw6jeDSaH8PYWqXYblS40lI4gItWNuatwRxkTmyiMBCNDxI+YgC8+iuZkLBr43OAOpqZEA== 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-SenderADCheck; bh=52KfQ0DLibI9KVqXWL1dfOYoLRaNg2GIFjtorGLgxBY=; b=Aovqd5qMrR5wZUYtRoojy3dhorGkKb2t85KU7Byfws86ifvRZJvWg+nefrY6C5/fg0+0VOkhDCLLA1HkfwjdyqI7XMhE31HhGZFR200PqMAtbWW55LLbZzgDSG7KbJHSZMyBg2IQSiZTrvc4O1bxTlooG7pYPTcFOPm9wciqHDIra7QUnn4iYCbVYb2/J/5CZjj4TKLo6tE++dYdVQME6RSY3BuWu198nQwoiCl7LTpMKq/6gbLOJaDRyO9cRQTpD1UAL50sb0PemFE8S6Ehy+xxap9avMDYGQUJQ7PQsDlDqbn4gPqXbnQxJ+64aY5KitO6ehzHuaCfg5ZgcBTzhw== 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=52KfQ0DLibI9KVqXWL1dfOYoLRaNg2GIFjtorGLgxBY=; b=CJgHXXKvbnCzbAcpCgN6lkgJw4szr3VEZM5nG4UpK+Z5JneDFHLgnCOVsnLgUZqcHuHp/a7fcFuEWyLRSbA4HuYk+EqZhX1RZk2JPvMxgyHpI5haqEfHTaQleoixAP2i9ZqWMbCwZKonCFPB9vJe4uDoeVpyNmmQrnM2LN2+8bI= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7157.eurprd04.prod.outlook.com (2603:10a6:20b:118::20) by AM6PR04MB5736.eurprd04.prod.outlook.com (2603:10a6:20b:a8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Thu, 9 Jul 2020 10:59:15 +0000 Received: from AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::1101:adaa:ee89:af2a]) by AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::1101:adaa:ee89:af2a%3]) with mapi id 15.20.3174.022; Thu, 9 Jul 2020 10:59:15 +0000 From: Peter Chen To: shawnguo@kernel.org, robh+dt@kernel.org Subject: [PATCH 4/4] ARM64: dts: fsl: imx8mn-evk: add two parameters for picophy tuning Date: Thu, 9 Jul 2020 18:59:02 +0800 Message-Id: <20200709105902.23165-4-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200709105902.23165-1-peter.chen@nxp.com> References: <20200709105902.23165-1-peter.chen@nxp.com> X-ClientProxiedBy: SG2PR0401CA0012.apcprd04.prod.outlook.com (2603:1096:3:1::22) To AM7PR04MB7157.eurprd04.prod.outlook.com (2603:10a6:20b:118::20) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from b29397-desktop.ap.freescale.net (119.31.174.67) by SG2PR0401CA0012.apcprd04.prod.outlook.com (2603:1096:3:1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21 via Frontend Transport; Thu, 9 Jul 2020 10:59:12 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.67] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: afe982bc-8984-47d1-d5db-08d823f71ea9 X-MS-TrafficTypeDiagnostic: AM6PR04MB5736: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:843; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gysUgyoQQ66lo8Hbyahv1e98cKqF32HR1eL1BOtsxBhnzJdFqq10sIYZt+tnb7/m8GCs2f0QMrnVuBTV8Hu4aj77qjXvuRwoFJO6ZT/AmJthZB4SYRbXvfPEZ2aegD4+6E988OHdst9JVnmP9WNMky7LmaHGAGGt6kTznaOx2PY7/vIf3us4hzMzr+LbgrO2X+eaoJhdZFkWNg1LRbcfuc8EIQcXyVLAv/RTXp9yBGLffvtjNrMjoNmBbNC0YPIzFcQcxfK3u4FfDkdt0Lb/ERtgMXlOn0atIpryg0F6KahXbvIIjsOCBDPTp5R0tZ/t1s1o71TV/xdS1o+Kxsh8j1GiBMgSbqoLHAq9ISZmHZnB+U+jCDHr0UixM4nSL/aL X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR04MB7157.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(136003)(39860400002)(346002)(396003)(376002)(8676002)(6506007)(26005)(956004)(4744005)(44832011)(1076003)(6666004)(66556008)(66476007)(66946007)(5660300002)(36756003)(6486002)(86362001)(2906002)(6512007)(478600001)(186003)(2616005)(16526019)(316002)(52116002)(4326008)(8936002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: PngpSA0xRUXi0z6+qIVNSM2FVNQJhNCOYT9WBOloif/LrEE9v5+W3EOkM/l8bXG6fILC9rU9aYsHiXRl0I4M/1T+yo7fAmJzyR4GNHsxWxjjQR3rCzjxEP11w6lQcl7o55FHtftRPcIfSJuf5YnpbXhZ6GUu8m96Rrv3YZvIgzASrEtsOAd8QH3xnNc2UNYlrUslXHvvbpHXz7azq1hGBj6aZk7+BQyXXeHJmItmznZlZ4G/f1iqNtIE4QQbK9N/yIMHeFzZqrl9qEP8rVdm0PPB9S4XyeQA+PNGDLEtmK2+7DthOfFAtZpo2X7JqVGcD9h9gin4LmoEuxzRom8HEkJuCPCJWpVB4HteF/KqqOPor2JUItxAt224WaxvOwZofiuaXnYWHHkygX2Iuin8Ne3UACKi4/29k/N43+AGDqTSa2kiLyyzlKz0dHHCe77Myad5OsCGTeDSI+/SlsDA7tQa19eexNthk7voQOoJI9xjhBYc8r7qbRPSH3zJisUB X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: afe982bc-8984-47d1-d5db-08d823f71ea9 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7157.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2020 10:59:15.4581 (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: v+X+pyjfgIsSpHnamt/z3W1bJOadxCM4LnI2gujjzfQyV5j6oQ9RaKjsE6PNJdhhF8oqqQj6PhkJHNuBBj7mNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB5736 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200709_065918_414022_03DA807E X-CRM114-Status: GOOD ( 10.24 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.8.44 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.8.44 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Peter Chen , linux-usb@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, linux-arm-kernel@lists.infradead.org, jun.li@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org With these two parameters tuning, it can pass USB eye diagram at evk board. Signed-off-by: Peter Chen --- arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi index 85fc0aa38c4f..a6e9035e6cd5 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi @@ -132,6 +132,8 @@ srp-disable; adp-disable; usb-role-switch; + picophy,pre-emp-curr-control = <3>; + picophy,dc-vol-level-adjust = <7>; status = "okay"; port {