Sorry for newb question, but how to enable SPI device on captain’s GPIO?
Br,
Jarek
Sorry for newb question, but how to enable SPI device on captain’s GPIO?
Br,
Jarek
Ubuntu, I forgot to add.
@Rundstedt You need to open it in dts
&spicc1 {
status = "disabled";
pinctrl-names = "default";
pinctrl-0 = <&spicc1_pins>;
cs-gpios = <&gpio GPIOH_6 0>;
spidev@0 {
status = "okay";
compatible = "linux,spidev";
/* spi default max clock 100Mhz */
spi-max-frequency = <100000000>;
reg = <0>;
};
};
default is disabled