Skip to contentSkip to conversation

ARM: dts: imx6ul-geam: Add Engicam IMX6UL GEA M6UL initial support

PATCH Superseded Jagan Teki 2 participants 2 messages Aug 30, 2016

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH v3 1/1 ARM: dts: imx6ul-geam: Add Engicam IMX6UL GEA M6UL initial support

From: Michael Trimarchi <[email protected]>

IMX6UL GEA M6UL modules are system on module solutions manufactured by Engicam with following characteristics:
Processor Freescale i.MX 6UltraLite MCIMX6G2, 528 MHz
RAM 128MB, 16-bit DDR3
NAND SLC 256MB
Power supply Single 5V
MAX LCD RES up to WXGA, 1366x768

and more info at
http://www.engicam.com/prodotti/embedded/som/sodimm/gea-m6ul

---
Changes for v3:
- Rebase on master
- Replace flexcan1 and flexcan2 with can1 and can2
- Fix to use RAM size as 128MB instead of 512MB
- Add commit message
Changes for v2:
- remove not used muxed
- sort better regulator but not remove "silly" one propertes for now
- small issue on code style
- add Matteo from Engicam that help me to test and verify the board, provide hw support

 arch/arm/boot/dts/Makefile            |   1 +
 arch/arm/boot/dts/imx6ul-geam-kit.dts | 102 ++++++++++
 arch/arm/boot/dts/imx6ul-geam.dtsi    | 362 ++++++++++++++++++++++++++++++++++
 3 files changed, 465 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx6ul-geam-kit.dts
 create mode 100644 arch/arm/boot/dts/imx6ul-geam.dtsi
arch/arm/boot/dts/Makefile +1 -0
index faacd52..f571417 100644
@@ -407,6 +407,7 @@ dtb-$(CONFIG_SOC_IMX6SX) += \
 	imx6sx-sdb.dtb
 dtb-$(CONFIG_SOC_IMX6UL) += \
 	imx6ul-14x14-evk.dtb \
+	imx6ul-geam-kit.dtb \
 	imx6ul-pico-hobbit.dtb \
 	imx6ul-tx6ul-0010.dtb \
 	imx6ul-tx6ul-0011.dtb \
arch/arm/boot/dts/imx6ul-geam-kit.dts new file +102 -0

102 lines not on this page · raw message

arch/arm/boot/dts/imx6ul-geam.dtsi new file +362 -0

362 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

On Tue, Aug 30, 2016 at 02:43:31PM +0530, Jagan Teki wrote:

<snip>

Quoted 11 lines

+&lcdif {

arch/arm/boot/dts/imx6ul-geam-kit.dts new file +10 -0
+	display = <&display0>;
+	status = "okay";
+
+	display0: display {
+		bits-per-pixel = <16>;
+		bus-width = <18>;
+
+		display-timings {
+			native-mode = <&timing0>;
+			timing0: timing0 {

arch/arm/boot/dts/imx6ul-geam-kit.dts line 81

Quoted 10 lines
arch/arm/boot/dts/imx6ul-geam-kit.dts new file +10 -0
+				clock-frequency = <28000000>;
+				hactive = <800>;
+				vactive = <480>;
+				hfront-porch = <30>;
+				hback-porch = <30>;
+				hsync-len = <64>;
+				vback-porch = <5>;
+				vfront-porch = <5>;
+				vsync-len = <20>;
+

Drop this newline.

Quoted 7 lines
arch/arm/boot/dts/imx6ul-geam-kit.dts new file +7 -0
+				hsync-active = <0>;
+				vsync-active = <0>;
+				de-active = <1>;
+				pixelclk-active = <0>;
+			};
+		};
+	};

arch/arm/boot/dts/imx6ul-geam-kit.dts line 98

Quoted 10 lines
arch/arm/boot/dts/imx6ul-geam-kit.dts new file +10 -0
+};
+
+&usdhc1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usdhc1>;
+	status = "okay";
+};
+
+&tsc {
+	measure_delay_time = <0x1ffff>;

measure-delay-time

arch/arm/boot/dts/imx6ul-geam-kit.dts line 99

Quoted 1 line
arch/arm/boot/dts/imx6ul-geam-kit.dts new file +1 -0
+	pre_charge_time = <0x1fff>;

pre-charge-time

Quoted 2 lines
(quoted diff) +2 -0
+	status = "okay";
+};

