Skip to content
Snippets Groups Projects
Commit 02df9d2f authored by Tobias Kahlki's avatar Tobias Kahlki
Browse files

[D18][DTBO] Add overlay for I2C MXT touch controller

parent ca38403b
No related branches found
No related tags found
1 merge request!200Add drivers and devicetrees for Modular Vision with D18
/*
* Copyright 2024 SECO
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include "../include/imx8mp-pinfunc.h"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
/dts-v1/;
/plugin/;
/ {
compatible = "fsl,imx8mp-evk", "seco,imx8mp-d18", "fsl,imx8mp";
/* __________________________________________________________________________
* | |
* | I2C Touch Controller maXTouch |
* |__________________________________________________________________________|
*/
fragment@0 {
target = <&i2c2>;
__overlay__ {
mxt@4a {
compatible = "atmel,maxtouch";
status = "okay";
reg = <0x4a>;
/*
* The touch_int is connected to the GPIO-Expander
* and needs no pinmuxing.
*/
interrupt-parent = <&pca6416>;
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
/*
* The atmel-mxt driver doesn't support the irq-gpio
* or the irq-low-active properties.
*/
reset-gpio = <&pca6416 2 GPIO_ACTIVE_LOW>;
reset-low-active = <1>;
};
};
};
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment