Rene Straub
4bbdb87d6b
hw21/26: set user serial port to RS485 by default
...
RS485 keeps the port passive, so that no other devices are disturbed.
2023-03-06 14:52:58 +01:00
Rene Straub
e1069f6d23
hw21/26: support backward compatible DT
2022-11-11 18:52:59 +01:00
Rene Straub
a9e615e7ae
hw21/26: add support for hw v3.2
...
Support uart4 for added RS232/485 interface
Move led0.green to new pin
2022-11-11 15:44:42 +01:00
Alexandre Bard
7b4add1789
nm-boards: Replace all devicetree paths with aliases
...
This is easier to maintain and should be compatible with any kernel
version as long as the devicetree aliases are maintained.
BugzID: 77112
2022-01-12 13:01:47 +01:00
Alexandre Bard
4832ca022a
netmodule boards: Adapt devicetree path to match kernel 5.10
...
With kernel upgrade to 5.10 the paths of all nodees have changed because
of the way the ti drivers are handled.
These paths must therefore be adaped in u-boot in order to stay
compatible.
This means that u-boot versions before this commit are not 100%
compatible with kernel 5.10, but they should usually be able to boot.
Also after this change, older kernel will not work 100% but should still
boot.
BugzID: 77112
2022-01-11 13:48:54 +01:00
Marc Mattmueller
2fa18965e6
board/nmhw21: keep coding style and replaced magic numbers
...
BugzID: 75833
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-12-01 11:03:45 +01:00
Lucien Mueller
a6b26419bc
hw21: introduce cpu watchdog reset reason.
...
BugzID: 74817
Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-09-16 10:57:47 +02:00
Marc Mattmueller
6cc285809d
hw21: clear register completely instead of masking watchdog timeout
...
With the introduction of the SSF watchdog feature a get and then a
set of the PMIC's CONTROL_D register leads to an activation of the
watchdog and causes a watchdog reset at the time the kernel is
being decompressed.
Currently we disable the watchdog from the bootloader and activate
it only in user space.
BugzID: 74659
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-09-08 09:32:32 +02:00
Rene Straub
3a9ef955c2
hw21/26: mask unwanted wakeup event by default
...
If events are not masked they lead to an immeditate
restart of the PMIC from powerdown().
2021-03-19 17:32:19 +01:00
Rene Straub
a39cba028a
hw21/26: enable pullup to set SIM_SW default high
2021-03-14 16:45:57 +01:00
Rene Straub
2997b916c1
hw21/26: add reset/start reason detection ( #67 )
...
Co-authored-by: Rene Straub <straub@see5.ch>
Reviewed-on: https://git.netmodule.intranet/nmrouter/u-boot/pulls/67
Co-Authored-By: Rene Straub <rene.straub@netmodule.com>
Co-Committed-By: Rene Straub <rene.straub@netmodule.com>
2021-03-03 15:02:13 +01:00
Rene Straub
e8475b4f80
hw25: swap mac addresses to reflect port numbering
2020-12-15 09:28:30 +01:00
Rene Straub
088d4c7ddf
hw21/26: remove trailing whitespaces
2020-12-10 15:02:37 +01:00
Rene Straub
3b18df525d
hw25: handle gpio variants
2020-12-02 08:25:07 +01:00
Rene Straub
24c0d5539e
i2c: omap24xx_i2c: Fix speed settings
...
Add set_speed function to adapters 2, 3 and 4 as well.
2020-12-01 16:36:25 +01:00
Rene Straub
6ca8df40e6
hw25: use lower (2nd) ethernet port
2020-11-27 19:54:04 +01:00
Rene Straub
6f10e899b1
hw25: fix io pin muxing for 2nd ethernet rmii
2020-11-27 19:49:23 +01:00
Rene Straub
e85e9ffa83
hw25: add variant handling
...
get variant information from product descriptor
configure device-tree accordingly
2020-11-27 15:49:52 +01:00
Rene Straub
0330a6b94f
hw25: add start reason detection
2020-11-27 15:46:39 +01:00
Rene Straub
7e9ca6d8fa
hw25: add methods for dio/serial PD entries
2020-11-27 15:42:23 +01:00
Rene Straub
f5b16d4cf7
hw21, 26: suppress power on with ignition off
...
power down system in SPL when ignition is not active on a
power-on start.
2020-11-18 16:49:50 +01:00
René Straub
f82ac7239a
hw21,26: add start/wakeup reason detection logic ( #58 )
...
Move detection logic before PMIC rails init
Add detection logic in hw21/26
Detect start events from pmic
Co-authored-by: Rene Straub <rene.straub@netmodule.com>
Reviewed-on: https://git.netmodule.intranet/nmrouter/u-boot/pulls/58
2020-11-09 10:13:45 +01:00
Rene Straub
dc6ed546db
hw25: take USB/SD converter out of reset
2020-10-20 07:51:47 +02:00
Rene Straub
55332e5582
hw25: change defaultconsole to ttyS0
2020-10-20 07:27:45 +02:00
Rene Straub
1de7ebd031
hw25: enable rx function for IO_IN[0..3] gpios
2020-10-19 16:50:27 +02:00
Rene Straub
d3f9300741
hw25: add board type detection
2020-10-19 16:49:35 +02:00
Rene Straub
50dbe9d830
hw25: fix Ethernet phy ids
2020-10-16 21:19:10 +02:00
Rene Straub
820db26639
hw25: remove shieldcmd from boot
2020-10-16 21:17:41 +02:00
Rene Straub
5e1b277281
Fixed C++ comment in header file
2020-10-06 08:54:51 +02:00
Rene Straub
9f0dd0d481
Review, minor changes
2020-10-06 08:49:41 +02:00
Nicolas Gugger
c8a4189cd1
hw25: modified comment
2020-09-10 16:33:03 +02:00
Nicolas Gugger
29a9c27aa3
hw25: updated board and mux - ready for review
2020-09-10 15:49:58 +02:00
Nicolas Gugger
14cbc05115
hw25: cleaned up board and mux
2020-09-09 15:40:21 +02:00
Nicolas Gugger
2bc5815cb6
hw25: muxing intermediate save
2020-09-08 16:31:34 +02:00
Nicolas Gugger
13b003ae3b
hw25: remove shield support
2020-09-08 14:24:28 +02:00
Nicolas Gugger
1ac538b956
hw25: initial setup based on hw24
2020-09-08 14:07:21 +02:00
Rene Straub
f89b5527b7
hw21,26: set hw type in device-tree
...
- hardware type is stored as string under
/proc/device-tree/nm,carrierboard,type
2020-08-17 16:57:42 +02:00
Rene Straub
08e8a21515
hw21: fix RTC trimming
...
- commit 7336361d5c broke PMIC RTC trim for hw21
- fixed hw type detection in init_bd_spl()
2020-08-17 11:24:56 +02:00
Rene Straub
9b04a8130e
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
2020-08-13 13:53:38 +02:00
Lucien Mueller
93a35c7311
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>
2020-08-07 10:30:55 +02:00
Rene Straub
567a630018
hw21,hw26: remove ATECC test function
2020-06-26 16:23:40 +02:00
Rene Straub
3d8a85df86
hw21,hw26: fix incorrect dtb name for fdt_image
2020-06-25 17:27:35 +02:00
Rene Straub
e2bf817634
nmhw21,26: fix incorrect indentation
2020-06-15 16:00:47 +02:00
Rene Straub
e0f24ed684
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.
2020-06-15 15:08:56 +02:00
Rene Straub
7336361d5c
nmhw21,26: init pmic based on hw type
2020-06-15 14:18:32 +02:00
Rene Straub
a02c9b9da3
nmhw21,26: getting hardware type from BD
...
this is the precursor to make the bootloader hw26 aware.
2020-06-15 13:45:51 +02:00
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