Jump to content

Arci

Members
  • Posts

    6
  • Joined

  • Last visited

  1. If I try to set something as spi-max-frequency, fps, rotate then I have still same visual output... It I mean still is display very slow. Debug flag is ignored too.. :-( On Raspberry Pi 3B+ working correctly and it accept higher SPI freq.... [ 5.852051] ads7846 spi1.1: supply vcc not found, using dummy regulator [ 5.869551] ads7846 spi1.1: touchscreen, irq 96 [ 5.888521] input: ADS7846 Touchscreen as /devices/platform/soc/1c69000.spi/spi_master/spi1/spi1.1/input/input1 [ 7.723726] ili9486 spi1.0: [drm] fb0: ili9486drmfb frame buffer device [ 7.754428] fbtft: module is from the staging directory, the quality is unknown, you have been warned. [ 7.761687] fb_ili9486: module is from the staging directory, the quality is unknown, you have been warned. /dts-v1/; /plugin/; / { compatible = "allwinner,sun8i-h5"; fragment@0 { target = <&spi1>; __overlay__ { status = "okay"; }; }; fragment@1 { target = <&pio>; __overlay__ { fbtft_pins: fbtft_pins { allwinner,pins = "PC7", "PA2"; allwinner,function = "gpio_out"; }; ads7846_pins: ads7846_pins { pins= "PA1"; function = "irq"; }; }; }; fragment@2 { target = <&spi1>; __overlay__ { #address-cells = <1>; #size-cells = <0>; fbtft: fbtft@0 { compatible = "ilitek,ili9486"; reg = <0>; status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&fbtft_pins>; spi-max-frequency = <32000000>; txbuflen = <32768>; rotate = <270>; bgr = <0>; fps = <50>; buswidth = <8>; regwidth = <16>; reset-gpios = <&pio 0 2 0>; /* PA2 */ dc-gpios = <&pio 0 71 0>; /* PC7 */ debug = <4>; init = <0x10000b0 0x00 0x1000011 0x20000ff 0x100003a 0x55 0x1000036 0x28 0x10000c2 0x44 0x10000c5 0x00 0x00 0x00 0x00 0x10000e0 0x0f 0x1f 0x1c 0x0c 0x0f 0x08 0x48 0x98 0x37 0x0a 0x13 0x04 0x11 0x0d 0x00 0x10000e1 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00 0x10000e2 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00 /* piscreen -> waveshare35a */ 0x1000036 0x28 0x1000011 0x1000029>; }; fbtft_ts: fbtft-ts@1 { compatible = "ti,ads7846"; reg = <1>; status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&ads7846_pins>; spi-max-frequency = <2000000>; interrupts = <0 1 2>; /* PA1 IRQ_TYPE_EDGE_FALLING */ interrupt-parent = <&pio>; pendown-gpio = <&pio 0 1 0>; /* PA1 */ ti,x-min = /bits/ 16 <0>; ti,y-min = /bits/ 16 <0>; ti,x-max = /bits/ 16 <0x0FFF>; ti,y-max = /bits/ 16 <0x0FFF>; ti,pressure-min = /bits/ 16 <0>; ti,pressure-max = /bits/ 16 <0xFFFF>; ti,x-plate-ohms = /bits/ 16 <400>; }; }; }; __overrides__ { speed = <&fbtft>,"spi-max-frequency:0"; txbuflen = <&fbtft>,"txbuflen:0"; rotate = <&fbtft>,"rotate:0"; fps = <&fbtft>,"fps:0"; bgr = <&fbtft>,"bgr:0"; debug = <&fbtft>,"debug:0"; swapxy = <&fbtft_ts>,"ti,swap-xy?"; }; };
  2. I tried successfully compile with this patch, but system ignore SPI speed. Display working, but it is very slowly drawing. How to set the frequency and how to check it? Armbian 21.05.0-trunk Focal with Linux 5.10.19-sunxi64
  3. Threre is dts for OPI PC2. But I tried set differet freq, but it is still same freq... How to set higher freq? /dts-v1/; /plugin/; / { compatible = "allwinner,sun8i-h5"; fragment@0 { target = <&spi1>; __overlay__ { status = "okay"; }; }; fragment@1 { target = <&pio>; __overlay__ { tft35a_pins: tft35a_pins { allwinner,pins = "PC7", "PA2"; allwinner,function = "gpio_out"; }; ads7846_pins: ads7846_pins { pins= "PA1"; function = "irq"; }; }; }; fragment@2 { target = <&spi1>; __overlay__ { #address-cells = <1>; #size-cells = <0>; tft35a: tft35a@0 { compatible = "ilitek,ili9486"; reg = <0>; status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&tft35a_pins>; spi-max-frequency = <16000000>; txbuflen = <32768>; rotate = <90>; bgr = <0>; fps = <25>; buswidth = <8>; regwidth = <16>; reset-gpios = <&pio 0 2 0>; /* PA2 */ dc-gpios = <&pio 0 71 0>; /* PC7 */ debug = <1>; init = <0x10000b0 0x00 0x1000011 0x20000ff 0x100003a 0x55 0x1000036 0x28 0x10000c2 0x44 0x10000c5 0x00 0x00 0x00 0x00 0x10000e0 0x0f 0x1f 0x1c 0x0c 0x0f 0x08 0x48 0x98 0x37 0x0a 0x13 0x04 0x11 0x0d 0x00 0x10000e1 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00 0x10000e2 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00 /* piscreen -> waveshare35a */ 0x1000036 0x28 0x1000011 0x1000029>; }; tft35a_ts: tft35a-ts@1 { compatible = "ti,ads7846"; reg = <1>; status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&ads7846_pins>; spi-max-frequency = <2000000>; interrupts = <0 1 2>; /* PA1 IRQ_TYPE_EDGE_FALLING */ interrupt-parent = <&pio>; pendown-gpio = <&pio 0 1 0>; /* PA1 */ ti,x-min = /bits/ 16 <0>; ti,y-min = /bits/ 16 <0>; ti,x-max = /bits/ 16 <0x0FFF>; ti,y-max = /bits/ 16 <0x0FFF>; ti,pressure-min = /bits/ 16 <0>; ti,pressure-max = /bits/ 16 <0xFFFF>; ti,x-plate-ohms = /bits/ 16 <400>; }; }; }; __overrides__ { speed = <&tft35a>,"spi-max-frquency:0"; txbuflen = <&tft35a>,"txbuflen:0"; rotate = <&tft35a>,"rotate:0"; fps = <&tft35a>,"fps:0"; bgr = <&tft35a>,"bgr:0"; debug = <&tft35a>,"debug:0"; swapxy = <&tft35a_ts>,"ti,swap-xy?"; }; };
  4. The dts definition shoud work, fi set corrct SPI port. For Orange PI PC2 (H5) is using SPI 1 as default SPI port. I see uncompatibilty SPI Allwinner drivers wit cxd2880_spi driver. Loading driver cxd2880_spi ending with err: dvbdev: DVB: registering new adapter (CXD2880) DVB: Unable to find symbol cxd2880_attach() cxd2880_spi: cxd2880_spi_probe: cxd2880_attach failed
  5. For Orange PI PC2 you have to use SPI1, but it is not working on OPI PC2. Is it there anybody who can modify this .dts with correct definition?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines