Commit Graph

12735 Commits

Author SHA1 Message Date
Marcel Reichmuth 993259da01 ADD: [hw14] release alternate resets an slots 1 & 5 of mc board v5.2
BugzId: 78363
2022-02-25 09:25:44 +01:00
Marcel Reichmuth 6552251ade From b85d84daf03059332a707beaf92db9ff64e23282 Mon Sep 17 00:00:00 2001
From: Stefan Eichenberger <eichest@gmail.com>
Date: Wed, 17 Nov 2021 17:24:56 +0100
Subject: [PATCH 2/2] fix: serdes: a38x, a39x: Improve USB3 electrical
 configuration

This is a backport from Marvell U-Boot:
https://github.com/MarvellEmbeddedProcessors/u-boot-marvell
Commit: 381d029e7a510c91a9ef02afc43f1d0d317e8894

Improves electrical USB3 receiver jitter tolerance test:

- De-Emphasize force, in functional mode the transmitter should always
have 3.5db de-emphasize, so we are forcing it.

- After forcing De-Emphasize, choose 3.5db (After forcing, default is
6dB so need to change it to 3.5dB).

- Align90 set to 0x58 - this is the sample point in the receiver, after
the clock is recovered this sampler samples at the chosen value, usually
it is supposed to be 0x60(which is the center of the eye), but sometimes
after adding jitter and ISI the center of the eye can move slightly and
the sample point is not necessarily the exact center, and after
optimization (searching the middle of the eye manually) it was seen that
the center of the eye is actually 0x58 and not 0x60.

- FFE Res and FFE Cap set to 0xE & 0xF respectively: improves this
settings is adequate according to how the USB3 spec defines the
interconnect, thus improves USB3 jitter tolerance settings.

- Change the resolution of the DFE to 0x3 which is 6mV(highest
resolution) , this avoids the DFE to saturate and cease to work.

- HPF set to 0x3 which is 5Khz high pass filter, the function of the HPF
is to filter the low frequency patterns(below 5Khz) to make sure that
the signal is not a noise, the setting before was 0x1(205Khz), and the
change came since the USB3 CP0 pattern, that is used in the USB3 jitter
tolerance testing, is similar to PRBS15, which has 2^15=32768bits which
is 32768*200ps (200ps is one Unit interval in USB3(5Gbps)) = 6.5us,
which is in frequency terms: 152Khz. since the PRBS15 is a random
pattern and can theoretically have once in a while a pattern that will
be at frequency of 152Khz, hence the previous setting (205khz HPF) can
possibly filter this pattern which can cause to an error in the
receiver, thus this change to avoid such scenarios.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@netmodule.com>

BugzId: 75611
2021-11-23 10:25:34 +01:00
Marcel Reichmuth b4fc6086f5 From c1c6d80a1eaa188b58cb0080b2c339a85afc0f22 Mon Sep 17 00:00:00 2001
From: Tom Rini <trini@konsulko.com>
Date: Mon, 15 Nov 2021 11:58:37 -0500
Subject: [PATCH 1/2] arm: mvebu: a38x: serdes: fix serdes config for USB3
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The electrical serdes configuration for USB3 expects an array as data
argument. For USB3 the second value is used (see data_arr_idx = USB3 =
1). However, because only one value is inside the array mv_seq_exec is
accessing an invalid element and the serdes is configured wrongly.

This wrong initialization is leading to an unreliable detection
mechanism for some USB3 devices. We were able to reproduce the issue
regularly with an LTE modem from Sierra Wireless (SM7455) where it was
not detected as USB3 device in 1/3 of all tests.

This commit fixes the issue by setting data_arr_idx to 0. This is the
same value as the original U-Boot from Marvell is using. There it is
called FIRST_CELL which is a define for 0.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@netmodule.com>
Signed-off-by: René Straub <rene.straub@netmodule.com>

BugzId: 75611
2021-11-23 10:01:04 +01:00
Marcel Reichmuth 17ef82da5a Revert "FIX: use correct usb3 electrical config for serdes lines"
This reverts commit 4c55fbcc78.

