From: Alexander Shiyan <shc_work@mail.ru>
To: linux-arm-kernel@lists.infradead.org
Cc: Alexander Shiyan <shc_work@mail.ru>,
Russell King <linux@armlinux.org.uk>,
NXP Linux Team <linux-imx@nxp.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <fabio.estevam@nxp.com>,
Shawn Guo <shawnguo@kernel.org>
Subject: [PATCH 3/6] ARM: dts: imx21: Add support for the i.MX21 Freescale ADS board
Date: Sat, 22 Dec 2018 13:51:57 +0300 [thread overview]
Message-ID: <20181222105200.18502-3-shc_work@mail.ru> (raw)
In-Reply-To: <20181222105200.18502-1-shc_work@mail.ru>
This patch adds support for the i.MX21 ADS from Freescale.
This change is intended to further remove non-DT support for this board.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
arch/arm/boot/dts/Makefile | 2 +
arch/arm/boot/dts/imx21-ads.dts | 242 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 244 insertions(+)
create mode 100644 arch/arm/boot/dts/imx21-ads.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index b0e966d..e71be45 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -338,6 +338,8 @@ dtb-$(CONFIG_ARCH_MOXART) += \
dtb-$(CONFIG_SOC_IMX1) += \
imx1-ads.dtb \
imx1-apf9328.dtb
+dtb-$(CONFIG_SOC_IMX21) += \
+ imx21-ads.dtb
dtb-$(CONFIG_SOC_IMX25) += \
imx25-eukrea-mbimxsd25-baseboard.dtb \
imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dtb \
diff --git a/arch/arm/boot/dts/imx21-ads.dts b/arch/arm/boot/dts/imx21-ads.dts
new file mode 100644
index 0000000..58c9581
--- /dev/null
+++ b/arch/arm/boot/dts/imx21-ads.dts
@@ -0,0 +1,242 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/* Author: Alexander Shiyan <shc_work@mail.ru> */
+
+/dts-v1/;
+
+#include "imx21.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+/ {
+ model = "Freescale MX21 ADS";
+ compatible = "fsl,imx21ads", "fsl,imx21";
+
+ chosen {
+ stdout-path = &serial1;
+ };
+
+ memory {
+ device_type = "memory";
+ reg = <0xc0000000 0x04000000>;
+ };
+
+ display: LQ035Q7 {
+ model = "Sharp-LQ035Q7";
+ native-mode = <&timing>;
+ bits-per-pixel = <16>;
+ fsl,pcr = <0xfb108bc7>;
+
+ display-timings {
+ timing: 240x320 {
+ clock-frequency = <5500000>;
+ hactive = <240>;
+ vactive = <320>;
+ hback-porch = <6>;
+ hsync-len = <2>;
+ hfront-porch = <16>;
+ vback-porch = <8>;
+ vsync-len = <1>;
+ vfront-porch = <10>;
+ vsync-active = <0>;
+ };
+ };
+ };
+
+ led3: led3 {
+ compatible = "gpio-leds";
+ label = "system::live";
+ gpios = <&ioreg 15 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "heartbeat";
+ };
+
+ led4: led4 {
+ compatible = "gpio-leds";
+ label = "system::user";
+ gpios = <&ioreg 14 GPIO_ACTIVE_LOW>;
+ };
+
+ reg_lcd: regulator_lcd {
+ compatible = "regulator-fixed";
+ regulator-name = "lcd";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ gpio = <&ioreg 9 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+};
+
+&eim {
+ status = "okay";
+
+ nor: nor@0,0 {
+ compatible = "cfi-flash";
+ reg = <0 0x00000000 0x02000000>;
+ bank-width = <2>;
+ fsl,weim-cs-timing = <0x00003e00 0x00000e01>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ };
+
+ ethernet: cs8900a@1,0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ethernet>;
+ compatible = "cirrus,cs8900";
+ reg = <1 0x00000000 0x00001000>;
+ interrupt-parent = <&gpio5>;
+ interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+ fsl,weim-cs-timing = <0x00002000 0x11118501>;
+ };
+
+ ioreg: ioreg@1,800000 {
+ compatible = "ti,7416374";
+ reg = <1 0x00800000 0x00000002>;
+ gpio-controller;
+ fsl,weim-cs-timing = <0x00002000 0x11118501>;
+ #gpio-cells = <2>;
+ };
+};
+
+&fb {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_fb>;
+ display = <&display>;
+ fsl,dmacr = <0x00020008>;
+ fsl,lscr1 = <0x00120300>;
+ fsl,lpccr = <0x00a903ff>;
+ lcd-supply = <®_lcd>;
+ status = "okay";
+};
+
+&nandfc {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_nandfc>;
+ nand-bus-width = <8>;
+ nand-ecc-mode = "hw";
+ nand-on-flash-bbt;
+ status = "okay";
+};
+
+&sdhci1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_sdhci1>;
+ cd-gpios = <&gpio4 25 GPIO_ACTIVE_LOW>;
+ status = "okay";
+};
+
+&serial1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_serial1>;
+ uart-has-rtscts;
+ status = "okay";
+};
+
+&serial3 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_serial3>;
+ status = "okay";
+};
+
+&serial4 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_serial4>;
+ uart-has-rtscts;
+ status = "okay";
+};
+
+&iomuxc {
+ imx21_ads21 {
+ pinctrl_ethernet: ethernetgrp {
+ fsl,pins = <
+ MX21_PAD_UART3_RTS__GPIO5_11 0x0 /* IRQ */
+ >;
+ };
+
+ pinctrl_fb: fbgrp {
+ fsl,pins = <
+ MX21_PAD_LSCLK__LSCLK 0x0
+ MX21_PAD_LD0__LD0 0x0
+ MX21_PAD_LD1__LD1 0x0
+ MX21_PAD_LD2__LD2 0x0
+ MX21_PAD_LD3__LD3 0x0
+ MX21_PAD_LD4__LD4 0x0
+ MX21_PAD_LD5__LD5 0x0
+ MX21_PAD_LD6__LD6 0x0
+ MX21_PAD_LD7__LD7 0x0
+ MX21_PAD_LD8__LD8 0x0
+ MX21_PAD_LD9__LD9 0x0
+ MX21_PAD_LD10__LD10 0x0
+ MX21_PAD_LD11__LD11 0x0
+ MX21_PAD_LD12__LD12 0x0
+ MX21_PAD_LD13__LD13 0x0
+ MX21_PAD_LD14__LD14 0x0
+ MX21_PAD_LD15__LD15 0x0
+ MX21_PAD_REV__REV 0x0
+ MX21_PAD_CLS__CLS 0x0
+ MX21_PAD_PS__PS 0x0
+ MX21_PAD_SPL_SPR__SPL_SPR 0x0
+ MX21_PAD_HSYNC__HSYNC 0x0
+ MX21_PAD_VSYNC__VSYNC 0x0
+ MX21_PAD_CONTRAST__CONTRAST 0x0
+ MX21_PAD_OE_ACD__OE_ACD 0x0
+ >;
+ };
+
+ pinctrl_nandfc: nandfcgrp {
+ fsl,pins = <
+ MX21_PAD_NFRB__NFRB 0x0
+ MX21_PAD_NFCE__NFCE 0x0
+ MX21_PAD_NFWP__NFWP 0x0
+ MX21_PAD_NFCLE__NFCLE 0x0
+ MX21_PAD_NFALE__NFALE 0x0
+ MX21_PAD_NFRE__NFRE 0x0
+ MX21_PAD_NFWE__NFWE 0x0
+ MX21_PAD_NFIO0__NFIO0 0x0
+ MX21_PAD_NFIO1__NFIO1 0x0
+ MX21_PAD_NFIO2__NFIO2 0x0
+ MX21_PAD_NFIO3__NFIO3 0x0
+ MX21_PAD_NFIO4__NFIO4 0x0
+ MX21_PAD_NFIO5__NFIO5 0x0
+ MX21_PAD_NFIO6__NFIO6 0x0
+ MX21_PAD_NFIO7__NFIO7 0x0
+ >;
+ };
+
+ pinctrl_sdhci1: sdhci1grp {
+ fsl,pins = <
+ MX21_PAD_SD1_D0__SD1_D0 0x0
+ MX21_PAD_SD1_D1__SD1_D1 0x0
+ MX21_PAD_SD1_D2__SD1_D2 0x0
+ MX21_PAD_SD1_D3__SD1_D3 0x0
+ MX21_PAD_SD1_CMD__SD1_CMD 0x0
+ MX21_PAD_SD1_CLK__SD1_CLK 0x0
+ MX21_PAD_CSPI1_RDY__GPIO4_25 0x0 /* CD */
+ >;
+ };
+
+ pinctrl_serial1: serial1grp {
+ fsl,pins = <
+ MX21_PAD_UART1_TXD__UART1_TXD 0x0
+ MX21_PAD_UART1_RXD__UART1_RXD 0x0
+ MX21_PAD_UART1_CTS__UART1_CTS 0x0
+ MX21_PAD_UART1_RTS__UART1_RTS 0x0
+ >;
+ };
+
+ pinctrl_serial3: serial3grp {
+ fsl,pins = <
+ MX21_PAD_UART3_TXD__UART3_TXD 0x0
+ MX21_PAD_UART3_RXD__UART3_RXD 0x0
+ >;
+ };
+
+ pinctrl_serial4: serial4grp {
+ fsl,pins = <
+ MX21_PAD_USBH1_TXDM__UART4_TXD 0x0
+ MX21_PAD_USBH1_RXDP__UART4_RXD 0x0
+ MX21_PAD_USBH1_FS__UART4_RTS 0x0
+ MX21_PAD_USBH1_TXDP__UART4_CTS 0x0
+ >;
+ };
+ };
+};
--
2.10.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2018-12-22 10:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-22 10:51 [PATCH 1/6] ARM: dts: imx21: add i.MX21 SoC device tree Alexander Shiyan
2018-12-22 10:51 ` [PATCH 2/6] ARM i.MX21: Add devicetree support Alexander Shiyan
2019-01-12 2:53 ` Shawn Guo
2019-01-12 5:17 ` Alexander Shiyan
2019-01-12 7:04 ` Shawn Guo
2018-12-22 10:51 ` Alexander Shiyan [this message]
2018-12-22 10:51 ` [PATCH 4/6] ARM: i.MX: Remove i.MX21 Freescale ADS board support Alexander Shiyan
2018-12-22 10:51 ` [PATCH 5/6] ARM: i.MX: Move SOC_IMX21 into 'Device tree only' Alexander Shiyan
2018-12-22 10:52 ` [PATCH 6/6] ARM: i.MX: Remove i.MX21 non-DT device registration helpers Alexander Shiyan
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=20181222105200.18502-3-shc_work@mail.ru \
--to=shc_work@mail.ru \
--cc=fabio.estevam@nxp.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux@armlinux.org.uk \
--cc=shawnguo@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.