From patchwork Thu Jun 25 00:48:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 1316671 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=VwQI+5Ap; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49shHD30Wcz9sSJ for ; Thu, 25 Jun 2020 10:49:28 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ED222820BD; Thu, 25 Jun 2020 02:49:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VwQI+5Ap"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6A3C882021; Thu, 25 Jun 2020 02:49:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E8BC782021 for ; Thu, 25 Jun 2020 02:49:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=judge.packham@gmail.com Received: by mail-pl1-x641.google.com with SMTP id k1so1978308pls.2 for ; Wed, 24 Jun 2020 17:49:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IV3l95iVavlJYEneHbrWjV0X7ktTfcc0upEwexFRwis=; b=VwQI+5ApdjakW9ccpA15Cw3k0cQzSGHuXEoCYboITp3xzOhojw8WtdRIHq2NTtU+dV uo0s3gb7kYjLMEvMTZuTOri+dCW1JFkAk3Hd61BVjSvNesVqN5XShNjDLXw1duVyxTOT Sta6HsvTymXMx+jltDrgq5ETdj3e828bFZOk4zSIFmfZsg1cSNM8leJK1DWWxlfHUnYZ LfuxsygnzXv9+LZcWGlPtz42CVe+ezgQegt0AZpVoGeIMK2QDKn7YC9IoY3+UTvZsNSq QkST5N03alJamO7053Wew2eJHcGwXzDqjr1TxjL+pJoBAJ2fS/tdHmFcP6dtEPBhz9Vu 4rPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IV3l95iVavlJYEneHbrWjV0X7ktTfcc0upEwexFRwis=; b=bn4PRuAHaKS4fUhnHvAFGgoHRAjjPez3T1iGFWrcBrgR92naslIFYNs1qW3RLobSsR 0shJaw+WZFTsjlTXmD0ehRk2s174aYT76JeJT4hiwu57HwqXoSktnSzAs2Zk7D6xpbNz XQWF/2+MCRbe2Xu2KQpoQV9nBsbFUax3n6aziSNVjUZJc3CYPiJF0FGd6afHoqgZXHLt 2FnH0unTM3EuTJeMmx648d+1q2lE7r1jCmry7t/hXrspxRG7B/i08UsSBOVIKK5X/0TN 3HwYTRYGWc6ulaLCdjNFThuM0sAE3t8A/9t5cnp7+kvh9l9fWne20tWt3RL+6IS9+ipE MSQQ== X-Gm-Message-State: AOAM5333m20w99EYLgrG8xIO2ahM07xLvb1rgpIIsauhUL+E4PXKJp4C SRQGBJDtuLTEjFw7B/lREAKpYIlodI4= X-Google-Smtp-Source: ABdhPJw4HT7oVX6D6bR2WuixLiuDHCKT9onIzfD2xGwpwHM6p7zn4Z1R4eMRCEXmINZAu2bHykYRhw== X-Received: by 2002:a17:90a:f3c4:: with SMTP id ha4mr514339pjb.18.1593046146975; Wed, 24 Jun 2020 17:49:06 -0700 (PDT) Received: from chrisp-dl.atlnz.lc ([2001:df5:b000:22:8843:5e5d:5d39:870f]) by smtp.gmail.com with ESMTPSA id q22sm20778834pfg.192.2020.06.24.17.49.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 17:49:06 -0700 (PDT) From: Chris Packham To: u-boot@lists.denx.de Cc: Logan Shaw , Chris Packham , Erez Alfiya , Chris Packham , Joel Johnson , Simon Glass , Stefan Roese , Tom Rini Subject: [PATCH 1/2] arm: mvebu: a38x: Fix typo Date: Thu, 25 Jun 2020 12:48:50 +1200 Message-Id: <20200625004851.21056-2-judge.packham@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200625004851.21056-1-judge.packham@gmail.com> References: <20200625004851.21056-1-judge.packham@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Fix spelling of Alignment. Signed-off-by: Chris Packham Reviewed-by: Stefan Roese --- arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c b/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c index 67a00cf1cf7b..d4480622c89c 100644 --- a/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c +++ b/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c @@ -533,7 +533,7 @@ struct op_params pex_and_usb3_tx_config_params3[] = { struct op_params pex_by4_config_params[] = { /* unit_base_reg, unit_offset, mask, data, wait_time, num_of_loops */ {GLOBAL_CLK_SRC_HI, 0x800, 0x7, {0x5, 0x0, 0x0, 0x2}, 0, 0}, - /* Lane Alignement enable */ + /* Lane Alignment enable */ {LANE_ALIGN_REG0, 0x800, 0x1000, {0x0, 0x0, 0x0, 0x0}, 0, 0}, /* Max PLL phy config */ {CALIBRATION_CTRL_REG, 0x800, 0x1000, {0x1000, 0x1000, 0x1000, 0x1000}, From patchwork Thu Jun 25 00:48:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 1316672 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=QP+oPRLJ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49shHQ5MZTz9sSn for ; Thu, 25 Jun 2020 10:49:38 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8586282074; Thu, 25 Jun 2020 02:49:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QP+oPRLJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 26D20820BA; Thu, 25 Jun 2020 02:49:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E953B820BA for ; Thu, 25 Jun 2020 02:49:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=judge.packham@gmail.com Received: by mail-pl1-x642.google.com with SMTP id k1so1978414pls.2 for ; Wed, 24 Jun 2020 17:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/n8/1/kJsv824GBi8ZWFfEG2EUCJXUKlWM1nv9nb66M=; b=QP+oPRLJXtcNehXGh1vVZNwyQcP+Eg/iiQUMD4jO27XTUO0zcl+A8px3fFKzOfwJ1O 353Vy4k6lDIBMkDwsQv+cknV6vdGX98RgNwDoOLv1bSoI/XkTSMHPpsn4wb7HExIpmeO 8E2xyatpw5V8FBTxU2Wgy9N88Ud9hj/2EKyxWPfHMsIQ489PbXl0JagJXI2xi45kV39D lVIFsBAdh5waFAncqwJicZAp8FDnFQCNdEPHHtFhpZJCfF6nGTlimpSol9jqHcmrgt5S lHoV2dMRQtIr6zLdbFVTJe34rYlVfEdBSt/KOq4bQ6JknO1SGjU21Zt6AJp0NZrJY1wd xKgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/n8/1/kJsv824GBi8ZWFfEG2EUCJXUKlWM1nv9nb66M=; b=H5zXeTgkpdgoV5EuuoY13VnnAWILmf6x3BE/1graJEgAaD7d9NenmYhwF5Yd/gnNFJ 9c52YCL9B3WnOBfiR2eh/Nenr4Rip/Fde7dwd/pc1U+MBKrSTYc4dD3IECEmb9/AjCcg GUI7dj56ZuXtVM0ljaXAjbVN7ocxupm8KXBE4oX+FTu+hVvkDnspPCKe8wzaQblR11O3 nUahHXgBHbDrHgsWNS5v1RqcZbeKBUim14rsLdsQBprTe2MB4hYJIndW5Y/lOr/EORQG exc8Z6ptPTA/m0qUE8VkMfpbiEeYsP53LW8Jm7F2j8CBWpKSw87xiaTWyFivT7YJSbWg eOSg== X-Gm-Message-State: AOAM5330r1L2gbAgPWMH+cnaOfVqSYS9WzsfssiCOwfkHqt1a7tZrwbl AMH++HE7kwEN2R5ik4j/jYTAv2/hQ4s= X-Google-Smtp-Source: ABdhPJzgstvkOcORtSCex5OGBap2gsueUueEuZB9gch+kIa+h1ivwM1ExPSy+M1JadW2KYoOmfD7yA== X-Received: by 2002:a17:90b:3842:: with SMTP id nl2mr450322pjb.111.1593046151203; Wed, 24 Jun 2020 17:49:11 -0700 (PDT) Received: from chrisp-dl.atlnz.lc ([2001:df5:b000:22:8843:5e5d:5d39:870f]) by smtp.gmail.com with ESMTPSA id q22sm20778834pfg.192.2020.06.24.17.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 17:49:10 -0700 (PDT) From: Chris Packham To: u-boot@lists.denx.de Cc: Logan Shaw , Chris Packham , Erez Alfiya , Chris Packham , Joel Johnson , Simon Glass , Stefan Roese , Tom Rini Subject: [PATCH 2/2] arm: mvebu: a38x: Adjust UTMI PHY parameters Date: Thu, 25 Jun 2020 12:48:51 +1200 Message-Id: <20200625004851.21056-3-judge.packham@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200625004851.21056-1-judge.packham@gmail.com> References: <20200625004851.21056-1-judge.packham@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean When running USB compliance tests on our Armada-385 hardware platforms we have seen some eye mask violations. Marvell's internal documentation says: Based on silicon test results, it is recommended to change the impedance calibration threshold setting to 0x6 prior to calibration. Port changes from Marvell's u-boot fork[1] to address this. [1] - https://github.com/MarvellEmbeddedProcessors/u-boot-marvell/commit/a6221551 Signed-off-by: Chris Packham Reviewed-by: Stefan Roese --- .../serdes/a38x/high_speed_env_spec.c | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c b/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c index d4480622c89c..2454730e6d86 100644 --- a/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c +++ b/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c @@ -672,12 +672,29 @@ struct op_params usb2_power_up_params[] = { {0xc200c, 0x0 /*NA*/, 0x1000000, {0x1000000}, 0, 0}, /* Phy0 register 3 - TX Channel control 0 */ {0xc400c, 0x0 /*NA*/, 0x1000000, {0x1000000}, 0, 0}, - /* check PLLCAL_DONE is set and IMPCAL_DONE is set */ + /* Decrease the amplitude of the low speed eye to meet the spec */ + {0xc000c, 0x0 /*NA*/, 0xf000, {0x1000}, 0, 0}, + {0xc200c, 0x0 /*NA*/, 0xf000, {0x1000}, 0, 0}, + {0xc400c, 0x0 /*NA*/, 0xf000, {0x1000}, 0, 0}, + /* Change the High speed impedance threshold */ + {0xc0008, 0x0 /*NA*/, 0x700, {0x600}, 0, 0}, + {0xc2008, 0x0 /*NA*/, 0x700, {0x600}, 0, 0}, + {0xc4008, 0x0 /*NA*/, 0x700, {0x600}, 0, 0}, + /* Change the squelch level of the receiver to meet the receiver electrical measurements (squelch and receiver sensitivity tests) */ + {0xc0014, 0x0 /*NA*/, 0xf, {0x8}, 0, 0}, + {0xc2014, 0x0 /*NA*/, 0xf, {0x8}, 0, 0}, + {0xc4014, 0x0 /*NA*/, 0xf, {0x8}, 0, 0}, + /* Check PLLCAL_DONE is set and IMPCAL_DONE is set */ {0xc0008, 0x0 /*NA*/, 0x80800000, {0x80800000}, 1, 1000}, - /* check REG_SQCAL_DONE is set */ + /* Check REG_SQCAL_DONE is set */ {0xc0018, 0x0 /*NA*/, 0x80000000, {0x80000000}, 1, 1000}, - /* check PLL_READY is set */ - {0xc0000, 0x0 /*NA*/, 0x80000000, {0x80000000}, 1, 1000} + /* Check PLL_READY is set */ + {0xc0000, 0x0 /*NA*/, 0x80000000, {0x80000000}, 1, 1000}, + /* Start calibrate of high seed impedance */ + {0xc0008, 0x0 /*NA*/, 0x2000, {0x2000}, 0, 0}, + {0x0, 0x0 /*NA*/, 0x0, {0x0}, 10, 0}, + /* De-assert the calibration signal */ + {0xc0008, 0x0 /*NA*/, 0x2000, {0x0}, 0, 0}, }; /*