11 Mar, 2019
1 commit
-
We are currently using SC_R_LAST as a marker for imx8 power domain tree
nodes without a resource attached. This value is compiled into dtb as
part of the linux build and used by uboot.The SC_R_LAST constant changes frequently as SCFW resources are added
(by design) and every time we need to update linux and uboot headers
together or boot can fail.Fix this by replacing SC_R_LAST usage with a new constant SC_R_NONE
defined to be 0xFFF0.Signed-off-by: Leonard Crestez
Reviewed-by: Peng Fan
(cherry picked from commit 93f302a6642adedfdd6336b22d08f32284539e35)
19 Feb, 2019
1 commit
-
When fspi is assigned to M4, we have to let the fspi probe failed when
its power domain is failed to power up. Because not all devices have power
domain (for example, external devices on the board). Current checking
resource owner in power domain probe is not good, change to check it in
power on.Signed-off-by: Ye Li
(cherry picked from commit b62b82ad595a744f07306db4b88d644ae024872a)
12 Feb, 2019
1 commit
-
If the resource is not owned by current partition, we can't power on/off
it, so we'd better return probe failure.Signed-off-by: Ye Li
(cherry picked from commit 327115c1d490d35afd94ae416ad91bebd595cfe2)
14 Jun, 2018
1 commit
-
For all the devices used and set ACTIVE in U-Boot, U-Boot needs
to power off all of them without the check of resource owner.When we create software partition before booting Linux, the resource
own checkw will return false, and cause the power domain not powered
off. If without the check of resource owner, the power domain in
the other software partition could be powered off with parent
partition could access child partition resources.Signed-off-by: Peng Fan
(cherry picked from commit 3e29e8adace18035850be9d56cc277c64a221e85)
13 Jun, 2018
2 commits
-
Necessary extensions of axp152 to support stream812.
merge patches from Martin Pietryka
Change-Id: I7708db4e59d6403a3576f17a221b448866f469a0
Signed-off-by: fang hui
(cherry picked from commit 6f51148d75869415bb4e9920572e8fffb1eb0099) -
Changed to use dev_read_subnode to get the ofnode type of the bd71837 device node.
Because the pmic_bind_children is changed to use ofnode.Signed-off-by: Ye Li
23 May, 2018
1 commit
-
The iMX8MM EVK board uses BD71837MWV pmic. Add its driver to u-boot.
Signed-off-by: Ye Li
27 Apr, 2018
4 commits
-
Add off-on-delay-us for fixed regulator.
Signed-off-by: Peng Fan
(cherry picked from commit 53856166e9df6d2e204c5d0f3469b9333ecf734e) -
Add power_domain_lookup_name interface to power domain uclass to find
a power domain device by its DTB node name, not using its associated
client device.Through this interface, we can operate the power domain devices directly.
This is needed for non-DM drivers.Reviewed-by: Peng Fan
Signed-off-by: Ye Li
(cherry picked from commit f5fcb1903d935c2e1037b6a1fc61f1c290818727) -
Add the power domain DM driver for i.MX8, that it depends on the DTB
power domain trees to generate the power domain provider devices. Users
needs add power domain trees with property "compatible = "nxp,imx8-pd";"- When power on one PD device, the driver will power on its ancestor PD devices
in power domain tree.- When power off on PD device, the driver will check its child PD devices first,
only all child PD devices are off, then power off the current PD device. Then the
driver checks sibling PD devices. If sibling PD devices are off, then it will power
off parent PD device.- There is no counter maintained in this driver, but a state to hold current on/off
state. So the request and free functions are empty.- The power domain implemetation in i.MX8 DTB set the "#power-domain-cells" to 0, so
there is no ID binding with each PD device. We don't use "id" variable in
struct power_domain. At same time, we have to set of_xlate to empty to bypass standard
of_xlate in uclass driver.Reviewed-by: Peng Fan
Signed-off-by: Ye Li
(cherry picked from commit 19c5632dc481d0fe983a4699d263bc9fc14edfcf) -
Allow the dm driver be omited by SPL.
Fix wrong config name for pfuze100 regulator.Signed-off-by: Peng Fan
Signed-off-by: Ye Li
05 Mar, 2018
1 commit
-
Thomas reported U-Boot failed to build host tools if libfdt-devel
package is installed because tools include libfdt headers from
/usr/include/ instead of using internal ones.This commit moves the header code:
include/libfdt.h -> include/linux/libfdt.h
include/libfdt_env.h -> include/linux/libfdt_env.hand replaces include directives:
#include -> #include
#include -> #includeReported-by: Thomas Petazzoni
Signed-off-by: Masahiro Yamada
04 Feb, 2018
1 commit
-
Allow the dm driver be omitted by SPL.
Signed-off-by: Peng Fan
Reviewed-by: Simon Glass
Cc: Jaehoon Chung
Cc: Stefano Babic
Reviewed-by: Jaehoon Chung
24 Jan, 2018
2 commits
-
Add the probe function to support the s2mps11 regulator driver.
Signed-off-by: Jaehoon Chung
Reviewed-by: Simon Glass
Tested-by: Anand Moon -
exynos5422 has the s2mps11 PMIC.
s2mps11 pmic has the 10-BUCK and 38-LDO regulators.
Each IP and devices in exynos5422 can be controlled by each regulators.
This patch is support for s2mps11 regulator driver.Signed-off-by: Jaehoon Chung
Reviewed-by: Simon Glass
Tested-by: Anand Moon
12 Jan, 2018
1 commit
-
In order to discard this code when unused in SPL we need to guard the
command with a check for CONFIG_SPL_BUILD and we rearrange the code
slightly to make this cleaner.Cc: Jaehoon Chung
Signed-off-by: Tom Rini
01 Jan, 2018
1 commit
-
The patch replaces the former error() by the new pr_err().
This makes the TPS65910 driver conform to Masahiro's patch
'treewide:replace with error() with pr_err()' introduced
October 2017.Signed-off-by: Felix Brack
Reviewed-by: Simon Glass
13 Dec, 2017
2 commits
-
Texas Instrument's TPS65910 PMIC contains 3 buck DC-DC converts, one
boost DC-DC converter and 8 LDOs. This patch implements driver model
support for the TPS65910 PMIC and its regulators making the get/set
API for regulator value/enable available.
This patch depends on the patch "am33xx: Add a function to query MPU
voltage in uV" to build correctly. For boards relying on the DT
include file tps65910.dtsi the v3 patch "power: extend prefix match
to regulator-name property" and an appropriate regulator naming is
also required.Signed-off-by: Felix Brack
Reviewed-by: Simon Glass -
This patch extends pmic_bind_children prefix matching. In addition to
the node name the property regulator-name is used while trying to match
prefixes. This allows assigning different drivers to regulator nodes
named regulator@1 and regulator@10 for example.
I have discarded the idea of using other properties then regulator-name
as I do not see any benefit in using property compatible or even
regulator-compatible. Of course I am open to change this if there are
good reasons to do so.Signed-off-by: Felix Brack
Reviewed-by: Simon Glass
04 Oct, 2017
1 commit
-
U-Boot widely uses error() as a bit noisier variant of printf().
This macro causes name conflict with the following line in
include/linux/compiler-gcc.h:# define __compiletime_error(message) __attribute__((error(message)))
This prevents us from using __compiletime_error(), and makes it
difficult to fully sync BUILD_BUG macros with Linux. (Notice
Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)Let's convert error() into now treewide-available pr_err().
Done with the help of Coccinelle, excluing tools/ directory.
The semantic patch I used is as follows:
//
@@@@
-error
+pr_err
(...)
//Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
[trini: Re-run Coccinelle]
Signed-off-by: Tom Rini
01 Oct, 2017
1 commit
-
The Makefile already tests for SPL_DM_REGULATOR_FIXED, but Kconfig
does not provide it. This adds SPL_DM_REGULATOR_FIXED to Kconfig.Signed-off-by: Philipp Tomsich
Reviewed-by: Simon Glass
22 Sep, 2017
1 commit
-
In the TI SOCs a PBIAS cell exists to provide a bias voltage to the MMC1
IO cells. Without this bias voltage these I/O cells can not function
properly. The PBIAS cell is controlled by software.Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass
19 Sep, 2017
1 commit
-
Remove header file includes that have been left over after the
conversion to livetree-support.Signed-off-by: Philipp Tomsich
Reviewed-by: Simon Glass
Acked-by: Philipp Tomsich
12 Sep, 2017
3 commits
-
Add a convenience macro to iterate over subnodes of a node. Make use of
this where appropriate in the code.Signed-off-by: Simon Glass
-
It is not necessary that ldo1 is used to power on mmc.
So, add support for passing ldo registers for powering on mmc.Reviewed-by: Tom Rini
Signed-off-by: Lokesh Vutla
01 Aug, 2017
2 commits
-
Some LDOs have a bypass capability. Make sure that the bypass is disabled
when is the LDO is enabled (otherwise the voltage can't be changed).Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Keerthy
Reviewed-by: Tom Rini -
Modify palmas_mmc1_poweron_ldo() API to set the voltage based on the
voltage parameter passed as argument instead of always setting it to
3.0V. This allows MMC1 to set the LDO1 regulator voltage to 3.3V or 1.8V.
1.8V is required to add support for UHS mode.Signed-off-by: Kishon Vijay Abraham I
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Tom Rini
29 Jul, 2017
3 commits
-
Convert this PMIC driver to driver model and fix up other users. The
regulator and GPIO functions are now handled by separate drivers.Update nyan-big to work correct. Three boards will need to be updated by
the maintainers: apalis-tk1, cei-tk1-som. Also the TODO in the code re
as3722_sd_set_voltage() needs to be completed.Signed-off-by: Simon Glass
Reviewed-by: Lukasz Majewski
Tested-by: Marcel Ziswiler
Tested-on: Jetson-TK1
Tested-by: Stephen Warren -
This pmic includes GPIOs which should have their own driver. Add
a driver to support these.Signed-off-by: Simon Glass
Reviewed-by: Lukasz Majewski
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
Tested-by: Stephen Warren -
This pmic includes regulators which should have their own driver. Add
a driver to support these.Signed-off-by: Simon Glass
Reviewed-by: Lukasz Majewski
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
Tested-by: Stephen Warren
27 Jul, 2017
2 commits
-
The regulator_enable() should be called from upper layer like
regulators_enable_boot_on(), remove it from pwm regulator driver.Signed-off-by: Kever Yang
Acked-by: Philipp Tomsich
Reviewed-by: Philipp Tomsich
[fixed up typo in commit message:]
Signed-off-by: Philipp Tomsich -
The rkpwm reg order has fixed by below patch:
e3ef41d rockchip: pwm: fix the register layout for the PWM controllerWe need to correct the parameter order for pwm_set_config() to make
the pwm regulator works correctly.Signed-off-by: Kever Yang
Acked-by: Philipp Tomsich
Reviewed-by: Philipp Tomsich
19 Jul, 2017
7 commits
-
get_enable should be able to return error values. Hence change
the return type to integer.Signed-off-by: Keerthy
Reviewed-by: Simon Glass -
get_enable should be able to return error values. Hence change
the return type to integer.Signed-off-by: Keerthy
Reviewed-by: Simon Glass -
get_enable should be able to return error values. Hence change
the return type to integer.Signed-off-by: Keerthy
Reviewed-by: Simon Glass -
get_enable should be able to return error values. Hence change
the return type to integer.Signed-off-by: Keerthy
Reviewed-by: Simon Glass -
get_enable should be able to return error values. Hence change
the return type to integer.Signed-off-by: Keerthy
Reviewed-by: Simon Glass -
get_enable should be able to return error values. Hence change
the return type to integer.Signed-off-by: Keerthy
Reviewed-by: Simon Glass -
get_enable should be able to return error values. Hence change
the return type to integer.Signed-off-by: Keerthy
Reviewed-by: Simon Glass