summaryrefslogtreecommitdiff
path: root/sys/dev/ofw
AgeCommit message (Collapse)Author
2019-12-03Since device tree trip points might not be sorted, but our codePatrick Wildt
expected a sorted list, do the sorting ourselves upon parsing the trip points. ok kurt@
2019-09-30Add a PWM framework.Mark Kettenis
ok patrick@
2019-09-29Reserve a few GPIO_CONFIG bits for machine-dependent use.Visa Hankala
No objection from kettenis@
2019-09-07Add an SFP framework which allows SFP providers to provide aPatrick Wildt
method to access its pages. ok kettenis@
2019-09-07Add an I2C framework, so that nodes that need to use I2C butPatrick Wildt
are not children of the I2C controller are able to use it. ok kettenis@
2019-09-04Add comment.Mark Kettenis
2019-08-28This code calls task_add(9) from a timeout, so create the taskq withMark Kettenis
IPL_SOFTCLOCK instead of IPL_NONE. ok mpi@, deraadt@, patrick@
2019-08-28Add a PHY "framework".Mark Kettenis
ok patrick@
2019-08-26Implement GPIO hogging.Mark Kettenis
ok patrick@
2019-08-10Make sure fdt_get_reg() looks beyond its parent to establish the correctMark Kettenis
#address-cells and #size-cells for the bus it sits on. This makes sure the glass console works since the framebuffer shows up as a child of /chosen which typically doesn't have these properties. This makes us look at the root node instead. ok patrick@
2019-07-03Skip thermal zones without "trips" or "cooling-maps" nodes.Mark Kettenis
2019-07-03OF_finddevice(9) returns -1 if the node in question couldn't be found.Mark Kettenis
2019-07-02Add thermal zone handling code. This provides support for thermal zonesMark Kettenis
defined in device trees that link together thermal sensors and cooling devices to actively or passively cool devices when certain trip points are reached. ok mlarkin@ patrick@
2019-04-30We are allowed to enable regulators with the "regulator-always-on"Patrick Wildt
property. The definition is that a regulator with this property should never be disabled. ok kettenis@
2019-02-20Add support for current limit regulators in addition to the voltagePatrick Wildt
regulators we already support. The GPIO-based regulators are rather independent of the type, we only need to know the type to check the upper and lower limits. With feedback from kettenis@
2019-02-18In the voltage regulator getter we need to actually check the GPIOPatrick Wildt
pin before setting the "pin is high" bit in the index for the states. Otherwise the index always has all possible bits sets. ok kettenis@
2019-01-02Setting a fixed voltage regulator to the voltage it is fixed toPatrick Wildt
should not throw an error. ok kettenis@
2019-01-02A fixed regulator's minimum voltage attribute is called regulator-min-microvoltPatrick Wildt
instead of regulator-min-voltage. ok kettenis@
2018-10-23Fix OFW GPIO regulator by breaking out of the loop once the correctPatrick Wildt
match has been found. Otherwise the error condition will always be true. ok kettenis@
2018-08-28avoid uninitialised variable useJonathan Gray
ok patrick@ kettenis@
2018-08-13Support GPIO-based voltage regulators.Patrick Wildt
ok kettenis@
2018-08-05Fix typo that caused us to misassign parents.Mark Kettenis
ok patrick@
2018-08-02Add delay when increasing the voltage of a regulator that has aMark Kettenis
"regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns. ok patrick@
2018-06-03Change the set_parent() interface to pass the full parent specificationMark Kettenis
(including the phandle). ok patrick@
2018-05-04Add a common rules file for ofw sources to help keep the configurationsVisa Hankala
of fdt-enabled platforms in sync. OK deraadt@
2018-05-03Add an API to configure clocks to specific pre-assigned values. ThesePatrick 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-02Implement a power domain framework to turn on/off so-called powerPatrick 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-02Implement a regmap lookup by compatible since unfortunately not allPatrick Wildt
regmaps are referenced by nodes or phandles. ok kettenis@
2018-03-21Register regmap regardless of whether the node has a "phandle" property.Mark Kettenis
ok patrick@, visa@
2018-01-03Add remap_bynode() since I use it in the rkpcie(4) implementation.Mark Kettenis
2017-12-27Implement OF_getpropint64().Mark Kettenis
ok jca@, tom@, patrick@, visa@
2017-12-18Add support for enabling registered regulators. Make sure that we leaveMark Kettenis
regulators with a "regulator-always-on" property alone. ok patrick@
2017-12-16Enforce voltage limits from the device tree. Enforcing the limits alsoMark 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-18Extend regulator "framework" with functions to get/set voltages.Mark Kettenis
ok jsg@
2017-11-18Extend regulator "framework" with functions to get/set voltages.Mark Kettenis
ok jsg@
2017-11-17Make 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-05Include <dev/ofw/ofw_misc.h> instead of <dev/ofw/ofw_pinctrl.h>.Mark Kettenis
2017-03-12Introduce OF_getindex() API and use it to replace multiple instances ofMark Kettenis
pretty much identical code. ok visa@
2017-03-09Add a "regmap" interface that allows devices to provide access to theirMark Kettenis
registers to devices that live elsewhere in the device tree. ok patrick@
2016-08-27Return -1 if we try to set the frequency of a clock but couldn't find it.Mark Kettenis
2016-08-23Add functions to assert/deassert all reset signals for a device.Mark Kettenis
2016-08-23Actually make fdt_find_node() return NULL if the node couldn't be found.Mark Kettenis
ok tom@
2016-08-22Fix two small bugs in the new reset API code.Mark Kettenis
2016-08-22Add an API to set the clock frequency.Mark Kettenis
2016-08-22Add a reset signal API alongside the clock API.Mark Kettenis
2016-08-22Implement interfaces to disable clocks and add interfaces that enable orMark 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-21Add a minimal clock "framework". Build it on armv7.Mark Kettenis
ok patrick@
2016-08-21Fix a pasto in a comment.Mark Kettenis
2016-08-13Add a minimal regulator "framework".Mark Kettenis
ok jsg@, patrick@
2016-08-06Add a generic pinctrl "framework".Mark Kettenis
ok patrick@