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 03:17] hyphop [Device configurations] |
products:sbc:common:configurations:device-tree-overlay [2023/11/07 04:18] (current) nick |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| We can use DT overlays to enable/ | We can use DT overlays to enable/ | ||
| - | ===== Device reference table ====== | + | ===== DT collections |
| - | ^ | + | https://github.com/khadas/khadas-linux-kernel-dt-overlays |
| - | ^ VIM1 | + | |
| - | ^ VIM2 | + | |
| - | ^ VIM3 | + | |
| - | ^ VIM3L | / | + | |
| - | ^ VIM1S | / | + | |
| - | ^ VIM4 | + | |
| - | ^ Edge2 | / | + | |
| - | ^ Edge1 | / | + | |
| - | | ::: | + | |
| - | ===== Device | + | ===== Device |
| + | |||
| + | ^ | ||
| + | ^ VIM1 | ||
| + | ^ VIM2 | ||
| + | ^ VIM3 | ||
| + | | ::: | ||
| + | ^ VIM3L | 4.9/ | ||
| + | | ::: | ||
| + | ^ VIM1S | 5.4/ | ||
| + | ^ VIM4 | ||
| + | ^ Edge2 | 5.10 | / | ||
| + | ^ Edge1 | 4.4 | ||
| + | | ::: | ::: | / | ||
| + | |||
| + | ===== Device Configurations | ||
| <tabbox VIM1/ | <tabbox VIM1/ | ||
| Line 23: | Line 29: | ||
| <WRAP important > | <WRAP important > | ||
| - | **BOARD** should be '' | + | **BOARD** should be '' |
| </ | </ | ||
| Line 31: | Line 37: | ||
| ```shell | ```shell | ||
| - | khadas@Khadas: | + | khadas@Khadas: |
| disable-ts050.dtbo | disable-ts050.dtbo | ||
| i2c3.dtbo | i2c3.dtbo | ||
| Line 61: | Line 67: | ||
| * 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 | ||
| Line 103: | Line 147: | ||
| </ | </ | ||
| - | ===== 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 |
| 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 example: | + | Basic DT overlay source |
| ```dts example.dts | ```dts example.dts | ||
| Line 130: | Line 174: | ||
| ``` | ``` | ||
| - | ==== Compile DT overlay source | + | ==== Compile DT Overlay Source |
| ```sh | ```sh | ||
| Line 136: | Line 180: | ||
| ``` | ``` | ||
| - | ==== 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 ''/ | ||
| - | * VIM1/ | + | * VIM1/ |
| <WRAP important > | <WRAP important > | ||
| - | **BOARD** should be '' | + | **BOARD** should be '' |
| </ | </ | ||
| - | ==== 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/ | ||
| + | * VIM3 with 5.15 kernel is ''/ | ||
| + | * VIM3L with 5.15 kernel is ''/ | ||
| * VIM4 is ''/ | * VIM4 is ''/ | ||
| * VIM1S is ''/ | * VIM1S is ''/ | ||