Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
merlin31 authored Dec 9, 2019
1 parent 932f21f commit 259a2e5
Show file tree
Hide file tree
Showing 48 changed files with 5,089 additions and 0 deletions.
46 changes: 46 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Quick Start Guide

## Supported CompuLab Machines

* `cl-som-imx7`
# Prepare NXP BSP
[source,console]
repo init -u git://source.codeaurora.org/external/imx/imx-manifest.git -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml
repo sync

# Download CompuLab meta layer
[source,console]
git clone -b master https://github.com/compulab-yokneam/meta-bsp-imx7.git sources/meta-bsp-imx7/

# Set a desire machine
* `cl-som-imx7`
[source,console]
COMPULAB_MACHINE=cl-som-imx7

# Build Images
Refer to the http://source.codeaurora.org/external/imx/meta-fsl-bsp-release/tree/imx/README?h=sumo-4.14.98-2.0.0_ga[`NXP Readme`] for details about how to select a correct `backend` & `distro`.

## imx7
This example shows how to build NXP supported images for the `${COMPULAB_MACHINE}`

* Weston GUI Image
[source,console]
MACHINE=${COMPULAB_MACHINE} DISTRO=fsl-imx-xwayland source sources/meta-bsp-imx7/tools/setup-env -b build-xwayland-imx7
bitbake -k fsl-image-qt5-validation-imx
* XFCE GUI Image
[source,console]
MACHINE=${COMPULAB_MACHINE} DISTRO=fsl-imx-x11 source sources/meta-bsp-imx7/tools/setup-env -b build-x11-imx7
bitbake -k compulab-image-xfce
## Device Trees and available features
### sbc-imx7
* imx7d-sbc-imx7.dtb -- U-Boot default
* imx7d-sbc-imx7-lvds.dtb -- LVDS on
* imx7d-sbc-imx7-m4.dtb -- M4 tests ready

### sbc-iot-imx7
* imx7d-sbc-iot-imx7.dtb
* imx7d-sbc-iot-imx7-can.dtb -- CAN on
* imx7d-sbc-iot-imx7-rs485-hdx.dtb - rs485 on
15 changes: 15 additions & 0 deletions conf/layer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# We have a conf and classes directory, append to BBPATH
BBPATH .= ":${LAYERDIR}"

# We have a recipes directory containing .bb and .bbappend files, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILE_COLLECTIONS += "compulab-bsp-imx7"
BBFILE_PATTERN_compulab-bsp-imx7 := "^${LAYERDIR}/"
BBFILE_PRIORITY_compulab-bsp-imx7 = "9"

BBMASK += "meta-compulab/recipes-xfce"
BBMASK += "meta-compulab/recipes-browser"

LAYERSERIES_COMPAT_compulab-bsp-imx7 = "sumo"
3 changes: 3 additions & 0 deletions recipes-desktop/cl-deploy/cl-deploy.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PACKAGE_ARCH = "${MACHINE_ARCH}"
RDEPENDS_${PN}_remove = "u-boot-fw-utils"
COMPATIBLE_MACHINE = "cl-som-imx7"
2 changes: 2 additions & 0 deletions recipes-desktop/cl-uboot/cl-uboot.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "cl-som-imx7"
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
From ed4d051180211dc436c02a2161006be8a4d8e50f Mon Sep 17 00:00:00 2001
From: Ilya Ledvich <[email protected]>
Date: Sun, 12 Nov 2017 17:18:17 +0200
Subject: [PATCH 01/37] ARM: dts: imx7d: cl-som-imx7: fix uart1 parent clock

Signed-off-by: Ilya Ledvich <[email protected]>
---
arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 34 ++++++++++++-------------
1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
index 3cc1fb9ce441..dfd378ad5fc2 100644
--- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
+++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
@@ -188,7 +188,7 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1>;
assigned-clocks = <&clks IMX7D_UART1_ROOT_SRC>;
- assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
+ assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>;
status = "okay";
};

@@ -249,31 +249,31 @@

