Commit 2449d044 authored by Reinhold Mueller's avatar Reinhold Mueller Committed by Shawn Guo

arm64: dts: imx8mm: Add support for emtrion emCON-MX8M Mini

This patch adds support for the emtrion GmbH emCON-MX8M Mini modules.
They are available with NXP i.MX 8M Mini equipped with 2 or 4 GB Memory.

The devicetree imx8mm-emcon.dtsi is the common part providing all
module components and the basic support for the SoC. The support for the
avari baseboard in the developer-kit configuration is provided by the
emcon-avari dts files.
Signed-off-by: default avatarReinhold Mueller <reinhold.mueller@emtrion.com>
Reviewed-by: default avatarFabio Estevam <festevam@gmail.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 1d842831
......@@ -50,8 +50,9 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-rdb.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2162a-qds.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mm-beacon-kit.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mm-evk.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mm-ddr4-evk.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mm-emcon-avari.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mm-evk.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mm-icore-mx8mm-ctouch2.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mm-icore-mx8mm-edimm2.2.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mm-kontron-n801x-s.dtb
......
// SPDX-License-Identifier: (GPL-2.0 or MIT)
//
// Copyright (c) 2021 emtrion GmbH
// Author: Frank Erdrich <frank.erdrich@emtrion.com>
//
/dts-v1/;
#include "imx8mm-emcon.dtsi"
#include "imx8mm-emcon-avari.dtsi"
/ {
model = "emtrion SoM emCON-MX8M mini on Avari";
compatible = "emtrion,emcon-mx8mm-avari", "fsl,imx8mm";
};
&lvds_backlight {
status = "okay";
};
&pwm1 {
status = "okay";
};
// SPDX-License-Identifier: (GPL-2.0 or MIT)
//
// Copyright (C) 2021 emtrion GmbH
// Author: Frank Erdrich <frank.erdrich@emtrion.com>
//
/ {
aliases {
boardid = &boardID;
mmc0 = &usdhc1;
mmc1 = &usdhc2;
};
chosen {
stdout-path = &uart1;
};
reg_wall_5p0: regulator-wall5p0 {
compatible = "regulator-fixed";
regulator-name = "Main-Supply";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
regulator-boot-on;
};
reg_base3p3: regulator-base3p3 {
compatible = "regulator-fixed";
vin-supply = <&reg_wall_5p0>;
regulator-name = "3V3-avari";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
regulator-boot-on;
};
reg_base1p5: regulator-base1p5 {
compatible = "regulator-fixed";
vin-supply = <&reg_base3p3>;
regulator-name = "1V5-avari";
regulator-min-microvolt = <1500000>;
regulator-max-microvolt = <1500000>;
regulator-always-on;
regulator-boot-on;
};
reg_usb_otg: regulator-otgvbus {
compatible = "regulator-fixed";
vin-supply = <&reg_wall_5p0>;
regulator-name = "OTG_VBUS";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
regulator-always-on;
};
clk_codec: clock-codec {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <12000000>;
};
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "SGTL5000-Card";
simple-audio-card,format = "i2s";
simple-audio-card,bitclock-master = <&codec_dai>;
simple-audio-card,frame-master = <&codec_dai>;
simple-audio-card,widgets = "Headphone", "Headphone Jack";
simple-audio-card,routing = "Headphone Jack", "HP_OUT";
cpu_dai: simple-audio-card,cpu {
sound-dai = <&sai2>;
};
codec_dai: simple-audio-card,codec {
sound-dai = <&sgtl5000>;
};
};
};
&ecspi1 {
status = "okay";
};
&i2c2 {
status = "okay";
};
&i2c1 {
clock-frequency = <100000>;
status = "okay";
sgtl5000: audio-codec@a {
compatible = "fsl,sgtl5000";
reg = <0x0a>;
#sound-dai-cells = <0>;
clocks = <&clk_codec>;
VDDA-supply = <&reg_base3p3>;
VDDIO-supply = <&reg_base3p3>;
};
boardID: gpio@3a {
compatible = "nxp,pca8574";
reg = <0x3a>;
gpio-controller;
#gpio-cells = <1>;
};
};
&sai2 {
status = "okay";
};
&uart2 {
uart-has-rtscts;
status = "okay";
};
&uart3 {
status = "okay";
};
&uart4 {
status = "okay";
};
&usbotg1 {
status = "okay";
};
&usbotg2 {
dr_mode = "host";
status = "disabled";
};
&usdhc2 {
status = "okay";
};
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment