From: Adam Ford <aford173@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] OMAP3: DTS: Cleanup omap3_logic DTS files from OMAP3 resync
Date: Thu, 24 Aug 2017 08:17:00 -0500 [thread overview]
Message-ID: <1503580620-15568-2-git-send-email-aford173@gmail.com> (raw)
In-Reply-To: <1503580620-15568-1-git-send-email-aford173@gmail.com>
logicpd-torpedo-som.dtsi is a direct port, but the
logicpd-torpedo-37xx-devkit is mostly copied from Linux, but
there are a few changes:
Slow I2C1 to 400KHz from 26MHz, because U-Boot doesn't seem
to handle that speed.
Fixes required for U-Boot's NS16550 driver by adding
reg-shift = <2> for each UART.
Rename the model since this can booth both SOM-LV and Torpedo kits
U-Boot will still load the proper dtb file from SD card for Linux
Since there is only 1 support MMC socket on either dev kit,
disable others in U-Boot
Changes the license to SPDX
Signed-off-by: Adam Ford <aford173@gmail.com>
---
arch/arm/dts/logicpd-torpedo-37xx-devkit.dts | 49 +++++++++++++++++++++-------
arch/arm/dts/logicpd-torpedo-som.dtsi | 35 ++++++++++++++++++--
2 files changed, 70 insertions(+), 14 deletions(-)
diff --git a/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts b/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts
index de603a4..935dfae 100644
--- a/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts
+++ b/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts
@@ -1,7 +1,10 @@
/*
- * 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.
+ * Based on logicpd-torpedo-37xx-devkit.dts from Linux 4.13-RC5
+ *
+ * Copyright (C) 2017
+ * Logic PD - http://www.logicpd.com
+ *
+ * SPDX-License-Identifier: GPL-2.0+
*/
/dts-v1/;
@@ -11,13 +14,9 @@
#include "omap-gpmc-smsc9221.dtsi"
/ {
- model = "LogicPD Zoom DM3730 Torpedo + Wireless Development Kit";
+ model = "LogicPD Zoom AM37xx / DM37xx Development Kit";
compatible = "logicpd,dm3730-torpedo-devkit", "ti,omap3630", "ti,omap3";
- chosen {
- stdout-path = &uart1;
- };
-
gpio_keys {
compatible = "gpio-keys";
pinctrl-names = "default";
@@ -86,6 +85,14 @@
};
+&i2c1 {
+ clock-frequency = <400000>;
+};
+
+&i2c2 {
+ clock-frequency = <400000>;
+};
+
&vaux1 {
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
@@ -196,13 +203,18 @@
interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins &mmc1_cd>;
+ cd-gpios = <&gpio4 31 IRQ_TYPE_LEVEL_LOW>; /* gpio127 */
vmmc-supply = <&vmmc1>;
bus-width = <4>;
cap-power-off-card;
};
&mmc2 {
- status = "disabled";
+ status = "disabled";
+};
+
+&mmc3 {
+ status = "disabled";
};
&omap3_pmx_core {
@@ -256,9 +268,9 @@
OMAP3_CORE1_IOPAD(0x2110, PIN_INPUT | MUX_MODE0) /* cam_xclka.cam_xclka */
OMAP3_CORE1_IOPAD(0x2112, PIN_INPUT | MUX_MODE0) /* cam_pclk.cam_pclk */
- OMAP3_CORE1_IOPAD(0x2114, PIN_INPUT | MUX_MODE0) /* cam_d0.cam_d0 */
- OMAP3_CORE1_IOPAD(0x2116, PIN_INPUT | MUX_MODE0) /* cam_d1.cam_d1 */
- OMAP3_CORE1_IOPAD(0x2118, PIN_INPUT | MUX_MODE0) /* cam_d2.cam_d2 */
+ OMAP3_CORE1_IOPAD(0x2116, PIN_INPUT | MUX_MODE0) /* cam_d0.cam_d0 */
+ OMAP3_CORE1_IOPAD(0x2118, PIN_INPUT | MUX_MODE0) /* cam_d1.cam_d1 */
+ OMAP3_CORE1_IOPAD(0x211a, PIN_INPUT | MUX_MODE0) /* cam_d2.cam_d2 */
OMAP3_CORE1_IOPAD(0x211c, PIN_INPUT | MUX_MODE0) /* cam_d3.cam_d3 */
OMAP3_CORE1_IOPAD(0x211e, PIN_INPUT | MUX_MODE0) /* cam_d4.cam_d4 */
OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT | MUX_MODE0) /* cam_d5.cam_d5 */
@@ -396,6 +408,19 @@
&uart1 {
interrupts-extended = <&intc 72 &omap3_pmx_core OMAP3_UART1_RX>;
+ reg-shift = <2>;
+};
+
+&uart2 {
+ reg-shift = <2>;
+};
+
+&uart3 {
+ reg-shift = <2>;
+};
+
+&uart4 {
+ reg-shift = <2>;
};
/* Wired to the tps65950 on the SOM, only the USB connector is on the devkit */
diff --git a/arch/arm/dts/logicpd-torpedo-som.dtsi b/arch/arm/dts/logicpd-torpedo-som.dtsi
index 23c9228..6d89736 100644
--- a/arch/arm/dts/logicpd-torpedo-som.dtsi
+++ b/arch/arm/dts/logicpd-torpedo-som.dtsi
@@ -7,6 +7,10 @@
#include <dt-bindings/input/input.h>
/ {
+ chosen {
+ stdout-path = &uart1;
+ };
+
cpus {
cpu at 0 {
cpu0-supply = <&vcc>;
@@ -69,11 +73,38 @@
gpmc,device-width = <2>;
#address-cells = <1>;
#size-cells = <1>;
+
+ /* u-boot uses mtdparts=omap2-nand.0:512k(x-loader),1920k(u-boot),128k(u-boot-env),4m(kernel),-(fs) */
+
+ x-loader at 0 {
+ label = "x-loader";
+ reg = <0 0x80000>;
+ };
+
+ bootloaders at 80000 {
+ label = "u-boot";
+ reg = <0x80000 0x1e0000>;
+ };
+
+ bootloaders_env at 260000 {
+ label = "u-boot-env";
+ reg = <0x260000 0x20000>;
+ };
+
+ kernel at 280000 {
+ label = "kernel";
+ reg = <0x280000 0x400000>;
+ };
+
+ filesystem at 680000 {
+ label = "fs";
+ reg = <0x680000 0>; /* 0 = MTDPART_SIZ_FULL */
+ };
};
};
&i2c1 {
- clock-frequency = <400000>;
+ clock-frequency = <2600000>;
twl: twl at 48 {
reg = <0x48>;
@@ -94,7 +125,7 @@
&i2c3 {
clock-frequency = <400000>;
at24 at 50 {
- compatible = "at24,24c02";
+ compatible = "atmel,24c64";
readonly;
reg = <0x50>;
};
--
2.7.4
prev parent reply other threads:[~2017-08-24 13:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-24 13:16 [U-Boot] [PATCH 1/2] omap3: dts: Resync OMAP3 and OMAP36xx DTS from Linux 4.13-RC5 Adam Ford
2017-08-24 13:17 ` Adam Ford [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1503580620-15568-2-git-send-email-aford173@gmail.com \
--to=aford173@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox