All of lore.kernel.org
 help / color / mirror / Atom feed
* [3rdparty][PATCH 1/4] u-boot-variscite: upgrade 2015.04 -> 2017.03
@ 2018-09-14 10:02 Andreas Müller
  2018-09-14 10:02 ` [3rdparty][PATCH 2/4] imx6qdl-variscite-som:set linux-fslc as preferred for use-mainline-bsp override Andreas Müller
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Andreas Müller @ 2018-09-14 10:02 UTC (permalink / raw)
  To: meta-freescale

* Licence
    have no idea what changed in the license file README. For
    plausibility a grep here on checksum a2c678cfd4a4d97135585cad908541c6 unveiled:

    recipes-bsp/u-boot/u-boot-boundary-common_2017.07.inc
    recipes-bsp/u-boot/u-boot-toradex.inc
    recipes-bsp/u-boot/u-boot-boundary-common_2017.03.imx8m.inc

    All these set license to GPLv2+ - so we should be fine.

* Fix-the-compile-issue-under-gcc6.patch
    Later versions of u-boot support a version independent gcc header file
    making the patch obsolete

* COMPATIBLE_MACHINE
    resrict to imx6qdl-variscite-som

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
 .../Fix-the-compile-issue-under-gcc6.patch         | 92 ----------------------
 ...cite_2015.04.bb => u-boot-variscite_2017.03.bb} |  9 +--
 2 files changed, 4 insertions(+), 97 deletions(-)
 delete mode 100644 recipes-bsp/u-boot/u-boot-variscite-2015.04/Fix-the-compile-issue-under-gcc6.patch
 rename recipes-bsp/u-boot/{u-boot-variscite_2015.04.bb => u-boot-variscite_2017.03.bb} (53%)

diff --git a/recipes-bsp/u-boot/u-boot-variscite-2015.04/Fix-the-compile-issue-under-gcc6.patch b/recipes-bsp/u-boot/u-boot-variscite-2015.04/Fix-the-compile-issue-under-gcc6.patch
deleted file mode 100644
index 3d080b6..0000000
--- a/recipes-bsp/u-boot/u-boot-variscite-2015.04/Fix-the-compile-issue-under-gcc6.patch
+++ /dev/null
@@ -1,92 +0,0 @@
-From 5d39bd421fc093e2c852316080538cef85a9e1a0 Mon Sep 17 00:00:00 2001
-From: yocto <yocto@yocto.org>
-Date: Thu, 2 Jun 2016 00:18:33 -0500
-Subject: [PATCH] Fix the compile issue under gcc6
-
-Fix the following build error:
-| .../include/linux/compiler-gcc.h:106:30: fatal error: linux/compiler-gcc6.h: No such file or directory
-| #include gcc_header(__GNUC__)
-
-Signed-off-by: Zhenhua Luo <zhenhua.luo@nxp.com>
-
-Upstream-Status: Pending
----
- include/linux/compiler-gcc6.h | 66 +++++++++++++++++++++++++++++++++++++++++++
- 1 file changed, 66 insertions(+)
- create mode 100644 include/linux/compiler-gcc6.h
-
-diff --git a/include/linux/compiler-gcc6.h b/include/linux/compiler-gcc6.h
-new file mode 100644
-index 0000000..cdd1cc2
---- /dev/null
-+++ b/include/linux/compiler-gcc6.h
-@@ -0,0 +1,66 @@
-+#ifndef __LINUX_COMPILER_H
-+#error "Please don't include <linux/compiler-gcc5.h> directly, include <linux/compiler.h> instead."
-+#endif
-+
-+#define __used				__attribute__((__used__))
-+#define __must_check			__attribute__((warn_unused_result))
-+#define __compiler_offsetof(a, b)	__builtin_offsetof(a, b)
-+
-+/* Mark functions as cold. gcc will assume any path leading to a call
-+   to them will be unlikely.  This means a lot of manual unlikely()s
-+   are unnecessary now for any paths leading to the usual suspects
-+   like BUG(), printk(), panic() etc. [but let's keep them for now for
-+   older compilers]
-+
-+   Early snapshots of gcc 4.3 don't support this and we can't detect this
-+   in the preprocessor, but we can live with this because they're unreleased.
-+   Maketime probing would be overkill here.
-+
-+   gcc also has a __attribute__((__hot__)) to move hot functions into
-+   a special section, but I don't see any sense in this right now in
-+   the kernel context */
-+#define __cold			__attribute__((__cold__))
-+
-+#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
-+
-+#ifndef __CHECKER__
-+# define __compiletime_warning(message) __attribute__((warning(message)))
-+# define __compiletime_error(message) __attribute__((error(message)))
-+#endif /* __CHECKER__ */
-+
-+/*
-+ * Mark a position in code as unreachable.  This can be used to
-+ * suppress control flow warnings after asm blocks that transfer
-+ * control elsewhere.
-+ *
-+ * Early snapshots of gcc 4.5 don't support this and we can't detect
-+ * this in the preprocessor, but we can live with this because they're
-+ * unreleased.  Really, we need to have autoconf for the kernel.
-+ */
-+#define unreachable() __builtin_unreachable()
-+
-+/* Mark a function definition as prohibited from being cloned. */
-+#define __noclone	__attribute__((__noclone__))
-+
-+/*
-+ * Tell the optimizer that something else uses this function or variable.
-+ */
-+#define __visible __attribute__((externally_visible))
-+
-+/*
-+ * GCC 'asm goto' miscompiles certain code sequences:
-+ *
-+ *   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670
-+ *
-+ * Work it around via a compiler barrier quirk suggested by Jakub Jelinek.
-+ * Fixed in GCC 4.8.2 and later versions.
-+ *
-+ * (asm goto is automatically volatile - the naming reflects this.)
-+ */
-+#define asm_volatile_goto(x...)	do { asm goto(x); asm (""); } while (0)
-+
-+#ifdef CONFIG_ARCH_USE_BUILTIN_BSWAP
-+#define __HAVE_BUILTIN_BSWAP32__
-+#define __HAVE_BUILTIN_BSWAP64__
-+#define __HAVE_BUILTIN_BSWAP16__
-+#endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */
--- 
-2.5.0
-
diff --git a/recipes-bsp/u-boot/u-boot-variscite_2015.04.bb b/recipes-bsp/u-boot/u-boot-variscite_2017.03.bb
similarity index 53%
rename from recipes-bsp/u-boot/u-boot-variscite_2015.04.bb
rename to recipes-bsp/u-boot/u-boot-variscite_2017.03.bb
index 9dbd58a..818e03e 100644
--- a/recipes-bsp/u-boot/u-boot-variscite_2015.04.bb
+++ b/recipes-bsp/u-boot/u-boot-variscite_2017.03.bb
@@ -2,19 +2,18 @@ require recipes-bsp/u-boot/u-boot.inc
 
 SUMMARY = "U-Boot for Variscite i.MX6Q/DL VAR-SOM-MX6"
 LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://Licenses/README;md5=c7383a594871c03da76b3707929d2919"
-COMPATIBLE_MACHINE = "(mxs|mx6)"
+LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
+COMPATIBLE_MACHINE = "(imx6qdl-variscite-som)"
 
 PROVIDES += "u-boot"
 
 SPL_BINARY = "SPL"
 
-SRCREV = "d4b69fe88b20223acf36e4c36ea464cd5a866ab2"
-SRCBRANCH = "imx_v2015.04_4.1.15_1.1.0_ga_var01"
+SRCREV = "3b5f889cb501c9fbe44c750c657dcd9ea4875176"
+SRCBRANCH = "imx_v2017.03_4.9.11_1.0.0_ga_var01"
 
 SRC_URI = "\
     git://github.com/varigit/uboot-imx.git;protocol=git;branch=${SRCBRANCH} \
-    file://Fix-the-compile-issue-under-gcc6.patch \
 "
 
 S = "${WORKDIR}/git"
-- 
2.14.4



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [3rdparty][PATCH 2/4] imx6qdl-variscite-som:set linux-fslc as preferred for use-mainline-bsp override
  2018-09-14 10:02 [3rdparty][PATCH 1/4] u-boot-variscite: upgrade 2015.04 -> 2017.03 Andreas Müller
@ 2018-09-14 10:02 ` Andreas Müller
  2018-09-14 10:02 ` [3rdparty][PATCH 3/4] imx6qdl-variscite-som: Add support for use-mainline-bsp/linux-fslc Andreas Müller
  2018-09-14 10:03 ` [3rdparty][PATCH 4/4] imx6qdl-variscite-som: select DEFAULTTUNE= "cortexa9thf-neon" Andreas Müller
  2 siblings, 0 replies; 11+ messages in thread
