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
F151137440: D20101.id56839.diff
Mon, Apr 6, 8:29 AM
F151107926: D20101.id56839.diff
Mon, Apr 6, 3:11 AM
Unknown Object (File)
Sun, Apr 5, 1:43 PM
Unknown Object (File)
Sun, Apr 5, 11:31 AM
Unknown Object (File)
Sun, Apr 5, 11:29 AM
Unknown Object (File)
Sat, Mar 21, 6:34 PM
Unknown Object (File)
Sat, Mar 7, 3:00 PM
Unknown Object (File)
Mar 7 2026, 8:26 AM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23996
Build 22887: arc lint + arc unit