This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:common:applications:gpio:1wire [2022/07/12 23:29] nick [Table] |
products:sbc:common:applications:gpio:1wire [2023/11/07 04:59] (current) nick old revision restored (2023/11/07 04:42) |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | This document mainly | + | This page introduces the usage of 1-Wire bus on [[products: |
===== 1-Wire Information ===== | ===== 1-Wire Information ===== | ||
- | | | + | You can find the default |
- | ^ VIM1/ | + | |
- | ^ VIM3/ | + | |
- | ^ VIM4 | + | |
+ | | | ||
+ | ^ VIM1/ | ||
+ | ^ VIM3/ | ||
+ | ^ VIM4 | ||
+ | ^ VIM1S | 36 | ||
+ | ^ Edge1 | 30 | ||
+ | | | ||
===== Enable 1-Wire Bus ===== | ===== Enable 1-Wire Bus ===== | ||
- | You can enable 1-Wire | + | In order to use the 1-Wire, you need to enable |
<tabbox VIM1/ | <tabbox VIM1/ | ||
- | Edit ''/ | + | Edit ''/ |
+ | |||
+ | Take VIM3 as an example to enable '' | ||
- | e.g. | ||
```shell | ```shell | ||
- | overlays=uart4 pwm_ao_a pwm_f i2c0 onewire | + | overlays=onewire |
``` | ``` | ||
+ | <tabbox VIM3 with 5.15 kernel> | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | e.g. To enable onewire, you need to add '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=onewire | ||
+ | |||
+ | ``` | ||
+ | |||
+ | <tabbox VIM3L with 5.15 kernel> | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | e.g. To enable onewire, you need to add '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=onewire | ||
+ | |||
+ | ``` | ||
+ | |||
<tabbox VIM4> | <tabbox VIM4> | ||
- | Edit ''/ | + | Edit ''/ |
- | e.g. | + | |
+ | e.g. To enable onewire, you need to add '' | ||
```shell | ```shell | ||
Line 36: | Line 65: | ||
``` | ``` | ||
+ | <tabbox VIM1S> | ||
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | e.g. To enable onewire, you need to add '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=onewire | ||
+ | |||
+ | ``` | ||
</ | </ | ||
<WRAP tip > | <WRAP tip > | ||
- | Reboot to effect. | + | Reboot |
</ | </ | ||
Line 69: | Line 108: | ||
``` | ``` | ||
- | Physical pins of 1-Wire | + | |
- | <tabbox VIM1/ | + | ===== Disable |
- | '' | + | |
- | <tabbox VIM3/3L> | + | If you want to use normal GPIO instead of 1-Wire, you can remove the 1-Wire node in [[products: |
- | '' | + | |
- | <tabbox VIM4> | + | |
- | '' | + | |
- | <tabbox Edge1> | + | |
- | '' | + | |
- | </ | + |