Describing devices in the device tree

Alan Bennett embedded at akb.net
Wed Oct 17 04:36:44 EST 2007


I'm using a modified ep8248e.dts to describe my hardware and I want to
enable the use of 3 standard interrupts.

  1. irq5
  2. timer1
  3. timer2

How bad does this look?
soc --> cpm -->
                       timer {
                               device_type = "timer";
                               compatible = "fsl,mpc8248-timer";
                               interrupts = <c 8 d 8>;
                               interrupt-parent = <&PIC>;
                       };
                       irq5 {
                               device_type = "irq5";
                               compatible = "fsl,mpc8248-irq5";
                               interrupts = <17 8>;
                               interrupt-parent = <&PIC>;
                       };

-Alan



More information about the Linuxppc-dev mailing list