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)
Tue, Sep 23, 1:23 AM
Unknown Object (File)
Sep 3 2025, 2:25 AM
Unknown Object (File)
Aug 31 2025, 1:04 AM
Unknown Object (File)
Jul 7 2025, 6:56 AM
Unknown Object (File)
Jul 4 2025, 12:37 PM
Unknown Object (File)
Jun 17 2025, 1:53 AM
Unknown Object (File)
Jun 13 2025, 11:15 PM
Unknown Object (File)
Jun 13 2025, 4:19 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