Page MenuHomeFreeBSD

GPIO CS support and set mode and clock
ClosedPublic

Authored by yamori813_yahoo.co.jp on Apr 30 2019, 1:54 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 11 2024, 9:39 PM
Unknown Object (File)
Dec 8 2024, 3:56 PM
Unknown Object (File)
Nov 24 2024, 7:27 PM
Unknown Object (File)
Nov 21 2024, 12:30 PM
Unknown Object (File)
Nov 3 2024, 6:30 AM
Unknown Object (File)
Oct 30 2024, 5:49 PM
Unknown Object (File)
Oct 14 2024, 1:05 PM
Unknown Object (File)
Oct 4 2024, 11:59 PM
Subscribers

Details

Summary

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.

Test Plan

RT3050 and RT5350

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable