diff options
author | Dario Binacchi <dario.binacchi@amarulasolutions.com> | 2023-07-04 19:34:07 +0200 |
---|---|---|
committer | Alexandre Torgue <alexandre.torgue@foss.st.com> | 2023-07-11 12:54:26 +0200 |
commit | f0215440069c4fb12958d2d321e05faa2708a11d (patch) | |
tree | ed7f169421f2e0af06efda8bb280e7efa4a45f56 | |
parent | 0637e66f8250c61f75042131fcb7f88ead2ad436 (diff) | |
download | linux-stable-f0215440069c4fb12958d2d321e05faa2708a11d.tar.gz linux-stable-f0215440069c4fb12958d2d321e05faa2708a11d.tar.bz2 linux-stable-f0215440069c4fb12958d2d321e05faa2708a11d.zip |
ARM: dts: stm32: add touchscreen on stm32f746-disco board
The patch adds support for touchscreen on the stm32f746-disco board.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
-rw-r--r-- | arch/arm/boot/dts/st/stm32f746-disco.dts | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/st/stm32f746-disco.dts b/arch/arm/boot/dts/st/stm32f746-disco.dts index c11616ed5fc6..a53da9c3a507 100644 --- a/arch/arm/boot/dts/st/stm32f746-disco.dts +++ b/arch/arm/boot/dts/st/stm32f746-disco.dts @@ -43,8 +43,9 @@ /dts-v1/; #include "stm32f746.dtsi" #include "stm32f746-pinctrl.dtsi" -#include <dt-bindings/input/input.h> #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> +#include <dt-bindings/interrupt-controller/irq.h> / { model = "STMicroelectronics STM32F746-DISCO board"; @@ -99,6 +100,22 @@ status = "okay"; }; +&i2c3 { + pinctrl-0 = <&i2c3_pins_a>; + pinctrl-names = "default"; + clock-frequency = <400000>; + status = "okay"; + + touchscreen@38 { + compatible = "edt,edt-ft5306"; + reg = <0x38>; + interrupt-parent = <&gpioi>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + touchscreen-size-x = <480>; + touchscreen-size-y = <272>; + }; +}; + &sdio1 { status = "okay"; vmmc-supply = <&mmc_vcard>; |