Comments (5)
modalias is used for autoloading driver modules.
Make sure that the device has been added (this is for another driver) and that the modalias matches the one in the driver:
$ cat /sys/bus/spi/devices/spi0.0/modalias
spi:mi0283qt
$ modinfo mi0283qt
[...]
alias: spi:mi0283qt
[...]
from fbtft.
it isn't, but i have added it in /etc/modules anyway and it works fine now
even though fbtft works now, ads7846 doesn't want to
I keep getting this error in dmesg
ads7846: probe of spi3.0 failed with error -22
*if you're wondering why its looking for spi3.0, that's because im not using a raspberry pi, but a rock CM3 from radxa. I have connected it to the cm4io board, and the spi3 bus is located on the 40 gpio pin headers which im using for the screen, more on the cm3: https://wiki.radxa.com/Rock3/CM/CM3 *
its connected to CS0, this is the dts file i used
``
/dts-v1/;
/plugin/;
/ {
compatible = "radxa,radxa-cm3-io", "rockchip,rk3566";
fragment@0 {
target = <&spi3>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
ads7846@0 {
compatible = "ti,ads7846";
reg = <0>;
pinctrl-names = "default";
pinctrl-0 = <&spi3m0_cs0 &spi3m0_pins>;
spi-max-frequency = <50000000>;
interrupts = <255 2>;
interrupt-parent = <&gpio0>;
pendown-gpio = <&gpio0 18 0>;
ti,x-min = [00 00];
ti,y-min = [00 00];
ti,x-max = [0f ff];
ti,y-max = [0f ff];
ti,pressure-min = [00 00];
ti,pressure-max = [ff ff];
ti,x-plate-ohms = [01 90];
};
};
};
};
``
from fbtft.
You run the SPI clock at 50MHz, I don't think the chip can handle that. The rPi overlay uses 2MHz.
from fbtft.
I have realized that the reason it can't probe spi is because of this
Pin gpio4-6 (a.k.a. SPI3 CS0) is already occupied
from fbtft.
nevermind touchscreen works now, here is overlay i used
`
/dts-v1/;
/plugin/;
/ {
compatible = "radxa,radxa-cm3-io", "rockchip,rk3566";
fragment@0 {
target = <&spi3>;
__overlay__ {
status = "okay";
};
};
fragment@1 {
target = <&gpio0>;
__overlay__{
ads7846_pins: ads7846_pins {
rockchip,pins = <0 18 0 &pcfg_pull_up>;
};
};
};
fragment@2 {
target = <&spi3>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
ads7846: ads7846@0 {
compatible = "ti,ads7846";
reg = <0>;
spi-max-frequency = <2000000>;
interrupts = <18 2>; /* high-to-low edge triggered */
interrupt-parent = <&gpio0>;
pendown-gpio = <&gpio0 18 0>;
/* driver defaults */
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>;
};
};
};
};
`
from fbtft.
Related Issues (20)
- fbtft going blank after 2-3 hours HOT 5
- dmesg errors: no spi_device_id, using dummy regulator HOT 2
- A request to take a look at this tinydrm patch HOT 3
- ILI9341 low fps HOT 5
- ili9341 2.8" not working on beagleboneblack kernel version 5.10.0-rc7 HOT 2
- Buildroot failed because of fbtft HOT 9
- Parallel interface overlay HOT 7
- The 6.0 kernel uses tbftf and there is a problem that fbtft cannot be mounted HOT 4
- support for ssd_1305 HOT 5
- initialize the screen to black HOT 11
- IlI9431 white screen with F1C100S (lichee nano) HOT 8
- Problem with ST7735S HOT 4
- Problems about the mainline linux and this repo HOT 2
- Can the fbtft driver still be used directly with Raspberry Pi 5B? HOT 2
- Raspberry Pi 4 HOT 5
- ST7789v inverted colors HOT 6
- Column offset HOT 3
- ST7735 SPI transfer timed out HOT 8
- Incorrect image HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fbtft.