Changes between Version 3 and Version 4 of FlattenedDeviceTree
- Timestamp:
- Oct 28, 2009, 11:16:27 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FlattenedDeviceTree
v3 v4 73 73 Is the irq number in `icudev`. 74 74 75 Example: 76 {{{ 77 icu@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 85 tty@0 { 86 device_type = "soclib:tty"; 87 tty_count = <1>; 88 reg = <0x90600000 0x10>; 89 icudev = &{/icu@0}; 90 irq = <1>; 91 }; 92 }}} 93 94 Here 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 75 96 == Parameter structure construction for calling `_init` functions == 76 97 … … 118 139 119 140 {{{ 120 121 122 123 124 125 126 141 tty@0 { 142 device_type = "soclib:tty"; 143 tty_count = <1>; 144 reg = <0x90600000 0x10>; 145 icudev = &{/icu@0}; 146 irq = <1>; 147 }; 127 148 }}} 128 149 129 150 In turn, the SoCLib tty driver declares itself (in source:trunk/mutekh/drivers/device/char/tty-soclib/tty-soclib.c#L146) as: 151 152 Note there is no parameter structure definition, so the two last arguments of `DEVENUM_FDTNAME_ENTRY` are 0. 130 153 131 154 {{{