Add gpio cs support. This is dts
&spi1 { status = "okay"; cs-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; non-flash; spigen@0 { compatible = "freebsd,spigen"; spi-max-frequency = <10000000>; }; };
Almost same as OpenWRT. But current code depend on flash access.
I add non-flash property by ignore.
I try RT5350 spi1 registor but not worki fo me. I am abandon.
mode and clock set on transfer.
I use this code on small lcd device.