[PATCH v8] board: mntre: imx8mq: Add MNT Reform 2 board support

2023-05-02 Thread sbabic
> The MNT Reform 2 is a modular DIY laptop.  In its initial version it
> is based on the BoundaryDevices i.MX8MQ SoM.  Some parts have been
> lifted from BoundaryDevices official U-Boot downstream project.
> Signed-off-by: Patrick Wildt 
> Tested-by: Vagrant Cascadian 
> Tested-by: Vagrant Cascadian 
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=
DENX Software Engineering GmbH,Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=


Re: [PATCH v8] board: mntre: imx8mq: Add MNT Reform 2 board support

2023-05-02 Thread Stefano Babic

On 02.05.23 10:39, Stefano Babic wrote:

On 28.04.23 23:39, Vagrant Cascadian wrote:

On 2023-04-28, Vagrant Cascadian wrote:

On 2023-02-05, Vagrant Cascadian wrote:

On 2023-02-06, Patrick Wildt wrote:

The MNT Reform 2 is a modular DIY laptop.  In its initial version it
is based on the BoundaryDevices i.MX8MQ SoM.  Some parts have been
lifted from BoundaryDevices official U-Boot downstream project.

Signed-off-by: Patrick Wildt 


Tested booting Debian with a 6.1.x linux kernel on a mnt/reform2 using
nvme rootfs and microsd /boot. Some oddities with video and wifi 
that do

not occur with the vendor u-boot, but seems like huge progress.


The patch still applies to master; could this be considered for merging
soon?


I've also verified that the patch not only builds, but actually boots,
based on git commit c9c2c95d4cd27fe0cd41fe13a863899d268f973c (and also
works on v2023.04, for good measure)...

Tested-by: Vagrant Cascadian 



Thanks, I apply it and CI is running, if no issues are found it will 
part of my next PR.




Just FYI: CI stoppt because u-boot,dm-spl is not valid anymore. I have 
replaced it with "bootph-pre-ram" in dtsi and Ci is successful, I merge 
it now into u-boot-imx.


Regards,
Stefano


Regards,
Stefano


live well,
   vagrant


---
Changes since v7:
- Re-added lost ramdisk_addr_r.
Changes since v6:
- Cleaned up some CONFIG_* pollution.
Changes since v5:
- Adjusted to further Binman changes.
- Adjusted to further Kconfig conversions.
- Removed some phy init in favor of DM.
- Removed some pinmux which are now handled by DM_SERIAL.
- Compared with Librem5/EVK and adjusted for similarity.
Changes since v4:
- Adjusted to Kconfig conversions.
- Removed U-Boot-specific device tree changes.
- Synced device tree to Linux v5.19-rc3.
Changes since v3:
- Adjusted to Binman changes in main branch.
- Cleaned up environment variables akin to i.MX8MM.
- Added vendor-prefix to device tree filename.
- Provided ramdisk_addr_r.
Changes since v2:
- Switched to Binman.
Changes since v1:
- Synced DTS with files in Linux git repo.
- Added support for USB host ports.

  arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi   |   11 +
  arch/arm/mach-imx/imx8m/Kconfig   |    7 +
  board/mntre/imx8mq_reform2/Kconfig    |   15 +
  board/mntre/imx8mq_reform2/MAINTAINERS    |    7 +
  board/mntre/imx8mq_reform2/Makefile   |   12 +
  board/mntre/imx8mq_reform2/imx8mq_reform2.c   |  171 +++
  board/mntre/imx8mq_reform2/lpddr4_timing.c    | 1014 
+

  .../mntre/imx8mq_reform2/lpddr4_timing_ch2.h  |   95 ++
  board/mntre/imx8mq_reform2/spl.c  |  260 +
  configs/imx8mq_reform2_defconfig  |  107 ++
  include/configs/imx8mq_reform2.h  |   67 ++
  11 files changed, 1766 insertions(+)
  create mode 100644 arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi
  create mode 100644 board/mntre/imx8mq_reform2/Kconfig
  create mode 100644 board/mntre/imx8mq_reform2/MAINTAINERS
  create mode 100644 board/mntre/imx8mq_reform2/Makefile
  create mode 100644 board/mntre/imx8mq_reform2/imx8mq_reform2.c
  create mode 100644 board/mntre/imx8mq_reform2/lpddr4_timing.c
  create mode 100644 board/mntre/imx8mq_reform2/lpddr4_timing_ch2.h
  create mode 100644 board/mntre/imx8mq_reform2/spl.c
  create mode 100644 configs/imx8mq_reform2_defconfig
  create mode 100644 include/configs/imx8mq_reform2.h




