Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
ARM: dts: add support for TechNexion EDM-IMX6 with EDM1-FAIRY baseboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapani- committed Jun 1, 2018
1 parent 8fbf9ee commit a92a1bb
Showing 5 changed files with 320 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/boot/dts/Makefile
Original file line number Diff line number Diff line change
@@ -331,6 +331,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
imx6dl-aristainetos2_4.dtb \
imx6dl-aristainetos2_7.dtb \
imx6dl-cubox-i.dtb \
imx6dl-edm1_fairy.dtb \
imx6dl-dfi-fs700-m60.dtb \
imx6dl-gw51xx.dtb \
imx6dl-gw52xx.dtb \
@@ -396,6 +397,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
imx6q-dfi-fs700-m60.dtb \
imx6q-dmo-edmqmx6.dtb \
imx6q-evi.dtb \
imx6q-edm1_fairy.dtb \
imx6q-gk802.dtb \
imx6q-gw51xx.dtb \
imx6q-gw52xx.dtb \
@@ -443,6 +445,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
imx6q-utilite-pro.dtb \
imx6q-wandboard.dtb \
imx6q-wandboard-revb1.dtb \
imx6qp-edm1_fairy.dtb \
imx6qp-nitrogen6_max.dtb \
imx6qp-sabreauto.dtb \
imx6qp-sabreauto-ecspi.dtb \
200 changes: 200 additions & 0 deletions arch/arm/boot/dts/baseboard_edm1_fairy.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
/*
* Copyright 2018 Technexion Ltd.
*
* Author: Tapani Utriainen <[email protected]>
* Richard Hu <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/

#include <tnmacro.h>

/ {
gpio-edm {
compatible = "gpio-edm";

gpio_p256 {
label = "GPIO_P256";
gpios = <&EDM_EXT_GPIO_P256 GPIO_ACTIVE_HIGH>;
dir = "out";
};

gpio_p257 {
label = "GPIO_P257";
gpios = <&EDM_EXT_GPIO_P257 GPIO_ACTIVE_HIGH>;
dir = "out";
};

gpio_p258 {
label = "GPIO_P258";
gpios = <&EDM_EXT_GPIO_P258 GPIO_ACTIVE_HIGH>;
dir = "out";
};

gpio_p260 {
label = "GPIO_P260";
gpios = <&EDM_EXT_GPIO_P260 GPIO_ACTIVE_HIGH>;
dir = "out";
};

gpio_p261 {
label = "GPIO_P261";
gpios = <&EDM_EXT_GPIO_P261 GPIO_ACTIVE_HIGH>;
dir = "out";
};

gpio_p262 {
label = "GPIO_P262";
gpios = <&EDM_EXT_GPIO_P262 GPIO_ACTIVE_HIGH>;
dir = "out";
};

gpio_p264 {
label = "GPIO_P264";
gpios = <&EDM_EXT_GPIO_P264 GPIO_ACTIVE_HIGH>;
dir = "out";
};
};

sound {
compatible = "fsl,imx-sgtl5000",
"fsl,imx-audio-sgtl5000";
model = "audio-sgtl5000";
ssi-controller = <&EDM_AUDA_I2S_CHANNEL>;
audio-codec = <&codec>;
audio-routing =
"MIC_IN", "Mic Jack",
"Mic Jack", "Mic Bias",
"Headphone Jack", "HP_OUT";
#if defined(EDM_AUDA_MUX_INT) && defined(EDM_AUDA_MUX_EXT)
mux-int-port = <EDM_AUDA_MUX_INT>;
mux-ext-port = <EDM_AUDA_MUX_EXT>;
#else
fsl,no-audmux = "true";
#endif
};
};

&EDM_I2CA {
status = "okay";
};

&EDM_I2CB {
status = "okay";

codec: sgtl5000@0a {
compatible = "fsl,sgtl5000";
reg = <0x0a>;
clocks = <&EDM_AUDA_CLK_SRC>;
VDDA-supply = <&reg_2p5v>;
VDDIO-supply = <&reg_3p3v>;
};

egalax: egalax_i2c@2a {
compatible = "eeti,egalax_i2c";
reg = <0x2a>;
interrupt-parent = <&GPIO_BANK(EDM_EXT_GPIO_P259)>;
interrupts = <GPIO_NO(EDM_EXT_GPIO_P259) 8>;
int-gpios = <&EDM_EXT_GPIO_P259 GPIO_ACTIVE_LOW>;
};
};

&EDM_I2CC {
status = "okay";

mag3110@0e {
compatible = "fsl,mag3110";
reg = <0x0e>;
position = <2>;
vdd-supply = <&reg_3p3v>;
vddio-supply = <&reg_3p3v>;
};

lis331dlh: lis331dlh@18 {
compatible = "st,lis331dlh", "st,lis3lv02d";
reg = <0x18>;
Vdd-supply = <&reg_3p3v>;
Vdd_IO-supply = <&reg_3p3v>;

st,click-single-x;
st,click-single-y;
st,click-single-z;
st,click-thresh-x = <10>;
st,click-thresh-y = <10>;
st,click-thresh-z = <10>;
st,irq1-click;
st,irq2-click;
st,wakeup-x-lo;
st,wakeup-x-hi;
st,wakeup-y-lo;
st,wakeup-y-hi;
st,wakeup-z-lo;
st,wakeup-z-hi;
st,min-limit-x = <120>;
st,min-limit-y = <120>;
st,min-limit-z = <140>;
st,max-limit-x = <550>;
st,max-limit-y = <550>;
st,max-limit-z = <750>;
};

isl29023@44 {
compatible = "fsl,isl29023";
reg = <0x44>;
rext = <499>;
};

ds1337: rtc@68 {
compatible = "mxim,ds1337";
reg = <0x68>;
};
};

&EDM_CANA {
status = "okay";
};

&EDM_CANB {
status = "okay";
};

&EDM_SPIB {
status = "okay";

ads7846@0 {
reg = <0>; /* CS0 */
compatible = "ti,ads7846";
interrupt-parent = <&GPIO_BANK(EDM_EXT_GPIO_P263)>;
interrupts = <GPIO_NO(EDM_EXT_GPIO_P263) 0>;
spi-max-frequency = <1000000>;
pendown-gpio = <&EDM_EXT_GPIO_P263 0>;
vcc-supply = <&reg_3p3v>;

