This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
products:sbc:vim4:configurations:device-tree-overlay [2022/07/06 02:48] nick |
products:sbc:vim4:configurations:device-tree-overlay [2022/07/13 21:04] nick |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Device Tree Overlay ====== | ||
- | ===== Introduction | + | ====== VIM4 Device Tree Overlay ====== |
- | You can use Device Tree Overlay feature to enable/ | ||
- | ===== Install DTBO Debian Package ===== | + | {{page> |
- | + | ||
- | + | ||
- | ===== Make Your Own DTBO Files ===== | + | |
- | + | ||
- | + | ||
- | There are some ready to use dtbo files, you can also add your own dtbos to enable or disable the peripherals. | + | |
- | + | ||
- | + | ||
- | ```sh | + | |
- | khadas@Khadas:~$ ll / | + | |
- | ``` | + | |
- | + | ||
- | * Write your own device tree overlay | + | |
- | /dts-v1/; | + | |
- | /plugin/; | + | |
- | + | ||
- | / { | + | |
- | fragment@0 { | + | |
- | target = <&i2c3>; | + | |
- | + | ||
- | __overlay__ { | + | |
- | status = " | + | |
- | | + | |
- | | + | |
- | }; | + | |
- | ``` | + | |
- | + | ||
- | This device tree overlay is to enable `i2c3`. | + | |
- | + | ||
- | * Compile it to dtbo ``` | + | |
- | khadas@Khadas: | + | |
- | khadas@Khadas: | + | |
- | example.dtbo | + | |
- | ``` | + | |
- | + | ||
- | * Move the dtbo file to ''/ | + | |
- | + | ||
- | * Edit ''/ | + | |
- | + | ||
- | * Reboot the board | + |