Commit Graph

37956 Commits

Author SHA1 Message Date
Marcel Reichmuth 3134deeab7 hw20,22,24,26(21): disable pull-down on timepulse
The pull-down enabled on the timepulse signal causes newer gnss modules
to fail to boot. Therefore this patch disables this pull-down on
all sitara designs that have a timepulse signal.
The patch also disables the pull-ups on the gnss uart rx/tx lines as those
are also not needed.

(The initial fix for this for hw26 was done on the U-Boot for oem linux in
commit f47237771c)

id: 508571
2024-02-29 08:49:57 +01:00
Stefano Babic 66fb8f8532 Add target to generate initial environment
The initial environment is linked to the u-boot binary. Modifying the
environment from User Space with the env tools requires that the tools
are always built together with the bootloader to be sure that they
contain the initial environment in case no environment is stored into
persistent storage or when a board boots with just the default
environment. This makes difficult for distros to provide a general
package to access the environment. A simpler way is if the tools are
generic for all boards and a configuration file is given to provide the
initial environment.

The patch just generates the initial environment by extracting it from
the compiled object. This file can then be used for tools in user space
to initialize the environment.

Signed-off-by: Stefano Babic <sbabic@denx.de>
(cherry picked from commit bdaa73a5b3)
2023-08-23 13:29:51 +00:00
Marcel Reichmuth aeb78a0f7b FIX: CVE-2022-30790, CVE-2022-30552
BugzId: 80018
BugzId: 80019
2022-06-09 09:32:34 +02:00
Marcel Reichmuth e7d1658402 hw25: enable block device polling for sd card udev events
BugzId: 63798
BugzId: 69384
2021-02-05 13:19:20 +01:00
Moritz Rosenthal eb7eaf50c0 hw25: Detect wake-up from digital input and skip user interaction on warm boot
Also use term DIN (digital input) instead of IGNITION as we don't have
ignition on this industrial device.

BugzId: 69795
2021-02-02 08:50:49 +01:00
Marcel Reichmuth 3986f1b141 hw21/24/25/26: connect first sim defined in bd to modem by default
BugzId: 69979
2021-01-27 16:22:37 +01:00
Rene Straub c3217b516e hw25: swap mac addresses to reflect port numbering 2020-12-15 10:43:33 +01:00
Rene Straub 109292e6c1 hw21/26: remove trailing whitespaces
(cherry picked from commit 088d4c7ddf)
2020-12-10 15:14:22 +01:00
Rene Straub c7250a3018 i2c: omap24xx_i2c: Fix speed settings
Add set_speed function to adapters 2, 3 and 4 as well.

(cherry picked from commit 24c0d5539e)

BugzId: 69284
2020-12-02 08:54:52 +01:00
Rene Straub 829861387f hw25: use lower (2nd) ethernet port
BugzId: 66001

(cherry picked from commit 6ca8df40e6)
2020-11-30 08:39:03 +01:00
Marcel Reichmuth 564b811715 hw25: fixed SMA2 register address
BugzId: 66001
2020-11-27 17:04:17 +01:00
Rene Straub 00c9af8001 hw25: add variant handling
get variant information from product descriptor
configure device-tree accordingly

BugzId: 66001

(cherry picked from commit e85e9ffa83)
2020-11-27 16:07:42 +01:00
Rene Straub 604a8ea642 hw25: add start reason detection
BugzId: 66001

(cherry picked from commit 0330a6b94f)
2020-11-27 16:07:19 +01:00
Rene Straub 114720eb29 hw25: add methods for dio/serial PD entries
BugzId: 66001

(cherry picked from commit 7e9ca6d8fa)
2020-11-27 16:06:53 +01:00
Rene Straub 0b23c2ac24 hw21, 26: suppress power on with ignition off
power down system in SPL when ignition is not active on a
power-on start.

BugzId: 61809