--
=
DENX Software Engineering GmbH,Managing Director: Erika Unter
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=



Re: [PATCH v8] board: mntre: imx8mq: Add MNT Reform 2 board support

2023-05-02 Thread Stefano Babic

On 28.04.23 23:39, Vagrant Cascadian wrote:

On 2023-04-28, Vagrant Cascadian wrote:

On 2023-02-05, Vagrant Cascadian wrote:

On 2023-02-06, Patrick Wildt wrote:

The MNT Reform 2 is a modular DIY laptop.  In its initial version it
is based on the BoundaryDevices i.MX8MQ SoM.  Some parts have been
lifted from BoundaryDevices official U-Boot downstream project.

Signed-off-by: Patrick Wildt 


Tested booting Debian with a 6.1.x linux kernel on a mnt/reform2 using
nvme rootfs and microsd /boot. Some oddities with video and wifi that do
not occur with the vendor u-boot, but seems like huge progress.


The patch still applies to master; could this be considered for merging
soon?


I've also verified that the patch not only builds, but actually boots,
based on git commit c9c2c95d4cd27fe0cd41fe13a863899d268f973c (and also
works on v2023.04, for good measure)...

Tested-by: Vagrant Cascadian 



Thanks, I apply it and CI is running, if no issues are found it will 
part of my next PR.


Regards,
Stefano


live well,
   vagrant


---
Changes since v7:
- Re-added lost ramdisk_addr_r.
Changes since v6:
- Cleaned up some CONFIG_* pollution.
Changes since v5:
- Adjusted to further Binman changes.
- Adjusted to further Kconfig conversions.
- Removed some phy init in favor of DM.
- Removed some pinmux which are now handled by DM_SERIAL.
- Compared with Librem5/EVK and adjusted for similarity.
Changes since v4:
- Adjusted to Kconfig conversions.
- Removed U-Boot-specific device tree changes.
- Synced device tree to Linux v5.19-rc3.
Changes since v3:
- Adjusted to Binman changes in main branch.
- Cleaned up environment variables akin to i.MX8MM.
- Added vendor-prefix to device tree filename.
- Provided ramdisk_addr_r.
Changes since v2:
- Switched to Binman.
Changes since v1:
- Synced DTS with files in Linux git repo.
- Added support for USB host ports.

  arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi   |   11 +
  arch/arm/mach-imx/imx8m/Kconfig   |7 +
  board/mntre/imx8mq_reform2/Kconfig|   15 +
  board/mntre/imx8mq_reform2/MAINTAINERS|7 +
  board/mntre/imx8mq_reform2/Makefile   |   12 +
  board/mntre/imx8mq_reform2/imx8mq_reform2.c   |  171 +++
  board/mntre/imx8mq_reform2/lpddr4_timing.c| 1014 +
  .../mntre/imx8mq_reform2/lpddr4_timing_ch2.h  |   95 ++
  board/mntre/imx8mq_reform2/spl.c  |  260 +
  configs/imx8mq_reform2_defconfig  |  107 ++
  include/configs/imx8mq_reform2.h  |   67 ++
  11 files changed, 1766 insertions(+)
  create mode 100644 arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi
  create mode 100644 board/mntre/imx8mq_reform2/Kconfig
  create mode 100644 board/mntre/imx8mq_reform2/MAINTAINERS
  create mode 100644 board/mntre/imx8mq_reform2/Makefile
  create mode 100644 board/mntre/imx8mq_reform2/imx8mq_reform2.c
  create mode 100644 board/mntre/imx8mq_reform2/lpddr4_timing.c
  create mode 100644 board/mntre/imx8mq_reform2/lpddr4_timing_ch2.h
  create mode 100644 board/mntre/imx8mq_reform2/spl.c
  create mode 100644 configs/imx8mq_reform2_defconfig
  create mode 100644 include/configs/imx8mq_reform2.h


--
=
DENX Software Engineering GmbH,Managing Director: Erika Unter
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=



Re: [PATCH v8] board: mntre: imx8mq: Add MNT Reform 2 board support