pinctrl_i2c2: i2c2grp {
fsl,pins = <
- MX7D_PAD_I2C2_SDA__I2C2_SDA 0x4000007f
- MX7D_PAD_I2C2_SCL__I2C2_SCL 0x4000007f
+ MX7D_PAD_I2C2_SDA__I2C2_SDA 0x4000007f
+ MX7D_PAD_I2C2_SCL__I2C2_SCL 0x4000007f
>;
};

pinctrl_uart1: uart1grp {
fsl,pins = <
- MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79
- MX7D_PAD_UART1_RX_DATA__UART1_DCE_RX 0x79
+ MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79
+ MX7D_PAD_UART1_RX_DATA__UART1_DCE_RX 0x79
>;
};

pinctrl_usdhc3: usdhc3grp {
fsl,pins = <
- MX7D_PAD_SD3_CMD__SD3_CMD 0x59
- MX7D_PAD_SD3_CLK__SD3_CLK 0x19
- MX7D_PAD_SD3_DATA0__SD3_DATA0 0x59
- MX7D_PAD_SD3_DATA1__SD3_DATA1 0x59
- MX7D_PAD_SD3_DATA2__SD3_DATA2 0x59
- MX7D_PAD_SD3_DATA3__SD3_DATA3 0x59
- MX7D_PAD_SD3_DATA4__SD3_DATA4 0x59
- MX7D_PAD_SD3_DATA5__SD3_DATA5 0x59
- MX7D_PAD_SD3_DATA6__SD3_DATA6 0x59
- MX7D_PAD_SD3_DATA7__SD3_DATA7 0x59
- MX7D_PAD_SD3_STROBE__SD3_STROBE 0x19
+ MX7D_PAD_SD3_CMD__SD3_CMD 0x59
+ MX7D_PAD_SD3_CLK__SD3_CLK 0x19
+ MX7D_PAD_SD3_DATA0__SD3_DATA0 0x59
+ MX7D_PAD_SD3_DATA1__SD3_DATA1 0x59
+ MX7D_PAD_SD3_DATA2__SD3_DATA2 0x59
+ MX7D_PAD_SD3_DATA3__SD3_DATA3 0x59
+ MX7D_PAD_SD3_DATA4__SD3_DATA4 0x59
+ MX7D_PAD_SD3_DATA5__SD3_DATA5 0x59
+ MX7D_PAD_SD3_DATA6__SD3_DATA6 0x59
+ MX7D_PAD_SD3_DATA7__SD3_DATA7 0x59
+ MX7D_PAD_SD3_STROBE__SD3_STROBE 0x19
>;
};
};
@@ -281,7 +281,7 @@
&iomuxc_lpsr {
pinctrl_usbotg1: usbotg1grp {
fsl,pins = <
- MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x14 /* OTG PWREN */
+ MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x14 /* OTG PWREN */
>;
};
};
\ No newline at end of file
--
2.20.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
From 4dbe4c3badac43f11632d5ac1436724630f584bf Mon Sep 17 00:00:00 2001
From: Ilya Ledvich <[email protected]>
Date: Wed, 10 Jul 2019 09:12:33 +0300
Subject: [PATCH 02/37] ARM: dts: imx7d: cl-som-imx7: fix i2c2 configuration

Fix I2C2 pinmux configuration: change pins and move to the
iomuxc_lpsr node.

Signed-off-by: Ilya Ledvich <[email protected]>
---
arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
index dfd378ad5fc2..8a2c2b6d54f3 100644
--- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
+++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
@@ -247,13 +247,6 @@
>;
};

- pinctrl_i2c2: i2c2grp {
- fsl,pins = <
- MX7D_PAD_I2C2_SDA__I2C2_SDA 0x4000007f
- MX7D_PAD_I2C2_SCL__I2C2_SCL 0x4000007f
- >;
- };
-
pinctrl_uart1: uart1grp {
fsl,pins = <
MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79
@@ -279,6 +272,14 @@
};

