[FE training-materials-updates] kernel-serial-iomem: unindent DT to fit into page

Alexandre Belloni alexandre.belloni at free-electrons.com
Thu Nov 7 21:23:06 CET 2013


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

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=735f60dbf5dba44ff481f258058990e0a73bdb59

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

commit 735f60dbf5dba44ff481f258058990e0a73bdb59
Author: Alexandre Belloni <alexandre.belloni at free-electrons.com>
Date:   Thu Nov 7 15:22:12 2013 -0500

    kernel-serial-iomem: unindent DT to fit into page
    
    Signed-off-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>


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

735f60dbf5dba44ff481f258058990e0a73bdb59
 labs/kernel-serial-iomem/kernel-serial-iomem.tex |   78 +++++++++++-----------
 1 file changed, 39 insertions(+), 39 deletions(-)

diff --git a/labs/kernel-serial-iomem/kernel-serial-iomem.tex b/labs/kernel-serial-iomem/kernel-serial-iomem.tex
index 59aa89e..fefd1ae 100644
--- a/labs/kernel-serial-iomem/kernel-serial-iomem.tex
+++ b/labs/kernel-serial-iomem/kernel-serial-iomem.tex
@@ -52,50 +52,50 @@ file and create declarations for UART2 and UART4 in the pin muxing
 section:
 
 \begin{verbatim}
-        /* Pins 21 (TX) and 22 (RX) of connector P9 */
-        uart2_pins: uart2_pins {
-            pinctrl-single,pins = <
-                0x154 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* spi0_d0.uart2_tx, MODE 1 */
-                0x150 (PIN_INPUT_PULLUP | MUX_MODE1) /* spi0_sclk.uart2_rx, MODE 1 */
-            >;
-        };
-
-        /* Pins 11 (RX) and 13 (TX) of connector P9 */
-        uart4_pins: uart4_pins {
-            pinctrl-single,pins = <
-                0x74 (PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* gpmc_wpn.uart4_tx, MODE 6 */
-                0x70 (PIN_INPUT_PULLUP | MUX_MODE6) /* gpmc_wait0.uart4_rx, MODE 6 */
-            >;
-        };
+    /* Pins 21 (TX) and 22 (RX) of connector P9 */
+    uart2_pins: uart2_pins {
+        pinctrl-single,pins = <
+            0x154 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* spi0_d0.uart2_tx, MODE 1 */
+            0x150 (PIN_INPUT_PULLUP | MUX_MODE1) /* spi0_sclk.uart2_rx, MODE 1 */
+        >;
+    };
+
+    /* Pins 11 (RX) and 13 (TX) of connector P9 */
+    uart4_pins: uart4_pins {
+        pinctrl-single,pins = <
+            0x74 (PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* gpmc_wpn.uart4_tx, MODE 6 */
+            0x70 (PIN_INPUT_PULLUP | MUX_MODE6) /* gpmc_wait0.uart4_rx, MODE 6 */
+        >;
+    };
 \end{verbatim}
 
 Then, declare the corresponding devices:
 
 \begin{verbatim}
-        uartfe2: feserial at 48024000 {
-            compatible = "free-electrons,serial";
-            /* Tell the OMAP harware power management that the block
-               must be enabled, otherwise it's switched off
-               Caution: starting counting at 1, not 0 */
-            ti,hwmods = "uart3";
-            clock-frequency = <48000000>;
-            reg = <0x48024000 0x2000>;
-            interrupts = <74>;
-            status = "okay";
-            pinctrl-names = "default";
-            pinctrl-0 = <&uart2_pins>;
-        };
-
-        uartfe4: feserial at 481a8000 {
-            compatible = "free-electrons,serial";
-            ti,hwmods = "uart5";
-            clock-frequency = <48000000>;
-            reg = <0x481a8000 0x2000>;
-            interrupts = <45>;
-            status = "okay";
-            pinctrl-names = "default";
-            pinctrl-0 = <&uart4_pins>;
-        };
+    uartfe2: feserial at 48024000 {
+        compatible = "free-electrons,serial";
+        /* Tell the OMAP harware power management that the block
+           must be enabled, otherwise it's switched off
+           Caution: starting counting at 1, not 0 */
+        ti,hwmods = "uart3";
+        clock-frequency = <48000000>;
+        reg = <0x48024000 0x2000>;
+        interrupts = <74>;
+        status = "okay";
+        pinctrl-names = "default";
+        pinctrl-0 = <&uart2_pins>;
+    };
+
+    uartfe4: feserial at 481a8000 {
+        compatible = "free-electrons,serial";
+        ti,hwmods = "uart5";
+        clock-frequency = <48000000>;
+        reg = <0x481a8000 0x2000>;
+        interrupts = <45>;
+        status = "okay";
+        pinctrl-names = "default";
+        pinctrl-0 = <&uart4_pins>;
+    };
 \end{verbatim}
 
 Note: we are calling these devices with \code{uartfe} instead of



More information about the training-materials-updates mailing list