summaryrefslogtreecommitdiff
path: root/sys/dev/fdt/fdtvar.h
AgeCommit message (Collapse)Author
2023-06-12Call / define fdtbus_cpus_md_attach for platforms with cpus @ fdt.skrll
The RISC-V binding here seems somewhat of an abuse, but it exists in mainline linux.
2023-04-07Rename ARM_PLATFORM to FDT_PLATFORM and make it available outside arm.skrll
2022-03-04Add mailbox and power-domain support.skrll
power-domain support is very rudimentary.
2022-02-23Sort a bit. NFCskrll
2022-02-23API naming consistency. NFC.skrll
2022-01-14Formatting. NFCI.skrll
2021-11-07fdt: add helper for finding intr parent phandlejmcneill
2021-09-06Instead of requiring drivers to be explicit about their device memoryjmcneill
mapping requirements, move this decision into the fdt layer. This introduces a new MD function, fdtbus_bus_tag_create, which is responsible for returning per-node bus_space handles.
2021-09-04Add facility for registering iommus.jmcneill
2021-04-24Merge thorpej-cfargs branch:thorpej
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?).
2021-02-04Add fdtbus_device_register(). Just a placeholder for now.thorpej
2021-01-16oops, fix mistake in previous commit. removed unwanted member that had been ↵ryo
added.
2021-01-15Add 'const char *xname' param to fdtbus_intr_establish_bynamejmcneill
2021-01-15add fdtbus_intr_establish_xname() functionryo
2021-01-15Add 'const char *xname' arg to fdtbus_interrupt_controller_func .establishjmcneill
2020-12-23Change fdtbus_register_i2c_controller() to directly register the i2c_tag_t,thorpej
rather than the device and a set of functions (the only of which was to return the i2c_tag_t anyway). Previously, this assumed only a single i2c controller node per device_t, which is not true with an i2c mux.
2020-12-23Add fdtbus_gpio_count(), which counts the number of GPIO entriesthorpej
in a specified property.
2020-12-11Multiple inclusion protection define consistencyskrll
2020-09-28Get rid of a4x bus_space tag from fdtbus_attach_args. The only consumerjmcneill
of this was various com(4) glue so modify all of that to use the new com_init_regs_stride instead.
2020-02-20Add dma-ranges support.jmcneill
2020-02-16Add fdt_intr_mask() / fdt_intr_unmask() functions, for masking andthorpej
unmasking invididual interrupt sources (similar to acpi_intr_mask() and acpi_intr_unmask()).
2020-02-16Rename fdtbus_set_data() to fdtbus_init(). NFC.thorpej
2019-11-09Add fdtbus_clock_enable and fdtbus_clock_enable_index shortcutsjmcneill
2019-10-28Add fdtbus_clock_count to count the number of clock references on a given nodejmcneill
2019-10-28Add support for platform specific opp table filters.jmcneill
2019-10-01Add support for devices with separate "init" and "default" pinctrl states.jmcneill
2019-08-13fdt: add SPI controller frontendtnn
2019-06-14Add support "interrupts-extended".hkenken
* fdtbus_get_phandle_with_data(). Add utility subroutine to get phandle with data.
2019-05-08Merge isaki-audio2 branch, the overhaul of audio subsystem.isaki
- Interrupt-oriented system rather than thread-oriented. - Improve stability, quality and performance. - Split playback and record cleanly. Improve halfduplex support. - Many bugs are fixed including deadlocks, resource leaks, abuses, etc. - Simplify audio filter mechanism. The encoding/channels/frequency conversions are completely handled in the upper layer. So the hard- ware driver only converts its hardware encoding (if necessary). - audio_hw_if changes: - Obsoletes query_encoding and add query_format instead. - Obsoletes set_params and add set_format instead. - Remove drain, setfd, mappage. - The call sequences are changed. - ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted. - ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced. - cleanup config attributes: au*conv and mulaw. - All hardware drivers should follow it (I've done as much as possible). Some file paths are changed: - dev/audio.c -> dev/audio/audio.c (rewritten) - dev/audiovar.h -> dev/audio/audiovar.h - dev/audio_dai.h -> dev/audio/audio_dai.h - dev/audio_if.h -> dev/audio/audio_if.h - dev/audiobell.c -> dev/audio/audiobell.c - dev/audiobellvar.h -> dev/audio/audiobellvar.h - dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
2019-02-27Add fdtbus_intr_establish_byname() helper.jakllsch
2019-02-27Consolidate FDT [find "names" index by string] logic.jakllsch
2019-01-30Add support for Allwinner A64's display pipeline.jmcneill
2019-01-26Define constants for representing the standard interrupt typesthorpej
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts" bindings. Use these defined constants rather than magic numbers.
2019-01-23Implement subroutines for parsing out some of the generic propertiesthorpej
specified in the pinctrl bindings, and adapt Meson, Rockchip, and Allwinner pinctrl back-ends to use them. Ok jmcneill@
2019-01-19Add a helper to search the tree for a node with the specified propertyjmcneill
2019-01-02Add a function to report if a regulator can support the requested voltage rangejmcneill
2019-01-02Do not sort cpu nodes when enumerating so they attach in the order listedjmcneill
in the devicetree.
2018-09-15fdtvar.h: Use _KERNEL_OPT wrapper where necessary.jakllsch
2018-09-09Add fdt_add_bus_match, which is like fdt_add_bus but allows for the caller ↵jmcneill
to filter child nodes on their own
2018-09-09Pass clock provider's phandle to fdtbus_clock_controller_func.decode()aymeric
and update callers. This allows to accomodate clock managers whose clocks are identified directly by a clock instead of a pair (clock provider, index). ok jmcneill@ on port-arm
2018-09-06Add fdtbus_intr_establish_raw and fdtbus_intr_str_raw, for establishingjmcneill
interrupts directly using an interrupt controller's phandle and specifier.
2018-07-01Add fdtbus_attach_i2cbus, used to attach an i2cbus to an fdt device node.jmcneill
2018-06-30Add helper to lookup syscon by phandlejmcneill
2018-06-30Allow nodes to attach child devices using the same sorting rules as usedjmcneill
by the simplebus driver.
2018-06-30Add support for system controller nodes.jmcneill
2018-06-12Process assigned clock parents and rates on clock provider nodes.jmcneill
2018-06-10Add fdtbus_clock_byname, which can be used by clock backends tojmcneill
lookup clocks in other domains by "clock-output-names" property. Not intended for ordinary driver use.
2018-05-15Build fix for FDT kernels without audiojmcneill
2018-05-09Add SoC sound driver based on "simple-audio-card" DT binding spec.jmcneill
2018-05-06Add support for PWM backlights.jmcneill