Changes between Version 3 and Version 4 of FlattenedDeviceTree


Ignore:
Timestamp:
Oct 28, 2009, 11:16:27 AM (15 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FlattenedDeviceTree

    v3 v4  
    7373   Is the irq number in `icudev`.
    7474
     75Example:
     76{{{
     77icu@0 {
     78    device_type = "soclib:icu";
     79        input_count = <2>;
     80        reg = <0x20600000 0x20>;
     81        icudev = &{/cpus/Mips,32@0};
     82        irq = <0>;
     83};
     84
     85tty@0 {
     86        device_type = "soclib:tty";
     87        tty_count = <1>;
     88        reg = <0x90600000 0x10>;
     89        icudev = &{/icu@0};
     90        irq = <1>;
     91};
     92}}}
     93
     94Here the ICU device for `/tty@0` is `/icu@0` (device at address 0x20600000), which in turn references `/cpus/Mips,32@0` as its ICU device.
     95
    7596== Parameter structure construction for calling `_init` functions ==
    7697
     
    118139
    119140{{{
    120         tty@0 {
    121             device_type = "soclib:tty";
    122                 tty_count = <1>;
    123                 reg = <0x90600000 0x10>;
    124                 icudev = &{/icu@0};
    125                 irq = <1>;
    126         };
     141tty@0 {
     142        device_type = "soclib:tty";
     143        tty_count = <1>;
     144        reg = <0x90600000 0x10>;
     145        icudev = &{/icu@0};
     146        irq = <1>;
     147};
    127148}}}
    128149
    129150In turn, the SoCLib tty driver declares itself (in source:trunk/mutekh/drivers/device/char/tty-soclib/tty-soclib.c#L146) as:
     151
     152Note there is no parameter structure definition, so the two last arguments of `DEVENUM_FDTNAME_ENTRY` are 0.
    130153
    131154{{{