pmic: rk8xx: set rk818 2000mA input current if no battery nodeAssume that no battery node means the board is always supplied withadapter, so set 2000mA input curren to make board have enough power
pmic: rk8xx: set rk818 2000mA input current if no battery nodeAssume that no battery node means the board is always supplied withadapter, so set 2000mA input curren to make board have enough power.Signed-off-by: Joseph Chen <chenjh@rock-chips.com>Change-Id: I9d66c02682cc3ff66a2d8e365837fc66bf991933
show more ...
pmic: rk8xx: default disable virq chip by new interfaceThe irq framework takes over the enable/disable managementfor virq chip.Change-Id: I63202b22b121b4a889d5a408a6a5a8f50a3c24d8Signed-off-by:
pmic: rk8xx: default disable virq chip by new interfaceThe irq framework takes over the enable/disable managementfor virq chip.Change-Id: I63202b22b121b4a889d5a408a6a5a8f50a3c24d8Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
power: pmic: register interrupt controller as a irq chipSo that the child drivers can request their irq through thegeneric interrupt framework.Include: RK805/808/816/817/818.Change-Id: I5556f2
power: pmic: register interrupt controller as a irq chipSo that the child drivers can request their irq through thegeneric interrupt framework.Include: RK805/808/816/817/818.Change-Id: I5556f2e926e850ac6717a05166eab5e19566d531Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
power: pmic: rk8xx: get the correct on/off sourceThe on/off_source value has been changed,so we can't get the correct on/off source.Change-Id: I7c522574f5e8d3bbc3c5d73980cdccdb4717da52Signed-of
power: pmic: rk8xx: get the correct on/off sourceThe on/off_source value has been changed,so we can't get the correct on/off source.Change-Id: I7c522574f5e8d3bbc3c5d73980cdccdb4717da52Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
power: pmic: rk8xx: enable under-voltage protection to rk817/rk809The under-voltage protection will shutdown the LDO3 and reset the PMIC.Change-Id: Ic84c7ad1a2eed8c1f983e761988ffb903fc878afSigne
power: pmic: rk8xx: enable under-voltage protection to rk817/rk809The under-voltage protection will shutdown the LDO3 and reset the PMIC.Change-Id: Ic84c7ad1a2eed8c1f983e761988ffb903fc878afSigned-off-by: Shengfei Xu <xsf@rock-chips.com>
rtc: add rk8xx rtc supportsupport rtc alarm interrupt and alarm trigger power up.Change-Id: I7752f173d524f579b57b862d2788296ab1486c14Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
power: pmic: rk8xx: save PMIC_POWER_EN register for rk817/rk809rk817/rk809 must restore the PMIC_POWER_EN OTP value before the system reboot.Change-Id: Ia62cb8f5b0dc9fef8a32a3af5f087c55a9888d78S
power: pmic: rk8xx: save PMIC_POWER_EN register for rk817/rk809rk817/rk809 must restore the PMIC_POWER_EN OTP value before the system reboot.Change-Id: Ia62cb8f5b0dc9fef8a32a3af5f087c55a9888d78Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>Thomas reported U-Boot failed to build host tools if libfdt-develpackage is installed because tools include libfdt header
UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>Thomas reported U-Boot failed to build host tools if libfdt-develpackage 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 <libfdt.h> -> #include <linux/libfdt.h> #include <libfdt_env.h> -> #include <linux/libfdt_env.h>Change-Id: I6c0f7e50e8b571106627f25ddac008a62bd2994eReported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
dm: pmic: use strstr() to match regulator prefixthis is more flexsible to match regulator type.Change-Id: I5589b5d1d32d8ac1c6d09d64e680eddd31f2ba90Signed-off-by: Joseph Chen <chenjh@rock-chips.c
dm: pmic: use strstr() to match regulator prefixthis is more flexsible to match regulator type.Change-Id: I5589b5d1d32d8ac1c6d09d64e680eddd31f2ba90Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
power: pmic: rk8xx: bind codec for rk809/rk817Change-Id: I600f49799dde318d46e349264f568e38225a6414Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
pmic: rk8xx: print source on and offIt tells the reason why PMIC current powers on an last powers off,this helps a lot for debugging when system suddenly power off orrestart due to unknown power
pmic: rk8xx: print source on and offIt tells the reason why PMIC current powers on an last powers off,this helps a lot for debugging when system suddenly power off orrestart due to unknown power supply cause.Change-Id: Iec0c38dc1ac5745a9bc473848b5d617059b16fafSigned-off-by: Joseph Chen <chenjh@rock-chips.com>
pmic: rk8xx: make relative message more clear1. adjust error message easy to be understood;2. show RK808 chip id as "RK808";3. check PMIC chip id read failed;Change-Id: Ifc4c25ccc8cac4fdd91bcf6
pmic: rk8xx: make relative message more clear1. adjust error message easy to be understood;2. show RK808 chip id as "RK808";3. check PMIC chip id read failed;Change-Id: Ifc4c25ccc8cac4fdd91bcf6515b1dd6aa1bf71faSigned-off-by: Joseph Chen <chenjh@rock-chips.com>
dm: pmic: add child node status verifyIgnore disabled child node when bind driverChange-Id: Ib817bf643efa6c8511d4619993444dddaac7d6bdSigned-off-by: Joseph Chen <chenjh@rock-chips.com>
pmic: add rk809 supportinclude sub modules: pmic, regulator, pwrkeyChange-Id: I840983ceafc7677840674e7d1aebab703e3a537dSigned-off-by: Joseph Chen <chenjh@rock-chips.com>
pmic: rk8xx: add init register setting for rk8171. set pmic_sleep as sleep function;2. set pmic_int active low.Change-Id: I4bc4034e18b19dc9b1b328870db652d11173fe3aSigned-off-by: Joseph Chen <ch
pmic: rk8xx: add init register setting for rk8171. set pmic_sleep as sleep function;2. set pmic_int active low.Change-Id: I4bc4034e18b19dc9b1b328870db652d11173fe3aSigned-off-by: Joseph Chen <chenjh@rock-chips.com>
pmic: rk8xx: verify supported chip id listChange-Id: I792181827a4c68dab8918694f4a0604d5f331537Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
pmic: add RK817 supportinclude sub modules: pmic, regulator, pwrkeyChange-Id: I3a1cbaa3c4d069cbac17124f9c0fe3b01184697cSigned-off-by: Joseph Chen <chenjh@rock-chips.com>
UPSTREAM: power: extend prefix match to regulator-name propertyThis patch extends pmic_bind_children prefix matching. In addition tothe node name the property regulator-name is used while trying t
UPSTREAM: power: extend prefix match to regulator-name propertyThis patch extends pmic_bind_children prefix matching. In addition tothe node name the property regulator-name is used while trying to matchprefixes. This allows assigning different drivers to regulator nodesnamed regulator@1 and regulator@10 for example.I have discarded the idea of using other properties then regulator-nameas I do not see any benefit in using property compatible or evenregulator-compatible. Of course I am open to change this if there aregood reasons to do so.Change-Id: Ifedf2c0a51cb725ddb290ee9dfd54a3fea45df70Signed-off-by: Felix Brack <fb@ltec.ch>Reviewed-by: Simon Glass <sjg@chromium.org>Signed-off-by: Kever Yang <kever.yang@rock-chips.com>(cherry picked from commit bf802f5d544f85c03b4097ab23d078be43c61855)
treewide: replace with error() with pr_err()U-Boot widely uses error() as a bit noisier variant of printf().This macro causes name conflict with the following line ininclude/linux/compiler-gcc.h
treewide: replace with error() with pr_err()U-Boot widely uses error() as a bit noisier variant of printf().This macro causes name conflict with the following line ininclude/linux/compiler-gcc.h: # define __compiletime_error(message) __attribute__((error(message)))This prevents us from using __compiletime_error(), and makes itdifficult to fully sync BUILD_BUG macros with Linux. (NoticeLinux'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:// <smpl>@@@@-error+pr_err (...)// </smpl>Change-Id: I921807c1770d36a91e692c48ab477558bb2ed0b8Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>Reviewed-by: Simon Glass <sjg@chromium.org>[trini: Re-run Coccinelle]Signed-off-by: Tom Rini <trini@konsulko.com>Signed-off-by: Kever Yang <kever.yang@rock-chips.com>(cherry picked from commit 9b643e312d528f291966c1f30b0d90bf3b1d43dc)
UPSTREAM: rockchip: rk8xx: remove unused header includesRemove header file includes that have been left over after theconversion to livetree-support.Change-Id: Iac1e65de175fa5dd747e161e426fc1030
UPSTREAM: rockchip: rk8xx: remove unused header includesRemove header file includes that have been left over after theconversion to livetree-support.Change-Id: Iac1e65de175fa5dd747e161e426fc10309748e42Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>Reviewed-by: Simon Glass <sjg@chromium.org>Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>Signed-off-by: Kever Yang <kever.yang@rock-chips.com>(cherry picked from commit a904a16bc172ee1d7bcbcae1afcec21efe305e47)
UPSTREAM: dm: core: Add ofnode_for_each_subnode()Add a convenience macro to iterate over subnodes of a node. Make use ofthis where appropriate in the code.Change-Id: Iae0fb554472d0b5819d26becbbc
UPSTREAM: dm: core: Add ofnode_for_each_subnode()Add a convenience macro to iterate over subnodes of a node. Make use ofthis where appropriate in the code.Change-Id: Iae0fb554472d0b5819d26becbbcf8909ff891514Signed-off-by: Simon Glass <sjg@chromium.org>Signed-off-by: Kever Yang <kever.yang@rock-chips.com>(cherry picked from commit 3991f42ed2e38aff28ba3c24369bfbd90620bea7)
power: pmic: rk8xx: add pmic_shutdown() implementChange-Id: Ib6f175e5b38f54fc41c608ee40166a0875989f3bSigned-off-by: Joseph Chen <chenjh@rock-chips.com>
dm: pmic: add pmic_shutdown() interfaceChange-Id: I9bed8de6d3733ab90175f26f68160ddd8f12e295Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
power: pmic: rk8xx: bind rk816 fuel gaugeChange-Id: I81962bc8fa2e11585dead8b32f7b46a6882275aaSigned-off-by: Joseph Chen <chenjh@rock-chips.com>
power: pmic: rk8xx: bind rk818 fuel gaugeChange-Id: Iad4d6f66d48e824a2020ba78fa81e30cf52230caSigned-off-by: Joseph Chen <chenjh@rock-chips.com>
1234567