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)
Fri, Mar 21, 7:40 PM
Unknown Object (File)
Tue, Mar 18, 2:49 PM
Unknown Object (File)
Feb 12 2025, 10:05 AM
Unknown Object (File)
Feb 12 2025, 9:50 AM
Unknown Object (File)
Feb 12 2025, 7:15 AM
Unknown Object (File)
Jan 22 2025, 4:34 AM
Unknown Object (File)
Jan 15 2025, 2:26 AM
Unknown Object (File)
Jan 14 2025, 4:46 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