ti,x-min = /bits/ 16 <0>;
ti,x-max = /bits/ 16 <4095>;
ti,y-min = /bits/ 16 <0>;
ti,y-max = /bits/ 16 <4095>;
ti,pressure-max = /bits/ 16 <1024>;
ti,x-plate-ohms = /bits/ 16 <90>;
ti,y-plate-ohms = /bits/ 16 <90>;
ti,debounce-max = /bits/ 16 <70>;
ti,debounce-tol = /bits/ 16 <3>;
ti,debounce-rep = /bits/ 16 <2>;
ti,settle-delay-usec = /bits/ 16 <150>;

linux,wakeup;
};
};

#ifdef EDM_PCIEA
&EDM_PCIEA {
#ifdef EDM_PCIEA_RESET_GPIO
reset-gpio = <&EDM_PCIEA_RESET_GPIO GPIO_ACTIVE_HIGH>;
#endif
status = "okay";
};
#endif

33 changes: 33 additions & 0 deletions arch/arm/boot/dts/imx6dl-edm1_fairy.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Copyright 2018 Technexion Ltd.
*
* Author: Tapani Utriainen <[email protected]>
* Richard Hu <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/

/dts-v1/;
#include <dt-bindings/interrupt-controller/irq.h>
#include "imx6dl.dtsi"
#include "imx6qdl-edm.dtsi"
#include "baseboard_edm1_fairy.dtsi"

/ {
model = "TechNexion EDM1-IMX6 DualLite/Solo and FAIRY baseboard";
compatible = "fsl,edm-imx6dl", "fsl,imx6dl";
};

&ldb {
lvds-channel@0 {
crtc = "ipu1-di0";
};
};

&epdc {
status = "disabled";
};

34 changes: 34 additions & 0 deletions arch/arm/boot/dts/imx6q-edm1_fairy.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright 2018 Technexion Ltd.
*
* Author: Tapani Utriainen <[email protected]>
* Richard Hu <[email protected]>
*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* http://www.opensource.org/licenses/gpl-license.html
* http://www.gnu.org/copyleft/gpl.html
*/

/dts-v1/;
#include <dt-bindings/interrupt-controller/irq.h>
#include "imx6q.dtsi"
#include "imx6qdl-edm.dtsi"
#include "baseboard_edm1_fairy.dtsi"

/ {
model = "TechNexion EDM1-IMX6 Quad/Dual and FAIRY baseboard";
compatible = "fsl,edm-imx6q", "fsl,imx6q";
};

&ldb {
lvds-channel@0 {
crtc = "ipu2-di0";
};
};

&sata {
status = "okay";
};
50 changes: 50 additions & 0 deletions arch/arm/boot/dts/imx6qp-edm1_fairy.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* Copyright 2016 Technexion Ltd.
*
* Author: Tapani Utriainen <[email protected]>
* Richard Hu <[email protected]>
*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* http://www.opensource.org/licenses/gpl-license.html
* http://www.gnu.org/copyleft/gpl.html
*/

#include "imx6q-edm1_fairy.dts"
#include "imx6qp.dtsi"

/ {
model = "TechNexion EDM1-IMX6 Quad Plus and FAIRY baseboard";
};

&pre1 {
status = "okay";
};

&pre2 {
status = "okay";
};

&pre3 {
status = "okay";
};

&pre4 {
status = "okay";
};

&prg1 {
memory-region = <&memory>;
status = "okay";
};

&prg2 {
memory-region = <&memory>;
status = "okay";
};

&fec {
/delete-property/ phy-reset-gpios;
};

0 comments on commit a92a1bb

Please sign in to comment.