Alexandre Bard
0f134062c4
HW21: Enable fdt overlay support
2022-04-25 18:34:29 +02:00
Maxime Ripard
a07c415712
libfdt: Add overlay application function
...
The device tree overlays are a good way to deal with user-modifyable
boards or boards with some kind of an expansion mechanism where we can
easily plug new board in (like the BBB, the Raspberry Pi or the CHIP).
Add a new function to merge overlays with a base device tree.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2022-04-25 18:32:06 +02:00
Pantelis Antoniou
2e4fc315fa
fit: Introduce methods for applying overlays on fit-load
...
Introduce an overlay based method for constructing a base DT blob
to pass to the kernel.
It is based on a specific method now to get the FDT from a FIT image
named boot_get_fdt_fit().
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Acked-by: Simon Glass <sjg@chromium.org>
2022-04-22 16:48:28 +02:00
Pantelis Antoniou
afc09cd970
fit: Do not throw away extra configuration on fit_image_load()
...
fit_image_load() threw away the extra configuration parts when
loading. We need them around for applying extra overlays for
building the boot fdt.
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Acked-by: Simon Glass <sjg@chromium.org>
2022-04-22 16:45:15 +02:00
Pantelis Antoniou
d697a7ecfd
fit: Allow multiple images per property
...
As part of the fdt overlay support which need it, allow
a list of configurations per property.
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Acked-by: Simon Glass <sjg@chromium.org>
2022-04-22 16:45:07 +02:00
Alexandre Bard
43707e6a23
Prepare v2016.07
...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAABAgAGBQJXg+z8AAoJEIf59jXTHXZSL5oP/jNMyie/wW9Le92mK5in9QAl
iMHsZdtC4K4ZCou6V20hjIchMC21G2swyKrQA+T1Da4EgJhHJ7FVPWvgFUiQeQ8u
Pu+lPsB0ObdX8dcIY3SkdHzKyedhk+L0wGkzE/rgDvqHkVRHtB61pcksu5GA09eW
jWsbu55RmNXxz9mPyQjAbksflDHVqnmpe5LyaynJFG7TmTNgJ9IZWUlubu0hVAhI
eFUcEDWAMNMOr6DY3Ot9oS8v8ncNDkUrZzOhr4DsU8WLKfv8XoltohSwYm9Hu3TD
K57tbgK+uUVYKezVF2d90WY1xeezzQpHcEOTTYPy58E06vENUvwJuEh4s4/2rOWd
ivR6ETNn/v+tR09i7m0X36jpAFOrfC79uUY4iekyexlfiXAwSl6G43v1bwai7I/c
Gw68HYRu0kR8iQGvlv5d/kf+nUXSu45nqgeD6Kurw2cHiAsv+wkbS3H8b8Rcuv02
bsdybOQdFGiTo1LUzMQiglEPycXdu33g+OQhded5SFCMTvU4AoRZkQ9cO3UEMq32
aJK+0qUdtlzjstsoaUnxi3mZCLdEXyAVu8cmUnRvpL4QU8rmy8QjEgMnypSK/RhV
SAYw1iu02qdYbp605re9g02H2oA2IslVKacEvG5Ag91JOKf8rJbjYFcx/WDWgBHM
YV02EcYzCFiwFTesqrvx
=lX5/
-----END PGP SIGNATURE-----
Merge tag 'v2016.07' into 2016.05-am335x-netmodule-fdt-overlay
Prepare v2016.07
2022-04-22 16:07:08 +02: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