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 [2022/09/22 02:36] hyphop |
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/disable |
| + | |||
| + | ===== DT collections | ||
| + | |||
| + | https:// | ||
| ===== Device reference table ====== | ===== Device reference table ====== | ||
| - | ^ | + | ^ ^ 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 configurations ===== | ===== Device configurations ===== | ||
| Line 23: | Line 30: | ||
| <WRAP important > | <WRAP important > | ||
| - | **BOARD** should be '' | + | **BOARD** should be '' |
| </ | </ | ||
| Line 31: | Line 38: | ||
| ```shell | ```shell | ||
| - | khadas@Khadas: | + | khadas@Khadas: |
| disable-ts050.dtbo | disable-ts050.dtbo | ||
| i2c3.dtbo | i2c3.dtbo | ||
| Line 42: | Line 49: | ||
| ``` | ``` | ||
| - | DT-overlays configuration file: ''/ | + | DT-overlays configuration file: |
| - | ```txt | + | ```txt /boot/env.txt |
| # Device Tree Overlays | # Device Tree Overlays | ||
| # | # | ||
| Line 61: | 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> | ||
| - | DT-overlays '' | + | DT-overlays '' |
| ```shell | ```shell | ||
| - | khadas@Khadas: | + | khadas@Khadas: |
| - | total 28 | + | ext_board.dtbo |
| - | -rwxr-xr-x 1 root root 462 Jul 6 14:55 ext_board.dtbo | + | i2cm_a.dtbo |
| - | -rwxr-xr-x 1 root root 223 Jul 6 14:55 i2cm_a.dtbo | + | i2cm_f.dtbo |
| - | -rwxr-xr-x 1 root root 223 Jul 6 14:55 i2cm_f.dtbo | + | pwm_f.dtbo |
| - | -rwxr-xr-x 1 root root 225 Jul 6 14:55 pwm_f.dtbo | + | uart_e.dtbo |
| - | -rwxr-xr-x 1 root root 225 Jul 6 14:55 uart_e.dtbo | + | |
| ``` | ``` | ||
| Line 83: | Line 127: | ||
| ```shell | ```shell | ||
| - | khadas@Khadas: | + | khadas@Khadas: |
| - | total 28 | + | i2cm_b.dtbo |
| - | -rw-rw-r-- 1 root root 223 Aug 12 10:59 i2cm_b.dtbo | + | i2cm_e.dtbo |
| - | -rw-rw-r-- 1 root root 223 Aug 12 10:59 i2cm_e.dtbo | + | pwm_f.dtbo |
| - | -rw-rw-r-- 1 root root 345 Aug 12 10:59 pwm_f.dtbo | + | uart_c.dtbo |
| - | -rw-rw-r-- 1 root root 225 Aug 12 10:59 uart_c.dtbo | + | |
| ``` | ``` | ||
| - | |||
| DT-overlays configuration file is ''/ | DT-overlays configuration file is ''/ | ||
| <tabbox Edge2> | <tabbox Edge2> | ||
| - | DT-overlays '' | + | DT-overlays '' |
| ```shell | ```shell | ||
| Line 103: | 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: ''/ | ||
| </ | </ | ||
| Line 108: | Line 162: | ||
| ===== Configuration DT overlays ===== | ===== Configuration DT overlays ===== | ||
| - | Need 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 ===== | ||
| Line 116: | Line 170: | ||
| ==== Write DT overlay source==== | ==== Write DT overlay source==== | ||
| - | Basic example: | + | Basic DT overlay source |
| ```dts example.dts | ```dts example.dts | ||
| Line 141: | Line 195: | ||
| ==== Copy DT overlays to special folder ==== | ==== Copy DT overlays to special folder ==== | ||
| + | * VIM3 with 5.15 kernel is ''/ | ||
| + | * VIM3L with 5.15 kernel is ''/ | ||
| * VIM4 is ''/ | * VIM4 is ''/ | ||
| * VIM1S is ''/ | * VIM1S is ''/ | ||
| * Edge2 is ''/ | * Edge2 is ''/ | ||
| - | * VIM1/ | + | |
| + | | ||
| <WRAP important > | <WRAP important > | ||
| - | **BOARD** should be '' | + | **BOARD** should be '' |
| </ | </ | ||
| Line 155: | Line 212: | ||
| * VIM1/ | * VIM1/ | ||
| + | * 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 ''/ | ||
| ==== Reboot ==== | ==== Reboot ==== | ||
| Need reboot board to take effect. | Need reboot board to take effect. | ||