notro / fbtft

Linux Framebuffer drivers for small TFT LCD display modules. Development has moved to https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/tree/drivers/staging/fbtft?h=staging-testing
1.85k stars 493 forks source link

ili9341 2.8" not working on beagleboneblack kernel version 5.10.0-rc7 #589

Closed toukaka closed 2 years ago

toukaka commented 2 years ago

Hello i'm facing issue integrating the il9341 driver in BBB rev C kernel 5.10.0-rc7

i already activated the kernel modules in the kernel configuration

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.0-rc7 (toumim@DESKTOP-B5A4U83) (arm-linux-gnueabihf-gcc (Linaro GCC 7.3-2018.05) 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701], GNU ld (Linaro_Binutils-2018.05) 2.28.2.20170706) #10 SMP Mon Jun 13 00:15:26 CEST 2022
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: ti,am335x-bone-black
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x9e800000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x000000009fdfffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000009fdfffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fdfffff]
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] percpu: Embedded 20 pages/cpu s49292 r8192 d24436 u81920
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129412
[    0.000000] Kernel command line: console=ttyO0,115200 root=/dev/mmcblk1p2 rootwait
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 485860K/522240K available (9216K kernel code, 1029K rwdata, 2180K rodata, 1024K init, 285K bss, 19996K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
[    0.000000] random: get_random_bytes called from start_kernel+0x30c/0x54c with crng_init=0
[    0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
[    0.000011] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000031] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000428] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
[    0.001839] Console: colour dummy device 80x30
[    0.001879] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.001889] This ensures that you still see kernel messages. Please
[    0.001898] update your kernel commandline.
[    0.001939] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.090516] pid_max: default: 32768 minimum: 301
[    0.090677] LSM: Security Framework initializing
[    0.090789] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.090806] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.091878] CPU: Testing write buffer coherency: ok
[    0.091969] CPU0: Spectre v2: using BPIALL workaround
[    0.092334] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.093128] Setting up static identity map for 0x80100000 - 0x80100078
[    0.093336] rcu: Hierarchical SRCU implementation.
[    0.093853] smp: Bringing up secondary CPUs ...
[    0.093872] smp: Brought up 1 node, 1 CPU
[    0.093885] SMP: Total of 1 processors activated (996.14 BogoMIPS).
[    0.093895] CPU: All CPU(s) started in SVC mode.
[    0.094569] devtmpfs: initialized
[    0.106709] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.107038] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.107070] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.108396] pinctrl core: initialized pinctrl subsystem
[    0.110002] NET: Registered protocol family 16
[    0.112848] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.132036] l3-aon-clkctrl:0000:0: failed to disable
[    0.132803] audit: initializing netlink subsys (disabled)
[    0.133961] thermal_sys: Registered thermal governor 'fair_share'
[    0.133975] thermal_sys: Registered thermal governor 'step_wise'
[    0.133991] thermal_sys: Registered thermal governor 'user_space'
[    0.134265] cpuidle: using governor menu
[    1.040930] audit: type=2000 audit(0.120:1): state=initialized audit_enabled=0 res=1
[    1.174985] No ATAGs?
[    1.175017] hw-breakpoint: debug architecture 0x4 unsupported.
[    1.202509] iommu: Default domain type: Translated 
[    1.204335] vgaarb: loaded
[    1.204885] SCSI subsystem initialized
[    1.205814] pps_core: LinuxPPS API ver. 1 registered
[    1.205832] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.205863] PTP clock support registered
[    1.207093] clocksource: Switched to clocksource dmtimer
[    1.871796] VFS: Disk quotas dquot_6.6.0
[    1.871911] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.881912] NET: Registered protocol family 2
[    1.882727] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.882766] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.882812] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    1.882873] TCP: Hash tables configured (established 4096 bind 4096)
[    1.882997] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.883024] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.883190] NET: Registered protocol family 1
[    1.884030] RPC: Registered named UNIX socket transport module.
[    1.884051] RPC: Registered udp transport module.
[    1.884060] RPC: Registered tcp transport module.
[    1.884069] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.884089] PCI: CLS 0 bytes, default 64
[    1.885567] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    1.887403] Initialise system trusted keyrings
[    1.887874] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.889140] NFS: Registering the id_resolver key type
[    1.889193] Key type id_resolver registered
[    1.889204] Key type id_legacy registered
[    1.889256] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.889625] Key type asymmetric registered
[    1.889642] Asymmetric key parser 'x509' registered
[    1.889663] io scheduler mq-deadline registered
[    1.889674] io scheduler kyber registered
[    2.030875] gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517
[    2.030917] omap_gpio 44e07000.gpio: Could not register gpio chip -517
[    2.253354] gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517
[    2.253394] omap_gpio 4804c000.gpio: Could not register gpio chip -517
[    2.320070] gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517
[    2.320112] omap_gpio 481ac000.gpio: Could not register gpio chip -517
[    2.331166] gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517
[    2.331201] omap_gpio 481ae000.gpio: Could not register gpio chip -517
[    2.410738] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
[    2.410789] edma 49000000.dma: TI EDMA DMA engine driver
[    2.434152] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    2.441067] Serial: 8250/16550 driver, 6 ports, IRQ sharing enabled
[    2.445008] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 20, base_baud = 3000000) is a 8250
[    2.530146] random: fast init done
[    3.159119] printk: console [ttyS0] enabled
[    3.177019] brd: module loaded
[    3.189327] loop: module loaded
[    3.194583] mtdoops: mtd device (mtddev=name/number) must be supplied
[    3.207161] libphy: Fixed MDIO Bus: probed
[    3.267092] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    3.274806] libphy: 4a101000.mdio: probed
[    3.281858] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    3.291512] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[    3.297972] cpsw 4a100000.ethernet: ALE Table size 1024
[    3.303421] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[    3.310727] cpsw 4a100000.ethernet: Detected MACID = c4:f3:12:6f:48:c9
[    3.319473] i2c /dev entries driver
[    3.324806] cpuidle: enable-method property 'ti,am3352' found operations
[    3.332509] sdhci: Secure Digital Host Controller Interface driver
[    3.338793] sdhci: Copyright(c) Pierre Ossman
[    3.343924] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.352094] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    3.361516] ledtrig-cpu: registered to indicate activity on CPUs
[    3.369583] fb_ili9341 spi1.0: fbtft_property_value: buswidth = 8
[    3.375796] fb_ili9341 spi1.0: fbtft_property_value: backlight = 63
[    3.382168] fb_ili9341 spi1.0: fbtft_property_value: debug = 3
[    3.388057] fb_ili9341 spi1.0: fbtft_property_value: rotate = 90
[    3.394094] fb_ili9341 spi1.0: fbtft_property_value: fps = 25
[    3.400582] fb_ili9341 spi1.0: fbtft_gamma_parse_str() str=
[    3.406191] fb_ili9341 spi1.0: 1F 1A 18 0A 0F 06 45 87 32 0A 07 02 07 05 00
[    3.406191] 00 25 27 05 10 09 3A 78 4D 05 18 0D 38 3A 1F
[    3.418692] fb_ili9341 spi1.0: Failed to request reset GPIO: -517
[    3.424866] mmc0: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA
[    3.434006] Initializing XFRM netlink socket
[    3.438610] NET: Registered protocol family 10
[    3.444546] Segment Routing with IPv6
[    3.448415] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.455137] NET: Registered protocol family 17
[    3.459742] NET: Registered protocol family 15
[    3.464300] Key type dns_resolver registered
[    3.469244] oprofile: using arm/armv7
[    3.473037] ThumbEE CPU extension supported.
[    3.477412] Registering SWP/SWPB emulation handler
[    3.482636] omap_voltage_late_init: Voltage driver support not added
[    3.489093] sr_dev_init: Unknown instance smartreflex0
[    3.494546] SmartReflex Class3 initialized
[    3.499506] Loading compiled-in X.509 certificates
[    3.523770] OMAP GPIO hardware version 0.1
[    3.557741] tps65217-pmic: Failed to locate of_node [id: -1]
[    3.571215] tps65217-bl: Failed to locate of_node [id: -1]
[    3.579798] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    3.585856] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    3.595424] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    3.605492] fb_ili9341 spi1.0: fbtft_probe_common()
[    3.610556] fb_ili9341 spi1.0: fbtft_property_value: buswidth = 8
[    3.616683] fb_ili9341 spi1.0: fbtft_property_value: backlight = 63
[    3.623008] fb_ili9341 spi1.0: fbtft_property_value: debug = 3
[    3.628891] fb_ili9341 spi1.0: fbtft_property_value: rotate = 90
[    3.634927] fb_ili9341 spi1.0: fbtft_property_value: fps = 25
[    3.641691] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    3.650514] sdhci-omap 48060000.mmc: Got CD GPIO
[    3.655419] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
[    3.665118] fb_ili9341 spi1.0: fbtft_gamma_parse_str() str=
[    3.670893] fb_ili9341 spi1.0: 1F 1A 18 0A 0F 06 45 87 32 0A 07 02 07 05 00
[    3.670893] 00 25 27 05 10 09 3A 78 4D 05 18 0D 38 3A 1F
[    3.683431] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'reset' GPIO
[    3.689919] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'dc' GPIO
[    3.696048] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'rd' GPIO
[    3.702205] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'wr' GPIO
[    3.708349] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'cs' GPIO
[    3.714468] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'latch' GPIO
[    3.720872] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.726991] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.733221] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.739449] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.745567] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.751795] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.758023] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.764141] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.770370] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.776575] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.782717] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.788945] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.795150] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.801292] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.807520] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.813726] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.819866] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.826072] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.832301] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.838442] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.844647] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.850875] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.856994] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.863222] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.869450] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.875569] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.881798] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.888036] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.894154] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.900386] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.906591] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.912735] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.918965] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.925171] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.931316] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.937545] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.943750] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.949890] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.956097] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.962327] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.968467] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.974673] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.980902] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    3.987021] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    3.993249] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    3.999477] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[    4.005595] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[    4.011827] fb_ili9341 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[    4.017971] fb_ili9341 spi1.0: fbtft_verify_gpios()
[    4.022873] fb_ili9341 spi1.0: fbtft_reset()
[    4.028645] mmc0: new high speed MMC card at address 0001
[    4.035185] mmcblk0: mmc0:0001 M62704 3.56 GiB 
[    4.040638] mmc1: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
[    4.049120] mmcblk0boot0: mmc0:0001 M62704 partition 1 2.00 MiB
[    4.055489] mmcblk0boot1: mmc0:0001 M62704 partition 2 2.00 MiB
[    4.062226] mmcblk0rpmb: mmc0:0001 M62704 partition 3 512 KiB, chardev (249:0)
[    4.072281]  mmcblk0: p1
[    4.134843] mmc1: new high speed SDHC card at address aaaa
[    4.141497] mmcblk1: mmc1:aaaa SD32G 29.7 GiB 
[    4.148500]  mmcblk1: p1 p2
[    4.399209] fb_ili9341 spi1.0: Display update: 1403 kB/s, fps=0
[    4.405329] fb_ili9341 spi1.0: fbtft_register_backlight(): led pin not set, exiting.
[    4.414454] Console: switching to colour frame buffer device 40x30
[    4.421315] graphics fb0: fb_ili9341 frame buffer, 320x240, 150 KiB video memory, 16 KiB buffer memory, fps=25, spi1.0 at 16 MHz
[    4.445987] EXT4-fs (mmcblk1p2): INFO: recovery required on readonly filesystem
[    4.453472] EXT4-fs (mmcblk1p2): write access will be enabled during recovery
[    4.510156] EXT4-fs (mmcblk1p2): recovery complete
[    4.517270] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[    4.525553] VFS: Mounted root (ext4 filesystem) readonly on device 179:26.
[    4.534013] devtmpfs: mounted
[    4.538737] Freeing unused kernel memory: 1024K
[    4.543785] Run /sbin/init as init process
[    4.660993] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: [    4.961967] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting network: OK
Starting dropbear sshd: OK

