Re: [PATCH v2 1/1] dt-bindings: rtc: nxp, pcf85063: Convert to DT schema

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

 



Hello Krzysztof,

thanks for your feedback.

Am Donnerstag, 21. Juli 2022, 15:43:13 CEST schrieb Krzysztof Kozlowski:
> On 21/07/2022 15:33, Alexander Stein wrote:
> > Convert the NXP PCF85063 RTC binding to DT schema format.
> > 
> > Add 'interrupts' and 'wakeup-source' as this device has an interrupt
> > which was not documented, but is in use.
> > 'clock-output-names' and '#clock-cells' are added as well, those were
> > probably missed when adding clkout support in commit 8c229ab6048b
> > ("rtc: pcf85063: Add pcf85063 clkout control to common clock framework")
> 
> Thanks for adding it here, this sounds fine but brought my attention to
> interrupts and quartz-load. It seems that only rv8263 supports
> interrupts. In the same time rv8263 work only with 7000
> quartz-load-femtofarads.
> 
> If that's correct, you need to put "allOf" after "required" and inside
> "if:then:" restricting it. For rv8263 interrupts:true and quartz as
> const 7000, for else: interrupts:false.

It is slightly different. In all the datasheets I found there was an IRQ pin, 
so this applies to all models, although only some of them (PCF85063A, 
PCF85073A and RV8263) support alarms, which is what Linux cares for right now. 
But this is handles in the driver already.
quartz-load-femtofarads does not apply to RV8263, because it has no OSCI pins 
at all but uses an onboard oscillator. See commit 5b3a3ade0293 ("rtc: 
pcf85063: add Micro Crystal RV8263 support") for that. But this also handled 
in the driver already.
Apart from that apparently only PCF85063 has a fixed quartz-load of 7pF, the 
other types supported can have either 7 oder 12.5 pF.

Best regards,
Alexander






[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux