Porting MIPS IRQ handler to ARM
Mason
slash.tmp at free.fr
Fri Sep 4 10:46:04 PDT 2015
On 04/09/2015 18:36, Måns Rullgård wrote:
> Mason wrote:
>
>> There's just too much DT syntax that flies light-years over my head.
>> #address-cells, #size-cells, #interrupt-cells, ranges, aliases, etc.
>> Basically, all I understand is /dts-v1/;
>> (Anyone have links to good tutorials?)
>>
>> I've attached the current version I'm playing with (I tried to make it
>> as small as possible). If some charitable soul spots an obvious problem...
>> (Commented blocks have been tested uncommented, of course.)
>
> What happens when you try to boot with this device tree?
It panics in tangox_irq_init IIRC.
> Are you sure these addresses are correct? Those are the values from
> tango3.
AFAIU, that HW block hasn't changed in a long time, but I'll
double-check to be sure.
>> interrupt-parent = <&gic>;
>> interrupt-controller;
>> #address-cells = <1>;
>> #size-cells = <1>;
>>
>> irqintc: irq at 000 {
>> reg = <0x000 0x100>;
>> interrupt-controller;
>> #interrupt-cells = <2>;
>> interrupts = <2>;
>
> This "interrupts" specification is wrong for a source wired into the
> GIC. For the correct format, see the binding spec in
> Documentation/devicetree/bindings/arm/gic.txt:
Doooh! I'd read that document (about 12 times) but for some
reason, it never occurred to me that I had to follow the
syntax for the intc (although that seems obvious now that
you mention it).
I suspect you've nailed my problem. Wish I could test right
away, but it'll have to wait after the weekend.
Thanks (again).
Regards.
More information about the linux-arm-kernel
mailing list