ARM: dts: meson8b: odroidc1: add the CPU voltage regulator
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Thu, 13 Sep 2018 20:29:16 +0000 (22:29 +0200)
committerKevin Hilman <khilman@baylibre.com>
Wed, 26 Sep 2018 08:49:49 +0000 (01:49 -0700)
commit524d96083b66455a73ae88e40cbcb838da114416
treee8c6d2f25c78ce74458c213385245b82013d88a1
parentbbedc1f1d90e33803001ceb8d9585b2f04fc10d0
ARM: dts: meson8b: odroidc1: add the CPU voltage regulator

The CPU voltage regulator is a "Monolithic Power Systems MP2161"
(according to the Odroid-C1+'s schematics). It is driven by PWM_C on
GPIODV_9.

Hardkernel's 3.10 kernel (based on the Amlogic GPL kernel sources)
defines a PWM voltage table with the following values:
- 0.86 volts = PWM register value 0x10f001b
- (more values in 0.1 volt increments)
- 1.14 volts = PWM register value 0x000012a
When using the XTAL (24MHz) as input this translates into a PWM period
of 12218ns with 0.86V using a duty cycle of 91% and 1.14V using a duty
cycle of 0%.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/meson8b-odroidc1.dts