All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC WIP PATCH v1 0/7] wandboard: add imx6dl rev d1 support
@ 2020-01-14  6:13 Heiko Schocher
  2020-01-14  6:13 ` [RFC WIP PATCH v1 1/7] wandboard: Import the dts files for the other revd1 variants Heiko Schocher
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Heiko Schocher @ 2020-01-14  6:13 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-01-17 22:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-14  6:13 [RFC WIP PATCH v1 0/7] wandboard: add imx6dl rev d1 support Heiko Schocher
2020-01-14  6:13 ` [RFC WIP PATCH v1 1/7] wandboard: Import the dts files for the other revd1 variants Heiko Schocher
2020-01-14  6:13 ` [RFC WIP PATCH v1 2/7] wandboard: Handle the imx6dl and imx6q revd1 boards Heiko Schocher
2020-01-14  6:13 ` [RFC WIP PATCH v1 3/7] wandboard: reorder board_fit_config_name_match Heiko Schocher
2020-01-14  6:13 ` [RFC WIP PATCH v1 4/7] wandboard: enable CONFIG_DTB_RESELECT Heiko Schocher
2020-01-14  6:13 ` [RFC WIP PATCH v1 5/7] wandboard: use imx6dl-wandboard-revd1 as default DTB Heiko Schocher
2020-01-14  6:13 ` [RFC WIP PATCH v1 6/7] wandboard: add u-boot specific *wandboard-revd1-u-boot.dtsi Heiko Schocher
2020-01-15 19:52   ` Fabio Estevam
2020-01-16  6:18     ` Heiko Schocher
2020-01-17 22:52       ` Fabio Estevam
2020-01-14  6:13 ` [RFC WIP PATCH v1 7/7] wandboard: in SPL use only D1 DTB Heiko Schocher
2020-01-15 19:54   ` Fabio Estevam
2020-01-16  6:20     ` Heiko Schocher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.