Next commit will implement the same in an easier way.
2021-11-23 09:57:47 +01:00
Marcel Reichmuth 4c55fbcc78 FIX: use correct usb3 electrical config for serdes lines
BugzId: 75611
2021-11-05 13:41:20 +01:00
Marcel Reichmuth 8efea863e6 ADD: added hw17 platform and cleaned up naming of nm boards
BugzId: 70910
2021-03-30 14:08:51 +02:00
Marcel Reichmuth 1ffa09d30f ADD: [hw14] added hw14 platform to support new mc board
BugzId: 66150
2021-03-22 13:10:53 +01:00
Marcel Reichmuth cfcf5ab0aa ADD: [armada] support for armada 385 rev B0
BugzID: 56175
2019-03-20 14:03:07 +01:00
Marcel Reichmuth 4e828bb447 FIX: [uboot18] wrong definition for wdis pin of first slot
BugzID: 56155
2019-03-14 09:44:11 +01:00
Marcel Reichmuth f68df0ad00 CHG: [nrhw18] cleanup of dts file and removal of nrhw18-v1 references
BugzID: 50532
2018-11-01 10:03:46 +01:00
Marcel Reichmuth a77a86edfa CHG: [ddr] integrated marvel ddr training v18.09
BugzID: 51168
2018-10-30 09:41:18 +01:00
Marcel Reichmuth ea6fbf94f0 ADD: [nrhw18] configurable voltages for extension slots
BugzID: 53001
2018-10-03 14:22:22 +02:00
Marcel Reichmuth 604408ca95 nbhw18: add support for wdis voltage control and fixed pcie slot control signal sequencing 2018-08-14 10:26:28 +02:00
Marcel Reichmuth e970e52ba6 nbhw18: configure second eth phy in u-boot to make it work in linux 2018-04-24 11:59:15 +02:00
user d0cd5330f4 nbhw18: made extension board reset signals work 2018-03-27 16:52:11 +02:00
user 530d245dac nbhw18: enable external rs232 port 2018-03-26 14:35:25 +02:00
user 298db50583 nbhw18: pull perst up using fpga 2018-03-23 15:09:12 +01:00
user d64b235f23 nbhw18: automatically load fpga bitstream & cleanup of code 2018-03-22 14:52:27 +01:00
user f0fb4ed9d8 nbhw18: added awfull hack to get fpga loaded 2018-03-22 09:07:42 +01:00
user d4722d8525 nbhw18: enable sfp power 2018-03-07 15:56:42 +01:00
user 527eeae1f4 nbhw18: fixed console and ethernet initialization 2018-02-28 11:32:53 +01:00
user eedaeaa440 nbhw18: fpga pin mapping fix 2018-02-22 08:44:00 +01:00
user 44e0aea765 nbhw18: various fixes and cleanup 2018-02-21 13:47:33 +01:00
user 4b6c98acd4 nbhw18: made pcie work 2018-02-21 10:17:26 +01:00
user 9337bc6489 nbhw18_v2: added new mpp config 2018-02-20 09:09:13 +01:00
user 275706a797 nbhw18: various fixes/workarounds to get linux booting 2018-02-13 14:20:10 +01:00
user 212e83c8ba nbhw18_v2: add switch support code 2018-02-13 08:50:44 +01:00
Stefan Eichenberger 21e878614c nbhw18_v2: add initial board (based on v1) 2018-01-10 15:03:45 +01:00
Stefan Eichenberger 865c49bcf9 nbhw18: fix set_console to allow actually switching it 2018-01-09 14:48:48 +01:00
Stefan Eichenberger db48fa42ef nbhw18: add pd_serdes 2017-12-12 09:45:03 +01:00
Stefan Eichenberger 02aac947f7 nbhw18: first working version 2017-12-11 10:42:04 +01:00
Stefan Eichenberger 78e098a6cc nbhw18: compiling again 2017-11-27 18:37:07 +01:00
Stefan Eichenberger 8b24a0efbe Prepare v2017.11
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABAgAGBQJaCkPNAAoJEIf59jXTHXZS7RwQALPj+b4r5tTwp6zoFLHDNoz7
 iYSkLI/pCUCk0sr/+XAbIgs0PEXwiZWiyjlAhodMlj5CL2uG/P9lSuNkt81b+mfC
 hYDYuCVkzIG/bqr9lBL7e0WyrkGtQI5ZJikDxclqFH3eQk35EvsMahUNACHaVgDU
 ufTaXFxwd3DPWZt1ARHk/e893PmwR/sXNSUnKKmuiX+Af/Z/UKh8oa8FT+qMDsXH
 bEgAXxqXuN1wQxwr/N18BAB7ATjRPvlT6Iiu9iVcRqdZRpxuNQ/Mfh45VB3nIQEx
 qO8fHW45g4tAksBOsx5XvQIO4lY89ABXfv0FW6A/PVkkjSkRRzDXkQKghbw6ONnC
 UqJJ84zLsiyjV81KGyqQH2q6mZ5lHtWDjlxp/w1pqvZshL8FozcWbBjRDGsO4Tf2
 IuzbceYvU34hn6WjfOsIEk9fv1Js+6OUqOu7xDI11nBb/lmO1cPPgEsrwmiSYCke
 6QR84otycvJTkto6JNrMS68AiUBeFM/zD+rWrrv9K575mjg7nTJErFxkYraeXC4b
 T2KzPaog9aQLN33k579+FFxd77Pbdf1YJ4lvXNdka28DMVr9bGD7rwf8tBAg2DzT
 mQ8XNuRhc53KTf403Gfy6WCawYKI/Bcm7KHdRkzvVEs6jgEgEsZbUcA9H0XQxXHb
 yyCwN/6hx6mBQWt313g/
 =zQk8
 -----END PGP SIGNATURE-----