(cherry picked from commit f5b16d4cf7)
2020-11-20 11:18:41 +01:00
Rene Straub ed94741160 Move detection logic before PMIC rails init
(cherry picked from commit 51f97189404e9aab063a1d0e2ff6d1941d36961b)
2020-11-06 23:27:27 +01:00
Rene Straub f86ddfdff0 Add detection logic in hw21/26
(cherry picked from commit 0399dda8341c062a7a374152bfe255219c5db441)
2020-11-02 14:37:46 +01:00
Rene Straub d1c5c9c1e9 Detect start events from pmic
(cherry picked from commit 479cddd324601e8e9a408353553decc8ed9a1605)
2020-11-02 14:35:43 +01:00
Marcel Reichmuth 18d916b414 hw25: configure secondary pinmux for RMII2_CRS_DV
BugzId: 66001
2020-10-30 13:38:07 +01:00
Rene Straub 511c34bec1 hw25: take USB/SD converter out of reset
(cherry picked from commit dc6ed546db)
2020-10-20 08:52:27 +02:00
Rene Straub 1ef4c32830 hw25: change defaultconsole to ttyS0
(cherry picked from commit 55332e5582)
2020-10-20 08:52:18 +02:00
Rene Straub d43aba4a0c hw25: enable rx function for IO_IN[0..3] gpios
(cherry picked from commit 1de7ebd031)
2020-10-20 08:52:10 +02:00
Rene Straub 45d9e5d6fc hw25: add board type detection
(cherry picked from commit d3f9300741)
2020-10-20 08:52:03 +02:00
Rene Straub a5703193f7 hw25: fix Ethernet phy ids
(cherry picked from commit 50dbe9d830)
2020-10-20 08:51:55 +02:00
Rene Straub afc57e6c0f hw25: remove shieldcmd from boot
(cherry picked from commit 820db26639)
2020-10-20 08:51:46 +02:00
Rene Straub 928fdd601d Fixed C++ comment in header file
(cherry picked from commit 5e1b277281)
2020-10-20 08:51:37 +02:00
Rene Straub ca236db944 Review, minor changes
(cherry picked from commit 9f0dd0d481)
2020-10-20 08:51:26 +02:00
Nicolas Gugger d0c6323c7f hw25: modified comment
(cherry picked from commit c8a4189cd1)
2020-10-20 08:51:18 +02:00
Nicolas Gugger cf06766350 hw25: updated board and mux - ready for review
(cherry picked from commit 29a9c27aa3)
2020-10-20 08:51:07 +02:00
Nicolas Gugger 3d5106ae47 hw25: cleaned up board and mux
(cherry picked from commit 14cbc05115)
2020-10-20 08:50:58 +02:00
Nicolas Gugger 96b896c52d hw25: muxing intermediate save
(cherry picked from commit 2bc5815cb6)
2020-10-20 08:50:49 +02:00
Nicolas Gugger 25d45e945a hw25: remove shield support
(cherry picked from commit 13b003ae3b)
2020-10-20 08:50:40 +02:00
Nicolas Gugger d63596e641 hw25: initial setup based on hw24
(cherry picked from commit 1ac538b956)
2020-10-20 08:50:29 +02:00
Marcel Reichmuth 2c02a01a4d Revert "Add HW25 as clone of HW24"
This reverts commit caf5ea364e.
Will merge same implementation from hw branch.
2020-10-20 08:47:09 +02:00
Moritz Rosenthal caf5ea364e Add HW25 as clone of HW24
The TC-Router will be mostly a clone of NB800 Rev. B02.

BugzId: 66008
2020-09-21 10:44:07 +02:00
Marcel Reichmuth af519ebed1 hw21,26: fix compiler error with openwrt compiler
BugzId: none
2020-08-18 13:38:08 +02:00
Rene Straub ef1aa826dd hw21,26: set hw type in device-tree
- hardware type is stored as string under
  /proc/device-tree/nm,carrierboard,type

(cherry picked from commit f89b5527b7)
2020-08-18 13:32:27 +02:00
Rene Straub 63562ef303 hw21: fix RTC trimming
- commit 7336361d5c broke PMIC RTC trim for hw21
- fixed hw type detection in init_bd_spl()

(cherry picked from commit 08e8a21515)
2020-08-18 13:32:14 +02:00
Rene Straub 7b87632fe9 hw26: add factory reset function
- check rs232 for break condition duration to invoke
  factory reset or recovery boot. same logic as reset button.
- check rs232 break condition followed by command
  - 'f': factory reset
  - 'r': recovery boot

(cherry picked from commit 9b04a8130e)
2020-08-18 13:30:36 +02:00
Lucien Mueller 65753b59c2 nmhw21: deactivate rs232 reset.
This makes it possible to boot normaly with disconnected uart line.
Previously the system booted into recovery in that case.

BugzID: 65200

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
(cherry picked from commit 93a35c7311)
2020-08-18 13:30:16 +02:00
Rene Straub 1f7da36b4f hw21,hw26: fix incorrect dtb name for fdt_image
(cherry picked from commit 3d8a85df86)
2020-08-18 13:29:08 +02:00
Rene Straub 561b1bc2aa nmhw21,26: fix incorrect indentation
(cherry picked from commit e2bf817634)
2020-06-16 08:41:53 +02:00
Rene Straub 92a64fc0bc nmhw21,26: change sim_sel to timepulse
gpio2_16 is re-defined as timepulse input on hw26.
On hw21 it was the non-working SIM_SEL_N.
Mux config changed, keeping pin input.

(cherry picked from commit e0f24ed684)
2020-06-16 08:41:45 +02:00
Rene Straub 259a432514 nmhw21,26: init pmic based on hw type
(cherry picked from commit 7336361d5c)
2020-06-16 08:41:38 +02:00
Rene Straub 38ce4a79cc nmhw21,26: getting hardware type from BD
this is the precursor to make the bootloader hw26 aware.

(cherry picked from commit a02c9b9da3)
2020-06-16 08:41:30 +02:00
Rene Straub f6dba79871 nrhw: add board descriptor hw_type support
(cherry picked from commit f51b3b4fc3)
2020-06-16 08:41:22 +02:00
René Straub bae7f8b879 nmhw21: board: add user reset option via rs232
allow invoking factory reset and recovery boot via:
- uart break, followed by command ('r', 'f')
- using uart rxd as reset line

Co-authored-by: Rene Straub <rene.straub@netmodule.com>
Reviewed-by: Patrick Zysset <patrick.zysset@netmodule.com>
(cherry picked from commit 7b1000b59d)
2020-06-16 08:41:15 +02:00
Marcel Reichmuth 8bad3591e8 FIX: [hw21] allow max length ethernet frames when using vlan tagging
BugzId: 61914
2020-03-09 14:21:59 +01:00
Rene Straub 5f9369c7a1 Sync with Yocto project 2020-02-27 15:12:39 +01:00
Moritz Rosenthal 511ec4e72e Fix copy & paste error 2020-01-08 15:01:43 +01:00