From patchwork Fri Jul 17 04:22:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 11668953 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 7687A1392 for ; Fri, 17 Jul 2020 04:24:22 +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 4D42020704 for ; Fri, 17 Jul 2020 04:24:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Dr7O26kM"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="HFkACEDX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4D42020704 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=e3UZh6FnbbIoBkmIoLf1x6ZQ4XlOyAXWJOhBJdjONgM=; b=Dr7O26kMVmAkHeomCS3djE9le0 GrDYx/k8ETUTHh2V6DIzRiqAvNcfZso019kg4zO3zPpuy9qb1MTWOiArilOwo/+uzYYZ689wUauZi ukl6tMg2MyPikB5wCiFRWmkBSkY5wmLlULb8b3nyWyjqB/MoC4jHxJElQ0XTHxP8BGAZOo66UBX4O Is1j0VHbTLBOQVJYJNkWvPnt1gyopEIigNPd8lwbP4joXX1FWluLWKQQ4YliqinxKgzyfGoeCRU7i WFyIqCn2+fvBTLuwIL2dVD7Uw+I3HJ/5CtvFgQ5R6XDkITbFCEyAKsjJmHUlUcl+JmATn/1MDW1P6 UlvtELlQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwHtY-0006x3-Ku; Fri, 17 Jul 2020 04:22:48 +0000 Received: from mail-vi1eur05on2050.outbound.protection.outlook.com ([40.107.21.50] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwHtV-0006wI-WD for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2020 04:22:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QrpPUFuyVtRqPq4yrhUJo5RB1Ztz9miJ3PRAOyTQZ2dyrjiWNmXyphE9/33te/T4mJ9e9KFyBa/hWoDgS9vBVyLLaJbsrLHy66xz1df0fgajBJucPOo5D3iiGkHbkqHL4uGSfGUfscgwZvAapdvqyfNezS761QuegnoxiV/nm6/rpX2+7SXrxI1ErWqukpRb46kqCOdWw3b4dK5IcPn4W030MVLoYheMTtWQHgrx+bhWz4lpDqPF+0M4Ry6jqABEefIgxmuQukazER4OsmYy+7ooPA5GCa/Bb0S8Q1le1vjfUGQQC2XuQEDGJ9zfR8TZprERe6DicRlMubWC3TcL9w== 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=hK47F9wUT2+uykjkV4AJbG7canpQgtW65gImQZrSpxI=; b=A6yUmPGdRWfOREEmYU2naKrizrVWAOMOqJSK1aMYzS3EXPSCLTAXtLEHLP+S6JyGYO62tS1C3cMVMwSbQJvlvvr3gRYQOBhVrvBxFECorbNsQqnYVt0OuBZWosKaSg4Zszm5oP9o8DukNQ/Sn1Xk9OMYtww7P1fO6EovQ44nJckfCy571RYPdD6leQa0tCksdo84eLlz2wAga+MfV58nDdKPV47dm5kE5Q2Bcz4yxr04T/EXhVyAV/Xai4C6zNQetjlGYr16rQZiB6x6kBpGJuFDen3AiXGvM8qQjkz4Pxc+foaDGVp4bbbfwv1AbNoOj24N9n1Hl1suc1tqVxwxfA== 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=hK47F9wUT2+uykjkV4AJbG7canpQgtW65gImQZrSpxI=; b=HFkACEDX+2HihKdnaQW3g0obyHxYx+SCwXXtXnaH+rFmsbyNITchVo/t8q1N8DHDI1tsdiKLwKcm9lfyJqV3aY5TGtM73lqOmyUjZ98opjGj6kq28LUA7qVUJBplFhTfMKe0KpVljqG7AjyiFTBVXL/skAZvE8vB76nsGjJ11g4= 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 AM6PR04MB6279.eurprd04.prod.outlook.com (2603:10a6:20b:b7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17; Fri, 17 Jul 2020 04:22:42 +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.026; Fri, 17 Jul 2020 04:22:42 +0000 From: Peter Chen To: shawnguo@kernel.org, robh+dt@kernel.org Subject: [PATCH v2 1/4] doc: dt-binding: ci-hdrc-usb2: add property for imx picophy Date: Fri, 17 Jul 2020 12:22:23 +0800 Message-Id: <20200717042226.18495-1-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SG2PR0302CA0010.apcprd03.prod.outlook.com (2603:1096:3:2::20) 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 SG2PR0302CA0010.apcprd03.prod.outlook.com (2603:1096:3:2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.9 via Frontend Transport; Fri, 17 Jul 2020 04:22:38 +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: c48e745a-036d-4341-169c-08d82a090c51 X-MS-TrafficTypeDiagnostic: AM6PR04MB6279: 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: DATHHaVsXASBgZ8xb5RLT/sTlnkKwTiZcOCZ/yYo1itnwh72Gf555Sat8AltbB3e7/FGJxAoTxAefbRKWdc1DW+qasJs6lt/TvcheynwYsG1nwdC+/QyeAoeqaPp9GoyDuil80NEPeBwoub9J80Up455Lv0/QeFFp2cZ+MtzRFtdZZN1W4TftAWWrsVt3fAQfeLfhKFbIbc1MzqsDvRBqpJQ758MHKePtSa/iheu5a8uWLj1+L+H9mB8jH9BkYOPpzkV3h1IY2jXYsW3BWxlBpwuG7wCH/PEDBnN3jO96bJiPYNPzB5a5kWXBPdidb5l 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)(39860400002)(136003)(346002)(376002)(396003)(366004)(6512007)(86362001)(956004)(6506007)(316002)(478600001)(2616005)(6486002)(186003)(66476007)(8676002)(16526019)(52116002)(36756003)(8936002)(26005)(1076003)(66946007)(4326008)(5660300002)(66556008)(44832011)(2906002)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: NJSfBshSf+hSE1qoTpp2Me2tdvJwQrqjzPamThBduhKpgOJHgn9cu/E9SI2WhiSMjjjIpH2o3KgrALmrqxtT33xkhnWetcjOdH1S4l4seDysXlitU7U3oEDdYxQlf+cJMXJc/sWg91RTnK8Pj8KxF+beWJ3kwsYnb5IGt+9Sr7s/iryFeYu85UK2NMcBn0HfgyA0cM/wUnkjhWrh8FoLj2eFaIDC4KVistiC3ByWo4ru/jn1rH9O01zlyO5Js4NDb5hUhwri+zzHE3h330COFevkWpoIuYoU6wvgVN/8UKDHTQ09xPe+BUkZTpKb8M68VumKTErUrVx+EC2vBG+QcKj/MTw0LfLlj5VBhpqQIMD9Oof5j+NL3VCJ6hPlxA9zkpEY0mBa95+icMXEE4RquOyu44LxzegJUDU4yKQOpBxLR8nMv4WMiBww1zS7rDgwlrBaiGHLtwR1sFztC2rG8/fAbQF0uxXTKgXzI0qlEJA= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c48e745a-036d-4341-169c-08d82a090c51 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7157.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2020 04:22:42.7626 (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: g3pzALI/IW3L18aIBmBpeSOCNsBlDOHhdK8I9VxVSRh/kAl5W4yAOpfZy4u5Q7cqohJJPksMBn5cRVEkfjOuBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6279 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200717_002246_078171_E02151F2 X-CRM114-Status: UNSURE ( 9.31 ) 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.21.50 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.21.50 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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, linux-arm-kernel@lists.infradead.org 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 --- No changes for v2. 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 Fri Jul 17 04:22:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 11668951 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 52C701392 for ; Fri, 17 Jul 2020 04:24:21 +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 28D9720704 for ; Fri, 17 Jul 2020 04:24:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qYMD6K9G"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Z8pxTkg7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 28D9720704 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=8e6MkJEEuEesNCin7Uwbja06tzt4FVBhMnaEWHEl9Hc=; b=qYMD6K9G7ON13TROHj3557Bkf 9wK5CCtHnm3TPa4WCcK28yi9imZotevXtWrIeiFhuyWmVpbSII5II5C2KMzJXm03GZehVOMlpV+EA V9YCPl5+QaU9/obOmA3co6gyAR20TroPdP55wPphEFTocpoy5FgxuJM6H80k58umq7ilOD920sT+X vZFkaYubU8hUOmHWNCDXE3tt4SUU9fr9CoZbfEsHVN4TYW/r+LRTAluHqk6d1UTR32R10PboJDJpJ rKVbGKcr30zVIx2qULddKW8LFKfv0xDg8lSmlaatkeUfftwaT8KXVEZQCUwR4RUuXno80w+lLEbvD e+TxyLSVQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwHtd-0006y4-5j; Fri, 17 Jul 2020 04:22:53 +0000 Received: from mail-vi1eur05on2074.outbound.protection.outlook.com ([40.107.21.74] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwHtZ-0006xC-RS for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2020 04:22:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ezNdhDkkqcbhqKzo4y+/SCaQesoZ8ieLTT5NQKuZyTlO3PxTUcq/Hrb0acrF+cfJYFxHi0AqWOC0Czsfso73AlMzuQHzfzZ2ylsHqTt96S7OuQzhhL0klJPh3/BEvJO8QGYgfWDlYdNdZ3ODscm/duMEQm2YMFDxBzGtmdje+5JtQd0eIDRI0I4wKkdoHnGaTYHABGw67QNuAj5aX4zXL5TErxxWzzz2Ujt9WWIzKuU0Hb2FTSWLn5yOAg4QWZ7Nt1AsrHgM9bjlp26MNnOy5CC8DvmNtvBolSQy/Ah/XyB5J1/TH+YfVRlFuOgSQcLaNeVWYvYJDuEL8em1FEK86A== 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=yNhG5wY6GLcspFuxFpO/fFZ1T1VxbRM9/fgkrtEZEYY=; b=b1Dahsb2HRqySSmsic1WmqABOqvOMzfxM3bkN6AOLzZ/LgBJZ6bwLmEfn/B1RDj6ur0t3LrEDD0JH3XIYqPzRcYuZ0tKIG3P7e69xO8WeMOp7j39AfZKCva3336vS4EDa0RJao5iRzioXkRI2jDFGSFMKHYLyqlAY07CQpJXRnx/7T14gmkDUVJEN6hHCXCZeS+PgK9u7IHubFEe8WbgiKGl8SN1V7vAQkM1KVt8by99wGi2+I3hYrA3qWPbIAfKECjhf/WEH0pe3aJklY1FDKyMl3VwEOMB0MOrE2uFeJ7QIN90Iutta/XKZYlRPfAHLJwF2aWEbtOMqlpqtRj5ew== 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=yNhG5wY6GLcspFuxFpO/fFZ1T1VxbRM9/fgkrtEZEYY=; b=Z8pxTkg7H8Ykx5W9hbiCZeXrgtObZ39kR6we5wgHDxe6LNbq6R/HSjcSo0Pz+qSxEGM4obhBuYl9Iqb2Zt62urkj+DiFkJGdxGAZgkI1dZMaU+2zVhYnxY4BnTai7Y/WhqUTXutq5TZ8j9kv2ttYtZ372fHawLNvpDSRhnJ/B1Y= 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 AM6PR04MB6279.eurprd04.prod.outlook.com (2603:10a6:20b:b7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17; Fri, 17 Jul 2020 04:22:47 +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.026; Fri, 17 Jul 2020 04:22:47 +0000 From: Peter Chen To: shawnguo@kernel.org, robh+dt@kernel.org Subject: [PATCH v2 2/4] usb: chipidea: imx: add two picophy parameters tuning implementation Date: Fri, 17 Jul 2020 12:22:24 +0800 Message-Id: <20200717042226.18495-2-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200717042226.18495-1-peter.chen@nxp.com> References: <20200717042226.18495-1-peter.chen@nxp.com> X-ClientProxiedBy: SG2PR0302CA0010.apcprd03.prod.outlook.com (2603:1096:3:2::20) 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 SG2PR0302CA0010.apcprd03.prod.outlook.com (2603:1096:3:2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.9 via Frontend Transport; Fri, 17 Jul 2020 04:22:43 +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: c9300b56-3bd6-453c-d4a5-08d82a090f2b X-MS-TrafficTypeDiagnostic: AM6PR04MB6279: 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: VPrNXn21LjcZnqFFivQCaGefv5rh3ny19tNILYiiEeDYDOK6E+MTCguwTsTuNMm3omFWYt+bCgSmaqG9/JDdtZ9SFfXC0Und5XALE42YdkB9CQccnL2tNfSczJOCRVTJR2slLGdLkkyYgSmqQDVnP6s2pK0a/P9PFAQ3KocQqk5t2hCu1zCbFmKGEiJIHytjP5V9HTdNrm6y25GMo0cmjtNybV40+Ejo9OIrqsvYZHJkkChTZvdMnGCBUKu2Ic3Y13kELfuu7Y9YsGy8SWObjT78M+23L/WQyGQpCYisgURUwgdyNRPjwNe1FLfKUQ4k 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)(39860400002)(136003)(346002)(376002)(396003)(366004)(6512007)(86362001)(956004)(6506007)(316002)(478600001)(2616005)(6486002)(186003)(66476007)(8676002)(16526019)(52116002)(36756003)(8936002)(26005)(1076003)(66946007)(4326008)(83380400001)(5660300002)(66556008)(44832011)(2906002)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: W8671dCugMmu9qkRkqqWS9BTTaO+CxLJiq5ZfsN75tv9jJL6S6NfhNCek6S+Wxhy7nVrPM3Z1MdaSot73ButoKxL4LlcQX804Tv32vybULix72XWQTh/Y2QkwJA1gtXyaj0AkAGVrzBilgHQ8XltNhAVw70RvTSWY1yvlcstfPim5TRZ/ulalBInO5ourTSae9iyWZQ6pXxNhBwJYQ1mKx7DcMgFKInV0NaPwnkcfyE9toGXKD6w9aEpMKoU2DTHAozygRLHo4bEnxNbF7lZHQkBsRZXbP+lV0urW054plrfnipMct5KxNpsoVl7MSG7vrnil2escxhwq/Ngmf6Whvy6QlKhGxwuMLAdEZJMolX4AX1dJXBTzopd1VLnFxrjTjN94cLLKLLYWQMWjhUyCPUmq1ASZjUtJx2ohop9MMecGWp5AwlzRlBHaRm49VWBH/4XSCCpz4lJ+e/2HXbn7AM6VylYH6ndcZQKhWsW220= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9300b56-3bd6-453c-d4a5-08d82a090f2b X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7157.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2020 04:22:47.3843 (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: 15R9gVx0MFJyMJ7+UVdGByD5QmibVy7/ojsVEjxd8cR/LDmXlvfivjxmagQ/mR88Pshl3Qi72DlL75bSwOIETg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6279 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200717_002249_931796_3E15B1A1 X-CRM114-Status: GOOD ( 13.22 ) 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.21.74 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.21.74 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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, linux-arm-kernel@lists.infradead.org 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 --- No changes for v2. 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 Fri Jul 17 04:22:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 11668955 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 EF6A960D for ; Fri, 17 Jul 2020 04:24:24 +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 C355020734 for ; Fri, 17 Jul 2020 04:24:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SRVg505b"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="dul0ll3U" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C355020734 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=vgcyTcxarGLVEBQNWQ/0u+wyX7ZhxQ/5Funn6JQKZJ4=; b=SRVg505bd/437udR+4CFDDRx/ 9jrnoQMB2z1OhmUe/hgNsgqYwmoIRC5IrEVc+y/XiUROtHQx8swyNHduEMDIHZ0CuS/+tW3pBvswt TkCdLlOjM5hv3X6nEtOKjkZSxN8IaxEbeJ/ert9mqxnVHGr3czsDotpr4nAhzInOjVN0I5KvcN1XU tirwA546vlfDWPnCcTTDIh4znw01lot7Z5nZpSlsLLSZNGI/4lqzb4hz+48yDQ08WLAzoy3qZnfXt cXQG1zvp3g0tTXbWgCObXHrQE2w2Nd0DGU50Cy1PIvniPhpddhuOrM3CVnqcPQKTRdAsPIoXJrydk UegTcPd1Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwHth-0006zO-Gx; Fri, 17 Jul 2020 04:22:57 +0000 Received: from mail-vi1eur05on2062.outbound.protection.outlook.com ([40.107.21.62] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwHte-0006y5-9E for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2020 04:22:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jMwLQHh0rEx0hxDBLccMZJv6du1/nDoTlPUds4biSs2dTk+rZc+bLvbYuTJkUCUrjkZKwsYARqyAKTQPjcFifcW0oM5f/L7grKVPWpWb3XMWkOEjIANOic98xGVnucPD6GQfTg2LRzv0k1m7sKISRbMJ4i8NUvE7qlnfoFU7deZHD4DwK1r9rXkqqM5CZ0NiKZM+0KJxZrTvJ5cxK8kKp2JQYFDDnf8YIlA1bUfVpwzSgNrOrhjKN9FEdHDQ5wcs7PdCWVgonKaWmb+WkdomBSVIihmwjHwKme+ce17Fv+OTHPFfJG9OPKCVeTdTY2E7dFqOK+D252bs+zJFMYztvw== 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=NjyHK8wNMT7oBpsXocRNIYgDv2Iwo8qeASNV3bCBEzo=; b=NlpJoVXUteImz1CWW0+6ENGCJBF7cmdeX/Pqj1Um+x9wQYtqNwBFPSUru5D7Y7RO3TMzLDoFUCk4JNL0d7RtbWUuFPJwThdpSxlfF+/X8c2wAXMjRqfSobO2eHtjz0aIh9Uzi5nzFn6vdyMcHBYlKmFik9MoZKF7RMfl2j3dtYdIXwWsUevxcn+ObZiFo5zx6hOHHK6YtTks5nzzb1lSaEGTHSUAVNBMLi0tEWkVtyidK+MczQkS/MwOb3MvKBTUt5BeIf41OoMOk9BjEVPPResQdLHrvERXGdKjikzxlbSJGiHkFoQgEPusalPJyscV98yH6KOjdLVnFfdoPlEWSg== 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=NjyHK8wNMT7oBpsXocRNIYgDv2Iwo8qeASNV3bCBEzo=; b=dul0ll3Uah/YhVmYZr2lQ21cjh6dquLgbA6n8RHMr8zIITtRgn5pqfhmdCdMu6soV2vrzKMCk7yrKlRPk6EstOpoJiuZ8WP19UEAqnOn7fFWetR0tOrkZla4Yj4BLt2PQGXgT2B8rP4e2muosP6WxpEXbguVE1sCmUAGPABfqTE= 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 AM6PR04MB6279.eurprd04.prod.outlook.com (2603:10a6:20b:b7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17; Fri, 17 Jul 2020 04:22:52 +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.026; Fri, 17 Jul 2020 04:22:52 +0000 From: Peter Chen To: shawnguo@kernel.org, robh+dt@kernel.org Subject: [PATCH v2 3/4] arm64: dts: imx8mm-evk: add two parameters for picophy tuning Date: Fri, 17 Jul 2020 12:22:25 +0800 Message-Id: <20200717042226.18495-3-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200717042226.18495-1-peter.chen@nxp.com> References: <20200717042226.18495-1-peter.chen@nxp.com> X-ClientProxiedBy: SG2PR0302CA0010.apcprd03.prod.outlook.com (2603:1096:3:2::20) 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 SG2PR0302CA0010.apcprd03.prod.outlook.com (2603:1096:3:2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.9 via Frontend Transport; Fri, 17 Jul 2020 04:22:47 +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: 45b5b50d-942b-4020-371c-08d82a0911f2 X-MS-TrafficTypeDiagnostic: AM6PR04MB6279: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qzqwGr25qfIfWxA9TLdKyE/TmjwVTWqBSybHnuTcMglRA2K0iyqvugotsw4QIkFrHI80o4F3UrokxFtY6whzoQeYuUmo4fpjI4aM2ZHGL8wOUcqHwZ43AM3ytqSMQYSv4qNFULktELPEFYnFI1BFgTh3xVt3tysKRyafL8IKqTP0GSqQI/NWIDurUTmfaUPx9XpWDkn4pnKtdkitStPsLoah9Fd7K2nAzVP0/jHhmlE6TSaNh+Rr2iLUZR8DQQPVPVtNjlfr8j2ldc99dmaaHxpvh+PrWpAb0EK4MniXLLGclVxrUGvlBeT1wIXeSIikDbcvfoBKXvOZ/5sbfWMGO5BtItkQOkKYKyspdrPlUFX1MWdxPfb5qxXvrJH23G5K 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)(39860400002)(136003)(346002)(376002)(396003)(366004)(6512007)(86362001)(956004)(6506007)(316002)(4744005)(478600001)(2616005)(6486002)(186003)(66476007)(8676002)(16526019)(52116002)(36756003)(8936002)(26005)(1076003)(66946007)(4326008)(5660300002)(66556008)(44832011)(2906002)(6666004)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: yGaiur28ABVkU+KhlJBaG/GAmW79Y0DnnYeAjKf9iAOEDyLKdPfoSf8F+8Z9MXJgkyaiBY4bCF5Uyn5CFLAFUu1YA/DKOf+rkqsN4M9SW6IEh8Y5Yv7E0Gnfmckmi43fTNtaVy4jBOAG8scFoLJO+v4He9Bl/RayDd8dyseI5rHEWiqDD95s9SUm8jei9L8HKDxAnnBTCPixDjooJdQmfYxLBPjnneFBixOUQnm3Onc9jY0Cuyr8rouEXkcjQhcuRhYqj5iIZUjR8JnX2KfEUY+OqmW3Ug8/KC5FsXHR5676MCH5bjoMsKvjuQgE/cyEXrdqQIiVXCvBNQplleUM3de/Kz8n32JnhBuEwnOsfocW8/mmWSeL1D7i7LxCLpw8MPAsqjvFfPysr4AOF+ij6jCVfl4Ajs5BKFH27AvvHlRElhC+A7UnCvkc/Zobmol3FYhRYtAaXO7n3DyYJZ2+TSuMqLpAlPEBwVqUk0OfZww= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45b5b50d-942b-4020-371c-08d82a0911f2 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7157.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2020 04:22:52.0419 (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: 70bwfuP5EuLwPG5xNC6mdzBbq9T21JqM3SZoEYexjo186r8Ec/4hMty94KvylQIJtmciT15gnPdrSHzB29E+lw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6279 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200717_002254_386637_A3816DA5 X-CRM114-Status: UNSURE ( 9.68 ) 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.21.62 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.21.62 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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, linux-arm-kernel@lists.infradead.org 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 --- 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..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 Fri Jul 17 04:22:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 11668957 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 7818260D for ; Fri, 17 Jul 2020 04:24:40 +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 4F6C420704 for ; Fri, 17 Jul 2020 04:24:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="HiWD9+BU"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="orb/KqxC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4F6C420704 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=ujX/ppT1R/2va0NM7BEWDLI6pkXPrsnq/gzFBY8f3wY=; b=HiWD9+BUOrZi8ZzjiwF0tWdcK 2f7+TnrGFRu68tJVdMn5GisJOw57TURTYNsnkICZgW2n5mn2wBe5yB5JGpCcZkv4p9Ijf7FJ3R/FD Qb4PZfqo5dk4vIMU9wDU3Q2UWKdufkDVU2zOeMjQMp9mHblwKUMFPChWRlJ85YG3UzIkVUpn7ZV2l AIPTnLy/vdFKiVr3BEuaibLr1Nk5zDRMrMtSA6sc+uSMyRaoI127jn+gbcLSvJ764kz8tN2GZCX5d tGql8BCKu6qP8rLJydD3RjUQBlaOnOUbzDGzf8ISvszTf1z7JttOXlzcT897oQu6/ZL77grtt4aVz dF0W0R10g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwHtm-00070a-K6; Fri, 17 Jul 2020 04:23:02 +0000 Received: from mail-vi1eur05on2060.outbound.protection.outlook.com ([40.107.21.60] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwHtj-0006zb-Fn for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2020 04:23:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ff1GJI1k+rv9sDIhmm/np2fvrJ4vcfI9XjqCFSGokoVLRLsAMn5uNRaGiz/zlwoDpE1rdN1j4VOgLT6HxmVD8Jw39O0pJHsc3us9ERCIrx6mvPiNBLKuHl8Oh3Ex1xnYiioq1AzS8QweaMubPpwZlmy1UDiam19lZiJXJ8OhCv6aEBKmZz1b6qs2+b9tRVAMhNXEPHWGO0P04k9Mh/5PS2Q+WfmcKigfBatNhgGO6pPYDKZkYgn4pZyOqwOWDU1b6gUL0XjWSoIGM0APXvYvs+fR7nWTtpkXs9wwy2mlMxGthehAShrQfFQ3kXYooWXHfB7BeDfwHuaMXbuHnqquIg== 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=iKRthqgJifBiZLodpXmYne6E4/qJhlT5udtkLoeesX4=; b=avLM6jxfHbqgc1pvwGpZeWf5s4Id+u84BCMeS4UvBXAH5Sy+jm6fzyEXlVi6k8wWiec3r3nF35UGhC22HFBJQeoCDNmvK9avCJdPKfDE+wUS6Rf9T4boAOcnumQFbZyi75oFscmZKOIUDMLtVjSYU53Nz5IRApOtNsRB5hE2zKp5Co3zo7D4QpnuLta+SnzJj12ASgjq3j2rVr+kBSA8aWSWRksbIu5wpV/FPyQbOZHsSsWIssdsSN0A9A514s3J/Qdoj8YJow882BELukZRrLZ9FT9XKyZ1PKevrReGuM1SIHzseG5iyTJeuVNlUJEOv5H+Xf20Hw1x+zLJyc7nWQ== 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=iKRthqgJifBiZLodpXmYne6E4/qJhlT5udtkLoeesX4=; b=orb/KqxCC45B+yNzrQ3+U9GlxmkrfdDtKVBDKV8NznruwbgxcLOqFrp6j5MSK9MFN+ktgkzjBr3HBskkXisyAR6G//HDwbhQWIJoEssWhykU5QvtzPqxJLIE/wjfhFpLEYBeL5I8bjO4xXVXeKga/cVpd0ER/8G19F2N/H+WA/A= 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 AM6PR04MB6279.eurprd04.prod.outlook.com (2603:10a6:20b:b7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17; Fri, 17 Jul 2020 04:22:56 +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.026; Fri, 17 Jul 2020 04:22:56 +0000 From: Peter Chen To: shawnguo@kernel.org, robh+dt@kernel.org Subject: [PATCH v2 4/4] arm64: dts: imx8mn-evk: add two parameters for picophy tuning Date: Fri, 17 Jul 2020 12:22:26 +0800 Message-Id: <20200717042226.18495-4-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200717042226.18495-1-peter.chen@nxp.com> References: <20200717042226.18495-1-peter.chen@nxp.com> X-ClientProxiedBy: SG2PR0302CA0010.apcprd03.prod.outlook.com (2603:1096:3:2::20) 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 SG2PR0302CA0010.apcprd03.prod.outlook.com (2603:1096:3:2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.9 via Frontend Transport; Fri, 17 Jul 2020 04:22:52 +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: d17b922b-1349-4778-f44e-08d82a0914b4 X-MS-TrafficTypeDiagnostic: AM6PR04MB6279: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EMlbjfFGnOjiDiSaiAnODlETm6UjRWsrGNL0g4afyF1O2RyID89ZUNZyfiGEmL6vyds4TTob7V4Hj49wxjGqXxlEWO1xx9HhtOgr9xUNyEb5Dpq1cJMoGIK7XveAr5qm0MR0kW1bWAYOokJnUok/MLcxTRhvZOvLvNdgHr3mkmniVTpA/5E09QD5qxozjd7KnrHkvTwv4RQl6uTYp4DGEZDaYZ8dGOTT0FZ8M9iTK0PYyfXRI9EFr9vcqp7GWSnIbJdS/VScqwWsC3N58+D4S7rStRyWvLkI1zxaRgnUCzuh/V5MYl+ytGzqos9FXFTCG3YFrtNizXpyLpT1igJSDQsoFOZeRpWpi+/IuAWQOupbTtmsoJEhoXw97do/UprF 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)(39860400002)(136003)(346002)(376002)(396003)(366004)(6512007)(86362001)(956004)(6506007)(316002)(4744005)(478600001)(2616005)(6486002)(186003)(66476007)(8676002)(16526019)(52116002)(36756003)(8936002)(26005)(1076003)(66946007)(4326008)(5660300002)(66556008)(44832011)(2906002)(6666004)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: jvef6qaCGbfZ8NxU1xF5ngVMfPk4XIig9inhtB3gqZtdkP+giirhMiTlBp2ugTY2GXw+3TyG4k87hM9eR4jLjneRlcUQdY2fwq6dlB7Mm09pjHM4YNh3ewvtz0PDHVPz6uFANREKVbBpLzfAWYGcp98lTlrwuKuQaeC2O5f7d6sgsbioMYYmepCyBT7SF5jwUnQ1Byq82zilzBAozRT1Em91xoxGbBJRzdoTatPkRn8PfZQLg9wxOSFzOBW97VJtfDwmkmVshKhU2XNErDNjWXdo8nbKdY6pOUnX9XZoVyHuDQkySw+KjGfJxrIgOXyuo4j6KX4AIliOES59/JYY9/s1trE96JnxqLR7mhJY8DWXiu1QHlMVGVal5PfQQWH9SuWddHy7GCCUj0wuS4YZ6pIXwl5iT4v49eF8dcoe2SULRRRnWCwUNySAofF8EPCBKC9Qx7nHWba3NdiGFQMJjk4brdZj6dO46/FgTfDGlF4= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d17b922b-1349-4778-f44e-08d82a0914b4 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7157.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2020 04:22:56.6995 (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: GU7lWvddE2pv4GKqqG83zIC6akFHADaxj5M2takJB3DWjs/MJPNOheY+PCQHm+VgdnqFBcWT50eVlzNB4n9QZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6279 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200717_002259_599255_71A0BF9D X-CRM114-Status: UNSURE ( 9.97 ) 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.21.60 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.21.60 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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, linux-arm-kernel@lists.infradead.org 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 --- 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..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 {