Commit Graph

38038 Commits

Author SHA1 Message Date
Rene Straub f51b3b4fc3 nrhw: add board descriptor hw_type support 2020-06-15 13:33:46 +02:00
René Straub 7b1000b59d 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>
2020-06-08 16:15:27 +02:00
Marcel Reichmuth a3fd0500ec nmhw21: sja1105: allow max length ethernet frames when using vlan tagging
Increase switch MTU size from 1518 up to 1522 for all ports.

Configuration reference:
repo: git.netmodule.intranet/hancock/nmhw-sja1105-configs
commit id: c20a8a3d87223f8fdbdcc60173ee11ec0514ad1d

BugzID: 61914, 57376

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-03-20 02:09:11 +01:00
Rene Straub 2844abe1c2 nrhw20,24: board: respect ngpios entry
determine number of gpio entries in ft_set_gpio_name()

BugzId: 60387
2020-03-20 02:06:09 +01:00
Rene Straub a583bb6eea nmhw21: fct_atecc: add factory test for ATECC chip
BugzID: 61904
2020-03-20 02:04:55 +01:00
Rene Straub ce70a04c33 nrhw: sync with NRSW, dualcan-passive shield fixes
BugzId: 61778
2020-02-27 14:10:43 +01:00
Rene Straub 41742d2865 nrhw: cleanup, let reset reason check in SPL 2020-02-27 07:23:13 +01:00
Rene Straub 6fabed9c5d nrhw: enable IP fragmentation, tftp transfer size
TFTP blocksize can be increased with tftpblocksize
env variable to speed up transfers.

