From patchwork Fri Jul 24 06:05:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 11682083 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 E7AEC1709 for ; Fri, 24 Jul 2020 06:06:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C98D020714 for ; Fri, 24 Jul 2020 06:06:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="mATuAJBr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726703AbgGXGGF (ORCPT ); Fri, 24 Jul 2020 02:06:05 -0400 Received: from mail-eopbgr60051.outbound.protection.outlook.com ([40.107.6.51]:32987 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726381AbgGXGGE (ORCPT ); Fri, 24 Jul 2020 02:06:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n5PKGUQC+xBO4eIuFZeDMk4txcjEO46l5CETqa9pjFx7TYROFy3BQuKm8EQzbdsxT/v0uWzCUzKQFeY+ZBVHxFpt+CWwuxb5Rq6E9iEPL8d+YwbITkBykzIqLuwJhcj8fMt65EJF67r1+ox8pIxYU2HfCGT+n9BSyd6o1MP+uMGRnBGNaKFlR7XIshTXWPrZcRMQ8ZYJWDVdqM1J4ia7Ea15qcEb6QO269JBNcJzJ7NxqDB45F7ZEuzlCarEoYN/PLAtacbQb2QZQvvNR45Ht8x/eJaswekI/CMnMP4iIkkutLkw/50fUJvkASaBtbh0rkFq4AIqEZPl/iWSQHwKkA== 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=Xi6jnBWHV/a3CzufHWQlHz8iPZvYAo31NvK35eWlMKw=; b=av+VJYkdGWRtEeeO5CtB9wLVZz+8tX/Ylh3dT1xDCr8SNBS7bp3CZjJwQFgUxhdewyhU/qtdonYQGn1U4CCMsT4sRLsN34kK0k2rkgq1+pM/EdaKFobRmpkCtAtA2tCJpJs91hqKvJ7rx5UlGTTDJP6nIVfNbynU6rkiVDWTTX+qXaESUcnIP01v1ZiQisupzTGECQeAL2qMayf541CTEf8ovKlpGaSrqZkxotdBozKWhyfFW74B1DypfSTT8DJOSvL8PDf5Kci6S2vuzIm0y19aDHCvln2Ssx1pQCxxNI+2tJf0DH94R8eKxemnPN/meZPXo2okaUAeqplzHqk2LA== 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=Xi6jnBWHV/a3CzufHWQlHz8iPZvYAo31NvK35eWlMKw=; b=mATuAJBr4JBnV5aNTkqdJWYfuK4zhvjUljGMezl2ACUy+pLklf7ypXluavr9GS/K0w1r0zSYQAhseUGyb0IMxzAqTXTObSTVTUn1WlNr4tP/Bf/qbbpA73tlkNuDGiO26q4QjylrPfcI9GWp+OK6wnHE9iNVCUrK1n8K3I/vvMo= 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 AM6PR04MB4248.eurprd04.prod.outlook.com (2603:10a6:209:4a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.24; Fri, 24 Jul 2020 06:06:01 +0000 Received: from AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::539:3d00:4c6:c4a0]) by AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::539:3d00:4c6:c4a0%3]) with mapi id 15.20.3216.023; Fri, 24 Jul 2020 06:06:01 +0000 From: Peter Chen To: shawnguo@kernel.org, robh+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, devicetree@vger.kernel.org, linux-imx@nxp.com, linux-usb@vger.kernel.org, Peter Chen Subject: [PATCH v3 1/4] doc: dt-binding: ci-hdrc-usb2: add property for samsung picophy Date: Fri, 24 Jul 2020 14:05:29 +0800 Message-Id: <20200724060532.3878-1-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SG2PR04CA0164.apcprd04.prod.outlook.com (2603:1096:4::26) 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 SG2PR04CA0164.apcprd04.prod.outlook.com (2603:1096:4::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.21 via Frontend Transport; Fri, 24 Jul 2020 06:05:56 +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: 651be118-cc8f-4355-99c6-08d82f97a2f0 X-MS-TrafficTypeDiagnostic: AM6PR04MB4248: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q9BHXehL+BZ610VmK8pxlTt8eR3LYJEpICL6HNSpPFK3r7C19yFvZjuulCAoR/FoaIK0gsGw/t8cVDGhE8Ck+JoD9ot3FQybd/xiEfIaCcj7rR918xOXk0YCZtFXKrjaBwzahAyl22EFAkyYqMBqFk/lIrt//eUywKTo0IdnFLfKl9NvybxUsuSXt5Hqk5cWD61SNXjLmzrikqh0NXq51DlkggCoQcFSmYOh4cfvKpJWKhiHaDBJVRNwJbI8N/5izE+90s+oFfs+CvqMslJRYaFzbBv0wNFdsHSE/v1Uo4GLTVXrJd+Gal1U+66wpbPs 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)(136003)(366004)(396003)(39860400002)(376002)(346002)(8676002)(26005)(6666004)(36756003)(2616005)(316002)(6512007)(6506007)(6486002)(66946007)(956004)(86362001)(4326008)(66476007)(44832011)(186003)(16526019)(8936002)(5660300002)(52116002)(478600001)(2906002)(1076003)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 5D+fqpPlZoQK0YXYIimYgXUfaDEKrjUfDfOMcJMBVDeL1+h2OPZYFlOtk9Vap1MUvYak/zkdLzymrpJvUNRL2bLzlh1i5Lbdhe/Aegb+byOBAFK7Yn66pIXTSbt3FfqmDjbq0vvi1JedwO4B5+s0Sc7TN5Z38kFrg3nhINmY+Vc2oxEjtyhV7NHPH9Zhq7Flww+N8i/VdHMxJQJOWcaBBAB0nxSXHyaYXekDp0tzPsr9xMYjHvWJ/CFsHq/M5KskTNHoyCpwZ7Hi6bh9JRxgxYlmMFXdcQ5JSTdvjEjQo51hEEoQuJiRNYRJLPi7+f38V0rEX77zwaBs/ScL/aFuwZe7dLPa45Mixw0pRd+e5uUMMK2wBefvQ1TAhsUnIQrZC76OhW2c8hxQ+P5j1zS4hnj+0ViBAb+m1LNsGMJPU0BdE8H6EvJpA8Q3iAYhk+ImxQ19RfmiUwclnvGUL57RdlBiT6WoGO9O7ArX4un7eLA= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 651be118-cc8f-4355-99c6-08d82f97a2f0 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7157.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2020 06:06:01.0383 (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: +MB8/OZnOLGvu3fdMqZhLIt0VjubCIevDi0qxVfn+Q6LHhM5iUAwaz5dv3zC7OR6Nf/dVH6POQLXtVeg3NQH0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4248 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add two parameters which are used to tune USB signal for samsung picophy, which is used at imx7d, imx8mm, and imx8mn. Reviewed-by: Jun Li Signed-off-by: Peter Chen Reviewed-by: Rob Herring --- Changes for v3: - Changing propery name to indicate it is a samsung phy - Add property range and default value. Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt index 51376cbe5f3d..a5c5db6a0b2d 100644 --- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt @@ -100,6 +100,15 @@ 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 +- samsung,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. + The range is from 0x0 to 0x3, the default value is 0x1. + Details can refer to TXPREEMPAMPTUNE0 bits of USBNC_n_PHY_CFG1. +- samsung,picophy-dc-vol-level-adjust: HS DC Voltage Level Adjustment. + Adjust the high-speed transmitter DC level voltage. + The range is from 0x0 to 0xf, the default value is 0x3. + Details can refer to TXVREFTUNE0 bits of USBNC_n_PHY_CFG1. Example: From patchwork Fri Jul 24 06:05:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 11682085 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 4F2E1159A for ; Fri, 24 Jul 2020 06:06:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 315622078A for ; Fri, 24 Jul 2020 06:06:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="RKqqKRV3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726737AbgGXGGJ (ORCPT ); Fri, 24 Jul 2020 02:06:09 -0400 Received: from mail-eopbgr80072.outbound.protection.outlook.com ([40.107.8.72]:45703 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726381AbgGXGGJ (ORCPT ); Fri, 24 Jul 2020 02:06:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L33F9k721ypeKhzCrJRBmGsr33rMQ6kpO907Dg/GMhiNLA7RD4I4vutD1dcbrNKzHlVe36GUGz2rst0AOGAOrGO0OnWJ75wEGHAMSq9wVmXKs3vlXMmQ+RAPmkD9OlGudDSXZ0Q8EdlAvTTTjrncHewE91x/yJl40o9E9S14+445A3s9M9GJoCzouFuNqAT464km1BtnF3wEOlodWMx6ZTY4MkyxEWBozdyVPZ2jpyWhF7J3uv74JXTnkXacfGTS2gqwPTVkp7TWCy0l7bAxbIxMcm8z+wvAK2JVUlT5ZyX6rxe3L5MECrsJjV1EqNEIWEcsyQeo8hakBiFt0D46sQ== 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=B+HtTeom6fKvvQWHYOIyF57N6NzsfS+F9BYQ5EMJDIM=; b=UhdjMwt1ZnBoJdOV7L7w/+jdqrMSSFI6Qo94FmhEIrf2uU2Rg7sCznMqw3hrfVqye1WLLlJXj8ojxwnjOShHSjx2BSEuluNOlG2nbcFrH8rPjpSDsYsoOhK+gBoZNJXB58c0Tr16RYdDmL3feYp6TBzuJPF4JZqY1ATG4C+66CnLQvxCZUYdOlFbr7VBhDL1/swnwO5alVpJhpFvqif/EBmzi8wz94eiaxlwzQerrqrUJ60DHOIviJa5vvWuSgPqH+S7gMopOw1tiaSunzmAIkGK9edKU+uarujiE5KvX6FA7joUbK4UblME7x+OMM35khD7QrU2aTFTopgM7e01fQ== 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=B+HtTeom6fKvvQWHYOIyF57N6NzsfS+F9BYQ5EMJDIM=; b=RKqqKRV3bSfe3XYEnz/y6rD4nXMxxk51cr6ZzeiX/8dUZoU7Y4QPFpnBcncANtHWNokq3P+rn0eniWsNWCwGbB4MYICzjNTvNbqp3gbVDq7UykY8HxFck02gu0OF8a2GPUdwHuqvguQWPTFIp/T/O1R7oAF2av8Tm4x+qbWgwTQ= 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 AM6PR04MB4248.eurprd04.prod.outlook.com (2603:10a6:209:4a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.24; Fri, 24 Jul 2020 06:06:05 +0000 Received: from AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::539:3d00:4c6:c4a0]) by AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::539:3d00:4c6:c4a0%3]) with mapi id 15.20.3216.023; Fri, 24 Jul 2020 06:06:05 +0000 From: Peter Chen To: shawnguo@kernel.org, robh+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, devicetree@vger.kernel.org, linux-imx@nxp.com, linux-usb@vger.kernel.org, Peter Chen Subject: [PATCH v3 2/4] usb: chipidea: imx: add two samsung picophy parameters tuning implementation Date: Fri, 24 Jul 2020 14:05:30 +0800 Message-Id: <20200724060532.3878-2-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200724060532.3878-1-peter.chen@nxp.com> References: <20200724060532.3878-1-peter.chen@nxp.com> X-ClientProxiedBy: SG2PR04CA0164.apcprd04.prod.outlook.com (2603:1096:4::26) 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 SG2PR04CA0164.apcprd04.prod.outlook.com (2603:1096:4::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.21 via Frontend Transport; Fri, 24 Jul 2020 06:06:01 +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: 124d275e-8f88-46df-4b6c-08d82f97a62a X-MS-TrafficTypeDiagnostic: AM6PR04MB4248: 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: nqahp8J67w7gijm98lp+3iRRe1JwSk0puXaXzFxS2NK+y7pGvvV14u1LvsPFwmMYLI95fJFDNwEEzLfENI1EcfSnfOy/hLQzKxnXqHcwB+gBYI+cvzeP49KDgcr7vmWMmn8oMyq9JdL3kypCQjDQYIQ6M5qzj3elenneRctqPGvD9VRJRRvGSb23xW5POwdK9jbLFj7B0/xGZlCU0m+PMrDKNI0Vx5CpA7D624AxBQlrejp93a/LM7vZ+MAznKw9a0endsBS9O1uX0CWx2pxzAvreSp+7JA50LaXwQQVlcsJyPqbN+YUXTPqqtYLH35h 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)(136003)(366004)(396003)(39860400002)(376002)(346002)(8676002)(26005)(6666004)(36756003)(2616005)(316002)(6512007)(6506007)(6486002)(66946007)(956004)(86362001)(4326008)(66476007)(44832011)(186003)(16526019)(8936002)(5660300002)(52116002)(478600001)(83380400001)(2906002)(1076003)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 9TeYLXr0aGeC7+S9/6xlG1/WJsAKaF68pJP/BtZmKW/OxCzfvbueNnbJS2MWsNvT3O+bSjDzKM+CRATgInGyIyiOeh2XfA+gOgT7ln2Oy8bjRTxVWwAzQJIuLypNdL5y70R71QCzk7LbS2xA5owk8uFysgibsSA9JMwWijcDl899GLx9YnaPFuKTNMZNuuJ759Cc7RSQnZ1Br5bHA/jplEYMricUAC+ZakBDpyCcE98lzZ7HVqaerFPmMBJHx+Kz9X9iizxB31z0geJCVNiiw8ju//csrhBpNNPcREiZAaqzEKLHdIUKqv2WqyWkMoyAA+DzdL1GrfTE6QnJQTNnsgRA6OfAXgWNKPgsgBNNeRrCZJ7d+vemgdnTRCfXeVTCTGt6ymZHjWbhjycaJHIFohUYyL0pe9NKXnpwfjxWQbsBuoq1dJUttjYZsDdZjmrIQnES7JoT5lVjT1LemZFy727y/ojkGfje21gsOzBjoWo= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 124d275e-8f88-46df-4b6c-08d82f97a62a X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7157.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2020 06:06:05.0816 (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: c/pURFpes8xkDhT0eswYtuiXaSy8dIdNH0+46T/yjl0Tb8HsMzmw11Cw5llX7Fl+WjMm7zVQR6Z+zQ5bI/p6bg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4248 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.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 --- Changes for v3: - Using new property name 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..3129df2c46fb 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, "samsung,picophy-pre-emp-curr-control", + &data->emp_curr_control); + of_property_read_u32(np, "samsung,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 Fri Jul 24 06:05:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 11682087 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 40ECF912 for ; Fri, 24 Jul 2020 06:06:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 28BDE20767 for ; Fri, 24 Jul 2020 06:06:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Owu4YkuQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726760AbgGXGGM (ORCPT ); Fri, 24 Jul 2020 02:06:12 -0400 Received: from mail-eopbgr80072.outbound.protection.outlook.com ([40.107.8.72]:45703 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726178AbgGXGGL (ORCPT ); Fri, 24 Jul 2020 02:06:11 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ibey7s7uqCw4m4jD2d15qpyMQAfEDiGhvjMWDJbAgdmZC3JlEd9Ir233pNjY49rfTh08a9LTxjwVVLWH79B/Ifh0EeE8E4kt3QX597iTZ9SKBhFk4hNqI1K8ehTtbH3SaD0DYXRRg0FZvoKV/TxUW3qX1pUb5jsk4pq3gBCuaZSEftxkVNmAcAp8aSiE7TZcDhjTVAw/NiNRyeZ2m1L5N5zZbsX+LwypcU/rga8CD9lGL00jsmu/W5MMMyq3drnVFXA44jNI5cBvx5B57MBSXrhmdhkGaeEnLwy9dZ+mtIfk5JzxYq6tVp2rFZOOV1XK5U/mriyY/5n7wu1DjGUyCA== 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=OZpVvrTU+4R7pgfYK/CVTRSNjCPWo+YJuyh5U9n+HOI=; b=B39a7GbWCqLupuhSXNbhSafpB69B4CPdJvxRvpbfHqAv/fuOKlmnqetnootPy6RAKjkC+sr6hpP5msgTtHSIZO68n/WvrrqoL0VmmV8KIVF1gDDgrV/Watz7KAJV8QrXCjBDpJf5Y0xgcqu8gswCV4urpfuLgERDbdz06zp43vAIqqxTBEGhl3/jNzhzfDOsAQLMjmrGzbStWII33LRG9LhHwqm2JKLo0vsLYU/7KTZma5rJ93MIa/Xfj1nRngFC2+AQFljmovipKY/kBjM0gsIx5a7cZ89z4JyxjcxTgON4mA6YrRu+d5D1ppxrtOF12RNp3RX0sdzwRdBy06/Fhg== 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=OZpVvrTU+4R7pgfYK/CVTRSNjCPWo+YJuyh5U9n+HOI=; b=Owu4YkuQ/uvClsUzvhaN5sisN258oSHy3w1uQArH/mjujfmnVvEQ8PCadK9zJJGDUXBrCvvJgVg56ekQGei9xXO+EOyxDpZCiNHjhlbmuj2mFFhKw4qp362bUBvQZyICfMjlLOlBoZUq/wK75AJl+sKzoer5hyZ8auNEGHyLDHY= 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 AM6PR04MB4248.eurprd04.prod.outlook.com (2603:10a6:209:4a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.24; Fri, 24 Jul 2020 06:06:08 +0000 Received: from AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::539:3d00:4c6:c4a0]) by AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::539:3d00:4c6:c4a0%3]) with mapi id 15.20.3216.023; Fri, 24 Jul 2020 06:06:08 +0000 From: Peter Chen To: shawnguo@kernel.org, robh+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, devicetree@vger.kernel.org, linux-imx@nxp.com, linux-usb@vger.kernel.org, Peter Chen Subject: [PATCH v3 3/4] arm64: dts: imx8mm-evk: add two parameters for samsung picophy tuning Date: Fri, 24 Jul 2020 14:05:31 +0800 Message-Id: <20200724060532.3878-3-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200724060532.3878-1-peter.chen@nxp.com> References: <20200724060532.3878-1-peter.chen@nxp.com> X-ClientProxiedBy: SG2PR04CA0164.apcprd04.prod.outlook.com (2603:1096:4::26) 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 SG2PR04CA0164.apcprd04.prod.outlook.com (2603:1096:4::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.21 via Frontend Transport; Fri, 24 Jul 2020 06:06: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: 0fa49cc8-6143-4049-1780-08d82f97a820 X-MS-TrafficTypeDiagnostic: AM6PR04MB4248: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b7CjCXjHfmThfbYgtWH6cZ/v8+xAPNCTzv9YLoDdsnBJHi2CrgZxEjTcQL7XfgWEqb5GXztm8dhVheuRVQOeQkXsaAfJogHWnxSyKMyYbHBui1fUhMfDMU40oOWcxG8n9Ja5hpr85s5oyp3F38/fEH3PNNrTj7MK13rS4k3izmV5GhLzy2EQ3rRlo+pdY559lqQMAGXMfujpyTkmpps9NLz97T7Bqmbuju/uwocdkI4RtXZENrqbd+aD9p7jmVprNmYEydyxm+z9FedLFBW2HDnKMsM/q30emB4Euujii2ov6PQFH5Yby0nNpLOddzYq/1GnKdg+qPE+Ve0FpAwDYHZdYDHRbu9UdhZWGxQiU+hjoq45B6Xo1qRRw6BRQBej 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)(136003)(366004)(396003)(39860400002)(376002)(346002)(8676002)(26005)(6666004)(36756003)(2616005)(316002)(6512007)(6506007)(6486002)(66946007)(956004)(86362001)(4326008)(66476007)(4744005)(44832011)(186003)(16526019)(8936002)(5660300002)(52116002)(478600001)(2906002)(1076003)(66556008)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: mUySCWRxTCNVyEi1U4H1DdpqbaVAmRKMI7JJPufuJgE5IT8H2Nz5/ScvJLRkloVjm9yOp6XlCWe+mMEUGUaukStnKhzbUh1JlGLfPl+mT27uf6QKH0SYIj8Hu8q0It7scRq9SCqW4Dci8bn3IEOWLMKG9hCFPgsJ8nl7YG905gyEqFUOpf6/VQbeLfq0w4ETLfUQ8wvOq2SwJ/gh6BWm/ixmVs1nYcywd5U3lYEB+5OWseTTNwWAeTxJQDpjUtMB2w8yi9FAFB0ZsoRQZDcgPu+fkdMNbZt6O0rQHb4CvgeXx0MoA/V6KO+UPtmtQr/plKBMKpnvyR1yujXAgC/KG9FhSNt4/eYZfeVGVIsPCWA0+aiCPxh2MdEaMwAHt5kVkTbdweIw3H0CsjiSg8y5OkSyn4/7jBWxrsHQ3dM9zcRefb+RHPGOMRCBtvUMQmiN5HY1Bhtv01EUn8v7XQE6zV2kBXgNlPA1M/jPL2NyMCo= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0fa49cc8-6143-4049-1780-08d82f97a820 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7157.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2020 06:06:08.3363 (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: fkSoYZodOuY3zpszr3LN8gahLCNkUTZ/kR020BBy0Kz3opxuu87dVOpvFWltxufOXQ0Z9v0WG8hK/crErya+7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4248 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org With these two parameters tuning, it can pass USB eye diagram at evk board. Reviewed-by: Jun Li Signed-off-by: Peter Chen --- Changes for v3: - Using the new property name Changes for v2 - Address Shawn's comment to change subject. 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..7c652b898114 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; + samsung,picophy-pre-emp-curr-control = <3>; + samsung,picophy-dc-vol-level-adjust = <7>; status = "okay"; port { From patchwork Fri Jul 24 06:05:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 11682089 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 520CE1709 for ; Fri, 24 Jul 2020 06:06:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 396CF20786 for ; Fri, 24 Jul 2020 06:06:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="DWjlVHLo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726768AbgGXGGO (ORCPT ); Fri, 24 Jul 2020 02:06:14 -0400 Received: from mail-eopbgr80072.outbound.protection.outlook.com ([40.107.8.72]:45703 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726381AbgGXGGO (ORCPT ); Fri, 24 Jul 2020 02:06:14 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xn2yaZ2UFIFZxcQ3kcqSlEy4ynxOcWRHx48YLXgQO5RBQWltmeiKBv5Zx0uVd8U43/aAzavDkrwGs80qwgjbuV7qCrP4ne3HArLvQJITV6SNsQoZ5tTZWtBhTd+oMAUB9pO6BSEjWjBQV/rrDnp3KVWjy0/o1S/50cuneMp3g858LyEwjDo01eQYNYDcLKZxpr64oit612pFzoKrSVior7pCm5UmzJ1UMuXyKhqO7a9EeUAHEfsFTefTgHUzgyKADy7aHWg9MtrPkR/oT0RITut02H9AhGSbopOLCQwb6KXB2oQrgevnvGGr0Fw5d6kg8+/YNxHqek6H2w7q8cqB1Q== 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=l1ouiq0XWfgZLcGMCUAHRvLODUMDRdZMJqtVmJmf+4Y=; b=VeL1KYgVcLw4RFLukCFArcXtlgYp5j+ecuRplbDvEvEtNEI9gFT3jXK0RuPBcaTImKyOG03LvAlwoYF6MrG4DUZLfrRv2T6gecZOReEXTsZh9YWbDxwQHKE84y0WhlYvlhVrOZw8Ui1BcIMVmBIeRSWCotRk8Pm1dt936l3Njl5llsO0HpCJ43UwUSEpdrXBWr50fZbu8yUjBT3or/yXKTKOWdPPiZTwFXpWaUR9Gx1hfZhhvkdHUuiMVtykU05TNobpMuON4ZlH2KRmEUx+TIS6EVwl/86TWMughmpeO5Ygs8kTt4FJiFnGGdwB7wgwGKBgCMJpIVQvmdx6IIKJgw== 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=l1ouiq0XWfgZLcGMCUAHRvLODUMDRdZMJqtVmJmf+4Y=; b=DWjlVHLott/aU7lzS1gi7/ZGNlGaHitB1XFo7IAaE/5lcVkXzPc+Nz57TvaDC1247rsHoIv2cPbto5j/o9a8mmi/wGDm5M3BzGgnxvnpKR9K/qh6DuoUUJmRAipdUd3KTQ8cqJXrf7pwVpnR+XzOu2vi1HkLkhq1utbrU5KSD9o= 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 AM6PR04MB4248.eurprd04.prod.outlook.com (2603:10a6:209:4a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.24; Fri, 24 Jul 2020 06:06:11 +0000 Received: from AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::539:3d00:4c6:c4a0]) by AM7PR04MB7157.eurprd04.prod.outlook.com ([fe80::539:3d00:4c6:c4a0%3]) with mapi id 15.20.3216.023; Fri, 24 Jul 2020 06:06:11 +0000 From: Peter Chen To: shawnguo@kernel.org, robh+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, devicetree@vger.kernel.org, linux-imx@nxp.com, linux-usb@vger.kernel.org, Peter Chen Subject: [PATCH v3 4/4] arm64: dts: imx8mn-evk: add two parameters for samsung picophy tuning Date: Fri, 24 Jul 2020 14:05:32 +0800 Message-Id: <20200724060532.3878-4-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200724060532.3878-1-peter.chen@nxp.com> References: <20200724060532.3878-1-peter.chen@nxp.com> X-ClientProxiedBy: SG2PR04CA0164.apcprd04.prod.outlook.com (2603:1096:4::26) 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 SG2PR04CA0164.apcprd04.prod.outlook.com (2603:1096:4::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.21 via Frontend Transport; Fri, 24 Jul 2020 06:06: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: 723d263a-1381-4810-7073-08d82f97a9ea X-MS-TrafficTypeDiagnostic: AM6PR04MB4248: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5g8KgUGaU5P+BJIX5ZnHgRZom7UsZgA5AO/V2xT1McvCram7ylj3p8tWIvd0laDKCToL02wradF1x8YMpcH3GuuXPhQhuj0KSs+pJyX9+1xPnGFj9+e5rYkLf/WN8FrdLDxFdd2rYX9Wypk1P0krbVJqYbWoiAuyaHjtcAgJHyxA08kIGdy4Rg2To+bOdzRNXrMQZa6pDITjpb78PrGEKPs2+scbKZ76YjQSmFZv/qOvoIVug3xXIVkaUBCxrC6oGDcOvPo5JzeaNnrv0iU8SzYYcvOwoaDBnZ/GhQ3vwa9EpT87yuG+3hJew33IXfvT72Vyn/UJhQHfCaAY5hjEfXEdvq21O1FJlyPUuHmriH1zuGU8X/Hj94STcary81rM 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)(136003)(366004)(396003)(39860400002)(376002)(346002)(8676002)(26005)(6666004)(36756003)(2616005)(316002)(6512007)(6506007)(6486002)(66946007)(956004)(86362001)(4326008)(66476007)(4744005)(44832011)(186003)(16526019)(8936002)(5660300002)(52116002)(478600001)(2906002)(1076003)(66556008)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: psWU5J9/QcAnSRckBsdkFEpVp/77+MhzMlc2HA8abmJ4qByJRnYIux5td8U2lO28ec3AXoG6vehGSdXSfbnCZhu8vvF/Qw4dQbjhFbOX+0zWcUoEKDy2QN6oumN2bHgaOefcHvw7nNysMZdeOvZgPooczyQttC8NXwwWB7kdgbwmOHAMiVunypdHkyGukC3ipx9DMROT2EhBcB6/OIOyrQrzjol+IhoBt+N6nhecms21gekHzrYm87ww4HZqwBLyAVQdOlDV9RJuSQUHyHofQW/a0ra2y1ex2oJHXzeIahS1zdrnnPj60Mi009sYY33jLDUy0HmsBDYygpcLOVEz4D3JQhTwm656ZCcVPE3s2jJloARgM+RjiUn94M7N4kSazCBfgyLonmPL/NVoMmX8edIFtcsAQ51BCH5N/BnbtUB+C13hOVvxAFCWJZjCwj1EMpDNZIOG48+PRaGRoD0Gi9swcpc5NJ+pGJYuzI9FbJ4= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 723d263a-1381-4810-7073-08d82f97a9ea X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7157.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2020 06:06:11.3571 (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: RoYl8Ve9PIFYF5zhvgq87dhtbuM8eMYvZoTMEvo88B278FcI+mFEpie7yhgUrriMwKAfTUEVyqCmtfqNuI3gdg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4248 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org With these two parameters tuning, it can pass USB eye diagram at evk board. Signed-off-by: Peter Chen --- Changes for v3: - Using the new property name Changes for v2 - Address Shawn's comment to change subject. 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..7453aec0a5fc 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; + samsung,picophy-pre-emp-curr-control = <3>; + samsung,picophy-dc-vol-level-adjust = <7>; status = "okay"; port {