&iomuxc_lpsr {
+ pinctrl_i2c2: i2c2grp {
+ fsl,pins = <
+ MX7D_PAD_LPSR_GPIO1_IO07__I2C2_SDA 0x4000007f
+ MX7D_PAD_LPSR_GPIO1_IO06__I2C2_SCL 0x4000007f
+ >;
+ };
+
+
pinctrl_usbotg1: usbotg1grp {
fsl,pins = <
MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x14 /* OTG PWREN */
--
2.20.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
From 5b8b52ded35612e84a2b4c3f5e5be7dbfb771fe8 Mon Sep 17 00:00:00 2001
From: Ilya Ledvich <[email protected]>
Date: Thu, 11 Jul 2019 09:16:01 +0300
Subject: [PATCH 03/37] ARM: dts: imx7d: cl-som-imx7: add fec phy reset

Signed-off-by: Ilya Ledvich <[email protected]>
---
arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
index 8a2c2b6d54f3..f482f5792ab5 100644
--- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
+++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
@@ -46,6 +46,7 @@
phy-mode = "rgmii";
phy-handle = <&ethphy0>;
fsl,magic-packet;
+ phy-reset-gpios = <&pca9555 4 GPIO_ACTIVE_LOW>; /* FEC2 Phy nReset */
status = "okay";

mdio {
@@ -75,6 +76,15 @@
status = "okay";
};

+&gpio1 {
+ gpio_phy1_nreset {
+ gpio-hog;
+ gpios = <4 GPIO_ACTIVE_HIGH>;
+ output-high;
+ line-name = "fec1_phy_nreset";
+ };
+};
+
&i2c2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c2>;
@@ -272,6 +282,15 @@
};

&iomuxc_lpsr {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_hog_lpsr>;
+
+ pinctrl_hog_lpsr: hoggrp_lpsr {
+ fsl,pins = <
+ MX7D_PAD_LPSR_GPIO1_IO04__GPIO1_IO4 0x34 /* FEC1 Phy nReset */
+ >;
+ };
+
pinctrl_i2c2: i2c2grp {
fsl,pins = <
MX7D_PAD_LPSR_GPIO1_IO07__I2C2_SDA 0x4000007f
@@ -279,10 +298,9 @@
>;
};

-
pinctrl_usbotg1: usbotg1grp {
fsl,pins = <
MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x14 /* OTG PWREN */
>;
};
-};
\ No newline at end of file
+};
--
2.20.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From b296c917b7881680253f6050da3214669f75f945 Mon Sep 17 00:00:00 2001
From: Ilya Ledvich <[email protected]>
Date: Mon, 13 Nov 2017 12:49:04 +0200
Subject: [PATCH 04/37] ARM: dts: imx7d: cl-som-imx7: add RTC support

Add support for EM3027 Real Time Clock over I2C2 bus.

Signed-off-by: Ilya Ledvich <[email protected]>
---
arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
index f482f5792ab5..8ea3c09e4f09 100644
--- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
+++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
@@ -192,6 +192,11 @@
reg = <0x50>;
pagesize = <16>;
};
+
+ rtc@56 {
+ compatible = "emmicro,em3027";
+ reg = <0x56>;
+ };
};

&uart1 {
--
2.20.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
From 2ab1b5b8babb34e85d29b0d31759d983705da4b8 Mon Sep 17 00:00:00 2001
From: Ilya Ledvich <[email protected]>
Date: Thu, 14 Jan 2016 13:35:58 +0200
Subject: [PATCH 05/37] ARM: dts: imx7d: cl-som-imx7: add support for gpio led

Add support for onboard LED driven by GPIO6_14 in heartbeat mode.

Signed-off-by: Ilya Ledvich <[email protected]>
---
arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
index 8ea3c09e4f09..abd9efa6bb4c 100644
--- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
+++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts
@@ -30,6 +30,16 @@
gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
+
+ leds {
+ compatible = "gpio-leds";
+
+ onboard-led {
+ label = "Heartbeat";
+ gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "heartbeat";
+ };
+ };
};

&cpu0 {
@@ -226,6 +236,15 @@
};

&iomuxc {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_hog>;
+
+ pinctrl_hog: hoggrp {
+ fsl,pins = <
+ MX7D_PAD_SAI1_TX_SYNC__GPIO6_IO14 0x34 /* Onboard LED */
+ >;
+ };
+
pinctrl_enet1: enet1grp {
fsl,pins = <
MX7D_PAD_SD2_CD_B__ENET1_MDIO 0x30
--
2.20.1

Loading

0 comments on commit 259a2e5

Please sign in to comment.