Commit Graph

38016 Commits

Author SHA1 Message Date
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
Rene Straub dc7afab487 nmhw24: enable wifi supply at startup 2019-08-14 09:07:57 +02:00
Rene Straub 8afc9caad2 nmhw24: next C90 comment fix 2019-08-14 09:07:57 +02:00
Rene Straub 0692b4d010 nmhw24: fix C90 comment style 2019-08-14 09:07:57 +02:00
Rene Straub 909be035f4 nmhw24: created target 2019-08-14 09:07:57 +02:00
York Sun f9d1cde9c0 pxe: Fix pxe boot with FIT image
When FIT image is used, a single image provides kernel, device
tree and optionally ramdisk. Argc and argv need to be adjusted
to support this.

Test cases:
	1. Booting with legacy images
	2. Booting with legacy images without initrd
	3. Booting with FIT image
Test commands:
	1. pxe get && pxe boot
	2. sysboot

Signed-off-by: York Sun <york.sun@nxp.com>
Signed-off-by: Wenbin Song <wenbin.song@nxp.com>
(cherry picked from commit f63963f048)
2019-08-09 14:38:52 +02:00
Alexandre Bard 665f70c8a5 hw20: Update environnement to boot ostree image
BugzID: 57957
2019-07-16 17:30:30 +02:00
Alexandre Bard 71994a6136 nmhw21: Boot using only the fitImage
Since thud release, the initramfs used to start the ostree image
is also included in the fitImage. Therefore only this fitImage is
now required.

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-06-29 01:01:27 +02:00
Rene Straub 5c5c0b98fe nmhw21: don't power up GSM modem at startup
BugzID: 57459
2019-06-12 12:59:11 +02:00
Rene Straub ccb5de587f nmhw21: provide bootloader version in device tree 2019-06-04 08:00:02 +02:00
Alexandre Bard baa5e4fcea hw16: Make compatible with ostree 2019-04-15 17:13:58 +02:00
Alexandre Bard 1862aa951b hw16: Use mmcblk1 as root
Since Kernel 4.14 the mmc label have changed and root is on mmc1
while mmc0 is the mmc interface on which the wifi chip is conntected
2019-04-12 09:25:00 +02:00
Rene Straub 87657dd68f nmhw21: fix wrong hw version of user module
- hw version of UM was set to version of base board
2019-04-01 15:06:35 +02:00
Rene Straub 29d7a20fdb nmhw21: support for user module device tree node
- fill out /user_module node with:
  - status: okay/disabled
  - model: UM type
  - hw version/revision
  - network configuration
- show product variant in boot log
- set product variant in device tree /model
2019-03-30 14:14:46 +01:00
Rene Straub 3e938e9ab8 nmhw21: add support for UM network config
- get network configuration from UM via I2C
- provide method to retrieve IP and mask
2019-03-30 12:22:47 +01:00
Rene Straub db067fefdd nm: cleanup board descriptor library
- fix documentation/license information
- fix missing includes (dependancies, own header file)
- fix declaration mismatches
- fix data types
- fix parentheses
- fix order of functions in source/header
2019-03-30 11:07:39 +01:00
Wieslaw Kubala f6a10e8995 nmhw21: update static configuration of SJA1105 switch
- set default VLAN ID for untagged frames to 4095,
- set ports 0-2 speed to 0 - allows linux driver to set speed later on.

BugzID: 55890
Signed-off-by: Wieslaw Kubala <wieslaw.kubala@netmodule.com>
2019-02-26 09:27:39 +01:00
Rene Straub 6901116337 nmhw21: fix user module version detection
- version register read requires a delay of 50ms
2019-02-18 11:56:09 +01:00
Wieslaw Kubala a135a2d3ac nmhw21: clean up static configuration of SJA1105 switch
- remove groupcast filter for 01:80:C2:00:00:0E address
- remove VLAN 1 and 73

BugzID: 55710
Signed-off-by: Wieslaw Kubala <wieslaw.kubala@netmodule.com>
2019-02-15 11:23:06 +01:00
Rene Straub d10a7daaaf nmhw21: fix broadr PHY addresses for HW v1.0
- set PHY Id 6 for broadr0 on v1.0
- set PHY Id 7 for broadr1 on v1.0

BugzId: 55529
2019-02-05 09:13:13 +01:00
Rene Straub d53bbfbc77 nmhw21: improve support for tja1102 dual phy
- install filter driver for mdio read funtion
- remove ghost phy at address 0
- report phy type also for 2nd port

BugzId: 55131
2019-01-11 12:12:48 +01:00
Lucien Mueller fe1a692af7 nmhw21: remove kernel_image=zImage from u-boot env.
BugzID: 54718

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-01-09 15:32:45 +01:00
Rene Straub ec3ae39b9d nmhw21: cleanup board config file 2
- remove Androind fast boot stuff
- remove i2c i/o extender cli
2019-01-05 16:05:49 +01:00