Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

.\" $NetBSD: tps65217pmic.4,v 1.10 2018/06/28 22:00:50 wiz Exp $
.\"
.\" Copyright (c) 2013 The NetBSD Foundation, Inc.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to The NetBSD Foundation
.\" by Radoslaw Kujawa.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd June 28, 2018
.Dt TPS65217PMIC 4
.Os
.Sh NAME
.Nm tps65217pmic
.Nd Texas Instruments TPS65217 Power Management IC driver
.Sh SYNOPSIS
.Cd "tps65217pmic0 at iic? addr 0x24"
.Sh DESCRIPTION
The
.Nm
driver provides minimal support for the TPS65217 chip and allows reporting
regulated voltages through the
.Xr envsys 4
API.
.Pp
The TPS65217 consists of low-dropout regulators (LDO) and step-down converters
with integrated switching FETs (DCDC):
.Bl -bullet -compact
.It
LDO1: 1.0V - 3.3V
.It
LDO2: 0.9V - 3.3V
.It
LDO3: 1.5V - 3.3V
.It
LDO4: 1.5V - 3.3V
.It
DCDC1: 0.9V - 1.8V
.It
DCDC2: 0.9V - 3.3V
.It
DCDC1: 0.9V - 1.5V
.El
.Sh SEE ALSO
.Xr envsys 4
.Sh HISTORY
The
.Nm
device first appeared in
.Nx 7.0 .
.Sh AUTHORS
.An -nosplit
The
.Nm
driver was written by
.An Radoslaw Kujawa Aq Mt radoslaw.kujawa@gmail.com .
Voltage change callback for AM335x was added by
.An Manuel Bouyer .
White LED (backlight) support was added by
.An KIYOHARA Takashi .
.Sh CAVEATS
The driver can only report current voltage regulator settings.
It can not measure the real voltage, as the TPS65217 chip lacks hardware to do
that.
Some boards allow voltage measurement by connecting the power output to
external sensor, or analog input of the MPU, but this is outside of the
scope of this driver.
.Pp
Modifying voltage regulator parameters from user space was deliberately left
unimplemented, as these parameters should only be set at the firmware or
kernel level.
Setting wrong parameters may result in permanent hardware damage.
.Pp
The
.Nm
driver offers a function that can be used to change the voltage from other
kernel components (currently used by AM335x support code).
.Sh BUGS
Battery and interrupt support is not implemented.