From: Philip Oberfichtner <pro@denx.de>
To: u-boot@lists.denx.de
Cc: Fabio Estevam <festevam@denx.de>,
Christoph Niedermaier <cniedermaier@dh-electronics.com>,
Stefano Babic <sbabic@denx.de>, Peng Fan <peng.fan@nxp.com>,
Philip Oberfichtner <pro@denx.de>, Marek Vasut <marex@denx.de>,
Andre Przywara <andre.przywara@arm.com>,
Andreas Geisreiter <ageisreiter@dh-electronics.de>,
Christian Hewitt <christianshewitt@gmail.com>,
Fabio Estevam <festevam@gmail.com>,
"NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
Neil Armstrong <narmstrong@baylibre.com>,
Simon Glass <sjg@chromium.org>, Sinthu Raja <sinthu.raja@ti.com>,
Tim Harvey <tharvey@gateworks.com>, Tom Rini <trini@konsulko.com>,
"Ying-Chun Liu (PaulLiu)" <paul.liu@linaro.org>,
u-boot@dh-electronics.com
Subject: [PATCH 3/8] ARM: dts: imx: Migrate iMX6QDL picoITX DTs from Linux
Date: Thu, 19 May 2022 13:08:32 +0200 [thread overview]
Message-ID: <20220519110837.245488-4-pro@denx.de> (raw)
In-Reply-To: <20220519110837.245488-1-pro@denx.de>
Migrate DH picoITX device trees from Linux commit 42226c989789
(tag v5.18-rc7). No changes have been made, the DTs are exact copies.
Furthermore add the DTB to dh_imx6_defconfig.
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Philip Oberfichtner <pro@denx.de>
---
arch/arm/dts/Makefile | 1 +
arch/arm/dts/imx6dl-dhcom-picoitx.dts | 20 +++++++
arch/arm/dts/imx6qdl-dhcom-picoitx.dtsi | 69 +++++++++++++++++++++++++
configs/dh_imx6_defconfig | 2 +-
4 files changed, 91 insertions(+), 1 deletion(-)
create mode 100644 arch/arm/dts/imx6dl-dhcom-picoitx.dts
create mode 100644 arch/arm/dts/imx6qdl-dhcom-picoitx.dtsi
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 7bfdfb5313..f7601afd9c 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -738,6 +738,7 @@ dtb-y += \
imx6dl-cubox-i-emmc-som-v15.dtb \
imx6dl-cubox-i-som-v15.dtb \
imx6dl-dhcom-pdk2.dtb \
+ imx6dl-dhcom-picoitx.dts \
imx6dl-gw51xx.dtb \
imx6dl-gw52xx.dtb \
imx6dl-gw53xx.dtb \
diff --git a/arch/arm/dts/imx6dl-dhcom-picoitx.dts b/arch/arm/dts/imx6dl-dhcom-picoitx.dts
new file mode 100644
index 0000000000..038bb00255
--- /dev/null
+++ b/arch/arm/dts/imx6dl-dhcom-picoitx.dts
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2021 DH electronics GmbH
+ *
+ * DHCOM iMX6 variant:
+ * DHCM-iMX6DL-C0800-R102-F0819-E-SD-RTC-T-HS-I-01D2
+ * DHCOM PCB number: 493-300 or newer
+ * PicoITX PCB number: 487-600 or newer
+ */
+/dts-v1/;
+
+#include "imx6dl.dtsi"
+#include "imx6qdl-dhcom-som.dtsi"
+#include "imx6qdl-dhcom-picoitx.dtsi"
+
+/ {
+ model = "DH electronics i.MX6DL DHCOM on PicoITX";
+ compatible = "dh,imx6dl-dhcom-picoitx", "dh,imx6dl-dhcom-som",
+ "fsl,imx6dl";
+};
diff --git a/arch/arm/dts/imx6qdl-dhcom-picoitx.dtsi b/arch/arm/dts/imx6qdl-dhcom-picoitx.dtsi
new file mode 100644
index 0000000000..4cd4cb9543
--- /dev/null
+++ b/arch/arm/dts/imx6qdl-dhcom-picoitx.dtsi
@@ -0,0 +1,69 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2021 DH electronics GmbH
+ */
+
+#include <dt-bindings/leds/common.h>
+
+/ {
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ led {
+ compatible = "gpio-leds";
+
+ led-0 {
+ color = <LED_COLOR_ID_YELLOW>;
+ default-state = "off";
+ function = LED_FUNCTION_INDICATOR;
+ gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* GPIO I */
+ pinctrl-0 = <&pinctrl_dhcom_i>;
+ pinctrl-names = "default";
+ };
+ };
+};
+
+&gpio1 {
+ gpio-line-names =
+ "", "", "DHCOM-A", "", "DHCOM-B", "PicoITX-In2", "", "",
+ "", "", "", "", "", "", "", "",
+ "DHCOM-R", "DHCOM-S", "DHCOM-Q", "DHCOM-T", "DHCOM-U", "", "", "",
+ "", "", "", "", "", "", "", "";
+};
+
+&gpio4 {
+ gpio-line-names =
+ "", "", "", "", "", "PicoITX-In1", "DHCOM-INT", "DHCOM-H",
+ "DHCOM-I", "PicoITX-HW2", "", "", "", "", "", "",
+ "", "", "", "", "PicoITX-Out1", "", "", "",
+ "", "", "", "", "", "", "", "";
+};
+
+&gpio6 {
+ gpio-line-names =
+ "", "", "", "PicoITX-Out2", "", "", "SOM-HW1", "",
+ "", "", "", "", "", "", "PicoITX-HW0", "PicoITX-HW1",
+ "", "", "", "", "", "", "", "",
+ "", "", "", "", "", "", "", "";
+};
+
+&iomuxc {
+ pinctrl-0 = <
+ /*
+ * The following DHCOM GPIOs are used on this board.
+ * Therefore, they have been removed from the list below.
+ * I: yellow led
+ */
+ &pinctrl_hog_base
+ &pinctrl_dhcom_a &pinctrl_dhcom_b &pinctrl_dhcom_c
+ &pinctrl_dhcom_d &pinctrl_dhcom_e &pinctrl_dhcom_f
+ &pinctrl_dhcom_g &pinctrl_dhcom_h
+ &pinctrl_dhcom_j &pinctrl_dhcom_k &pinctrl_dhcom_l
+ &pinctrl_dhcom_m &pinctrl_dhcom_n &pinctrl_dhcom_o
+ &pinctrl_dhcom_p &pinctrl_dhcom_q &pinctrl_dhcom_r
+ &pinctrl_dhcom_s &pinctrl_dhcom_t &pinctrl_dhcom_u
+ &pinctrl_dhcom_v &pinctrl_dhcom_w &pinctrl_dhcom_int
+ >;
+ pinctrl-names = "default";
+};
diff --git a/configs/dh_imx6_defconfig b/configs/dh_imx6_defconfig
index 9c78987473..558619fc31 100644
--- a/configs/dh_imx6_defconfig
+++ b/configs/dh_imx6_defconfig
@@ -53,7 +53,7 @@ CONFIG_CMD_CACHE=y
CONFIG_CMD_TIME=y
CONFIG_CMD_EXT4_WRITE=y
CONFIG_OF_CONTROL=y
-CONFIG_OF_LIST="imx6q-dhcom-pdk2 imx6dl-dhcom-pdk2 imx6s-dhcom-drc02"
+CONFIG_OF_LIST="imx6q-dhcom-pdk2 imx6dl-dhcom-pdk2 imx6s-dhcom-drc02 imx6dl-dhcom-picoitx"
CONFIG_MULTI_DTB_FIT=y
CONFIG_ENV_OVERWRITE=y
CONFIG_ENV_IS_IN_SPI_FLASH=y
--
2.34.1
next prev parent reply other threads:[~2022-05-19 11:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-19 11:08 [PATCH 0/8] ARM: imx: Add support for iMX6QDL DHCOM DRC02 and DH picoITX Philip Oberfichtner
2022-05-19 11:08 ` [PATCH 1/8] ARM: imx6: Fix broken DT path in DH board file Philip Oberfichtner
2022-05-19 12:39 ` Marek Vasut
2022-05-19 11:08 ` [PATCH 2/8] ARM: dts: imx: Migrate iMX6QDL DRC02 DTs from Linux Philip Oberfichtner
2022-05-19 11:08 ` Philip Oberfichtner [this message]
2022-05-19 11:08 ` [PATCH 4/8] ARM: imx6: Remove CONFIG_FEC_MXC_PHYADDR from DH header Philip Oberfichtner
2022-05-19 11:08 ` [PATCH 5/8] ARM: dts: imx: Simplify fec node for iMX6QDL DHCOM boards Philip Oberfichtner
2022-05-19 12:40 ` Marek Vasut
2022-05-19 11:08 ` [PATCH 6/8] ARM: dts: imx: Configure FEC for iMX6QDL picoITX Philip Oberfichtner
2022-05-19 12:41 ` Marek Vasut
2022-05-19 11:08 ` [PATCH 7/8] ARM: dts: imx: Configure FEC for iMX6QDL DRC02 Philip Oberfichtner
2022-05-19 12:42 ` Marek Vasut
2022-05-19 11:08 ` [PATCH 8/8] ARM: imx6: Adapt device tree selection in DH board file Philip Oberfichtner
2022-05-19 12:48 ` Fabio Estevam
2022-05-19 12:57 ` Marek Vasut
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=20220519110837.245488-4-pro@denx.de \
--to=pro@denx.de \
--cc=ageisreiter@dh-electronics.de \
--cc=andre.przywara@arm.com \
--cc=christianshewitt@gmail.com \
--cc=cniedermaier@dh-electronics.com \
--cc=festevam@denx.de \
--cc=festevam@gmail.com \
--cc=marex@denx.de \
--cc=narmstrong@baylibre.com \
--cc=paul.liu@linaro.org \
--cc=peng.fan@nxp.com \
--cc=sbabic@denx.de \
--cc=sinthu.raja@ti.com \
--cc=sjg@chromium.org \
--cc=tharvey@gateworks.com \
--cc=trini@konsulko.com \
--cc=u-boot@dh-electronics.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-imx@nxp.com \
/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