Re: [PATCH 5/5] arm64: tegra: Add regulators for Tegra210 Darcy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/11/2018 6:14 PM, Thierry Reding wrote:
> On Tue, Dec 11, 2018 at 11:01:07AM +0800, Mark Zhang wrote:
>> All comments make sense and will be addressed in next version, thanks
>> Thierry.
>>
>> BTW, I saw that "enable-active-high" and "gpio-open-drain" have been
>> removed from fixed regulator driver. It seems that they will be handled
>> in gpiolib so I guess it should not have impact on DTS? Anyway let me
>> know if dts needs to be changed as well.
> 
> Looks to me like enable-active-high is handled in of_gpio_flags_quirks()
> and gpio-open-drain is completely ignored for "regulator-fixed". I think
> the enable-active-high should stay, but from the above it sounds like it
> should all still work if you just remove "gpio-open-drain".
> 

Yeah actually gpio-open-drain is also parsed in of_gpio_flags_quirks,
but it's only done when the compatible string is: reg-fixed-voltage. Is
this an old compatible name of "regulator-fixed"? Besides, the code
shows that we need to update the DTS:

pr_info("%s uses legacy open drain flag - update the DTS if you can\n",
	of_node_full_name(np));

Does "update DTS if you can" mean to remove the gpio-open-drain?

Mark

> Thierry
> 



[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux