colibri_imx7: provide proper node name to pmic_get
PATCH 1/1 colibri_imx7: provide proper node name to pmic_get
From: Igor Opaniuk <[email protected]>
Implementation of pmic_get() uses uclass_find_device_by_name(), which behaviour was changed in 4213609cc7
("drivers: core: use strcmp when find device by name"). Now we have to supply full node name with unit address.
Fixes boot issue:
U-Boot 2019.07-00788-g0ef6e69a1e-dirty (Jul 19 2019 - 15:27:02 +0300)
CPU: Freescale i.MX7D rev1.3 1000 MHz (running at 792 MHz) CPU: Extended Commercial temperature grade (-20C to 105C) at 41C Reset cause: POR DRAM: 512 MiB
initcall sequence 9ffd3a4c failed at call 87803c61 (err=-19) ERROR Please RESET the board
---
board/toradex/colibri_imx7/colibri_imx7.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
board/toradex/colibri_imx7/colibri_imx7.c +2 -2
@@ -274,7 +274,7 @@ int power_init_board(void)int ret; - ret =pmic_get ("rn5t567" , &dev); + ret =pmic_get ("rn5t567 at 33" , &dev);if (ret)return ret; ver =pmic_reg_read (dev,RN5T567_LSIVER );
@@ -308,7 +308,7 @@ void reset_cpu(ulong addr) {struct udevice *dev; -pmic_get ("rn5t567" , &dev); +pmic_get ("rn5t567 at 33" , &dev);/* Use PMIC to reset, set REPWRTIM to 0 and REPWRON to 1 */ pmic_reg_write (dev,RN5T567_REPCNT ,0x1 );
Signature · 1 line
2.17.1
PATCH 1/1 colibri_imx7: provide proper node name to pmic_get
Quoted 15 lines · Igor Opaniuk
From: Igor Opaniuk <[email protected]>
Implementation of
pmic_get()usesuclass_find_device_by_name(), which behaviour was changed in4213609cc7
("drivers: core: use strcmp when find device by name"). Now we have to supply full node name with unit address.Fixes boot issue:
U-Boot 2019.07-00788-g0ef6e69a1e-dirty (Jul 19 2019 - 15:27:02 +0300)CPU: Freescale i.MX7D rev1.3 1000 MHz (running at 792 MHz) CPU: Extended Commercial temperature grade (-20C to 105C) at 41C Reset cause: POR DRAM: 512 MiB
Quoted 5 lines
initcall sequence
9ffd3a4cfailed at call87803c61(err=-19) ERROR Please RESET the boardFixes 4213609cc7("drivers: core: use strcmp when find device by name")Signed-off-by Igor Opaniuk <[email protected]>
Quoted 34 lines
---
board/toradex/colibri_imx7/colibri_imx7.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)board/toradex/colibri_imx7/colibri_imx7.c +2
-3@@ -274,7 +274,7 @@ int power_init_board(void)int ret; - ret =pmic_get ("rn5t567" , &dev); + ret =pmic_get ("rn5t567 at 33" , &dev);if (ret)return ret; ver =pmic_reg_read (dev,RN5T567_LSIVER );@@ -308,7 +308,7 @@ void reset_cpu(ulong addr) {struct udevice *dev; -pmic_get ("rn5t567" , &dev); +pmic_get ("rn5t567 at 33" , &dev);/* Use PMIC to reset, set REPWRTIM to 0 and REPWRON to 1 */ pmic_reg_write (dev,RN5T567_REPCNT ,0x1 ); --2.17.1
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot
Signature · 6 lines
Best regards Oleksandr Suvorov Toradex AG Altsagenstrasse 5 | 6048 Horw/Luzern | Switzerland | T: +41 41 500 4800 (main line)