BugzID: 61739
2020-02-26 11:01:36 +01:00
Rene Straub 7c3defb4e0 nrhw: enable dtb entries for passive can shield 2019-12-19 07:44:34 +01:00
René Straub 3274638d7d nrhw: support dual can passive shield (#38) 2019-12-12 12:13:23 +01:00
Rene Straub 7620f09ce4 nrhw: fix control pins for dual-can shield
- control io were swapped
- termination was applied to wrong port

BugzId: 60563
2019-12-12 09:20:44 +01:00
Lucien Mueller a93f6f3874 nmhw21: sync ui leds with onboard leds.
BugzID: 59055

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-11-29 16:02:02 +01:00
Rene Straub e940bb1802 am335x: add NRSW support for nmhw[20,21,24]
- NRSW board features
- memory layout update
- boot configuration update
- general cleanup

BugzID: 60384

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-11-29 14:08:31 +01:00
Lucien Mueller cac1b16a16 u-boot-env: append preexisting bootargs to the ostree-bootargs.
BugzID: 59504

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-11-20 10:00:45 +01:00
Rene Straub 0530de83a0 nmhw24: remove debug print from ft_set_gpio_name() 2019-11-16 16:28:14 +01:00
Rene Straub 0cde66a780 nmhw24: configure com/io shield gpios in dtb
when a COM/IO shield is detected, its two IOs
are given names in the gpio section so that they
are accessible from Linux gpio chardev.

BugzId: 60150
2019-11-16 13:17:11 +01:00
Rene Straub 1ada49ca8c crypt: updated/refactored pw hashing function
- updated to recent busybox version
- removed compiler warnings
- properly implemented missing lib functions
2019-11-11 07:43:39 +01:00
Rene Straub 05e24f04fe nmhw: add spl version info for NRSW
- NRSW feature guarded by CONFIG_NRSW_BUILD
2019-11-11 07:39:10 +01:00
Rene Straub 19271e52e9 nrhw20: general cleanup of board files 2019-11-01 12:26:31 +01:00
Rene Straub 64a2a57636 nmhw21: general cleanup of board files 2019-10-30 19:41:53 +01:00
Rene Straub da716b9200 nmhw: make NM packed bootloader configurable
- define CONFIG_NM_BOOTLOADER_FORMAT to support NM packed u-boot
2019-10-30 19:40:48 +01:00
Rene Straub 4d9788bdc8 nmhw: allow to define location of bootpass file 2019-10-24 09:21:00 +02:00
Rene Straub ace146330e nmhw24: don't enable uart0 in DTS by default
- when using CAN shield, uart0 must not be enabled or I/O
  pins are locked by uart.
- this was a backport from NRSW that has to be checked
2019-10-24 09:17:11 +02:00
Rene Straub bb120c7271 nmhw24: align board file with nrsw implementation 2019-10-10 17:54:08 +02:00
Rene Straub 05a415b524 nmhw24: align environment for nrsw support 2019-10-10 17:36:15 +02:00
Rene Straub 44ad609219 nmhw: update board descriptor tags
- add missing tags
- fix documentation errors
2019-10-10 13:29:42 +02:00
Rene Straub 8f2ba82d9b nmhw: refactor/cleanup login code 2019-10-10 05:56:36 +02:00
Rene Straub a0e3f2f124 nmhw: redundant boot of NRSW bootloader images
- support loading of regular and NRSW packed uboot images
- add image size sanity check
- add crc check for uboot images to ensure integrity
- boot order:
  - nrsw, main location
  - regular, main location
  - nrsw, alternative location
  - regular, alternative location
2019-10-09 15:26:00 +02:00
Rene Straub 161b30f72e nmhw: reduce SPL image size
- disable unused u-boot load from partitions to save memory
2019-10-09 15:21:33 +02:00
Rene Straub b1f61bad65 nrhw24: add pmic reset reason detection 2019-09-27 11:40:31 +02:00
Rene Straub a2438d7bd1 nrhw24: synchronize mux settings with nrsw code 2019-09-26 19:09:24 +02:00
Rene Straub a8cc1f2d85 da9063: move driver to common netmodule codebase
- change nmhw21, nrhw24 makefiles/include
- change nrhw20 to use improved da9063 code (bus claim/release)
2019-09-26 18:38:57 +02:00
Rene Straub 82f1fedaa3 nmhw: add support for password login
- backport from nrsw
2019-09-26 09:08:02 +02:00
Rene Straub d9bbba2295 nmhw: add support for late console initialization
- backport from nrsw to support COMIO shield
2019-09-26 08:19:19 +02:00
Rene Straub b274acceb4 nmhw: redundant u-boot start from SPL
- copy redundant boot from nrsw implementation
- rewritten to fix issues with load size and load address
- support for NetModule packed or regulator bootloaders
  in main and alternate location
- support is currently experimental.
  write 0x12345678 to 0x90000004 to try out
2019-09-25 16:56:16 +02:00
Rene Straub aea345876d nmhw: cleanup/align with nrsw code 2019-09-25 11:10:25 +02:00
Rene Straub afbe8bf08d nmhw: update emmc device names
- kernel 4 uses mmcblk1 instead of mmcblk0
- update documentation accordingly
2019-09-25 10:58:09 +02:00
Rene Straub a28cffaf0f nmhw24: rename to nrhw24 2019-09-25 10:43:32 +02:00
Ramon Moesching cd9281a619 nmhw21 board.c: turn off indicator led in board_init()
BugzID: 59055

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-09-20 11:43:00 +02:00
Rene Straub 803e05c65c nmhw21 - update pmic driver from nmhw24
- use C types instead of uboot types
2019-09-07 12:28:23 +02:00
Rene Straub f3c79d769b nmhw24 - update pmic registers 2019-09-07 12:22:23 +02:00
Rene Straub 88426e4041 nmhw21 - change PMIC config to synchronous mode
in rare cases the default automatic mode switching can disable a power
rail. To prevent this all used buck regulators are configured to
synchronous mode.
2019-09-07 11:05:09 +02:00
Rene Straub 5488c0795d nmhw21: cleanup
- fix formatting
- remove unused variable
2019-09-07 10:20:30 +02:00
Lucien Mueller 8ec934e776 Give UM more time to boot.
Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-08-26 13:02:10 +02:00
Rene Straub 2c5343e02b nmhw24: prepare shield support 2019-08-23 07:35:36 +02:00
Rene Straub 0bfdc0e237 nmhw24: cleanup 2019-08-16 16:26:29 +02:00
Rene Straub 2aa7f6e764 nmhw24: cleanup 2019-08-16 16:23:52 +02:00
Rene Straub 70b14b3131 nmhw24: code cleanup 2019-08-16 16:20:38 +02:00
Rene Straub 5345ae1a18 nmhw24: correct led assignment 2019-08-16 15:15:45 +02:00
Rene Straub a0de5b0e8e nmhw24: fix PMIC accesses
PMIC access needs to be enclosed in claim/release bus functions.
2019-08-14 09:07:57 +02:00