From: Andreas Müller @ 2018-09-14 10:02 UTC (permalink / raw)
  To: meta-freescale

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
 conf/machine/imx6qdl-variscite-som.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/conf/machine/imx6qdl-variscite-som.conf b/conf/machine/imx6qdl-variscite-som.conf
index c42741a..1409605 100644
--- a/conf/machine/imx6qdl-variscite-som.conf
+++ b/conf/machine/imx6qdl-variscite-som.conf
@@ -10,6 +10,7 @@ require conf/machine/include/imx-base.inc
 require conf/machine/include/tune-cortexa9.inc
 
 PREFERRED_PROVIDER_virtual/kernel = "linux-variscite"
+PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc"
 
 KERNEL_DEVICETREE = " \
     imx6dl-var-som-cap.dtb \
-- 
2.14.4



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [3rdparty][PATCH 3/4] imx6qdl-variscite-som: Add support for use-mainline-bsp/linux-fslc
  2018-09-14 10:02 [3rdparty][PATCH 1/4] u-boot-variscite: upgrade 2015.04 -> 2017.03 Andreas Müller
  2018-09-14 10:02 ` [3rdparty][PATCH 2/4] imx6qdl-variscite-som:set linux-fslc as preferred for use-mainline-bsp override Andreas Müller
@ 2018-09-14 10:02 ` Andreas Müller
  2018-09-17 19:40   ` Otavio Salvador
  2018-09-14 10:03 ` [3rdparty][PATCH 4/4] imx6qdl-variscite-som: select DEFAULTTUNE= "cortexa9thf-neon" Andreas Müller
  2 siblings, 1 reply; 11+ messages in thread
From: Andreas Müller @ 2018-09-14 10:02 UTC (permalink / raw)
  To: meta-freescale

Tested:

* HDMI
* MMC
* eMMC (mounted)
* NAND (kernel log - no partitions)
* RTC
* USB-Host
* Ethernet
* WiFi
* Bluetooth
* serial console

Open:

* HDMI sound
* Onboard sound (ALSA looks good has no phones connected yet)
* User-Button
* USB-OTG

Cannot test:

* CAN

Additional comments:

1. The way, the dt-files are copied into the kernel sources is not state of the
   art. But since this is some work in progress it makes my worklow a lot easier.
2. My target is to send dt-files to mainline kernel but they are not yet ready
   for that 'environment'. Once done I'll send backports to meta-fslc and 1.
   can go.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
 conf/machine/imx6qdl-variscite-som.conf            |   5 +
 .../linux/linux-fslc/imx6q-var-som-vsc.dts         | 144 +++++
 .../linux/linux-fslc/imx6qdl-var-som.dtsi          | 626 +++++++++++++++++++++
 recipes-kernel/linux/linux-fslc_%.bbappend         |  11 +
 4 files changed, 786 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-fslc/imx6q-var-som-vsc.dts
 create mode 100644 recipes-kernel/linux/linux-fslc/imx6qdl-var-som.dtsi

diff --git a/conf/machine/imx6qdl-variscite-som.conf b/conf/machine/imx6qdl-variscite-som.conf
index 1409605..f3a14ff 100644
--- a/conf/machine/imx6qdl-variscite-som.conf
+++ b/conf/machine/imx6qdl-variscite-som.conf
@@ -24,6 +24,10 @@ KERNEL_DEVICETREE = " \
     imx6q-var-som-vsc.dtb \
 "
 
+KERNEL_DEVICETREE_use-mainline-bsp = " \
+    imx6q-var-som-vsc.dtb \
+"
+
 KERNEL_IMAGETYPE = "uImage"
 
 UBOOT_SPL_BUILD = "yes"
@@ -33,6 +37,7 @@ WKS_FILE = "imx-uboot-spl-bootpart.wks"
 
 PREFERRED_PROVIDER_virtual/bootloader = "u-boot-variscite"
 PREFERRED_PROVIDER_u-boot = "u-boot-variscite"
+UBOOT_ENTRYPOINT_use-mainline-bsp = "0x10008000"
 
 UBOOT_CONFIG ??= "nand sd"
 UBOOT_CONFIG[sd] = "mx6var_som_sd_config,sdcard"
