Re: [PATCH v4] ARM: dts: exynos: Add Samsung Galaxy Tab 3 8.0 boards

From: Krzysztof Kozlowski
Date: Fri Jun 23 2023 - 04:04:39 EST


On 22/06/2023 14:52, Artur Weber wrote:
> On 04/06/2023 21:15, Krzysztof Kozlowski wrote:
>> On 04/06/2023 18:56, Artur Weber wrote:
>>> +/*
>>> + * This device does not use the built-in RTC; instead, the RTC in the
>>> + * S5M8786 PMIC is used instead. Remove the unused node to avoid DTB check
>>> + * warnings.
>>> + */
>>> +/delete-node/ &rtc;
>>
>> This is not the solution. The S3C RTC is there. Just like all other
>> boards we have two RTCs and DTS should be complete. Definitely you
>> should not remove something just because there were warnings. Instead
>> warnings should be fixed.
>
> The problem is that the built-in RTC does not seem to work on this
> device. I attempted to add it, using the same clocks as other devices
> in mainline using the S5M8676 PMIC:
>
> &rtc {
> status = "okay";
> clocks = <&clock CLK_RTC>, <&s5m8767_osc S2MPS11_CLK_AP>;
> clock-names = "rtc", "rtc_src";
> };
>
> However, it just prints the following on startup:
>
> s3c-rtc 10070000.rtc: rtc disabled, re-enabling
> s3c-rtc 10070000.rtc: registered as rtc0
> s3c-rtc 10070000.rtc: hctosys: unable to read the hardware clock

This should be debugged then... but with explanation is fine to leave
the node disabled.

Removal of nodes is almost never correct.


Best regards,
Krzysztof