[RFC WIP PATCH v1 0/7] wandboard: add imx6dl rev d1 support
Heiko Schocher
hs at denx.de
Tue Jan 14 07:13:07 CET 2020
This series is a RFC for adding support for the wandboard
revision d1 imx6dl boards. The first patch add the Device
tree from linux, the second add the detection for the
wandboard d1 imx6dl and imx6q versions. Both patches
are from Fabio.
Unfortunately this does not work out of the box, as for
the detection of D1 revisions in SPL only the PMIC can be
used. But we have no DM support in SPL on wandboard and adding
it would explod the size of SPL.
Solution:
- reorder board_fit_config_name_match to work correctly
may can be merged with Fabios 2. patch
- enable CONFIG_DTB_RESELECT so we can detect revision in
U-Boot before relocation and can reselect the correct
devicetree.
- set imx6dl-wandboard-revd1 as default devicetree, so we
have a devicetree which contains the PMIC.
- add u-boot specific devicetree, so i2c and pmic can
be detected before relocation.
- use in SPL only revision D1 DTB
With this patchset, U-Boot boots on imx6dl revision D1 board
after a soft reset. On hardreset, the PMIC does not respond
on i2c bus ... and rev d1 gets not detected ... this needs
more investigation.
@Fabio (or others): please test, if this patchset does not
break other board revisions!
Hack: If you need working current U-Boot on imx6dl rev d1
board, you can use the first 2 patches from this
patchset and change configuration to:
CONFIG_DEFAULT_DEVICE_TREE="imx6dl-wandboard-revd1"
CONFIG_OF_LIST="imx6dl-wandboard-revd1"
But this works only on imx6dl revision d1 boards.
Fabio Estevam (2):
wandboard: Import the dts files for the other revd1 variants
wandboard: Handle the imx6dl and imx6q revd1 boards
Heiko Schocher (5):
wandboard: reorder board_fit_config_name_match
wandboard: enable CONFIG_DTB_RESELECT
wandboard: use imx6dl-wandboard-revd1 as default DTB
wandboard: add u-boot specific *wandboard-revd1-u-boot.dtsi
wandboard: in SPL use only D1 DTB
arch/arm/dts/Makefile | 2 +
.../dts/imx6dl-wandboard-revd1-u-boot.dtsi | 11 ++++
arch/arm/dts/imx6dl-wandboard-revd1.dts | 19 +++++++
.../arm/dts/imx6q-wandboard-revd1-u-boot.dtsi | 11 ++++
arch/arm/dts/imx6q-wandboard-revd1.dts | 23 ++++++++
board/wandboard/wandboard.c | 53 ++++++++++++++++---
configs/wandboard_defconfig | 5 +-
7 files changed, 115 insertions(+), 9 deletions(-)
create mode 100644 arch/arm/dts/imx6dl-wandboard-revd1-u-boot.dtsi
create mode 100644 arch/arm/dts/imx6dl-wandboard-revd1.dts
create mode 100644 arch/arm/dts/imx6q-wandboard-revd1-u-boot.dtsi
create mode 100644 arch/arm/dts/imx6q-wandboard-revd1.dts
--
2.24.1
More information about the U-Boot
mailing list