2023-04-28 Thread Vagrant Cascadian
On 2023-04-28, Vagrant Cascadian wrote:
> On 2023-02-05, Vagrant Cascadian wrote:
>> On 2023-02-06, Patrick Wildt wrote:
>>> The MNT Reform 2 is a modular DIY laptop.  In its initial version it
>>> is based on the BoundaryDevices i.MX8MQ SoM.  Some parts have been
>>> lifted from BoundaryDevices official U-Boot downstream project.
>>>
>>> Signed-off-by: Patrick Wildt 
>>
>> Tested booting Debian with a 6.1.x linux kernel on a mnt/reform2 using
>> nvme rootfs and microsd /boot. Some oddities with video and wifi that do
>> not occur with the vendor u-boot, but seems like huge progress.
>
> The patch still applies to master; could this be considered for merging
> soon?

I've also verified that the patch not only builds, but actually boots,
based on git commit c9c2c95d4cd27fe0cd41fe13a863899d268f973c (and also
works on v2023.04, for good measure)...

Tested-by: Vagrant Cascadian 

live well,
  vagrant

>>> ---
>>> Changes since v7:
>>> - Re-added lost ramdisk_addr_r.
>>> Changes since v6:
>>> - Cleaned up some CONFIG_* pollution.
>>> Changes since v5:
>>> - Adjusted to further Binman changes.
>>> - Adjusted to further Kconfig conversions.
>>> - Removed some phy init in favor of DM.
>>> - Removed some pinmux which are now handled by DM_SERIAL.
>>> - Compared with Librem5/EVK and adjusted for similarity.
>>> Changes since v4:
>>> - Adjusted to Kconfig conversions.
>>> - Removed U-Boot-specific device tree changes.
>>> - Synced device tree to Linux v5.19-rc3.
>>> Changes since v3:
>>> - Adjusted to Binman changes in main branch.
>>> - Cleaned up environment variables akin to i.MX8MM.
>>> - Added vendor-prefix to device tree filename.
>>> - Provided ramdisk_addr_r.
>>> Changes since v2:
>>> - Switched to Binman.
>>> Changes since v1:
>>> - Synced DTS with files in Linux git repo.
>>> - Added support for USB host ports.
>>>
>>>  arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi   |   11 +
>>>  arch/arm/mach-imx/imx8m/Kconfig   |7 +
>>>  board/mntre/imx8mq_reform2/Kconfig|   15 +
>>>  board/mntre/imx8mq_reform2/MAINTAINERS|7 +
>>>  board/mntre/imx8mq_reform2/Makefile   |   12 +
>>>  board/mntre/imx8mq_reform2/imx8mq_reform2.c   |  171 +++
>>>  board/mntre/imx8mq_reform2/lpddr4_timing.c| 1014 +
>>>  .../mntre/imx8mq_reform2/lpddr4_timing_ch2.h  |   95 ++
>>>  board/mntre/imx8mq_reform2/spl.c  |  260 +
>>>  configs/imx8mq_reform2_defconfig  |  107 ++
>>>  include/configs/imx8mq_reform2.h  |   67 ++
>>>  11 files changed, 1766 insertions(+)
>>>  create mode 100644 arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi
>>>  create mode 100644 board/mntre/imx8mq_reform2/Kconfig
>>>  create mode 100644 board/mntre/imx8mq_reform2/MAINTAINERS
>>>  create mode 100644 board/mntre/imx8mq_reform2/Makefile
>>>  create mode 100644 board/mntre/imx8mq_reform2/imx8mq_reform2.c
>>>  create mode 100644 board/mntre/imx8mq_reform2/lpddr4_timing.c
>>>  create mode 100644 board/mntre/imx8mq_reform2/lpddr4_timing_ch2.h
>>>  create mode 100644 board/mntre/imx8mq_reform2/spl.c
>>>  create mode 100644 configs/imx8mq_reform2_defconfig
>>>  create mode 100644 include/configs/imx8mq_reform2.h


signature.asc
Description: PGP signature


Re: [PATCH v8] board: mntre: imx8mq: Add MNT Reform 2 board support