Welcome to kolorado
buildroot login: root

My device Tree source


// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
 */
/dts-v1/;

#include "am33xx.dtsi"
#include "am335x-bone-common.dtsi"
#include "am335x-boneblack-common.dtsi"
/ {
    compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
      exclusive-use =
        /* the pin header uses */
      "P9.31", /* spi1_sclk */
       "P9.29", /* spi1_d0 MISO */
       "P9.30", /* spi1_d1 MOSI */
       "P9.28", /* spi1_cs0 */
       "P9.11", /* gpio0_30 - reset */
       "P9.12", /* gpio1_28 - dc */
       "P9.15", /* gpio1_16 - led */
       "P9.14", /* backlight */
       "ehrpwm1A",
       "spi1";
};

};

&am33xx_pinmux {
    spi0_pins: pinmux_spi0_pins {
        pinctrl-single,pins = <
            AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT_PULLUP, MUX_MODE0) /* 0x150 0x30 P9_22: spi0_sclk, INPUT_PULLUP | MODE0 */
            AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_INPUT_PULLUP, MUX_MODE0) /* 0x154 0x30 P9_21: spi0_d0 MISO, INPUT_PULLUP | MODE0 */
            AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_OUTPUT_PULLUP, MUX_MODE0) /* 0x158 0x10 P9_18: spi0_d1 MOSI, OUTPUT_PULLUP | MODE0 */
            AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_OUTPUT_PULLUP, MUX_MODE0) /* 0x15c 0x10 P9_17: spi0_cs0, OUTPUT_PULLUP | MODE0 */
            >;
    };
    spi1_pins: pinmux_spi1_pins{
        pinctrl-single,pins = <
            AM33XX_PADCONF( AM335X_PIN_MCASP0_ACLKX,  PIN_INPUT_PULLUP, MUX_MODE3 )  // P9_31: spi1 clk out
            AM33XX_PADCONF( AM335X_PIN_MCASP0_FSX,    PIN_INPUT_PULLUP, MUX_MODE3 )  // P9_29: spi1 d0 /data in (miso)
            AM33XX_PADCONF( AM335X_PIN_MCASP0_AXR0,   PIN_INPUT_PULLUP, MUX_MODE3 )  // P9_30: spi1 d1 / data out (mosi)
            AM33XX_PADCONF( AM335X_PIN_MCASP0_AHCLKR, PIN_INPUT_PULLUP, MUX_MODE3 )  // P9_28: spi1 cs 0 out
        >;
    };
    lcd_ctrl_pinmux: lcd_ctrl_pins {
        pinmctrl-single,pins = <
            0x070 0x17 /* P9.11 gpio0_30 OUTPUT_PULLUP | MODE7 */
            0x078 0x17 /* P9.12 gpio1_28 OUTPUT_PULLUP | MODE7 */
            0x040 0x07 /* P9.15 gpio1_16 OUTPUT_PULDOWN| MODE7 */
            >;
        };

    pwm_bl_pins: pinmux_pwm_bl_pins {
        pinctrl-single,pins = <
            0x48 0x06 /* ehrpwm1a, MODE6 */
            >;
        };
};

