wandboard: Fix version detection for mx6q/mx6dl revD1
authorFabio Estevam <festevam@gmail.com>
Fri, 17 Apr 2020 12:27:09 +0000 (09:27 -0300)
committerStefano Babic <sbabic@denx.de>
Sat, 18 Apr 2020 10:59:23 +0000 (12:59 +0200)
commit4c13a4db60b4d570ea8cc496d02e5ea31adf27f0
tree1f533504a21a98e970932828ecb3aefd0546a643
parent84eea6a118e72ce6c487c6517bc32abc77b59c9c
wandboard: Fix version detection for mx6q/mx6dl revD1

The detection of the revD1 version is based on the presence of the PMIC.

Currently revb1 device trees are used for mx6q/mx6dl variants, which
do not have the PMIC nodes.

This causes revD1 boards to be incorrectly be detected as revB1.

Fix this issue by using the revd1 device trees, so that the PMIC node can be
found and then the PMIC can be detected by reading its register ID.

Imported the revd1 device trees from mainline kernel version 5.7-rc1.

Reported-by: Heiko Schocher <hs@denx.de>
Reported-by: Derek Atkins <derek@ihtfp.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Derek Atkins <derek@ihtfp.com>
Tested-by: Heiko Schocher <hs@denx.de>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
arch/arm/dts/Makefile
arch/arm/dts/imx6dl-wandboard-revb1.dts [deleted file]
arch/arm/dts/imx6dl-wandboard-revd1.dts [new file with mode: 0644]
arch/arm/dts/imx6q-wandboard-revb1.dts [deleted file]
arch/arm/dts/imx6q-wandboard-revd1.dts [new file with mode: 0644]
board/wandboard/wandboard.c
configs/wandboard_defconfig