Merge tag 'v2017.11' into testing

Prepare v2017.11
2017-11-17 14:02:52 +01:00
Stefan Eichenberger c2035d6033 nbhw17: add support for fpga loading 2017-11-17 13:58:30 +01:00
Marek Vasut 2bfd43e550 ARM: rmobile: Fix eMMC signal voltage on Salvator-X/XS
The eMMC is 1V8 device only and the signaling is always 1V8,
fix the DT for Salvator-X/XS to describe the hardware correctly.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2017-11-12 16:17:31 -05:00
Tom Rini 3c674b7e87 Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2017-11-09 08:11:30 -05:00
Lukasz Majewski 9c8979cdb7 imx7: Add include guards for include/asm/arch-mx7/sys_proto.h file
Signed-off-by: Lukasz Majewski <lukma@denx.de>
2017-11-09 11:32:49 +01:00
Lukasz Majewski e895e996ab imx5: Add include guards for include/asm/arch-mx5/sys_proto.h file
Signed-off-by: Lukasz Majewski <lukma@denx.de>
2017-11-09 11:32:49 +01:00
Lukasz Majewski 90d0e38c1e imx6: Add include guards for include/asm/arch-mx6/sys_proto.h file
Signed-off-by: Lukasz Majewski <lukma@denx.de>
2017-11-09 11:32:49 +01:00
Lukasz Majewski a3eec24ad3 imx:display5: Add support for LWN's DISPLAY5 board
This commit provides support for LWN's IMX6Q based DISPLAY5 board.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
2017-11-09 11:32:49 +01:00
Lukasz Majewski ec1b26973c imx6: iomux: Add generic function to set RGMII IO voltage on IMX6 SoCs
This commit provides generic function to set the RGMII/HSIC IO voltage
level on iMX6 devices.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
2017-11-09 11:32:49 +01:00
Fabio Estevam b2e6ad451b mx51: Select the ESDHC_A001 erratum
When a high speed card is connected to mx51evk the following error is seen:

U-Boot 2017.11-rc2 (Oct 18 2017 - 13:49:26 -0200)

CPU:   Freescale i.MX51 rev3.0 at 800 MHz
Reset cause: POR
Board: MX51EVK
DRAM:  512 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - read failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   FEC
Hit any key to stop autoboot:  0
=> saveenv
Saving Environment to MMC...
Writing to MMC(0)... failed

The root cause for the failure is the eSDHC-A001 erratum:

"eSDHC-A001 : Data timeout counter (SYSCTL[DTOCV]) is not reliable for
values of 0x4,0x8, and 0xC" that is listed
on some PowerArchitecture chips:
https://www.nxp.com/files-static/32bit/doc/errata/MPC8379ECE.pdf

Even though eSDHC-A001 is not documented on the i.MX51 errata document,
I have confirmed with the NXP design team that this erratum does affect
i.MX51, so fix the problem by selecting SYS_FSL_ERRATUM_ESDHC_A001
at SoC level.

