Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-10-23 | Fix OFW GPIO regulator by breaking out of the loop once the correct | Patrick Wildt | |
match has been found. Otherwise the error condition will always be true. ok kettenis@ | |||
2018-08-28 | avoid uninitialised variable use | Jonathan Gray | |
ok patrick@ kettenis@ | |||
2018-08-13 | Support GPIO-based voltage regulators. | Patrick Wildt | |
ok kettenis@ | |||
2018-08-05 | Fix typo that caused us to misassign parents. | Mark Kettenis | |
ok patrick@ | |||
2018-08-02 | Add delay when increasing the voltage of a regulator that has a | Mark Kettenis | |
"regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns. ok patrick@ | |||
2018-06-03 | Change the set_parent() interface to pass the full parent specification | Mark Kettenis | |
(including the phandle). ok patrick@ | |||
2018-05-04 | Add a common rules file for ofw sources to help keep the configurations | Visa Hankala | |
of fdt-enabled platforms in sync. OK deraadt@ | |||
2018-05-03 | Add an API to configure clocks to specific pre-assigned values. These | Patrick Wildt | |
values are defined in the device tree and make sure that all clocks needed for controller and driver operation are configured as expected. This allows modifying a clock's rate and parent. For now expect that a parent clock is on the same controller as the muxed one. ok kettenis@ | |||
2018-05-02 | Implement a power domain framework to turn on/off so-called power | Patrick Wildt | |
domains. This mechanism is used by the newer i.MX8M SoCs so that drivers can call into ATF to supply power to e.g. a USB port. ok kettenis@ | |||
2018-04-02 | Implement a regmap lookup by compatible since unfortunately not all | Patrick Wildt | |
regmaps are referenced by nodes or phandles. ok kettenis@ | |||
2018-03-21 | Register regmap regardless of whether the node has a "phandle" property. | Mark Kettenis | |
ok patrick@, visa@ | |||
2018-01-03 | Add remap_bynode() since I use it in the rkpcie(4) implementation. | Mark Kettenis | |
2017-12-27 | Implement OF_getpropint64(). | Mark Kettenis | |
ok jca@, tom@, patrick@, visa@ | |||
2017-12-18 | Add support for enabling registered regulators. Make sure that we leave | Mark Kettenis | |
regulators with a "regulator-always-on" property alone. ok patrick@ | |||
2017-12-16 | Enforce voltage limits from the device tree. Enforcing the limits also | Mark Kettenis | |
happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that. ok patrick@ | |||
2017-11-18 | Extend regulator "framework" with functions to get/set voltages. | Mark Kettenis | |
ok jsg@ | |||
2017-11-18 | Extend regulator "framework" with functions to get/set voltages. | Mark Kettenis | |
ok jsg@ | |||
2017-11-17 | Make OF_getnodebyname() scan its child nodes instead of its peer nodes. | Mark Kettenis | |
This still deviates from the implementation we have on macppc, but we only ever use OF_getnodebyname() to find child nodes in our tree. ok tom@, visa@ | |||
2017-05-05 | Include <dev/ofw/ofw_misc.h> instead of <dev/ofw/ofw_pinctrl.h>. | Mark Kettenis | |
2017-03-12 | Introduce OF_getindex() API and use it to replace multiple instances of | Mark Kettenis | |
pretty much identical code. ok visa@ | |||
2017-03-09 | Add a "regmap" interface that allows devices to provide access to their | Mark Kettenis | |
registers to devices that live elsewhere in the device tree. ok patrick@ | |||
2016-08-27 | Return -1 if we try to set the frequency of a clock but couldn't find it. | Mark Kettenis | |
2016-08-23 | Add functions to assert/deassert all reset signals for a device. | Mark Kettenis | |
2016-08-23 | Actually make fdt_find_node() return NULL if the node couldn't be found. | Mark Kettenis | |
ok tom@ | |||
2016-08-22 | Fix two small bugs in the new reset API code. | Mark Kettenis | |
2016-08-22 | Add an API to set the clock frequency. | Mark Kettenis | |
2016-08-22 | Add a reset signal API alongside the clock API. | Mark Kettenis | |
2016-08-22 | Implement interfaces to disable clocks and add interfaces that enable or | Mark Kettenis | |
disable all clocks for a device. The latter interfaces are useful for devices that have multiple clocks that don't have specific names/purposes such as sxiahci(4). | |||
2016-08-21 | Add a minimal clock "framework". Build it on armv7. | Mark Kettenis | |
ok patrick@ | |||
2016-08-21 | Fix a pasto in a comment. | Mark Kettenis | |
2016-08-13 | Add a minimal regulator "framework". | Mark Kettenis | |
ok jsg@, patrick@ | |||
2016-08-06 | Add a generic pinctrl "framework". | Mark Kettenis | |
ok patrick@ | |||
2016-07-27 | Add interface to facilitate iterating over gpios. | Mark Kettenis | |
ok patrick@ | |||
2016-07-26 | Rename struct fdt_memory to fdt_reg to match the member name | Patrick Wildt | |
used in the fdt attach args and the device tree. ok kettenis@ | |||
2016-07-11 | Add a simple framework for handling gpio controllers and pins on FDT-enabled | Mark Kettenis | |
platforms. ok visa@, jsg@ | |||
2016-07-09 | Add interfaces to look up a device tree node by phandle. | Mark Kettenis | |
ok patrick@, jsg@, visa@ | |||
2016-07-08 | Fix check for "name" property. Restores synthesised "name" proprties in | Mark Kettenis | |
eeprom -p output that were lost in revision 1.13. | |||
2016-06-29 | Make the fdt parser skip nop tokens. This is needed on some | Visa Hankala | |
octeon boards. Feedback and ok kettenis@ | |||
2016-06-14 | Make sure OF_getprop() returns the proper length for a synthesised "name" | Mark Kettenis | |
property. From Tom Cosgrove. | |||
2016-06-14 | Make fdt_node_property() return -1 if the requested property can't be found | Mark Kettenis | |
such that we can distinguish between non-existing properties and zero-length properties. This brings the FDT code in line with the real OFW implementations. ok jsg@ | |||
2016-06-12 | Add OF_getpropint() and OF_getpropintarray(). | Mark Kettenis | |
ok visa@, jsg@ | |||
2016-06-08 | Use fdt to find the console to initialise. Try to use /chosen/stdout-path | Jonathan Gray | |
if present otherwise fallback to /aliases/serial0. Don't require a platform match to run the various console init functions so the init functions will run for unknown board ids. With and ok kettenis@ on a earlier version. | |||
2016-05-21 | Implement openprom(4) for armv7. | Mark Kettenis | |
ok deraadt@ | |||
2016-05-16 | Introduce OF_is_compatible(9), a convenience function to check the "compatible" | Mark Kettenis | |
property of an OFW/FDT node. ok deraadt@, pactrick@ | |||
2016-04-06 | Convert memory extract routine to return errno-based errors. | Patrick Wildt | |
Also check that mem is not NULL, as its part of the FDT API and should make sure it's not accessing a null pointer. ok bmercer@ | |||
2016-04-06 | Add support for bus space translation. | Patrick Wildt | |
The ranges property can be used to translate from one address space to another. This means that we cannot just use a controllers's reg property to get the physical address, but have to use its parent's ranges attribute to translate the address to another. ok kettenis@ | |||
2016-04-03 | Remove erroneous whitespace added in previous change. | Patrick Wildt | |
2016-04-03 | Implement a way to extract memory information from a node. This can be | Patrick Wildt | |
used to extract information about how much RAM is available or where a controller is in the address space and how big its IO space is. Add a way to get the device tree's size. This is helpful to find out how much you need to copy if you want to move the tree somewhere else. Also add helpers to easily retrieve integers from a property. ok jsg@ | |||
2016-04-03 | The callers of fdt_next_node() expect it to return NULL if a next node | Patrick Wildt | |
cannot be found. Due to implementation details, it used to return a pointer to the next node, without checking if it actually exists. Modify fdt_next_node() to only return a next node if it actually exists and implement an internal skip_node() function that keeps the previous behaviour. ok mpi@ | |||
2016-03-17 | Do not iterate all over the tree if OF_parent() is called on the root | Martin Pieuchot | |
node. The root is the root, it has no parent. From Patrick Wildt. |