[PATCH 1/4] power: regulator: Trigger probe of regulators which are always-on or boot-on
Marek Vasut
marex at denx.de
Sun Jul 28 22:08:30 CEST 2024
On 7/28/24 9:02 PM, Svyatoslav wrote:
Hi,
I'm trimming the CC because I keep getting ML blockage due to large CC
list. If someone has been removed too hastily, sorry.
> 28 липня 2024 р. 21:35:27 GMT+03:00, Marek Vasut <marex at denx.de> написав(-ла):
>> On 7/28/24 7:55 PM, Svyatoslav Ryhel wrote:
>>> нд, 28 лип. 2024 р. о 19:38 Marek Vasut <marex at denx.de> пише:
>>>>
>>>> On 6/27/24 1:55 AM, Marek Vasut wrote:
>>>>> In case a regulator DT node contains regulator-always-on or regulator-boot-on
>>>>> property, make sure the regulator gets correctly configured by U-Boot on start
>>>>> up. Unconditionally probe such regulator drivers. This is a preparatory patch
>>>>> for introduction of .regulator_post_probe() which would trigger the regulator
>>>>> configuration.
>>>>>
>>>>> Parsing of regulator-always-on and regulator-boot-on DT property has been
>>>>> moved to regulator_post_bind() as the information is required early, the
>>>>> rest of the DT parsing has been kept in regulator_pre_probe() to avoid
>>>>> slowing down the boot process.
>>>>
>>>> Is there anything blocking this series from being applied ?
>>>
>>> This patchset causes PMIC regulators probe too early which results in
>>> i2c line setup failure. These patches MUST NOT be applied in this form
>>> since they will break at least 15 Tegra 3 devices which use DM PMIC,
>>> maybe more.
>>
>> Thank you for testing. I do not have any tegra 3 devices, but this patchset does not do anything with pinmuxing. If a regulator is probed, all of its dependencies (i2c bus, pinmux configuration, etc.) should be probed as well. Can you have a look at what the problem with pinmuxing is on tegra 3? It seems it might be unrelated to this patchset and would eventually show up elsewhere?
>
> Pinmux? Wdym, I wrote about a PMIC which is usually located on i2c line.
>
> <https://patchwork.ozlabs.org/project/uboot/patch/20231003062126.42026-4-clamor95@gmail.com/>
>
> This is a similar patch.
>
> You may be able to reproduce the issue I face if you have a device which uses SPL and has DM PMIC with regulators that need always-on/boot-on properties.
I actually do use:
configs/imx8mp_dhcom_pdk3_defconfig:CONFIG_DM_PMIC=y
configs/imx8mp_dhcom_pdk3_defconfig:CONFIG_DM_PMIC_PCA9450=y
configs/imx8mp_dhcom_pdk3_defconfig:CONFIG_SPL_DM_PMIC_PCA9450=y
which is one of the devices I test this on.
The PMIC is on I2C, DM_PMIC enabled in SPL, both buck4 and buck5
regulators are enabled in SPL, have regulator-always-on and
regulator-boot-on and bootph-pre-ram properties.
This seems similar enough, right ?
What is the problem you observe on tegra 3 ?
More information about the U-Boot
mailing list