SPI enable? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32) +---- Forum: Pi2, Euler and Exp GPIO Ports (https://forum.pine64.org/forumdisplay.php?fid=34) +---- Thread: SPI enable? (/showthread.php?tid=3145) |
SPI enable? - herialtifa - 01-16-2017 Anybody to success enable spi port in GPIO? what your linux version? RE: SPI enable? - tllim - 01-20-2017 (01-16-2017, 08:40 PM)herialtifa Wrote: Anybody to success enable spi port in GPIO? Sunxi already support SPI NOR Flash on the mainline kernel, this means the SPI already enable. RE: SPI enable? - herialtifa - 01-20-2017 (01-20-2017, 08:09 PM)tllim Wrote:Sorry, what your mean?(01-16-2017, 08:40 PM)herialtifa Wrote: Anybody to success enable spi port in GPIO? Where i get linux for pinr64 with mainline kernel (spi enable)? Thanks Sent from my Mi-4c using Tapatalk RE: SPI enable? - jeroen79 - 02-09-2018 you can get a mainline image at https://dl.armbian.com/pine64/nightly/ (de debian one) but spi doesn't seem to work on that at the moment RE: SPI enable? - xalius - 02-09-2018 There should be a dts-overlay in Armbian to switch UART3/4 to SPI... so you dont even have to change your devicetree manually RE: SPI enable? - jeroen79 - 02-11-2018 the overlay doesn't seem to work, adding the following to the dtb and compiling it does work: &spi0 { #address-cells = <1>; #size-cells = <0>; status = "okay"; spidev@0 { reg = <0>; /* Chip Select 0 */ compatible = "spidev"; spi-max-frequency = <1000000>; status = "okay"; }; spidev@1 { reg = <1>; /* Chip Select 1 */ compatible = "spidev"; spi-max-frequency = <1000000>; status = "okay"; }; }; Why isn't this included by default in the dtb? RE: SPI enable? - xalius - 02-15-2018 The policy for mainline Linux is to not enable anything that is just on headers with no devices connected, and if devices are connected only the things needed, like MTD for the SPI flash. RE: SPI enable? - jomoengineer - 03-17-2018 i was able to get SPI enabled on my Pine64+ by following the instructions at the following link: http://synfare.com/599N105E/hwdocs/pine64/spidev.html This is what it looks like after performing the dtc edits: Code: ls /dev/spidev0.0 i have not tried this but it looks good thus far. |