The i.MX51 ts4800 board already selects this option, but it is better
to move this selection to the i.MX51 SoC level instead.

Successfully tested with a high speed SD card on a mx51evk board.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
2017-11-07 10:13:11 +01:00
Fabio Estevam 5d09c27138 mx25: Select the ESDHC_A001 erratum
When a high speed card is connected to mx25 the following error is seen:

U-Boot 2017.11-rc2-00104-gb79372a (Oct 31 2017 - 11:02:22 -0200)

CPU:   Freescale i.MX25 rev1.2 at 399 MHz
Reset cause: POR
Board: MX25PDK
I2C:   ready
DRAM:  64 MiB
No arch specific invalidate_icache_all available!
MMC:   FSL_SDHC: 0
*** Warning - read failed, using default environment
In:    serial
Out:   serial
Err:   serial
Net:   FEC
Hit any key to stop autoboot:  0
=> saveenv
Saving Environment to MMC...
Writing to MMC(0)... failed

, which prevents any usage of the SD card.

The root cause for the failure is the eSDHC-A001 erratum:

"eSDHC-A001 : Data timeout counter (SYSCTL[DTOCV]) is not reliable for
values of 0x4,0x8, and 0xC" that is listed
on some PowerArchitecture chips:
https://www.nxp.com/files-static/32bit/doc/errata/MPC8379ECE.pdf

Even though eSDHC-A001 is not documented on the i.MX25 errata document,
I have confirmed with the NXP design team that this erratum does affect
i.MX25, so fix the problem by selecting SYS_FSL_ERRATUM_ESDHC_A001
at SoC level.

Successfully tested with a high speed SD card on a mx25pdk board.

Suggested-by: Benoît Thébaudeau <benoit@wsystem.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Tested-by: Otavio Salvador <otavio@ossystems.com.br> # mx25pdk
2017-11-07 10:13:00 +01:00
Fabio Estevam 07df697e14 mx25: Move MX25 selection to Kconfig
The motivation for moving MX25 selection to Kconfig is to be
able to better handle MX25 specific errata, so that an errata option
can be selected at SoC level instead of board level.

This selection method also aligns with the way other i.MX SoCs are
selected in U-Boot.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
2017-11-07 10:12:50 +01:00
Klaus Goger 4f70039b36 rockchip: dts: rk3399: change sd-card io voltage to 3.0V
The VCC_SD and VCC_SDIO rail should only be powered up to 3.0V on RK3399
platforms.

Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2017-11-07 09:16:57 +01:00
Klaus Goger 366812fa26 rockchip: dts: Use defines for pin names in rk3399-puma.dtsi and rk3368-lion.dts
pinctrl/rockchip.h provides defines that map pin numbers to pin names.
Use them to make the dts more human readable.

Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2017-11-07 09:16:57 +01:00
Philipp Tomsich b1e1ce2cd4 rockchip: dts: rk3399-puma: update USB configuration
This change updates the USB configuration for the RK3399-Q7 in the DTS:
 * fixes the OTG board configuration by enabling it ('okay')
 * improves the speed of 'usb start' by disabling the unused EHCI/OHCI
   controllers

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2017-11-07 09:16:57 +01:00
Philipp Tomsich f2a9513168 rockchip: dts: rk3399-puma: update usbhub_enable regulator
To correctly model the usbhub_enable regulator for U-Boot, we need
to change the settings to:
 * the GPIO polarity is GPIO_ACTIVE_LOW
 * should be set to inactive (enable-active-low) when boot-on settings
   are applied
 * it can be changed at runtime (i.e. remove the always-on)

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2017-11-07 09:16:57 +01:00
Philipp Tomsich df1e6212f9 rockchip: dts: rk3399-puma: fix the modelling of BIOS_DISABLE
The fixed regulator for overriding BIOS_DISABLE had been modelling
backwards (i.e. the GPIO polarity and the enable-active-low/high
property had both been inverted), causing the 'regulator' command
to always print/expect 'disabled'/'enabled' backwards.

This fixes the mix-up and models it correctly:
 * the GPIO is low-active
 * the regulator should be enabled (enable-active-high) during
   boot-on initialisation

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2017-11-07 09:16:56 +01:00
Chris Brandt fc85605018 cosmetic: rmobile: renesas spelled wrong
Renesas was spelled wrong.

Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
2017-11-06 09:59:03 -05:00