Hi everyone,
I can't seem to get spi1 on the f1c200s to work. My board is the MangoPi R3. Was wondering if anyone had configured a device for the second SPI controller before.
Here are the additions I made to the file here,
&pio {
spi1_pins: spi1-pins {
pins = "PE9", "PE7", "PE10", "PE8";
function = "spi1";
};
spi1_cs_pins: spi1-cs-pins {
pins = "PE7";
function = "gpio_out";
};
};
&spi1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
num_chipselect = <1>;
cs-gpios = <&pio 4 7 GPIO_ACTIVE_HIGH>;
spidev@0 {
compatible = "spidev";
reg = <0>;
spi-max-frequency = <0x2625a00>;
};
};
Loopback tests with this code work. So it looks like the issue may be the chip select (PE7) ??. The device I'm trying to connect to the board is the RFID-MFRC522.
Any help with very much appreciated.
离线