summaryrefslogtreecommitdiff
path: root/sys/dev/fdt
AgeCommit message (Collapse)Author
2021-11-12dw_apb_uart: Honour reg-io-width propertyjmcneill
2021-11-07Look for child node by compat string snps,dwc3 instead of by name.jmcneill
2021-11-07pwm_backlight: pick defaults if none are providedjmcneill
2021-11-07fdt: add helper for finding intr parent phandlejmcneill
2021-11-07pinctrl-single: support #pinctrl-cells 2jmcneill
2021-11-07fdtbus: match simple-pm-busjmcneill
2021-11-07dts: adapt to dts-5.15 bindingsjmcneill
2021-10-22rename "setup_interrupts" to "alloc_interrupts"yamaguchi
in virtio_mmio and virtio_acpi This should fix build failure on evbarm.
2021-09-14Remove "no IOMMU" hack.jmcneill
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-08-30Until we have proper FDT iommu support, refuse to attach when an iommujmcneill
is required.
2021-08-30Add 10-bit pixel format support.jmcneill
2021-08-08fdt: regulator: pre-allocate regulator handlejmcneill
Workaround for PR# port-evbarm/54664
2021-08-07Merge thorpej-cfargs2.thorpej
2021-06-26Fix 32-bit build.jmcneill
2021-06-25fdt "/reserved-memory" node should be handledryo
2021-05-18Unbreak previous; we have to look for a child node iff our node isn'tjmcneill
compatible with snps,dwc3.
2021-05-03genet(4): Add support for rnd(9).rin
2021-04-26simplebus, cpus, and syscon do not need their own interface attribute; theythorpej
use the "fdt" interface attribute to attach children.
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-03-24Fix previousskrll
2021-03-23Match generic "snps,dw-mshc" compat string as found in BeagleV.jmcneill
2021-03-08Interrupt no longer needs kernel lock.mlelstv
2021-03-06Improve fdt_isprint so that it returns false if there are consecutiveskrll
zeroes.
2021-03-02Fix previous: Each line is "stride" bytes wide, not "width * depth".jmcneill
While here, add a comment explaining what this test is doing.
2021-03-02Sanity check size vs width x height x depth. Buggy firmware exists.skrll
2021-02-22It is more appropriate to use clk_get_rate() rather than sc->sc_freq_target ↵ryo
* 1000000. ci_data.cpu_cc_freq should be set to a higher precision value. In addition, when cpufreq_dt_init(), or while throttling, sc->sc_freq_target should not be referenced by cpufreq_dt_change_cb() because it does not have the correct value.
2021-02-05Assign device handles to devices that attach to the "fdt" interface attributethorpej
in fdtbus_device_register().
2021-02-04Add fdtbus_device_register(). Just a placeholder for now.thorpej
2021-01-27Rename of_match_compat_data() to of_compatible_match(). Similarly,thorpej
rename of_search_compatible() to of_compatible_lookup(). Standardize on of_compatible_match() for driver matching, and adapt all call sites.
2021-01-27Use DEVICE_COMPAT_EOL.thorpej
2021-01-26Replace 2 uses of of_match_compatible().thorpej
2021-01-25Since we're using designated initialisers for compat data, we shouldthorpej
use a completely empty initializer for the sentinel.
2021-01-25Add support for ACPI-based I2C mux attachment.jmcneill
2021-01-24Use strlist(9).thorpej
2021-01-20Remove the virtio child driver finalisation check KASSERT that, while itreinoud
should never trigger, a possible bug in a child driver shouldn't have to panic the kernel. Instead report the internal error.
2021-01-20Add VirtIO PCI v1.0 attachments and fix the drivers affected.reinoud
The vioif, ld, scsi, viornd and viomb devices were adjusted when needed and tested both in legacy 0.9 and v1.0 attachments trough PCI on amd64, sparc64, aarch64 and aarch64-eb. ACPI/FDT attachments also tested on aarch64/aarch64-eb. Known issues * viomb on aarch64 works only with ACPI/FDT attachment but not with PCI attachment. PCI and ACPI/FDT attachment works on aarch64-eb. * virtio on sparc64 attaches but is it not functioning though not a regression.
2021-01-18Remove "struct of_compat_data" and replace its usage withthorpej
"struct device_compatible_entry"; they are ABI-compatible. Fix several "loses const qualifier" bugs encountered during this conversion.
2021-01-17trailing whitespacejmcneill
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-15use fdtbus_intr_establish_xnamejmcneill
2021-01-15use fdtbus_intr_establish_xnameryo
2021-01-15add fdtbus_intr_establish_xname() functionryo
2021-01-15Add 'const char *xname' arg to fdtbus_interrupt_controller_func .establishjmcneill
2021-01-01- remove unnecessary coderyo
- handle "enable-gpios" property, and enable/disable GPIOs in pwmregulator_enable() pointed out by thorpej@, thanks
2020-12-31add fdt pwm regulatorryo
2020-12-28Re-factor the "iicmux" driver to support other types of muxes that arethorpej
themselves i2c devices.
2020-12-28The i2c-mux bindings specify that if the mux device has a child node namedthorpej
"i2c-mux", then it is that node that is the parent of the i2c bus children. This is to accommodate mux devices that may also have other kinds of child nodes in addition to i2c bus child nodes.