2023-04-28 Thread Vagrant Cascadian
On 2023-02-05, Vagrant Cascadian wrote:
> On 2023-02-06, Patrick Wildt wrote:
>> The MNT Reform 2 is a modular DIY laptop.  In its initial version it
>> is based on the BoundaryDevices i.MX8MQ SoM.  Some parts have been
>> lifted from BoundaryDevices official U-Boot downstream project.
>>
>> Signed-off-by: Patrick Wildt 
>
> Tested booting Debian with a 6.1.x linux kernel on a mnt/reform2 using
> nvme rootfs and microsd /boot. Some oddities with video and wifi that do
> not occur with the vendor u-boot, but seems like huge progress.

The patch still applies to master; could this be considered for merging
soon?


live well,
  vagrant

>> ---
>> Changes since v7:
>> - Re-added lost ramdisk_addr_r.
>> Changes since v6:
>> - Cleaned up some CONFIG_* pollution.
>> Changes since v5:
>> - Adjusted to further Binman changes.
>> - Adjusted to further Kconfig conversions.
>> - Removed some phy init in favor of DM.
>> - Removed some pinmux which are now handled by DM_SERIAL.
>> - Compared with Librem5/EVK and adjusted for similarity.
>> Changes since v4:
>> - Adjusted to Kconfig conversions.
>> - Removed U-Boot-specific device tree changes.
>> - Synced device tree to Linux v5.19-rc3.
>> Changes since v3:
>> - Adjusted to Binman changes in main branch.
>> - Cleaned up environment variables akin to i.MX8MM.
>> - Added vendor-prefix to device tree filename.
>> - Provided ramdisk_addr_r.
>> Changes since v2:
>> - Switched to Binman.
>> Changes since v1:
>> - Synced DTS with files in Linux git repo.
>> - Added support for USB host ports.
>>
>>  arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi   |   11 +
>>  arch/arm/mach-imx/imx8m/Kconfig   |7 +
>>  board/mntre/imx8mq_reform2/Kconfig|   15 +
>>  board/mntre/imx8mq_reform2/MAINTAINERS|7 +
>>  board/mntre/imx8mq_reform2/Makefile   |   12 +
>>  board/mntre/imx8mq_reform2/imx8mq_reform2.c   |  171 +++
>>  board/mntre/imx8mq_reform2/lpddr4_timing.c| 1014 +
>>  .../mntre/imx8mq_reform2/lpddr4_timing_ch2.h  |   95 ++
>>  board/mntre/imx8mq_reform2/spl.c  |  260 +
>>  configs/imx8mq_reform2_defconfig  |  107 ++
>>  include/configs/imx8mq_reform2.h  |   67 ++
>>  11 files changed, 1766 insertions(+)
>>  create mode 100644 arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi
>>  create mode 100644 board/mntre/imx8mq_reform2/Kconfig
>>  create mode 100644 board/mntre/imx8mq_reform2/MAINTAINERS
>>  create mode 100644 board/mntre/imx8mq_reform2/Makefile
>>  create mode 100644 board/mntre/imx8mq_reform2/imx8mq_reform2.c
>>  create mode 100644 board/mntre/imx8mq_reform2/lpddr4_timing.c
>>  create mode 100644 board/mntre/imx8mq_reform2/lpddr4_timing_ch2.h
>>  create mode 100644 board/mntre/imx8mq_reform2/spl.c
>>  create mode 100644 configs/imx8mq_reform2_defconfig
>>  create mode 100644 include/configs/imx8mq_reform2.h


signature.asc
Description: PGP signature


Re: [PATCH v8] board: mntre: imx8mq: Add MNT Reform 2 board support

2023-02-05 Thread Vagrant Cascadian
On 2023-02-06, Patrick Wildt wrote:
> The MNT Reform 2 is a modular DIY laptop.  In its initial version it
> is based on the BoundaryDevices i.MX8MQ SoM.  Some parts have been
> lifted from BoundaryDevices official U-Boot downstream project.
>
> Signed-off-by: Patrick Wildt 

Tested booting Debian with a 6.1.x linux kernel on a mnt/reform2 using
nvme rootfs and microsd /boot. Some oddities with video and wifi that do
not occur with the vendor u-boot, but seems like huge progress.

Thanks!

Tested-by: Vagrant Cascadian 

