mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
e512cef81a
Add touch controller that is connected over an I2C bus. It is disabled by default because the pins are also used for PWM, which is the standard use for colibri boards. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
227 lines
5.0 KiB
Plaintext
227 lines
5.0 KiB
Plaintext
/*
|
|
* Copyright 2016 Toradex AG
|
|
*
|
|
* This file is dual-licensed: you can use it either under the terms
|
|
* of the GPL or the X11 license, at your option. Note that this dual
|
|
* licensing only applies to this file, and not this project as a
|
|
* whole.
|
|
*
|
|
* a) This file 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 file 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.
|
|
*
|
|
* Or, alternatively,
|
|
*
|
|
* b) Permission is hereby granted, free of charge, to any person
|
|
* obtaining a copy of this software and associated documentation
|
|
* files (the "Software"), to deal in the Software without
|
|
* restriction, including without limitation the rights to use,
|
|
* copy, modify, merge, publish, distribute, sublicense, and/or
|
|
* sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following
|
|
* conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be
|
|
* included in all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
* OTHER DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
/ {
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
/* fixed crystal dedicated to mpc258x */
|
|
clk16m: clk16m {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <16000000>;
|
|
};
|
|
|
|
gpio-keys {
|
|
compatible = "gpio-keys";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_gpiokeys>;
|
|
|
|
power {
|
|
label = "Wake-Up";
|
|
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
|
|
linux,code = <KEY_WAKEUP>;
|
|
debounce-interval = <10>;
|
|
wakeup-source;
|
|
};
|
|
};
|
|
|
|
panel: panel {
|
|
compatible = "edt,et057090dhu";
|
|
backlight = <&bl>;
|
|
power-supply = <®_3v3>;
|
|
|
|
port {
|
|
panel_in: endpoint {
|
|
remote-endpoint = <&lcdif_out>;
|
|
};
|
|
};
|
|
};
|
|
|
|
reg_3v3: regulator-3v3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "3.3V";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
};
|
|
|
|
reg_5v0: regulator-5v0 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "5V";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
};
|
|
|
|
reg_usbh_vbus: regulator-usbh-vbus {
|
|
compatible = "regulator-fixed";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_usbh_reg>;
|
|
regulator-name = "VCC_USB[1-4]";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
gpio = <&gpio4 7 GPIO_ACTIVE_LOW>;
|
|
vin-supply = <®_5v0>;
|
|
};
|
|
};
|
|
|
|
&bl {
|
|
brightness-levels = <0 4 8 16 32 64 128 255>;
|
|
default-brightness-level = <6>;
|
|
power-supply = <®_3v3>;
|
|
|
|
status = "okay";
|
|
};
|
|
|
|
&adc1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&adc2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&ecspi3 {
|
|
status = "okay";
|
|
|
|
mcp2515: can@0 {
|
|
compatible = "microchip,mcp2515";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_can_int>;
|
|
reg = <0>;
|
|
clocks = <&clk16m>;
|
|
interrupt-parent = <&gpio5>;
|
|
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
|
|
spi-max-frequency = <10000000>;
|
|
vdd-supply = <®_3v3>;
|
|
xceiver-supply = <®_5v0>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&fec1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c4 {
|
|
status = "okay";
|
|
|
|
/*
|
|
* Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>,
|
|
* aka pwm2, pwm3. so if you enable touchscreen, disable the pwms
|
|
*/
|
|
touchscreen@4a {
|
|
compatible = "atmel,maxtouch";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_gpiotouch>;
|
|
reg = <0x4a>;
|
|
interrupt-parent = <&gpio1>;
|
|
interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* SODIMM 28 */
|
|
reset-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; /* SODIMM 30 */
|
|
status = "disabled";
|
|
};
|
|
|
|
/* M41T0M6 real time clock on carrier board */
|
|
rtc: m41t0m6@68 {
|
|
compatible = "st,m41t0";
|
|
reg = <0x68>;
|
|
};
|
|
};
|
|
|
|
&lcdif {
|
|
status = "okay";
|
|
|
|
port {
|
|
lcdif_out: endpoint {
|
|
remote-endpoint = <&panel_in>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pwm1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm3 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm4 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart3 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbotg1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usdhc1 {
|
|
keep-power-in-suspend;
|
|
wakeup-source;
|
|
vmmc-supply = <®_3v3>;
|
|
status = "okay";
|
|
};
|
|
|
|
&iomuxc {
|
|
pinctrl_gpiotouch: touchgpios {
|
|
fsl,pins = <
|
|
MX7D_PAD_GPIO1_IO09__GPIO1_IO9 0x74
|
|
MX7D_PAD_GPIO1_IO10__GPIO1_IO10 0x14
|
|
>;
|
|
};
|
|
};
|