[bootlin/training-materials updates] master: slides/sysdev-hw-devices: add details about I2C sensor (61f6b148)
Michael Opdenacker
michael.opdenacker at bootlin.com
Wed Sep 28 14:04:31 CEST 2022
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/61f6b1488836256d39c6c6a1f3109e7528ccd7d3
>---------------------------------------------------------------
commit 61f6b1488836256d39c6c6a1f3109e7528ccd7d3
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Wed Sep 28 14:04:31 2022 +0200
slides/sysdev-hw-devices: add details about I2C sensor
Corresponding to questions from participants
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
61f6b1488836256d39c6c6a1f3109e7528ccd7d3
slides/sysdev-hw-devices/sysdev-hw-devices.tex | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/slides/sysdev-hw-devices/sysdev-hw-devices.tex b/slides/sysdev-hw-devices/sysdev-hw-devices.tex
index 1731f139..e89b129e 100644
--- a/slides/sysdev-hw-devices/sysdev-hw-devices.tex
+++ b/slides/sysdev-hw-devices/sysdev-hw-devices.tex
@@ -1818,7 +1818,7 @@ pinctrl_z: pin-controller-z at 54004000 {
dtb-$(CONFIG_ARCH_STM32) += \
...
stm32mp157a-dk1.dtb \
- stm32mp157a-dk1-custom.dtb
+ stm32mp157a-dk1-custom.dtb \
\end{verbatim}
}
\end{block}
@@ -1869,7 +1869,7 @@ dtb-$(CONFIG_ARCH_STM32) += \
\end{columns}
\end{frame}
-\begin{frame}[fragile]{Example: connect I2C sensor}
+\begin{frame}[fragile]{Example: connect I2C temperature, humidity and pressure sensor}
\begin{columns}
\column{0.5\textwidth}
\begin{block}{stm32mp157a-dk1-custom.dts}
@@ -1894,7 +1894,11 @@ dtb-$(CONFIG_ARCH_STM32) += \
\begin{block}{shell}
{\tiny
\begin{verbatim}
-# cat /sys/bus/iio/devices/iio:device2/in_temp_input
+# cat /sys/bus/iio/devices/iio\:device2/in_humidityrelative_input
+49147
+# cat /sys/bus/iio/devices/iio\:device2/in_pressure_input
+101.567167968
+# cat /sys/bus/iio/devices/iio\:device2/in_temp_input
24380
\end{verbatim}
}
More information about the training-materials-updates
mailing list