> ---
> Changes since v7:
> - Re-added lost ramdisk_addr_r.
> Changes since v6:
> - Cleaned up some CONFIG_* pollution.
> Changes since v5:
> - Adjusted to further Binman changes.
> - Adjusted to further Kconfig conversions.
> - Removed some phy init in favor of DM.
> - Removed some pinmux which are now handled by DM_SERIAL.
> - Compared with Librem5/EVK and adjusted for similarity.
> Changes since v4:
> - Adjusted to Kconfig conversions.
> - Removed U-Boot-specific device tree changes.
> - Synced device tree to Linux v5.19-rc3.
> Changes since v3:
> - Adjusted to Binman changes in main branch.
> - Cleaned up environment variables akin to i.MX8MM.
> - Added vendor-prefix to device tree filename.
> - Provided ramdisk_addr_r.
> Changes since v2:
> - Switched to Binman.
> Changes since v1:
> - Synced DTS with files in Linux git repo.
> - Added support for USB host ports.
>
>  arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi   |   11 +
>  arch/arm/mach-imx/imx8m/Kconfig   |7 +
>  board/mntre/imx8mq_reform2/Kconfig|   15 +
>  board/mntre/imx8mq_reform2/MAINTAINERS|7 +
>  board/mntre/imx8mq_reform2/Makefile   |   12 +
>  board/mntre/imx8mq_reform2/imx8mq_reform2.c   |  171 +++
>  board/mntre/imx8mq_reform2/lpddr4_timing.c| 1014 +
>  .../mntre/imx8mq_reform2/lpddr4_timing_ch2.h  |   95 ++
>  board/mntre/imx8mq_reform2/spl.c  |  260 +
>  configs/imx8mq_reform2_defconfig  |  107 ++
>  include/configs/imx8mq_reform2.h  |   67 ++
>  11 files changed, 1766 insertions(+)
>  create mode 100644 arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi
>  create mode 100644 board/mntre/imx8mq_reform2/Kconfig
>  create mode 100644 board/mntre/imx8mq_reform2/MAINTAINERS
>  create mode 100644 board/mntre/imx8mq_reform2/Makefile
>  create mode 100644 board/mntre/imx8mq_reform2/imx8mq_reform2.c
>  create mode 100644 board/mntre/imx8mq_reform2/lpddr4_timing.c
>  create mode 100644 board/mntre/imx8mq_reform2/lpddr4_timing_ch2.h
>  create mode 100644 board/mntre/imx8mq_reform2/spl.c
>  create mode 100644 configs/imx8mq_reform2_defconfig
>  create mode 100644 include/configs/imx8mq_reform2.h


signature.asc
Description: PGP signature


[PATCH v8] board: mntre: imx8mq: Add MNT Reform 2 board support

2023-02-05 Thread Patrick Wildt
The MNT Reform 2 is a modular DIY laptop.  In its initial version it
is based on the BoundaryDevices i.MX8MQ SoM.  Some parts have been
lifted from BoundaryDevices official U-Boot downstream project.

Signed-off-by: Patrick Wildt 
---
Changes since v7:
- Re-added lost ramdisk_addr_r.
Changes since v6:
- Cleaned up some CONFIG_* pollution.
Changes since v5:
- Adjusted to further Binman changes.
- Adjusted to further Kconfig conversions.
- Removed some phy init in favor of DM.
- Removed some pinmux which are now handled by DM_SERIAL.
- Compared with Librem5/EVK and adjusted for similarity.
Changes since v4:
- Adjusted to Kconfig conversions.
- Removed U-Boot-specific device tree changes.
- Synced device tree to Linux v5.19-rc3.
Changes since v3:
- Adjusted to Binman changes in main branch.
- Cleaned up environment variables akin to i.MX8MM.
- Added vendor-prefix to device tree filename.
- Provided ramdisk_addr_r.
Changes since v2:
- Switched to Binman.
Changes since v1:
- Synced DTS with files in Linux git repo.
- Added support for USB host ports.

 arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi   |   11 +
 arch/arm/mach-imx/imx8m/Kconfig   |7 +
 board/mntre/imx8mq_reform2/Kconfig|   15 +
 board/mntre/imx8mq_reform2/MAINTAINERS|7 +
 board/mntre/imx8mq_reform2/Makefile   |   12 +
 board/mntre/imx8mq_reform2/imx8mq_reform2.c   |  171 +++
 board/mntre/imx8mq_reform2/lpddr4_timing.c| 1014 +
 .../mntre/imx8mq_reform2/lpddr4_timing_ch2.h  |   95 ++
 board/mntre/imx8mq_reform2/spl.c  |  260 +
 configs/imx8mq_reform2_defconfig  |  107 ++
 include/configs/imx8mq_reform2.h  |   67 ++
 11 files changed, 1766 insertions(+)
 create mode 100644 arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi
 create mode 100644 board/mntre/imx8mq_reform2/Kconfig
 create mode 100644 board/mntre/imx8mq_reform2/MAINTAINERS
 create mode 100644 board/mntre/imx8mq_reform2/Makefile
 create mode 100644 board/mntre/imx8mq_reform2/imx8mq_reform2.c
 create mode 100644 board/mntre/imx8mq_reform2/lpddr4_timing.c
 create mode 100644 board/mntre/imx8mq_reform2/lpddr4_timing_ch2.h
 create mode 100644 board/mntre/imx8mq_reform2/spl.c
 create mode 100644 configs/imx8mq_reform2_defconfig
 create mode 100644 include/configs/imx8mq_reform2.h

