Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. You want to have your spi setup like this:
  2.  
  3. spi0: spi@f8000000 {
  4. pinctrl-names = "default";
  5. pinctrl-0 = <&pinctrl_spi0_default>;
  6. cs-gpios = <&pioA PIN_PB1 0>, <0>, <0>, <0>;
  7. status = "okay";
  8.  
  9. spidev@0 {
  10. compatible = "linux,spidev";
  11. spi-max-frequency = <24000000>;
  12. reg = <0>;
  13. };
  14. };
  15.  
  16. and then I use this command:
  17. modprobe fbtft_device txbuflen=32768 busnum=0 custom name=fb_ili9341 speed=24000000 gpios=reset:37,dc:39 bgr=1 rotate=90 fps=30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement