This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:configurations:device-tree-overlay [2023/06/05 04:05] nick [VIM4] |
products:sbc:common:configurations:device-tree-overlay [2026/05/11 02:18] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Device | + | ====== Device |
| We can use DT overlays to enable/ | We can use DT overlays to enable/ | ||
| Line 7: | Line 7: | ||
| https:// | https:// | ||
| - | ===== Device | + | ===== Device |
| - | ^ | + | ^ ^ Kernel Version |
| - | ^ VIM1 | + | ^ VIM1 | 4.9/ |
| - | ^ VIM2 | + | ^ VIM2 | 4.9/ |
| - | ^ VIM3 | + | ^ VIM3 | 4.9/ |
| - | ^ VIM3L | / | + | | ::: |
| - | ^ VIM1S | / | + | ^ VIM3L |
| - | ^ VIM4 | + | | ::: | 5.15 | / |
| - | ^ Edge2 | / | + | ^ VIM1S |
| - | ^ Edge1 | / | + | ^ VIM4 | 5.4/ |
| - | | ::: | + | ^ Edge2 |
| + | ^ Edge-2L | 6.1 | ||
| + | ^ Edge1 | ||
| + | | ::: | ::: | ||
| - | ===== Device | + | ===== Device |
| <tabbox VIM1/ | <tabbox VIM1/ | ||
| Line 65: | Line 68: | ||
| * If you want to disable '' | * If you want to disable '' | ||
| * If you want to enable '' | * If you want to enable '' | ||
| + | |||
| + | <tabbox VIM3 with 5.15 kernel> | ||
| + | |||
| + | DT-overlays '' | ||
| + | |||
| + | ```shell | ||
| + | khadas@Khadas: | ||
| + | uart3.dtbo | ||
| + | pwm_f.dtbo | ||
| + | i2c3.dtbo | ||
| + | spi1.dtbo | ||
| + | os08a10.dtbo | ||
| + | onewire.dtbo | ||
| + | disable-ts050.dtbo | ||
| + | m2x-eth.dtbo | ||
| + | otg-device.dtbo | ||
| + | ``` | ||
| + | |||
| + | DT-overlays configuration file: ''/ | ||
| + | |||
| + | <tabbox VIM3L with 5.15 kernel> | ||
| + | |||
| + | DT-overlays '' | ||
| + | |||
| + | ```shell | ||
| + | khadas@Khadas: | ||
| + | uart3.dtbo | ||
| + | pwm_f.dtbo | ||
| + | i2c3.dtbo | ||
| + | spi1.dtbo | ||
| + | os08a10.dtbo | ||
| + | onewire.dtbo | ||
| + | disable-ts050.dtbo | ||
| + | m2x-eth.dtbo | ||
| + | otg-device.dtbo | ||
| + | ``` | ||
| + | |||
| + | DT-overlays configuration file: ''/ | ||
| <tabbox VIM4> | <tabbox VIM4> | ||
| Line 104: | Line 145: | ||
| DT-overlays configuration file: ''/ | DT-overlays configuration file: ''/ | ||
| + | |||
| + | <tabbox Edge-2L> | ||
| + | |||
| + | DT-overlays '' | ||
| + | |||
| + | ```shell | ||
| + | khadas@Khadas: | ||
| + | edge-2l-io-pwm.dtbo | ||
| + | edge-2l-io-spi.dtbo | ||
| + | ``` | ||
| + | |||
| + | DT-overlays configuration file: ''/ | ||
| </ | </ | ||
| - | ===== Configuration DT Overlays | + | ===== Configuration DT overlays |
| You need to edit the DT overlays configuration file and add custom DT overlays '' | You need to edit the DT overlays configuration file and add custom DT overlays '' | ||
| - | ===== Make custom DT Overlays | + | ===== Make custom DT overlays |
| There are some preparations steps for DT overlays '' | There are some preparations steps for DT overlays '' | ||
| - | ==== Write DT Overlay Source==== | + | ==== Write DT overlay source==== |
| Basic DT overlay source example: | Basic DT overlay source example: | ||
| Line 134: | Line 187: | ||
| ``` | ``` | ||
| - | ==== Compile DT Overlay Source | + | ==== Compile DT overlay source |
| ```sh | ```sh | ||
| Line 140: | Line 193: | ||
| ``` | ``` | ||
| - | ==== Copy DT Overlays | + | ==== Copy DT overlays |
| + | * VIM3 with 5.15 kernel is ''/ | ||
| + | * VIM3L with 5.15 kernel is ''/ | ||
| * VIM4 is ''/ | * VIM4 is ''/ | ||
| * VIM1S is ''/ | * VIM1S is ''/ | ||
| * Edge2 is ''/ | * Edge2 is ''/ | ||
| + | * Edge-2L is ''/ | ||
| * VIM1/ | * VIM1/ | ||
| Line 151: | Line 207: | ||
| </ | </ | ||
| - | ==== Edit DT Overlays Configuration | + | ==== Edit DT overlays configuration |
| Edit list variable value inside DT overlay configuration file: | Edit list variable value inside DT overlay configuration file: | ||
| * VIM1/ | * VIM1/ | ||
| - | * VIM4 is ''/ | + | * VIM3 with 5.15 kernel |
| + | * VIM3L with 5.15 kernel is ''/ | ||
| + | * VIM4 is ''/ | ||
| * VIM1S is ''/ | * VIM1S is ''/ | ||
| * Edge2 is ''/ | * Edge2 is ''/ | ||
| + | * Edge-2L is ''/ | ||
| ==== Reboot ==== | ==== Reboot ==== | ||
| Need reboot board to take effect. | Need reboot board to take effect. | ||