[PATCH 2/8] Add uli1575 pci-bridge sector to MPC8641HPCN dts file.
Segher Boessenkool
segher at kernel.crashing.org
Mon Jun 4 04:56:47 EST 2007
>>> Otherwise the "feature" of this RTC is that its interrupt
>>> is not connected.
>>
>> Dunno what you mean here?
>
> On a standard PC, the RTC is connected to interrupt
> 8 of the 8259 pair.
Ah okay. This RTC is a completely different device
though. It does have an interrupt line, but it might
very well not be connected anywhere.
>>> Actually I wonder
>>> whether using PNP0B00 is correct in the residual data here.
>>
>> It's not correct at all, no.
>
> Ok. I don't know well the PNP spec.
b00 means PC-AT style RTC.
> I don't really remember
> also what the chip identification means in the residual data,
> but it is always MOT3040.
I searched for that too, but couldn't find anything else
than Linux-on-PReP related stuff ;-)
> OTOH, there is a but in more
> recent versions, that claims that the NVRAM data size is
> 32768 and not 8192...
You can fix that in the device tree :-)
>> Not sure how best to describe this thing -- one master
>> node with a kid for both nvram and rtc; one node; or
>> perhaps one node for rtc, with a child node for nvram.
>
> Hey, at least you now understand why I was asking the question :-)
Yeah, it's a bit nasty case. Since it _is_ one device,
you really want to describe it as such -- but it also
is nice to describe the nvram functionality separately.
I think I'd go for
rtc at i74 {
device_type = "rtc";
reg = <1 74 4>;
compatible = "MK42whatever";
nvram {
device_type = "nvram";
#bytes = <1ff0>;
}
}
or something like that. You'll have to do the device
matching as one device, but the driver has to know they
are one device *anyway* :-)
> This is the only device on these boards that really causes
> me trouble, for all the others I think I can get a reasonable
> description in the device tree.
Great to hear, looking forward to seeing it.
Segher
More information about the Linuxppc-dev
mailing list