Re: OFW/FDT regulator API

2016-08-12 Thread Tinker
On 2016-08-13 11:34, Theo de Raadt wrote: I have to admit, it's a bit shocking that VOLTAGE REGULATORS have to be exposed to the software in the first place. Just imagine a bug in some OS or firmware causing the voltages to spike up and fry the hell out of a device. I guess that's modern-day

Re: OFW/FDT regulator API

2016-08-12 Thread Theo de Raadt
> I have to admit, it's a bit shocking that VOLTAGE REGULATORS have to be > exposed to the software in the first place. > Just imagine a bug in some OS or firmware causing the voltages to spike > up and fry the hell out of a device. > > I guess that's modern-day hardware design for you. No, tha

Re: OFW/FDT regulator API

2016-08-12 Thread bytevolcano
I have to admit, it's a bit shocking that VOLTAGE REGULATORS have to be exposed to the software in the first place. Just imagine a bug in some OS or firmware causing the voltages to spike up and fry the hell out of a device. I guess that's modern-day hardware design for you. Mark Kettenis wrot

OFW/FDT regulator API

2016-08-12 Thread Mark Kettenis
The diff below adds a simple "regulator" API, Regulators are devices that apply voltage and/or current to subsystems to power them on. Examples are applying voltage to an SD card, powering a USB bus, turning on an Ethernet PHY, scaling the CPU voltage. Regulators come in many flavours. The simple