diff --git a/arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi 
b/arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi
new file mode 100644
index 00..e0a6fc5470
--- /dev/null
+++ b/arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+
+#include "imx8mq-u-boot.dtsi"
+
+_uart1 {
+   u-boot,dm-spl;
+};
+
+ { /* console */
+   u-boot,dm-spl;
+};
diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig
index 5e4836b02f..3133e0a009 100644
--- a/arch/arm/mach-imx/imx8m/Kconfig
+++ b/arch/arm/mach-imx/imx8m/Kconfig
@@ -60,6 +60,12 @@ config TARGET_IMX8MQ_PHANBELL
select IMX8MQ
select IMX8M_LPDDR4
 
+config TARGET_IMX8MQ_REFORM2
+   bool "imx8mq_reform2"
+   select BINMAN
+   select IMX8MQ
+   select IMX8M_LPDDR4
+
 config TARGET_IMX8MM_DATA_MODUL_EDM_SBC
bool "Data Modul eDM SBC i.MX8M Mini"
select BINMAN
@@ -343,6 +349,7 @@ source "board/kontron/pitx_imx8m/Kconfig"
 source "board/kontron/sl-mx8mm/Kconfig"
 source "board/menlo/mx8menlo/Kconfig"
 source "board/msc/sm2s_imx8mp/Kconfig"
+source "board/mntre/imx8mq_reform2/Kconfig"
 source "board/phytec/phycore_imx8mm/Kconfig"
 source "board/phytec/phycore_imx8mp/Kconfig"
 source "board/purism/librem5/Kconfig"
diff --git a/board/mntre/imx8mq_reform2/Kconfig 
b/board/mntre/imx8mq_reform2/Kconfig
new file mode 100644
index 00..f9260cb7f5
--- /dev/null
+++ b/board/mntre/imx8mq_reform2/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_IMX8MQ_REFORM2
+
+config SYS_BOARD
+   default "imx8mq_reform2"
+
+config SYS_VENDOR
+   default "mntre"
+
+config SYS_CONFIG_NAME
+   default "imx8mq_reform2"
+
+config IMX_CONFIG
+   default "arch/arm/mach-imx/imx8m/imximage.cfg"
+
+endif
diff --git a/board/mntre/imx8mq_reform2/MAINTAINERS 
b/board/mntre/imx8mq_reform2/MAINTAINERS
new file mode 100644
index 00..946f287ecf
--- /dev/null
+++ b/board/mntre/imx8mq_reform2/MAINTAINERS
@@ -0,0 +1,7 @@
+REFORM2 IMX8MQ BOARD
+M: Lukas F. Hartmann 
+M: Patrick Wildt 
+S: Maintained
+F: board/mntre/imx8mq_reform2/
+F: include/configs/imx8mq_reform2.h
+F: configs/imx8mq_reform2_defconfig
diff --git a/board/mntre/imx8mq_reform2/Makefile 
b/board/mntre/imx8mq_reform2/Makefile
new file mode 100644
index 00..2efd56bb4a
--- /dev/null
+++ b/board/mntre/imx8mq_reform2/Makefile
@@ -0,0 +1,12 @@
+#
+# Copyright 2017 NXP
+#
+# SPDX-License-Identifier:  GPL-2.0+
+#
+
+obj-y += imx8mq_reform2.o
+
+ifdef CONFIG_SPL_BUILD
+obj-y += spl.o
+obj-$(CONFIG_IMX8M_LPDDR4) += lpddr4_timing.o
+endif
diff --git a/board/mntre/imx8mq_reform2/imx8mq_reform2.c