diff --git a/recipes-kernel/linux/linux-fslc/imx6q-var-som-vsc.dts b/recipes-kernel/linux/linux-fslc/imx6q-var-som-vsc.dts
new file mode 100644
index 0000000..63be949
--- /dev/null
+++ b/recipes-kernel/linux/linux-fslc/imx6q-var-som-vsc.dts
@@ -0,0 +1,144 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Support for Variscite VAR-SOM-MX6 Starter Kit
+ *
+ * Copyright 2018
+ * Author: Andreas Müller <schnitzeltony@gmail.com>
+ */
+
+/dts-v1/;
+
+#include "imx6q.dtsi"
+#include "imx6qdl-var-som.dtsi"
+#include <dt-bindings/input/linux-event-codes.h>
+
+/ {
+	model = "Variscite i.MX6 VAR-SOM-MX6";
+	compatible = "variscite,var-som", "fsl,imx6q";
+
+	gpio-keys { /* OK */
+		compatible = "gpio-keys";
+		autorepeat;
+
+		back {
+			gpios = <&gpio5 20 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_BACK>;
+			label = "Key Back";
+			linux,input-type = <1>;
+			debounce-interval = <100>;
+			wakeup-source;
+		};
+	};
+
+
+	sound {
+		compatible = "simple-audio-card";
+		simple-audio-card,name = "tlv320aic3106-audio";
+		simple-audio-card,format = "i2s";
+		simple-audio-card,bitclock-master = <&sound_codec>;
+		simple-audio-card,frame-master = <&sound_codec>;
+		simple-audio-card,widgets = "Headphone", "Headphone Jack",
+					    "Line", "Line In";
+		simple-audio-card,routing = "Headphone Jack", "HPLOUT",
+					    "Headphone Jack", "HPROUT",
+					    "LINE1L", "Line In",
+					    "LINE1R", "Line In";
+
+		sound_cpu: simple-audio-card,cpu {
+			sound-dai = <&ssi2>;
+		};
+
+		sound_codec: simple-audio-card,codec {
+			sound-dai = <&tlv320aic3106>;
+			clocks = <&clks IMX6QDL_CLK_CKO>;
+		};
+	};
+};
+
+&can1 {
+	status = "okay";
+};
+
+&ecspi1 {
+	cs-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>,
+		   <&gpio4 10 GPIO_ACTIVE_HIGH>;
+	status = "okay";
+};
+
+&fec { /* OK */
+	status = "okay";
+};
+
+&hdmi {
+	status = "okay";
+};
+
+&i2c3 { /* OK */
+	status = "okay";
+	rtc@0x68 {
+		compatible = "dallas,ds1337";
+		reg = <0x68>;
+	};
+};
+
+/*&ldb {
+	status = "okay";
+
+	lvds-channel@1 {
+		status = "okay";
+
+		port@4 {
+			reg = <4>;
+
+			lvds1_out: endpoint {
+				remote-endpoint = <&panel_in>;
+			};
+		};
+	};
+};*/
+
+&pwm2 {
+	status = "okay";
+};
+
+&uart1 {
+	status = "okay";
+};
+
+&uart3 {
+	status = "okay";
+};
+
+&usbh1 {
+	status = "okay";
+};
+
+&usbotg {
+	status = "okay";
+};
+
+&usdhc2 { /* OK */
+	pinctrl-1 = <&pinctrl_usdhc2cdwp>;
+	cd-gpios = <&gpio4 14 GPIO_ACTIVE_LOW>;
+	wp-gpios = <&gpio4 15 GPIO_ACTIVE_HIGH>;
+	status = "okay";
+};
+
+&iomuxc {
+	pinctrl_gpio_keys: gpio_keysgrp {
+		fsl,pins = <
+			/* user button */
+			MX6QDL_PAD_CSI0_DATA_EN__GPIO5_IO20 0x17059
+		>;
+	};
+
+	pinctrl_usdhc2cdwp: usdhc2cdwpgrp {
+		fsl,pins = <
+      /* SDMMC2 CD/WP */
+      MX6QDL_PAD_KEY_COL4__GPIO4_IO14		0x80000000
+      MX6QDL_PAD_KEY_ROW4__GPIO4_IO15		0x80000000
+		>;
+	};
+};
+
+
diff --git a/recipes-kernel/linux/linux-fslc/imx6qdl-var-som.dtsi b/recipes-kernel/linux/linux-fslc/imx6qdl-var-som.dtsi
new file mode 100644
index 0000000..47949d1
--- /dev/null
+++ b/recipes-kernel/linux/linux-fslc/imx6qdl-var-som.dtsi
@@ -0,0 +1,626 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Support for Variscite SOM Module
+ *
+ * Copyright 2018
+ * Author: Andreas Müller <schnitzeltony@gmail.com>
+ * Based on imx6qdl-var-dart.dtsi
+ */
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/sound/fsl-imx-audmux.h>
+
+/ {
+	memory@10000000 {
+		reg = <0x10000000 0x40000000>;
+	};
+
+	reg_3p3v: regulator-3p3v {
+		compatible = "regulator-fixed";
+		regulator-name = "3P3V";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
+	};
+
+	reg_wl18xx_vmmc: regulator-wl18xx {
+		compatible = "regulator-fixed";
+		regulator-name = "vwl1807";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		gpio = <&gpio7 8 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		startup-delay-us = <70000>;
+	};
+
+	reg_usb_h1_vbus: regulator-usbh1vbus {
+		compatible = "regulator-fixed";
+		regulator-name = "usb_h1_vbus";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+	};
+
+	reg_usb_otg_vbus: regulator-usbotgvbus {
+		compatible = "regulator-fixed";
+		regulator-name = "usb_otg_vbus";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+	};
+};
+
+&iomuxc {
+	pinctrl_audmux: audmux {
+		fsl,pins = <
+			MX6QDL_PAD_CSI0_DAT7__AUD3_RXD		0x130b0
+			MX6QDL_PAD_CSI0_DAT4__AUD3_TXC		0x130b0
+			MX6QDL_PAD_CSI0_DAT5__AUD3_TXD		0x110b0
+			MX6QDL_PAD_CSI0_DAT6__AUD3_TXFS		0x130b0
+			/* Audio Clock */
+			MX6QDL_PAD_GPIO_0__CCM_CLKO1		0x130b0
+			/* Audio reset */
+			MX6QDL_PAD_GPIO_19__GPIO4_IO05		0x178b0
+		>;
+	};
+
+	pinctrl_bt: bt {
+		fsl,pins = <
+			/* Bluetooth / Wifi enable */
+			MX6QDL_PAD_SD3_DAT6__GPIO6_IO18		0x1b0b1
+			/* Bluetooth Slow Clock */
+			MX6QDL_PAD_ENET_RXD0__OSC32K_32K_OUT	0x000b0
+		>;
+	};
+
+	pinctrl_ecspi3: ecspi3grp {
+		fsl,pins = <
+			MX6QDL_PAD_DISP0_DAT2__ECSPI3_MISO	0x100b1
+			MX6QDL_PAD_DISP0_DAT1__ECSPI3_MOSI	0x100b1
+			MX6QDL_PAD_DISP0_DAT0__ECSPI3_SCLK	0x100b1
+			MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24	0x178b0 /* CS */
+		>;
+	};
+
+	pinctrl_enet: enetgrp {
+		fsl,pins = <
+			MX6QDL_PAD_ENET_MDIO__ENET_MDIO		0x100b0
+			MX6QDL_PAD_ENET_MDC__ENET_MDC		0x100b0
+			MX6QDL_PAD_RGMII_TXC__RGMII_TXC		0x10030
+			MX6QDL_PAD_RGMII_TD0__RGMII_TD0		0x10030
+			MX6QDL_PAD_RGMII_TD1__RGMII_TD1		0x10030
+			MX6QDL_PAD_RGMII_TD2__RGMII_TD2		0x10030
+			MX6QDL_PAD_RGMII_TD3__RGMII_TD3		0x10030
+			MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL	0x10030
+			MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK	0x100b0
+			MX6QDL_PAD_RGMII_RXC__RGMII_RXC		0x1b030
+			MX6QDL_PAD_RGMII_RD0__RGMII_RD0		0x1b030
+			MX6QDL_PAD_RGMII_RD1__RGMII_RD1		0x1b030
+			MX6QDL_PAD_RGMII_RD2__RGMII_RD2		0x1b030
+			MX6QDL_PAD_RGMII_RD3__RGMII_RD3		0x1b030
+			MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL	0x1b030
+		>;
+	};
+
+	pinctrl_flexcan1: flexcan1grp {
+		fsl,pins = <
+			MX6QDL_PAD_GPIO_7__FLEXCAN1_TX	0x1b0b0
+			MX6QDL_PAD_GPIO_8__FLEXCAN1_RX	0x1b0b0
+		>;
+	};
+
+	pinctrl_flexcan2: flexcan2grp {
+		fsl,pins = <
+			MX6QDL_PAD_KEY_COL4__FLEXCAN2_TX	0x1b0b0
+			MX6QDL_PAD_KEY_ROW4__FLEXCAN2_RX	0x1b0b0
+		>;
+	};
+
+	pinctrl_hdmicec: hdmicecgrp {
+		fsl,pins = <
+			MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE	0x1f8b0
+		>;
+	};
+
+	pinctrl_i2c1: i2c1grp {
+		fsl,pins = <
+			MX6QDL_PAD_CSI0_DAT8__I2C1_SDA	0x4001b8b1
+			MX6QDL_PAD_CSI0_DAT9__I2C1_SCL	0x4001b8b1
+		>;
+	};
+
+	pinctrl_i2c2: i2c2grp {
+		fsl,pins = <
+			MX6QDL_PAD_KEY_COL3__I2C2_SCL	0x4001b8b1
+			MX6QDL_PAD_KEY_ROW3__I2C2_SDA	0x4001b8b1
+		>;
+	};
+
+	pinctrl_i2c3: i2c3grp {
+		fsl,pins = <
+			MX6QDL_PAD_GPIO_5__I2C3_SCL	0x4001b8b1
+			MX6QDL_PAD_GPIO_16__I2C3_SDA	0x4001b8b1
+		>;
+	};
+
+	pinctrl_pmic: pmicgrp {
+		fsl,pins = <
+			/* PMIC INT */
+			MX6QDL_PAD_GPIO_17__GPIO7_IO12	0x1b0b1
+		>;
+	};
+
+	pinctrl_pwm2: pwm2grp {
+		fsl,pins = <
+			MX6QDL_PAD_DISP0_DAT9__PWM2_OUT	0x1b0b1
+		>;
+	};
+
+	pinctrl_uart1: uart1grp {
+		fsl,pins = <
+			MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1
+			MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
+		>;
+	};
+
+	pinctrl_uart2: uart2grp {
+		fsl,pins = <
+			MX6QDL_PAD_SD3_DAT4__UART2_RX_DATA	0x1b0b1
+			MX6QDL_PAD_SD3_DAT5__UART2_TX_DATA	0x1b0b1
+			MX6QDL_PAD_EIM_D28__UART2_CTS_B		0x1b0b1
+			MX6QDL_PAD_EIM_D29__UART2_RTS_B		0x1b0b1
+		>;
+	};
+
+	pinctrl_uart3: uart3grp {
+		fsl,pins = <
+			MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
+			MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
+			MX6QDL_PAD_EIM_D23__UART3_CTS_B   0x1b0b1
+			MX6QDL_PAD_EIM_EB3__UART3_RTS_B   0x1b0b1
+		>;
+	};
+
+	pinctrl_usbotg: usbotggrp {
+		fsl,pins = <
+			MX6QDL_PAD_GPIO_4__GPIO1_IO04 		0x17059
+		>;
+	};
+
+	pinctrl_usdhc1: usdhc1grp {
+		fsl,pins = <
+			MX6QDL_PAD_SD1_CMD__SD1_CMD	0x17059
+			MX6QDL_PAD_SD1_CLK__SD1_CLK	0x10059
+			MX6QDL_PAD_SD1_DAT0__SD1_DATA0	0x17059
+			MX6QDL_PAD_SD1_DAT1__SD1_DATA1	0x17059
+			MX6QDL_PAD_SD1_DAT2__SD1_DATA2	0x17059
+			MX6QDL_PAD_SD1_DAT3__SD1_DATA3	0x17059
+		>;
+	};
+
+	pinctrl_usdhc2: usdhc2grp {
+		fsl,pins = <
+			MX6QDL_PAD_SD2_CMD__SD2_CMD	0x17059
+			MX6QDL_PAD_SD2_CLK__SD2_CLK	0x10059
+			MX6QDL_PAD_SD2_DAT0__SD2_DATA0	0x17059
+			MX6QDL_PAD_SD2_DAT1__SD2_DATA1	0x17059
+			MX6QDL_PAD_SD2_DAT2__SD2_DATA2	0x17059
+			MX6QDL_PAD_SD2_DAT3__SD2_DATA3	0x17059
+		>;
+	};
+
+	pinctrl_usdhc3: usdhc3grp {
+		fsl,pins = <
+			MX6QDL_PAD_SD3_CMD__SD3_CMD	0x17059
+			MX6QDL_PAD_SD3_CLK__SD3_CLK	0x10059
+			MX6QDL_PAD_SD3_DAT0__SD3_DATA0	0x17059
+			MX6QDL_PAD_SD3_DAT1__SD3_DATA1	0x17059
+			MX6QDL_PAD_SD3_DAT2__SD3_DATA2	0x17059
+			MX6QDL_PAD_SD3_DAT3__SD3_DATA3	0x17059
+			/* WL_EN */
+			MX6QDL_PAD_SD3_DAT7__GPIO6_IO17 0x13059
+			/* WL_IRQ */
+			MX6QDL_PAD_SD3_RST__GPIO7_IO08  0x13059
+		>;
+	};
+
+	pinctrl_usdhc3_100mhz: usdhc3grp100mhz {
+		fsl,pins = <
+			MX6QDL_PAD_SD3_CMD__SD3_CMD	0x170B9
+			MX6QDL_PAD_SD3_CLK__SD3_CLK	0x100B9
+			MX6QDL_PAD_SD3_DAT0__SD3_DATA0	0x170B9
+			MX6QDL_PAD_SD3_DAT1__SD3_DATA1	0x170B9
+			MX6QDL_PAD_SD3_DAT2__SD3_DATA2	0x170B9
+			MX6QDL_PAD_SD3_DAT3__SD3_DATA3	0x170B9
+			/* WL_EN */
+			MX6QDL_PAD_SD3_DAT7__GPIO6_IO17 0x130B9
+			/* WL_IRQ */
+			MX6QDL_PAD_SD3_RST__GPIO7_IO08  0x130B9
+		>;
+	};
+
+	pinctrl_usdhc3_200mhz: usdhc3grp200mhz {
+		fsl,pins = <
+			MX6QDL_PAD_SD3_CMD__SD3_CMD	0x170F9
+			MX6QDL_PAD_SD3_CLK__SD3_CLK	0x100F9
+			MX6QDL_PAD_SD3_DAT0__SD3_DATA0	0x170F9
+			MX6QDL_PAD_SD3_DAT1__SD3_DATA1	0x170F9
+			MX6QDL_PAD_SD3_DAT2__SD3_DATA2	0x170F9
+			MX6QDL_PAD_SD3_DAT3__SD3_DATA3	0x170F9
+			/* WL_EN */
+			MX6QDL_PAD_SD3_DAT7__GPIO6_IO17 0x130F9
+			/* WL_IRQ */
+			MX6QDL_PAD_SD3_RST__GPIO7_IO08  0x130F9
+		>;
+	};
+
+	pinctrl_gpmi_nand: gpmi-nand {
+		fsl,pins = <
+			MX6QDL_PAD_NANDF_CLE__NAND_CLE		0xb0b1
+			MX6QDL_PAD_NANDF_ALE__NAND_ALE		0xb0b1
+			MX6QDL_PAD_NANDF_CS0__NAND_CE0_B	0xb0b1
+			MX6QDL_PAD_NANDF_CS1__NAND_CE1_B	0xb0b1
+			MX6QDL_PAD_NANDF_RB0__NAND_READY_B	0xb0b1
+			MX6QDL_PAD_NANDF_D0__NAND_DATA00	0xb0b1
+			MX6QDL_PAD_NANDF_D1__NAND_DATA01	0xb0b1
+			MX6QDL_PAD_NANDF_D2__NAND_DATA02	0xb0b1
+			MX6QDL_PAD_NANDF_D3__NAND_DATA03	0xb0b1
+			MX6QDL_PAD_NANDF_D4__NAND_DATA04	0xb0b1
+			MX6QDL_PAD_NANDF_D5__NAND_DATA05	0xb0b1
+			MX6QDL_PAD_NANDF_D6__NAND_DATA06	0xb0b1
+			MX6QDL_PAD_NANDF_D7__NAND_DATA07	0xb0b1
+			MX6QDL_PAD_SD4_CMD__NAND_RE_B		0xb0b1
+			MX6QDL_PAD_SD4_CLK__NAND_WE_B		0xb0b1
+			MX6QDL_PAD_NANDF_WP_B__NAND_WP_B	0xb0b1
+		>;
+	};
+};
+
+&audmux {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_audmux>;
+	status = "okay";
+
+	ssi2 {
+		fsl,audmux-port = <1>;
+		fsl,port-config = <
+			(IMX_AUDMUX_V2_PTCR_SYN |
+			IMX_AUDMUX_V2_PTCR_TFSDIR |
+			IMX_AUDMUX_V2_PTCR_TFSEL(2) |
+			IMX_AUDMUX_V2_PTCR_TCLKDIR |
+			IMX_AUDMUX_V2_PTCR_TCSEL(2))
+			IMX_AUDMUX_V2_PDCR_RXDSEL(2)
+		>;
+	};
+
+	aud3 {
+		fsl,audmux-port = <2>;
+		fsl,port-config = <
+			IMX_AUDMUX_V2_PTCR_SYN
+			IMX_AUDMUX_V2_PDCR_RXDSEL(1)
+		>;
+	};
+};
+
+&can1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_flexcan1>;
+	status = "disabled";
+};
+
+&can2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_flexcan2>;
+	status = "disabled";
+};
+
+&ecspi3 {
+	pinctrl-names = "default";
+	fsl,spi-num-chipselects = <1>;
+	pinctrl-0 = <&pinctrl_ecspi3>;
+	cs-gpios = <&gpio4 24 0>;
+	status = "disabled";
+};
+
+&fec {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_enet>;
+	phy-mode = "rgmii";
+	phy-reset-gpios = <&gpio1 25 0>;
+	phy-reset-duration=<100>;
+	status = "disabled";
+};
+
+&hdmi {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_hdmicec>;
+	ddc-i2c-bus = <&i2c2>;
+	status = "disabled";
+};
+
+&i2c1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c1>;
+	status = "disabled";
+};
+
+&i2c2 {
+	clock-frequency = <100000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c2>;
+	status = "okay";
+
+	pmic@8 {
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_pmic>;
+		compatible = "fsl,pfuze100";
+		reg = <0x08>;
+
+		regulators {
+			sw1a_reg: sw1ab {
+				regulator-min-microvolt = <300000>;
+				regulator-max-microvolt = <1875000>;
+				regulator-boot-on;
+				regulator-always-on;
+				regulator-ramp-delay = <6250>;
+			};
+
+			sw1c_reg: sw1c {
+				regulator-min-microvolt = <300000>;
+				regulator-max-microvolt = <1875000>;
+				regulator-boot-on;
+				regulator-always-on;
+				regulator-ramp-delay = <6250>;
+			};
+
+			sw2_reg: sw2 {
+				regulator-min-microvolt = <800000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-boot-on;
+				regulator-always-on;
+			};
+
+			sw3a_reg: sw3a {
+				regulator-min-microvolt = <800000>;
+				regulator-max-microvolt = <3950000>;
+				regulator-boot-on;
+				regulator-always-on;
+			};
+
+			sw3b_reg: sw3b {
+				regulator-min-microvolt = <800000>;
+				regulator-max-microvolt = <3950000>;
+				regulator-boot-on;
+				regulator-always-on;
+			};
+
+			sw4_reg: sw4 {
+				regulator-min-microvolt = <800000>;
+				regulator-max-microvolt = <3950000>;
+			};
+
+			snvs_reg: vsnvs {
+				regulator-min-microvolt = <1200000>;
+				regulator-max-microvolt = <3000000>;
+				regulator-boot-on;
+				regulator-always-on;
+			};
+
+			vref_reg: vrefddr {
+				regulator-boot-on;
+				regulator-always-on;
+			};
+
+			vgen1_reg: vgen1 {
+				regulator-min-microvolt = <800000>;
+				regulator-max-microvolt = <1550000>;
+			};
+
+			vgen2_reg: vgen2 {
+				regulator-min-microvolt = <800000>;
+				regulator-max-microvolt = <1550000>;
+			};
+
+			vgen3_reg: vgen3 {
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			vgen4_reg: vgen4 {
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			vgen5_reg: vgen5 {
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			vgen6_reg: vgen6 {
+				regulator-min-microvolt = <2800000>;
+				regulator-max-microvolt = <2800000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+		};
+	};
+
+	tlv320aic3106: codec@1b {
+		compatible = "ti,tlv320aic3106";
+		reg = <0x1b>;
+		#sound-dai-cells = <0>;
+		DRVDD-supply = <&reg_3p3v>;
+		AVDD-supply = <&reg_3p3v>;
+		IOVDD-supply = <&reg_3p3v>;
+		DVDD-supply = <&reg_3p3v>;
+		ai3x-ocmv = <0>;
+		reset-gpios = <&gpio4 5 GPIO_ACTIVE_LOW>;
+		ai3x-gpio-func = <
+			0 /* AIC3X_GPIO1_FUNC_DISABLED */
+			5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */
+		>;
+	};
+};
+
+&i2c3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c3>;
+	status = "disabled";
+};
+
+&pcie {
+	fsl,tx-swing-full = <103>;
+	fsl,tx-swing-low = <103>;
+	reset-gpio = <&gpio4 11 GPIO_ACTIVE_LOW>;
+	status = "disabled";
+};
+
+&pwm2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_pwm2>;
+	status = "disabled";
+};
+
+&reg_arm {
+	vin-supply = <&sw1a_reg>;
+};
+
+&reg_pu {
+	vin-supply = <&sw1c_reg>;
+};
+
+&reg_soc {
+	vin-supply = <&sw1c_reg>;
+};
+
+&snvs_poweroff {
+	status = "okay";
+};
+
+&ssi2 { /* Onboard audio */
+	fsl,mode = "i2s-slave";
+	status = "okay";
+};
+
+&uart1 { /* Console */
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart1>;
+	status = "disabled";
+};
+
+&uart2 { /* Bluetooth */
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart2 &pinctrl_bt>;
+	uart-has-rtscts;
+	status = "okay";
+
+	bluetooth {
+		compatible = "ti,wl1835-st";
+		enable-gpios = <&gpio6 18 GPIO_ACTIVE_HIGH>;
+	};
+};
+
+&uart3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart3>;
+	uart-has-rtscts;
+	status = "disabled";
+};
+
+&usbh1 {
+	vbus-supply = <&reg_usb_h1_vbus>;
+	status = "disabled";
+};
+
+&usbotg {
+	vbus-supply = <&reg_usb_otg_vbus>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usbotg>;
+	disable-over-current;
+	status = "disabled";
+};
+
+&gpmi { /* NAND */
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_gpmi_nand>;
+	fsl,legacy-bch-geometry;
+	status = "okay";
+
+	/* a 2 MiB partition */
+	partition@0 {
+		label = "spl";
+		reg = <0x00000000 0x00200000>;
+	};
+
+	/* a 2 MiB partition */
+	partition@1 {
+		label = "bootloader";
+		reg = <0x00200000 0x00200000>;
+	};
+
+	/* an 8 MiB partition */
+	partition@2 {
+		label = "kernel";
+		reg = <0x00400000 0x00800000>;
+	};
+
+	/* max 1012 MiB partition - truncated automatically */
+	partition@3 {
+		label = "rootfs";
+		reg = <0x00c00000 0x3f400000>;
+	};
+};
+
+&usdhc1 { /* eMMC */
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usdhc1>;
+	keep-power-in-suspend;
+	wakeup-source;
+	non-removable;
+	status = "okay";
+};
+
+&usdhc2 { /* MMC/SD card */
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usdhc2>;
+	no-1-8-v;
+	keep-power-in-suspend;
+	wakeup-source;
+	status = "disabled";
+};
+
+&usdhc3 { /* Wilink8 WL18xx*/
+	pinctrl-names = "default", "state_100mhz", "state_200mhz";
+	pinctrl-0 = <&pinctrl_usdhc3>;
+	pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
+	pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
+
+	non-removable;
+	keep-power-in-suspend;
+	wakeup-source;
+	bus-width = <4>;
+	vmmc-supply = <&reg_wl18xx_vmmc>;
+	non-removable;
+	wakeup-source;
+	keep-power-in-suspend;
+	cap-power-off-card;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+
+	wlcore: wlcore@2 {
+		compatible = "ti,wl1835";
+		reg = <2>;
+		interrupt-parent = <&gpio6>;
+		interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
+		ref-clock-frequency = <38400000>;
+	};
+};
+
+&snvs_rtc {
+	status = "disabled";
+};
diff --git a/recipes-kernel/linux/linux-fslc_%.bbappend b/recipes-kernel/linux/linux-fslc_%.bbappend
index a1f0e56..6989436 100644
--- a/recipes-kernel/linux/linux-fslc_%.bbappend
+++ b/recipes-kernel/linux/linux-fslc_%.bbappend
@@ -1,2 +1,13 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
 COMPATIBLE_MACHINE_imx6sl-warp = "(.)"
 COMPATIBLE_MACHINE_imx6dl-riotboard = "(.)"
+
+SRC_URI_append_imx6qdl-variscite-som_use-mainline-bsp = " \
+    file://imx6qdl-var-som.dtsi \
+    file://imx6q-var-som-vsc.dts \
+"
+
+do_configure_prepend() {
+    cp ${WORKDIR}/imx6*-var*.dts* ${S}/arch/arm/boot/dts
+}
-- 
2.14.4



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [3rdparty][PATCH 4/4] imx6qdl-variscite-som: select DEFAULTTUNE= "cortexa9thf-neon"
  2018-09-14 10:02 [3rdparty][PATCH 1/4] u-boot-variscite: upgrade 2015.04 -> 2017.03 Andreas Müller
  2018-09-14 10:02 ` [3rdparty][PATCH 2/4] imx6qdl-variscite-som:set linux-fslc as preferred for use-mainline-bsp override Andreas Müller
  2018-09-14 10:02 ` [3rdparty][PATCH 3/4] imx6qdl-variscite-som: Add support for use-mainline-bsp/linux-fslc Andreas Müller
@ 2018-09-14 10:03 ` Andreas Müller
  2018-09-17 19:41   ` Otavio Salvador
  2 siblings, 1 reply; 11+ messages in thread
From: Andreas Müller @ 2018-09-14 10:03 UTC (permalink / raw)
  To: meta-freescale

It is mx6 default but gets lost for use-mainline-bsp override.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
 conf/machine/imx6qdl-variscite-som.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/conf/machine/imx6qdl-variscite-som.conf b/conf/machine/imx6qdl-variscite-som.conf
index f3a14ff..7b9fdb0 100644
--- a/conf/machine/imx6qdl-variscite-som.conf
+++ b/conf/machine/imx6qdl-variscite-som.conf
@@ -6,6 +6,7 @@
 
 MACHINEOVERRIDES =. "mx6:mx6q:mx6dl:"
 
+DEFAULTTUNE= "cortexa9thf-neon"
 require conf/machine/include/imx-base.inc
 require conf/machine/include/tune-cortexa9.inc
 
-- 
2.14.4



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [3rdparty][PATCH 3/4] imx6qdl-variscite-som: Add support for use-mainline-bsp/linux-fslc
  2018-09-14 10:02 ` [3rdparty][PATCH 3/4] imx6qdl-variscite-som: Add support for use-mainline-bsp/linux-fslc Andreas Müller
@ 2018-09-17 19:40   ` Otavio Salvador
  2018-09-18  9:53     ` Andreas Müller
  0 siblings, 1 reply; 11+ messages in thread
From: Otavio Salvador @ 2018-09-17 19:40 UTC (permalink / raw)
  To: Andreas Müller; +Cc: meta-freescale Mailing List

On Fri, Sep 14, 2018 at 7:05 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
>
> Tested:
>
> * HDMI
> * MMC
> * eMMC (mounted)
> * NAND (kernel log - no partitions)
> * RTC
> * USB-Host
> * Ethernet
> * WiFi
> * Bluetooth
> * serial console
>
> Open:
>
> * HDMI sound
> * Onboard sound (ALSA looks good has no phones connected yet)
> * User-Button
> * USB-OTG
>
> Cannot test:
>
> * CAN
>
> Additional comments:
>
> 1. The way, the dt-files are copied into the kernel sources is not state of the
>    art. But since this is some work in progress it makes my worklow a lot easier.
> 2. My target is to send dt-files to mainline kernel but they are not yet ready
>    for that 'environment'. Once done I'll send backports to meta-fslc and 1.
>    can go.
>
> Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>

You could instead of adding them verbose here, send them for our
linux-fslc fork and keep improving it until it is ready for upstream
submission. What do you think?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [3rdparty][PATCH 4/4] imx6qdl-variscite-som: select DEFAULTTUNE= "cortexa9thf-neon"
  2018-09-14 10:03 ` [3rdparty][PATCH 4/4] imx6qdl-variscite-som: select DEFAULTTUNE= "cortexa9thf-neon" Andreas Müller
@ 2018-09-17 19:41   ` Otavio Salvador
  2018-09-17 23:08     ` Andreas Müller
  0 siblings, 1 reply; 11+ messages in thread
From: Otavio Salvador @ 2018-09-17 19:41 UTC (permalink / raw)
  To: Andreas Müller; +Cc: meta-freescale Mailing List

On Fri, Sep 14, 2018 at 7:05 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
>
> It is mx6 default but gets lost for use-mainline-bsp override.
>
> Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>

I've been using it but did not saw problems. Could you give more
detailed information?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [3rdparty][PATCH 4/4] imx6qdl-variscite-som: select DEFAULTTUNE= "cortexa9thf-neon"
  2018-09-17 19:41   ` Otavio Salvador
@ 2018-09-17 23:08     ` Andreas Müller
  2018-09-18  0:21       ` Otavio Salvador
  0 siblings, 1 reply; 11+ messages in thread
From: Andreas Müller @ 2018-09-17 23:08 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale Mailing List

On Mon, Sep 17, 2018 at 9:41 PM, Otavio Salvador
<otavio.salvador@ossystems.com.br> wrote:
> On Fri, Sep 14, 2018 at 7:05 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
>>
>> It is mx6 default but gets lost for use-mainline-bsp override.
>>
>> Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
>
> I've been using it but did not saw problems. Could you give more
> detailed information?
>
See meta-freescale :
conf/machine/include/imx-base.inc:

MACHINEOVERRIDES_EXTENDER_FILTER_OUT_use-mainline-bsp = " \
    mx6 \
    mx6q \
    mx6dl \
    mx6sx \
    mx6sl \
    mx6sll \
    mx6ul \
    mx6ull \
...

and
machine-overrides-extender.bbclass

All mx6.. overrides are are filtered which is usually fine but not for
DEFAULTTUNE: it builds armv7hf-neon.

Andreas


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [3rdparty][PATCH 4/4] imx6qdl-variscite-som: select DEFAULTTUNE= "cortexa9thf-neon"
  2018-09-17 23:08     ` Andreas Müller
@ 2018-09-18  0:21       ` Otavio Salvador
  2018-09-18  8:40         ` Andreas Müller
  0 siblings, 1 reply; 11+ messages in thread
From: Otavio Salvador @ 2018-09-18  0:21 UTC (permalink / raw)
  To: Andreas Müller; +Cc: meta-freescale Mailing List

On Mon, Sep 17, 2018 at 8:08 PM Andreas Müller <schnitzeltony@gmail.com> wrote:
>
> On Mon, Sep 17, 2018 at 9:41 PM, Otavio Salvador
> <otavio.salvador@ossystems.com.br> wrote:
> > On Fri, Sep 14, 2018 at 7:05 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
> >>
> >> It is mx6 default but gets lost for use-mainline-bsp override.
> >>
> >> Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
> >
> > I've been using it but did not saw problems. Could you give more
> > detailed information?
> >
> See meta-freescale :
> conf/machine/include/imx-base.inc:
>
> MACHINEOVERRIDES_EXTENDER_FILTER_OUT_use-mainline-bsp = " \
>     mx6 \
>     mx6q \
>     mx6dl \
>     mx6sx \
>     mx6sl \
>     mx6sll \
>     mx6ul \
>     mx6ull \
> ...
>
> and
> machine-overrides-extender.bbclass
>
> All mx6.. overrides are are filtered which is usually fine but not for
> DEFAULTTUNE: it builds armv7hf-neon.

Oh ... I never noticed it because our company's distro builds it for
armv7h as well.

I wonder if we should or not set it somehow globally. Of course,
machine changing it is fine, as far it can be overriden by distro.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [3rdparty][PATCH 4/4] imx6qdl-variscite-som: select DEFAULTTUNE= "cortexa9thf-neon"
  2018-09-18  0:21       ` Otavio Salvador
@ 2018-09-18  8:40         ` Andreas Müller
  0 siblings, 0 replies; 11+ messages in thread
From: Andreas Müller @ 2018-09-18  8:40 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale Mailing List

On Tue, Sep 18, 2018 at 2:21 AM, Otavio Salvador
<otavio.salvador@ossystems.com.br> wrote:
>
> I wonder if we should or not set it somehow globally. Of course,
> machine changing it is fine, as far it can be overriden by distro.
>
Hi Otavio,

will send out V2 soon using '?=' so whatever wants to override can do
it. Hard pinning was wrong - thanks for the pointer.

Andreas


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [3rdparty][PATCH 3/4] imx6qdl-variscite-som: Add support for use-mainline-bsp/linux-fslc
  2018-09-17 19:40   ` Otavio Salvador
@ 2018-09-18  9:53     ` Andreas Müller
  2018-09-18 11:16       ` Otavio Salvador
  0 siblings, 1 reply; 11+ messages in thread
From: Andreas Müller @ 2018-09-18  9:53 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale Mailing List

On Mon, Sep 17, 2018 at 9:40 PM, Otavio Salvador
<otavio.salvador@ossystems.com.br> wrote:
> On Fri, Sep 14, 2018 at 7:05 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
>>
>> Tested:
>>
>> * HDMI
>> * MMC
>> * eMMC (mounted)
>> * NAND (kernel log - no partitions)
>> * RTC
>> * USB-Host
>> * Ethernet
>> * WiFi
>> * Bluetooth
>> * serial console
>>
>> Open:
>>
>> * HDMI sound
>> * Onboard sound (ALSA looks good has no phones connected yet)
>> * User-Button
>> * USB-OTG
>>
>> Cannot test:
>>
>> * CAN
>>
>> Additional comments:
>>
>> 1. The way, the dt-files are copied into the kernel sources is not state of the
>>    art. But since this is some work in progress it makes my worklow a lot easier.
>> 2. My target is to send dt-files to mainline kernel but they are not yet ready
>>    for that 'environment'. Once done I'll send backports to meta-fslc and 1.
>>    can go.
>>
>> Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
>
> You could instead of adding them verbose here, send them for our
> linux-fslc fork and keep improving it until it is ready for upstream
> submission. What do you think?
>
Oi Otavio,

Honestly: I would like to go this way first because:

* it is WIP - and there are known bugs (e.g USB-Host has to move to 'Open')
* working on linux-fslc is more effort for me - and I am under massive
pressure really (from all the product-or-whatever-managers and
shiny-teeth-sales-people)
* have not seen much community in this corner area

Since we (our company) decided to go 'mainline kernel/graphic-stack'
way, chances are very high that I'll continue work on this :)

And promised: Once ironed out I'll send patches to linux -fslc and
later -mainline.

Regards

Andreas


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [3rdparty][PATCH 3/4] imx6qdl-variscite-som: Add support for use-mainline-bsp/linux-fslc
  2018-09-18  9:53     ` Andreas Müller
@ 2018-09-18 11:16       ` Otavio Salvador
  0 siblings, 0 replies; 11+ messages in thread
From: Otavio Salvador @ 2018-09-18 11:16 UTC (permalink / raw)
  To: Andreas Müller; +Cc: meta-freescale Mailing List

On Tue, Sep 18, 2018 at 6:54 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
> On Mon, Sep 17, 2018 at 9:40 PM, Otavio Salvador
> <otavio.salvador@ossystems.com.br> wrote:
> > On Fri, Sep 14, 2018 at 7:05 AM Andreas Müller <schnitzeltony@gmail.com> wrote:
> > You could instead of adding them verbose here, send them for our
> > linux-fslc fork and keep improving it until it is ready for upstream
> > submission. What do you think?
> >
> Oi Otavio,
>
> Honestly: I would like to go this way first because:
>
> * it is WIP - and there are known bugs (e.g USB-Host has to move to 'Open')
> * working on linux-fslc is more effort for me - and I am under massive
> pressure really (from all the product-or-whatever-managers and
> shiny-teeth-sales-people)
> * have not seen much community in this corner area
>
> Since we (our company) decided to go 'mainline kernel/graphic-stack'
> way, chances are very high that I'll continue work on this :)
>
> And promised: Once ironed out I'll send patches to linux -fslc and
> later -mainline.

All right. So please send it together with your v2 patches and I apply it.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-09-18 11:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-14 10:02 [3rdparty][PATCH 1/4] u-boot-variscite: upgrade 2015.04 -> 2017.03 Andreas Müller
2018-09-14 10:02 ` [3rdparty][PATCH 2/4] imx6qdl-variscite-som:set linux-fslc as preferred for use-mainline-bsp override Andreas Müller
2018-09-14 10:02 ` [3rdparty][PATCH 3/4] imx6qdl-variscite-som: Add support for use-mainline-bsp/linux-fslc Andreas Müller
2018-09-17 19:40   ` Otavio Salvador
2018-09-18  9:53     ` Andreas Müller
2018-09-18 11:16       ` Otavio Salvador
2018-09-14 10:03 ` [3rdparty][PATCH 4/4] imx6qdl-variscite-som: select DEFAULTTUNE= "cortexa9thf-neon" Andreas Müller
2018-09-17 19:41   ` Otavio Salvador
2018-09-17 23:08     ` Andreas Müller
2018-09-18  0:21       ` Otavio Salvador
2018-09-18  8:40         ` Andreas Müller

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.