Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

Device Tree • Re: Display NOT WORKING - only works with Waveshare example script (AliExpress 3.5″ Capacitive Touch LCD), Overlay issue

$
0
0
GOT IT!

Touch is working with this Overlay

Code:

/dts-v1/;/plugin/;/ {    compatible = "brcm,bcm2835",                 "brcm,bcm2708",                 "brcm,bcm2709",                 "brcm,bcm2710",                 "brcm,bcm2711";    /* 0: I2C1 aktivieren */    fragment@0 {        target = <&i2c1>;        __overlay__ {            status = "okay";        };    };    /* 1: GPIO-Pins 4 (INT) und 17 (RESET) als Input mit Pull-Up */    fragment@1 {        target = <&gpio>;        __overlay__ {            ft5x06_pins: ft5x06_pins {                brcm,pins = <4 17>;                brcm,function = <0 0>;    /* 0 = INPUT */                brcm,pull = <2 2>;        /* 2 = PULL_UP */            };        };    };    /* 2: Touch-Controller an I2C1-Adresse 0x38 eintragen */    fragment@2 {        target = <&i2c1>;        __overlay__ {            #address-cells = <1>;            #size-cells    = <0>;            /* FT6336U / FT5x06-Touchcontroller */            ft5x06: touchscreen@38 {                compatible = "edt,edt-ft5x06";                reg = <0x38>;                pinctrl-names = "default";                pinctrl-0 = <&ft5x06_pins>;                interrupt-parent = <&gpio>;                interrupts = <4 0x8>;      /* BCM 4, IRQ_TYPE_EDGE_FALLING */                reset-gpios = <&gpio 17 1>; /* BCM 17, active-low */                touchscreen-size-x = <320>;                touchscreen-size-y = <480>;            };        };    };};

Statistics: Posted by AlexThum — Tue Apr 22, 2025 6:43 pm



Viewing all articles
Browse latest Browse all 8093

Trending Articles