&mac {
    status = "okay";
};

&spi0 {
    status="okay";
    pinctrl-names = "default";
    pinctrl-0 = <&spi0_pins>;
};

&spi1 {
    status="okay";
    pinctrl-names = "default";
    pinctrl-0 = <&spi1_pins>;
    #address-cells = <1>;
    #size-cells = <0>;
    };

&spi0 {
    device0@0 {
      reg = <0>;
      compatible = "linux,spidev"; 
      spi-max-frequency = <24000000>;
      };
    };

&spi1{
    display@0 {
      compatible = "ilitek,ili9341";
      reg = <0>;
      pinctrl-names = "default";

      spi-max-frequency = <16000000>;
      rotate = <90>;
      bgr;
      fps = <25>;
      buswidth = <8>;

      reset-gpios = <&gpio1 30 0>;
      dc-gpios = <&gpio2 28 0>;

      debug = <3>;
      };
    };

&epwmss1{
    status = "okay";
};

&ehrpwm1{
    status = "okay";
}; ```
notro commented 2 years ago

There was a patch that broke gpio handling in fbtft and I think the last fix entered in 5.14 (the previous ones were in 5.3): https://github.com/torvalds/linux/commit/ec03c2104365ead0a33627c05e685093eed3eaef The fix had to do with gpio polarity so if this is your problem you could reverse polarity in the DT, or you could apply the patch/fix.

This fix would have shown up in the 5.10 stable tree but I don't know in which version.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.