Re: [U-Boot] [PATCH 5/5] omap3: igep00x0: Add Device Tree Support and DM_MMC driver

2018-12-27 Thread Tom Rini
On Thu, Dec 27, 2018 at 05:03:30PM +0100, Enric Balletbo i Serra wrote:

> This adds device tree for OMAP3 IGEP based boards and the DM_MMC driver.
> 
> Signed-off-by: Enric Balletbo i Serra 

Reviewed-by: Tom Rini 

-- 
Tom


signature.asc
Description: PGP signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH 5/5] omap3: igep00x0: Add Device Tree Support and DM_MMC driver

2018-12-27 Thread Enric Balletbo i Serra
This adds device tree for OMAP3 IGEP based boards and the DM_MMC driver.

Signed-off-by: Enric Balletbo i Serra 
---
 arch/arm/dts/Makefile   |   3 +
 arch/arm/dts/omap3-igep.dtsi| 250 ++
 arch/arm/dts/omap3-igep0020-common.dtsi | 264 
 arch/arm/dts/omap3-igep0020-u-boot.dtsi |  24 +++
 arch/arm/dts/omap3-igep0020.dts |  50 +
 configs/igep00x0_defconfig  |   3 +
 6 files changed, 594 insertions(+)
 create mode 100644 arch/arm/dts/omap3-igep.dtsi
 create mode 100644 arch/arm/dts/omap3-igep0020-common.dtsi
 create mode 100644 arch/arm/dts/omap3-igep0020-u-boot.dtsi
 create mode 100644 arch/arm/dts/omap3-igep0020.dts

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index dc6f6b233a..f5ec1c96c7 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -520,6 +520,9 @@ dtb-$(CONFIG_TARGET_OMAP3_BEAGLE) += \
omap3-beagle-xm.dtb \
omap3-beagle.dtb
 
+dtb-$(CONFIG_TARGET_OMAP3_IGEP00X0) += \
+   omap3-igep0020.dtb
+
 dtb-$(CONFIG_TARGET_SAMA5D2_PTC_EK) += \
at91-sama5d2_ptc_ek.dtb
 
diff --git a/arch/arm/dts/omap3-igep.dtsi b/arch/arm/dts/omap3-igep.dtsi
new file mode 100644
index 00..f33cc80c9d
--- /dev/null
+++ b/arch/arm/dts/omap3-igep.dtsi
@@ -0,0 +1,250 @@
+/*
+ * Common device tree for IGEP boards based on AM/DM37x
+ *
+ * Copyright (C) 2012 Javier Martinez Canillas 
+ * Copyright (C) 2012 Enric Balletbo i Serra 
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+/dts-v1/;
+
+#include "omap36xx.dtsi"
+
+/ {
+   memory@8000 {
+   device_type = "memory";
+   reg = <0x8000 0x2000>; /* 512 MB */
+   };
+
+   chosen {
+   stdout-path = 
+   };
+
+   sound {
+   compatible = "ti,omap-twl4030";
+   ti,model = "igep2";
+   ti,mcbsp = <>;
+   };
+
+   vdd33: regulator-vdd33 {
+   compatible = "regulator-fixed";
+   regulator-name = "vdd33";
+   regulator-always-on;
+   };
+
+};
+
+_pmx_core {
+   gpmc_pins: pinmux_gpmc_pins {
+   pinctrl-single,pins = <
+   /* OneNAND seems to require PIN_INPUT on clock. */
+OMAP3_CORE1_IOPAD(0x20be, PIN_INPUT | MUX_MODE0)   
 /* gpmc_clk.gpmc_clk */
+   >;
+   };
+
+   uart1_pins: pinmux_uart1_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0)
/* uart1_rx.uart1_rx */
+   OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0)   
/* uart1_tx.uart1_tx */
+   >;
+   };
+
+   uart3_pins: pinmux_uart3_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0)
/* uart3_rx.uart3_rx */
+   OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)   
/* uart3_tx.uart3_tx */
+   >;
+   };
+
+   mcbsp2_pins: pinmux_mcbsp2_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0)
/* mcbsp2_fsx.mcbsp2_fsx */
+   OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0)
/* mcbsp2_clkx.mcbsp2_clkx */
+   OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0)
/* mcbsp2_dr.mcbsp2.dr */
+   OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0)   
/* mcbsp2_dx.mcbsp2_dx */
+   >;
+   };
+
+   mmc1_pins: pinmux_mmc1_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_clk.sdmmc1_clk */
+   OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_cmd.sdmmc1_cmd */
+   OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_dat0.sdmmc1_dat0 */
+   OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_dat1.sdmmc1_dat1 */
+   OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_dat2.sdmmc1_dat2 */
+   OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_dat3.sdmmc1_dat3 */
+   >;
+   };
+
+   mmc2_pins: pinmux_mmc2_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_clk.sdmmc2_clk */
+   OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_cmd.sdmmc2_cmd */
+   OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_dat0.sdmmc2_dat0 */
+   OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP |