summaryrefslogtreecommitdiff
path: root/board/gateworks
AgeCommit message (Collapse)Author
2022-01-10Merge branch 'next'Tom Rini
Signed-off-by: Tom Rini <trini@konsulko.com>
2022-01-07imx8mm_venice: switch to use binman to pack imagesTim Harvey
Use binman to pack images. Note that imx8mm_venice supports several boards via multiple DTB's thus in the fit node we must use: - fit,fdt-list = "of-list" - fdt-SEQ - config-SEQ Signed-off-by: Tim Harvey <tharvey@gateworks.com> Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
2021-12-19fdt_support: Remove FDT_STATUS_FAIL_ERROR_CODEMarek BehĂșn
Since no one uses this feature and I am not aware of any parsers of this in Linux, remove it. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Pratyush Yadav <p.yadav@ti.com> Cc: Tim Harvey <tharvey@gateworks.com> Cc: Michael Walle <michael@walle.cc> Cc: Priyanka Jain <priyanka.jain@nxp.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2021-10-07imx: ventana: fix USB hub resetTim Harvey
Remove board_ehci_hcd_init function that is not used with DM_USB and replace its functionality with device-tree configuraton that treats USB HUB RST# as a gpio enable for the usbh1 vbus regulator. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-10-07imx: ventana: update LVDS supportTim Harvey
Enable LVDS display detection and panel-specific configuration Make I2C based LVDS detection and configuration model specific: - not all boards support LVDS connectors; fail detection that do not support LVDS to avoid misdetecting an I2C device as a display - GPIO configuration is panel specific; use panel name where needed Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-10-07imx: ventana: remove phy gpio reset from dtTim Harvey
We configure network phy configuration for internal delay, LED config, and clock config. If we leave the phy reset gpio defined in dt the kernel may issue a reset to the phy and break these configs. While some may be handled by a kernel phy driver, others may not (typically LED config). Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-10-07board: gateworks: venice: update thermal temp thresholds per cpu gradeTim Harvey
Update the passive/critical thermal zone dt config per CPU temperature grade. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-10-07board: gateworks: venice: do not overwrite serial#Tim Harvey
Do not overwrite existing serial# env to avoid: ## Error: Can't overwrite "serial#" ## Error inserting "serial#" variable, errno=1 Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-10-07board: gateworks: venice: display hwmon details by defaultTim Harvey
Display hwmon values by default when using the 'gsc' command. Signed-off-by: Tim Harvey <tharvey@gateworks.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
2021-09-30WS cleanup: remove trailing empty linesWolfgang Denk
Signed-off-by: Wolfgang Denk <wd@denx.de>
2021-08-31imx: Finish migration of IMX_CONFIG to KconfigTom Rini
- Provide a default Kconfig value of the default script - Largely continue to define this via the board Kconfig file - For the boards that select a script based on defconfig rather than TARGET, keep this within the defconfig. Signed-off-by: Tom Rini <trini@konsulko.com>
2021-08-09board: gateworks: venice: add board model to dtTim Harvey
Add the specific board model from EEPROM config to the device-tree to make it easier to access from Linux userspace. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09board: gateworks: venice: add imx8mm-gw7902 supportTim Harvey
The GW7902 is based on the i.MX 8M Mini / Nano SoC featuring: - LPDDR4 DRAM - eMMC FLASH - Gateworks System Controller - LTE CAT M1 modem - USB 2.0 HUB - M.2 Socket with USB2.0, PCIe, and dual-SIM - IMX8M FEC - PCIe based GbE - RS232/RS485/RS422 serial transceiver - GPS - CAN bus - WiFi / Bluetooth - MIPI header (DSI/CSI/GPIO/PWM/I2S) - PMIC Do the following to add support for it: - add dts - add PMIC config Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09board: gateworks: venice: add board model/serial# to envTim Harvey
Add board model/serial# strings to env. Move the creation of the strings to gsc_read() and the display of the info into gsc_info() so they are available to U-Boot proper. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09board: gateworks: venice: use bus numbers vs namesTim Harvey
replace looking up i2c bus name by bus number and define bus numbers and eeprom address with #defines. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09board: gateworks: venice: get mem size from dtTim Harvey
Get mem size from dt which SPL updated per EEPROM config. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: add support for GW54xx-G revisionTim Harvey
The GW54xx-G revision has the foolowing changes: - replaces the EOL GbE PHY with an updated part (requires an enable pin) - replaces the EOL analog video decoder with an updated part (requires dt prop) - add power control to miniPCIe socket Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: add support for GW53xx-G revisionTim Harvey
The GW53xx-G revision has the foolowing changes: - replaces the EOL GbE PHY with an updated part (requires an enable pin) - replaces the EOL analog video decoder with an updated part (requires dt prop) - add power control to miniPCIe socket Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: add GW5913 supportTim Harvey
The GW5913 is a Single Board Computer based on the NXP i.MX6Q/DL SoC with the following features: - DDR3 DRAM - NAND FLASH (256MiB or 2048MiB) - Gateworks System Periperhal Controller - front panel LED's - front panel pushbutton - Digital I/O connector (I2C/GPIO/UART) - u-blox Zoe-M8Q GPS - 1x RJ45 GbE - 1x MiniPCIe socket with PCIe USB 2.0 and nanoSIM socket - Passive PoE and wide-range DC power supply Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: add GW5912 supportTim Harvey
The GW5912 is a Single Board Computer based on the NXP i.MX6Q/DL SoC with the following features: - DDR3 DRAM - NAND FLASH (256MiB or 2048MiB) - microSD socket - Gateworks System Periperhal Controller - front panel LED's - front panel pushbutton - RS232 connector (2x UARTs) - CAN/RS485 connector - Digital I/O connector (I2C/GPIO) - SPI connector - u-blox Zoe-M8Q GPS - LIS2DE12 Accellerometer - 1x FEC GbE RJ45 with 802.3at Active PoE - 1x PCI GbE RJ45 with Passive PoE - 5x MiniPCIe socket with PCIe/USB 2.0 - 1x MiniPCIe socket with PCIe/USB 2.0 and SIM socket - Aux power input with wide-range DC power supply Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: add GW5910 supportTim Harvey
The GW5910 is a Single Board Computer based on the NXP i.MX6Q/DL SoC with the following features: - DDR3 DRAM - NAND FLASH (256MiB or 2048MiB) - microSD socket - Gateworks System Periperhal Controller - front panel LED's - front panel pushbutton - RS232 connector (2x UARTs) - Digital I/O connector (I2C/GPIO) - SPI connector - u-blox Zoe-M8Q GPS - LIS2DE12 Accellerometer - TI CC1352 ARM Cortex-M4 multiprotocol sub-1GHz / 2.4GHz wireless MCU - On-board brcmfmac WiFi and BT module - RGMII RJ45 GbE - 1x MiniPCIe socket with PCIe/USB 2.0 - 1x MiniPCIe socket with USB 2.0 and nanoSIM socket - Passive PoE and wide-range DC power supply Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: use dt for hwmonTim Harvey
Use dt-bindings for GSC hwmon devices. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: remove hard-coded flexcan standby pinTim Harvey
Flexcan pinmux is configured in kernel dt. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: remove hard-coded analog video codec enableTim Harvey
Analog video codec enable is configured in kernel dt. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: remove hard-coded USB OTG pinmuxTim Harvey
pinmux is now done via dt. Add missing OTG_OC pinmux for boards that use it. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: remove hard-coded PCI resetTim Harvey
PCIe reset configuration is handled via dt now. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: remove hard-coded USB HUBRST# gpio configTim Harvey
The USB HUB reset is handled via dt now. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: replace hard-coded LED config with dt based configTim Harvey
Use device-tree LED config instead of hard-coded board-specific config. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: remove nand field from common ventana structTim Harvey
NAND fdt fixups can be performed without knowing if NAND is present. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: move wdog/uhs-i board/revision dt fixupsTim Harvey
Move board/revision specific dt fixups for WDOG and UHS-I features so that we can call them early for U-Boot control dt as well. Additionally drop a deprected non-mainline dt-prop fixup regarding HDMI input format. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-09imx: ventana: ignore EEPROM config when checking for NAND supportTim Harvey
EEPROM bits no longer indicate support for NAND so instead use hard-coded value from board config struct. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-08-02global: Convert simple_strtoul() with decimal to dectoul()Simon Glass
It is a pain to have to specify the value 10 in each call. Add a new dectoul() function and update the code to use it. Signed-off-by: Simon Glass <sjg@chromium.org>
2021-08-02global: Convert simple_strtoul() with hex to hextoul()Simon Glass
It is a pain to have to specify the value 16 in each call. Add a new hextoul() function and update the code to use it. Add a proper comment to simple_strtoul() while we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
2021-07-10board: gateworks: venice: remove forced enable of GSC thermal protectionTim Harvey
The Gateworks System Controller thermal protection feature will disable the board primary power supply if the on-board temperature sensor reaches 86C. In many cases this could occur before the temperature critical components such as CPU, DRAM, eMMC, and power supplies have reached their max temperature. Remove the forced re-enable of thermal protection so that users can knowingly disable it. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10board: gateworks: venice: add ftd_file env vars on bootTim Harvey
The ftd_file* vars can be used by bootscripts to look for appropriate dtb's Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10board: gateworks: venice: display DTB usedTim Harvey
Display the DTB file used for U-Boot. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10board: gateworks: venice: gsc: fix voltage offsetTim Harvey
The voltage offset property is in microvolts so must be scaled accordingly. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10board: gateworks: venice: gsc: fix typoTim Harvey
Fix typo in error message. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10board: gateworks: venice: add imx8mm-gw7901 supportTim Harvey
The Gateworks GW7901 is an ARM based single board computer (SBC) featuring: - i.MX8M Mini SoC - LPDDR4 DRAM - eMMC FLASH - SPI FRAM - Gateworks System Controller (GSC) - Atmel ATECC Crypto Authentication - USB 2.0 - Microchip GbE Switch - Multiple multi-protocol RS232/RS485/RS422 Serial ports - onboard 802.11ac WiFi / BT - microSD socket - miniPCIe socket with PCIe, USB 2.0 and dual SIM sockets - Wide range DC power input - 802.3at PoE To add support for this board: - add dts from Linux (accepted for v5.14) - add SPL PMIC config Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10pci: imx: use reset-gpios if defined by device-treeTim Harvey
If reset-gpio is defined by device-tree use that if CONFIG_PCIE_IMX_PERST_GPIO is not defined. Note that after this the following boards which define CONFIG_PCIE_IMX_PERST_GPIO in their board header file as well as their device-tree should be able to remove CONFIG_PCIE_IMX_PERST_GPIO without consequence: - mx6sabresd - mx6sxsabresd - novena - tbs2910 - vining_2000 Note that the ge_bx50v3 board uses CONFIG_PCIE_IMX_PERST_GPIO and does not have reset-gpios defined it it's pcie node in the dt thus removing CONFIG_PCIE_IMX_PERST_GPIO globally can't be done until that board adds reset-gpios. Cc: Ian Ray <ian.ray@ge.com> (maintainer:GE BX50V3 BOARD) Cc: Sebastian Reichel <sebastian.reichel@collabora.com> (maintainer:GE BX50V3 BOARD) Cc: Fabio Estevam <festevam@gmail.com> (maintainer:MX6SABRESD BOARD) Cc: Marek Vasut <marex@denx.de> (maintainer:NOVENA BOARD) Cc: Soeren Moch <smoch@web.de> (maintainer:TBS2910 BOARD) Cc: Silvio Fricke <open-source@softing.de> (maintainer:VINING_2000 BOARD) Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10imx: ventana: display 'none' for MMC if board does not have itTim Harvey
print 'None' instead of just a blank line if nothing is detected: MMC: None Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10imx: ventana: add support for DLC0700XDP21LF LCD displayTim Harvey
Add LVDS support for DLC0700XDP21LF 7in 1024x600 display (equivalent to the DLC-700JMGT4 with new touch controller) Signed-off-by: Robert Jones <rjones@gateworks.com> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10imx: ventana: display neteowrk PHYTim Harvey
Add displaying the detected network PHY on boot. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10imx: ventana: add DP83867 PHY LED configurationTim Harvey
Add DP83867 PHY LED configuration. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10imx: ventana: put LTC3676 regulators in continuous modeTim Harvey
In the default pulse-skipping mode regulators that are very lightly loaded can fail to regulate properly. Switching them to always use continuous mode causes only around 10mW of overall system power difference in a lightly loaded system that isn't already operating them in continuous mode. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10imx: ventana: put PFUZ100 regulators in continuous modeTim Harvey
In the default 'auto' mode regulators that are very lightly loaded can be put in PFM mode and fail to regulator properly. Switching them to always use continuous PWM mode has a neglibable affect on system power and garuntees proper regulation under lightly loaded circumstances. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10imx: ventana: add PMIC fix for GW54xx-GTim Harvey
Substitutions in EOL parts changes the VDD_2P5 voltage rail such that the previously unused VGEN6 LDO is needed in place of the lower power VGEN5 for the GW54xx-G. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-07-10imx: ventana: remove unneeded includesTim Harvey
remove unnecessary includes Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-06-09imx: ventana: enable dm support for PCI and FEC ethernetTim Harvey
Enable driver model support for FEC ethernet which allows us to remove the iomux and board_eth_init function. Replace the toggling of the ethernet phy reset with dt configuration. Enable driver model support for PCI which allows us to remove the eth1000_initialize() call. Additionally enable PCI_INIT_R to scan for PCI devices on init such as the e1000 that is present on the GW552x. Convert board_pci_fixup to use dm callback and remove pcidisable env variable which is not supported for DM_PCI and thus leave PCI always enabled during init. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2021-05-02imx: ventana: add delay before reading EEPROMTim Harvey
fixes: d863d054397a ("imx: ventana: convert U-Boot to OF_CONTROL using FIT image") Signed-off-by: Tim Harvey <tharvey@gateworks.com>