<snip>

arch/arm/boot/dts/imx6ul-geam.dtsi line 121

Quoted 4 lines

+&gpmi {

arch/arm/boot/dts/imx6ul-geam.dtsi new file +3 -0
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_gpmi_nand>;
+	status = "okay";

Please put 'status' property at the end of property list.

arch/arm/boot/dts/imx6ul-geam.dtsi line 129

Quoted 8 lines
arch/arm/boot/dts/imx6ul-geam.dtsi new file +8 -0
+	nand-on-flash-bbt;
+};
+
+&lcdif {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_lcdif_dat
+		     &pinctrl_lcdif_ctrl>;
+	display = <&display0>;

It is set in imx6ul-geam-kit.dts, isn't it?

Quoted 1 line

+};

<snip>
j

arch/arm/boot/dts/imx6ul-geam.dtsi line 178

Quoted 8 lines

+&i2c1 {

arch/arm/boot/dts/imx6ul-geam.dtsi new file +7 -0
+	clock-frequency = <100000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c1>;
+	status = "okay";
+};
+
+&i2c2 {

Except &iomuxc, please sort these node alphabetically in name.

arch/arm/boot/dts/imx6ul-geam.dtsi line 186

Quoted 8 lines
arch/arm/boot/dts/imx6ul-geam.dtsi new file +8 -0
+	clock_frequency = <100000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c2>;
+	status = "okay";
+};
+
+&iomuxc {
+

Drop this newline.

Quoted 11 lines
arch/arm/boot/dts/imx6ul-geam.dtsi new file +11 -0
+	pinctrl_enet1: enet1grp {
+		fsl,pins = <
+			MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN	0x1b0b0
+			MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00	0x1b0b0
+			MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01	0x1b0b0
+			MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN	0x1b0b0
+			MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00	0x1b0b0
+			MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01	0x1b0b0
+			MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1	0x4001b031
+		>;
+	};

<snip>

arch/arm/boot/dts/imx6ul-geam.dtsi line 354

Quoted 12 lines
arch/arm/boot/dts/imx6ul-geam.dtsi new file +12 -0
+	pinctrl_usdhc2: usdhc2grp {
+		fsl,pins = <
+			MX6UL_PAD_CSI_VSYNC__USDHC2_CLK     0x17070
+			MX6UL_PAD_CSI_HSYNC__USDHC2_CMD     0x10070
+			MX6UL_PAD_CSI_DATA00__USDHC2_DATA0  0x17070
+			MX6UL_PAD_CSI_DATA01__USDHC2_DATA1  0x17070
+			MX6UL_PAD_CSI_DATA02__USDHC2_DATA2  0x17070
+			MX6UL_PAD_CSI_DATA03__USDHC2_DATA3  0x17070
+		>;
+	};
+
+	pinctrl_tsc: tscgrp {

This one is not sorted.

Shawn

Quoted 11 lines
arch/arm/boot/dts/imx6ul-geam.dtsi new file +8 -0
+		fsl,pin = <
+			MX6UL_PAD_GPIO1_IO01__GPIO1_IO01	0xb0
+			MX6UL_PAD_GPIO1_IO02__GPIO1_IO02	0xb0
+			MX6UL_PAD_GPIO1_IO03__GPIO1_IO03	0xb0
+			MX6UL_PAD_GPIO1_IO04__GPIO1_IO04	0xb0
+		>;
+	};
+};
Signature · 1 line
2.7.4