2020-10-19 02:09 AM
I'm using spi5 and my device tree settings are
&spi5 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&spi5_pins_a>;
pinctrl-1 = <&spi5_sleep_pins_a>;
#address-cells = <1>;
#size-cells = <0>;
num-cs = <1>;
is-decoded-cs = <0>;
cs-gpios = <&gpiof 6 GPIO_ACTIVE_LOW>;
/delete-property/dma-names;
/delete-property/dmas;
status = "okay";
tsc2046@0 {
reg = <0>; // CS0
compatible = "ti,tsc2046";
interrupt-parent = <&gpiof>;
interrupts = <10 2>;
interrupt-controller;
spi-max-frequency = <1000000>;
pendown-gpio = <&gpiof 10 0>;
vcc-supply = <&v3v3>;
touchscreen-size-x = <1024>;
touchscreen-size-y = <600>;
wakeup-source;
status = "okay";
};
};
The driver of the touch screen is ADS7846. It's currently in-build. Something wrong in the device tree ?
Some more info. The chip select line seems to be inverted for some reason. Checking with oscilloscope it goes high during spi transaction. It should be low with ads7846 chip.
2020-10-23 02:20 AM
Some more info. The chip select line seems to be inverted for some reason. Checking with oscilloscope it goes high during spi transaction. It should be low with ads7846 (and tsc2046) chip.
2020-10-29 03:12 AM
follow-up on https://community.st.com/s/question/0D53W00000MBI9SSAX
2023-03-27 06:22 PM
hey, is your problem solved?
2023-04-04 12:48 AM