History log of /src/sys/dev/fdt/fdt_spi.c |
Revision | | Date | Author | Comments |
1.13 |
| 14-Sep-2025 |
thorpej | In spi_configure() attempt to fetch transfer mode information from the platform device tree. Implement this for FDT per the SPI controller and periperal Device Tree bindings.
|
1.12 |
| 14-Sep-2025 |
thorpej | Make SPI direct configuration less #ifdef'y. No more checking what kind of platform device tree; instead, use a device call to enumerate the direct config children of the bus.
|
1.11 |
| 10-Sep-2025 |
thorpej | Garbage-collect fdtbus_attach_spibus(). spibus_attach() does everything now.
|
1.10 |
| 10-Sep-2025 |
thorpej | Put the task of getting the device array from the FDT onto the SPI bus attach routine. This is slightly ugly now, but a prettier solution is on the way, and this at least funnels the ugliness into a single location.
|
1.9 |
| 10-Sep-2025 |
thorpej | Do the #address-cells dance inside of_copy_spi_devs(), and make calling it a bit simpler.
|
1.8 |
| 10-Sep-2025 |
thorpej | Remove pointless containment of SPI device array inside a dictionary that never gets passed on to anyone.
|
1.7 |
| 10-Sep-2025 |
thorpej | - Const poison references to spi_controller. - Don't make a copy of the spi_controller in the SPI bus softc; just take a reference to the one we got from the back-end driver.
|
1.6 |
| 10-Sep-2025 |
thorpej | Register the SPI controller with FDT in spi_attach(), not in each driver.
|
1.5 |
| 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.4 |
| 10-Sep-2025 |
thorpej | Don't bother registering a function that returns a SPI controller; just register the controller directly.
|
1.3 |
| 07-Aug-2021 |
thorpej | branches: 1.3.2; Merge thorpej-cfargs2.
|
1.2 |
| 24-Apr-2021 |
thorpej | branches: 1.2.2; 1.2.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.1 |
| 13-Aug-2019 |
tnn | branches: 1.1.8; 1.1.12; fdt: add SPI controller frontend
|
1.1.12.1 |
| 02-Apr-2021 |
thorpej | config_found_ia() -> config_found() w/ CFARG_IATTR.
|
1.1.8.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.1.8.1 |
| 13-Aug-2019 |
martin | file fdt_spi.c was added on branch phil-wifi on 2020-04-13 08:04:19 +0000
|
1.2.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|
1.2.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.2.2.1 |
| 18-May-2021 |
thorpej | Define a "spi-enumerate-devices" device call and use it for direct configuration of SPI devices, rather than slinging arrays of dictionaries around. Implement this device call for OpenFirmware / FDT, following the SPI bindings for Device Tree.
|
1.3.2.2 |
| 18-Jan-2022 |
thorpej | G/C fdtbus_register_spi_controller(); it serves no purpose in the new universe.
|
1.3.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.
|