Home | History | Annotate | Download | only in imx
History log of /src/sys/arch/arm/imx/imxspi.c
RevisionDateAuthorComments
 1.15  10-Sep-2025  thorpej Garbage-collect fdtbus_attach_spibus(). spibus_attach() does everything
now.
 1.14  10-Sep-2025  thorpej Register the SPI controller with FDT in spi_attach(), not in each
driver.
 1.13  10-Sep-2025  thorpej It is not necessary to pass the phandle separately to fdtbus_spi_*(); it
can be retrieved from the device_t.
 1.12  10-Sep-2025  thorpej Don't bother registering a function that returns a SPI controller; just
register the controller directly.
 1.11  10-Sep-2025  thorpej Encapsulate what's needed to attach a SPI bus into a spibus_attach()
inline.
 1.10  17-Aug-2021  andvar fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.
 1.9  07-Aug-2021  thorpej branches: 1.9.2;
Merge thorpej-cfargs2.
 1.8  24-Apr-2021  thorpej branches: 1.8.2; 1.8.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.7  15-Nov-2019  hkenken branches: 1.7.10;
Keep SCLK high in the inactive state. (SPI modes 2 and 3 only)
 1.6  27-Sep-2019  hkenken Add i.MX SPI device type.

IMX31_CSPI
IMX35_CSPI
IMX51_ECSPI
 1.5  19-Aug-2019  hkenken Add support SPI driver for i.MX6.
 1.4  13-Aug-2019  tnn ensure spibus_attach_args is zero'ed
 1.3  07-Aug-2017  hkenken branches: 1.3.4;
Add support Microchip SST25VF016B.
- Fixed imxspi send and receive bugs.
 1.2  29-Mar-2014  hkenken branches: 1.2.4; 1.2.6; 1.2.10; 1.2.12;
Add optical joystick support for NetWalker.
+ OJ6SH-T25 (Sharp "Optical TOUCH CRUISER" sensor)
+ 2 Mouse buttons (GPIO)
 1.1  22-Mar-2014  hkenken Add SPI driver.
i.MX51 have two eCSPI, and one CSPI.
 1.2.12.1  28-Aug-2017  skrll Sync with HEAD
 1.2.10.3  03-Dec-2017  jdolecek update from HEAD
 1.2.10.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.10.1  29-Mar-2014  tls file imxspi.c was added on branch tls-maxphys on 2014-08-20 00:02:46 +0000
 1.2.6.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.6.1  29-Mar-2014  yamt file imxspi.c was added on branch yamt-pagecache on 2014-05-22 11:39:32 +0000
 1.2.4.2  18-May-2014  rmind sync with head
 1.2.4.1  29-Mar-2014  rmind file imxspi.c was added on branch rmind-smpnet on 2014-05-18 17:44:58 +0000
 1.3.4.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.7.10.1  23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.8.8.1  04-Aug-2021  thorpej Adapt to CFARGS().
 1.8.2.2  19-May-2021  thorpej - As with i2c, just register the spi_controller directly.
- fdtbus_attach_spibus() is no longer anything other than a wrapper
around config_found(); just get rid of it and make its callers
look like all of the other SPI controller drivers.
 1.8.2.1  18-May-2021  thorpej Pass the controller devhandle along to the "spi" instance.
 1.9.2.2  18-Jan-2022  thorpej G/C fdtbus_register_spi_controller(); it serves no purpose in the new
universe.
 1.9.2.1  09-Aug-2021  thorpej Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2,
which is based on a newer HEAD revision.

RSS XML Feed