[FE training-materials-updates] Improve the OMAP pinmux example

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Sep 27 10:23:53 CEST 2013


Repository : git://git.free-electrons.com/training-materials.git

On branch  : kernel-ng
Link       : http://git.free-electrons.com/training-materials/commit/?id=1d04cf258822e85ebbf50de6c636ab28a2ef32e5

>---------------------------------------------------------------

commit 1d04cf258822e85ebbf50de6c636ab28a2ef32e5
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date:   Fri Sep 27 10:23:28 2013 +0200

    Improve the OMAP pinmux example
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>


>---------------------------------------------------------------

1d04cf258822e85ebbf50de6c636ab28a2ef32e5
 slides/kernel-pinmuxing/kernel-pinmuxing.tex |   38 ++++++++++++++++++--------
 1 file changed, 27 insertions(+), 11 deletions(-)

diff --git a/slides/kernel-pinmuxing/kernel-pinmuxing.tex b/slides/kernel-pinmuxing/kernel-pinmuxing.tex
index 194ed28..c63e4e7 100644
--- a/slides/kernel-pinmuxing/kernel-pinmuxing.tex
+++ b/slides/kernel-pinmuxing/kernel-pinmuxing.tex
@@ -96,16 +96,22 @@ i2c at 11000 {
 \end{frame}
 
 \begin{frame}[fragile]{Example on OMAP/AM33xx}
-  \begin{itemize}
-  \item On OMAP/AM33xx, the \code{pinctrl-single} driver is used. It
-    is common between multiple SoCs and simply allows to configure
-    pins by writing a value to a register.
+  \begin{columns}
+    \column{0.5\textwidth}
     \begin{itemize}
-    \item In each pin configuration, a \code{pinctrl-single,pins} value
-      gives a list of {\em (register, value)} pairs needed to configure
-      the pins.
+      \small
+    \item On OMAP/AM33xx, the \code{pinctrl-single} driver is used. It
+      is common between multiple SoCs and simply allows to configure
+      pins by writing a value to a register.
+      \begin{itemize}
+      \item In each pin configuration, a \code{pinctrl-single,pins} value
+        gives a list of {\em (register, value)} pairs needed to configure
+        the pins.
+      \end{itemize}
+    \item To know the correct values, one must use the SoC and board
+      datasheets.
     \end{itemize}
-  \item Example:
+    \column{0.5\textwidth}
     \begin{minted}[fontsize=\tiny]{perl}
 am33xx_pinmux: pinmux at 44e10800 {
     i2c0_pins: pinmux_i2c0_pins {
@@ -117,10 +123,20 @@ am33xx_pinmux: pinmux at 44e10800 {
         >;
     };
 };
+
+i2c0: i2c at 44e0b000 {
+        pinctrl-names = "default";
+        pinctrl-0 = <&i2c0_pins>;
+
+        status = "okay";
+        clock-frequency = <400000>;
+
+        tps: tps at 2d {
+                reg = <0x2d>;
+        };
+};
     \end{minted}
-  \item To know the correct values, one must use the SoC and board
-    datasheets.
-  \end{itemize}
+  \end{columns}
 \end{frame}
 
 \begin{frame}[fragile]{Example on Allwinner SoC}



More information about the training-materials-updates mailing list