]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: stm32: add initial support of stm32mp157c eval board
authorLudovic Barre <ludovic.barre@st.com>
Mon, 26 Feb 2018 15:49:18 +0000 (16:49 +0100)
committerAlexandre Torgue <alexandre.torgue@st.com>
Mon, 26 Feb 2018 15:49:58 +0000 (16:49 +0100)
Add support of stm32mp157c evaluation board (part number: STM32MP157C-EV1)
split in 2 elements:
-Daughter board (part number: STM32MP157C-ED1)
 which includes CPU, memory and power supply
-Mother board (part number: STM32MP157C-EM1)
 which includes external peripherals (like display, camera,...)
 and extension connectors.

The daughter board can run alone, this is why the device tree files
are split in two layers, for the complete evaluation board (ev1)
and for the daughter board alone (ed1).

Signed-off-by: Ludovic Barre <ludovic.barre@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
arch/arm/boot/dts/stm32mp157c-ed1.dts [new file with mode: 0644]
arch/arm/boot/dts/stm32mp157c-ev1.dts [new file with mode: 0644]

index ade7a38543dc95a3b58a8b5955337fd3da76dd93..b73780f31bce077d8e3bfdf0db5e38e1d9bd2b72 100644 (file)
@@ -863,7 +863,7 @@ dtb-$(CONFIG_ARCH_STI) += \
        stih410-b2120.dtb \
        stih410-b2260.dtb \
        stih418-b2199.dtb
-dtb-$(CONFIG_ARCH_STM32)+= \
+dtb-$(CONFIG_ARCH_STM32) += \
        stm32f429-disco.dtb \
        stm32f469-disco.dtb \
        stm32f746-disco.dtb \
@@ -871,7 +871,9 @@ dtb-$(CONFIG_ARCH_STM32)+= \
        stm32429i-eval.dtb \
        stm32746g-eval.dtb \
        stm32h743i-eval.dtb \
-       stm32h743i-disco.dtb
+       stm32h743i-disco.dtb \
+       stm32mp157c-ed1.dtb \
+       stm32mp157c-ev1.dtb
 dtb-$(CONFIG_MACH_SUN4I) += \
        sun4i-a10-a1000.dtb \
        sun4i-a10-ba10-tvbox.dtb \
index e5f8f58fb934f9a47e72b2b45161fb092264b016..c0743305f31b6f4f88d9a781e447047d48375503 100644 (file)
@@ -145,6 +145,19 @@ gpiok: gpio@5000c000 {
                                ngpios = <8>;
                                gpio-ranges = <&pinctrl 0 160 8>;
                        };
+
+                       uart4_pins_a: uart4@0 {
+                               pins1 {
+                                       pinmux = <STM32_PINMUX('G', 11, AF6)>; /* UART4_TX */
+                                       bias-disable;
+                                       drive-push-pull;
+                                       slew-rate = <0>;
+                               };
+                               pins2 {
+                                       pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
+                                       bias-disable;
+                               };
+                       };
                };
 
                pinctrl_z: pin-controller-z {
diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts
new file mode 100644 (file)
index 0000000..9f90337
--- /dev/null
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
+/*
+ * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
+ * Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics.
+ */
+/dts-v1/;
+
+#include "stm32mp157c.dtsi"
+#include "stm32mp157-pinctrl.dtsi"
+
+/ {
+       model = "STMicroelectronics STM32MP157C eval daughter";
+       compatible = "st,stm32mp157c-ed1", "st,stm32mp157";
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
+       memory {
+               reg = <0xC0000000 0x40000000>;
+       };
+
+       aliases {
+               serial0 = &uart4;
+       };
+};
+
+&uart4 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&uart4_pins_a>;
+       status = "okay";
+};
diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts
new file mode 100644 (file)
index 0000000..57e6dbc
--- /dev/null
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
+/*
+ * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
+ * Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics.
+ */
+/dts-v1/;
+
+#include "stm32mp157c-ed1.dts"
+
+/ {
+       model = "STMicroelectronics STM32MP157C eval daughter on eval mother";
+       compatible = "st,stm32mp157c-ev1", "st,stm32mp157c-ed1", "st,stm32mp157";
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
+       aliases {
+               serial0 = &uart4;
+       };
+};