summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/power (follow)
Commit message (Collapse)AuthorAge
* power: qpnp-smbcharger: Add voltage now property in usb psyKavya Nunna2019-05-22
| | | | | | | Add VOLTAGE_NOW power supply property to expose the USB voltage. Change-Id: I3041aafaf365c205e53451a5d4ee79dcfe6b78bf Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
* power: qpnp-fg: Add snapshot of the FG driverVamshi Krishna B V2019-02-15
| | | | | | | | | | | | | | | This is the snapshot of the fg driver as of msm-3.18 kernel 'commit d03fafd27cf9 ("qpnp-fg: fix integer overflow")' Fix compilation errors on msm-4.9 by replacing deprecated do_div() calls and replace spmi_dev with pdev. Also fix checkpatch errors. CRs-Fixed: 2246295 Change-Id: I8f946c8919321b9f0df2bc570dd191904f690dd7 Signed-off-by: Vamshi Krishna B V <vbv@codeaurora.org> Signed-off-by: Shilpa Suresh <sbsure@codeaurora.org>
* power: battery: Add support for FCC steppingUmang Agrawal2018-06-14
| | | | | | | | | | | | | On some PMIC designs a sudden increase or decrease in FCC can impact the PMIC die thermally, causing the XO to drift. Introduce a logic which gradually ramps up/down the FCC whenever there is a change in its value, this spreads out the thermals over-time. The default step rate is 100mA/sec and the feature can be enabled using the DT property "qcom,fcc-stepping-enable". Change-Id: I59ee932b60766208912054f7031cd34151fb5deb Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
* Merge android-4.4.116 (20ddb25) into msm-4.4Srinivasarao P2018-03-01
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-20ddb25 Linux 4.4.116 ftrace: Remove incorrect setting of glob search field mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy ovl: fix failure to fsync lower dir ACPI: sbshc: remove raw pointer from printk() message nvme: Fix managing degraded controllers btrfs: Handle btrfs_set_extent_delalloc failure in fixup worker pktcdvd: Fix pkt_setup_dev() error path EDAC, octeon: Fix an uninitialized variable warning xtensa: fix futex_atomic_cmpxchg_inatomic alpha: fix reboot on Avanti platform alpha: fix crash if pthread_create races with signal delivery signal/sh: Ensure si_signo is initialized in do_divide_error signal/openrisc: Fix do_unaligned_access to send the proper signal Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version Revert "Bluetooth: btusb: fix QCA Rome suspend/resume" Bluetooth: btsdio: Do not bind to non-removable BCM43341 HID: quirks: Fix keyboard + touchpad on Toshiba Click Mini not working kernel/async.c: revert "async: simplify lowest_in_progress()" media: cxusb, dib0700: ignore XC2028_I2C_FLUSH media: ts2020: avoid integer overflows on 32 bit machines watchdog: imx2_wdt: restore previous timeout after suspend+resume KVM: nVMX: Fix races when sending nested PI while dest enters/leaves L2 arm: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls crypto: caam - fix endless loop when DECO acquire fails media: v4l2-compat-ioctl32.c: refactor compat ioctl32 logic media: v4l2-compat-ioctl32.c: don't copy back the result for certain errors media: v4l2-compat-ioctl32.c: drop pr_info for unknown buffer type media: v4l2-compat-ioctl32.c: copy clip list in put_v4l2_window32 media: v4l2-compat-ioctl32: Copy v4l2_window->global_alpha media: v4l2-compat-ioctl32.c: make ctrl_is_pointer work for subdevs media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer media: v4l2-compat-ioctl32.c: copy m.userptr in put_v4l2_plane32 media: v4l2-compat-ioctl32.c: avoid sizeof(type) media: v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32 media: v4l2-compat-ioctl32.c: fix the indentation media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF vb2: V4L2_BUF_FLAG_DONE is set after DQBUF media: v4l2-ioctl.c: don't copy back the result for -ENOTTY nsfs: mark dentry with DCACHE_RCUACCESS crypto: poly1305 - remove ->setkey() method crypto: cryptd - pass through absence of ->setkey() crypto: hash - introduce crypto_hash_alg_has_setkey() ahci: Add Intel Cannon Lake PCH-H PCI ID ahci: Add PCI ids for Intel Bay Trail, Cherry Trail and Apollo Lake AHCI ahci: Annotate PCI ids for mobile Intel chipsets as such kernfs: fix regression in kernfs_fop_write caused by wrong type NFS: reject request for id_legacy key without auxdata NFS: commit direct writes even if they fail partially NFS: Add a cond_resched() to nfs_commit_release_pages() nfs/pnfs: fix nfs_direct_req ref leak when i/o falls back to the mds ubi: block: Fix locking for idr_alloc/idr_remove mtd: nand: sunxi: Fix ECC strength choice mtd: nand: Fix nand_do_read_oob() return value mtd: nand: brcmnand: Disable prefetch by default mtd: cfi: convert inline functions to macros media: dvb-usb-v2: lmedm04: move ts2020 attach to dm04_lme2510_tuner media: dvb-usb-v2: lmedm04: Improve logic checking of warm start dccp: CVE-2017-8824: use-after-free in DCCP code sched/rt: Up the root domain ref count when passing it around via IPIs sched/rt: Use container_of() to get root domain in rto_push_irq_work_func() usb: gadget: uvc: Missing files for configfs interface posix-timer: Properly check sigevent->sigev_notify netfilter: nf_queue: Make the queue_handler pernet kaiser: fix compile error without vsyscall x86/kaiser: fix build error with KASAN && !FUNCTION_GRAPH_TRACER dmaengine: dmatest: fix container_of member in dmatest_callback CIFS: zero sensitive data when freeing cifs: Fix autonegotiate security settings mismatch cifs: Fix missing put_xid in cifs_file_strict_mmap powerpc/pseries: include linux/types.h in asm/hvcall.h x86/microcode: Do the family check first x86/microcode/AMD: Do not load when running on a hypervisor crypto: tcrypt - fix S/G table for test_aead_speed() don't put symlink bodies in pagecache into highmem KEYS: encrypted: fix buffer overread in valid_master_desc() media: soc_camera: soc_scale_crop: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE vhost_net: stop device during reset owner tcp: release sk_frag.page in tcp_disconnect r8169: fix RTL8168EP take too long to complete driver initialization. qlcnic: fix deadlock bug net: igmp: add a missing rcu locking section ip6mr: fix stale iterator x86/asm: Fix inline asm call constraints for GCC 4.4 drm: rcar-du: Fix race condition when disabling planes at CRTC stop drm: rcar-du: Use the VBK interrupt for vblank events ASoC: rsnd: avoid duplicate free_irq() ASoC: rsnd: don't call free_irq() on Parent SSI ASoC: simple-card: Fix misleading error message net: cdc_ncm: initialize drvflags before usage usbip: fix 3eee23c3ec14 tcp_socket address still in the status file usbip: vhci_hcd: clear just the USB_PORT_STAT_POWER bit ASoC: pcm512x: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE powerpc/64s: Allow control of RFI flush via debugfs powerpc/64s: Wire up cpu_show_meltdown() powerpc/powernv: Check device-tree for RFI flush settings powerpc/pseries: Query hypervisor for RFI flush settings powerpc/64s: Support disabling RFI flush with no_rfi_flush and nopti powerpc/64s: Add support for RFI flush of L1-D cache powerpc/64s: Convert slb_miss_common to use RFI_TO_USER/KERNEL powerpc/64: Convert the syscall exit path to use RFI_TO_USER/KERNEL powerpc/64: Convert fast_exception_return to use RFI_TO_USER/KERNEL powerpc/64s: Simple RFI macro conversions powerpc/64: Add macros for annotating the destination of rfid/hrfid powerpc/pseries: Add H_GET_CPU_CHARACTERISTICS flags & wrapper powerpc: Simplify module TOC handling powerpc: Fix VSX enabling/flushing to also test MSR_FP and MSR_VEC powerpc/64: Fix flush_(d|i)cache_range() called from modules powerpc/bpf/jit: Disable classic BPF JIT on ppc64le BACKPORT: xfrm: Fix return value check of copy_sec_ctx. time: Fix ktime_get_raw() incorrect base accumulation sched/fair: prevent possible infinite loop in sched_group_energy UPSTREAM: MIPS: Fix build of compressed image ANDROID: qtaguid: Fix the UAF probelm with tag_ref_tree UPSTREAM: ANDROID: binder: remove waitqueue when thread exits. UPSTREAM: arm64/efi: Make strnlen() available to the EFI namespace UPSTREAM: ARM: boot: Add an implementation of strnlen for libfdt ANDROID: MIPS: Add ranchu[32r5|32r6|64]_defconfig FROMLIST: tty: goldfish: Enable 'earlycon' only if built-in FROMLIST: MIPS: ranchu: Add Ranchu as a new generic-based board FROMLIST: MIPS: Add noexec=on|off kernel parameter FROMLIST: MIPS: CPC: Map registers using DT in mips_cpc_default_phys_base() FROMLIST: dt-bindings: Document mti,mips-cpc binding FROMLIST: MIPS: math-emu: Mark fall throughs in switch statements with a comment FROMLIST: MIPS: math-emu: Avoid multiple assignment FROMLIST: MIPS: math-emu: Avoid an assignment within if statement condition FROMLIST: MIPS: math-emu: Declare function srl128() as static FROMLIST: MIPS: math-emu: Avoid definition duplication for macro DPXMULT() FROMLIST: MIPS: math-emu: Remove an unnecessary header inclusion UPSTREAM: scripts/dtc: Update to upstream version 0931cea3ba20 UPSTREAM: scripts/dtc: dt_to_config - kernel config options for a devicetree UPSTREAM: scripts/dtc: Update to upstream version 53bf130b1cdd UPSTREAM: scripts/dtc: Update to upstream commit b06e55c88b9b UPSTREAM: scripts/dtc: dtx_diff - add info to error message UPSTREAM: dtc: create tool to diff device trees UPSTREAM: config: android-base: disable CONFIG_NFSD and CONFIG_NFS_FS UPSTREAM: config: android-base: add CGROUP_BPF UPSTREAM: config: android-base: add CONFIG_MODULES option UPSTREAM: config: android-base: add CONFIG_IKCONFIG option UPSTREAM: config: android-base: disable CONFIG_USELIB and CONFIG_FHANDLE UPSTREAM: config: android-base: enable hardened usercopy and kernel ASLR UPSTREAM: config: android: enable CONFIG_SECCOMP UPSTREAM: config: android: set SELinux as default security mode UPSTREAM: config: android: move device mapper options to recommended UPSTREAM: config/android: Remove CONFIG_IPV6_PRIVACY UPSTREAM: config: add android config fragments BACKPORT: MIPS: generic: Add a MAINTAINERS entry BACKPORT: irqchip/irq-goldfish-pic: Add Goldfish PIC driver UPSTREAM: dt-bindings/goldfish-pic: Add device tree binding for Goldfish PIC driver UPSTREAM: MIPS: Allow storing pgd in C0_CONTEXT for MIPSr6 UPSTREAM: MIPS: CPS: Handle spurious VP starts more gracefully UPSTREAM: MIPS: CPS: Handle cores not powering down more gracefully UPSTREAM: MIPS: CPS: Prevent multi-core with dcache aliasing UPSTREAM: MIPS: CPS: Select CONFIG_SYS_SUPPORTS_SCHED_SMT for MIPSr6 UPSTREAM: MIPS: CM: WARN on attempt to lock invalid VP, not BUG UPSTREAM: MIPS: CM: Avoid per-core locking with CM3 & higher UPSTREAM: MIPS: smp-cps: Avoid BUG() when offlining pre-r6 CPUs UPSTREAM: MIPS: smp-cps: Add support for CPU hotplug of MIPSr6 processors UPSTREAM: MIPS: generic: Bump default NR_CPUS to 16 UPSTREAM: MIPS: pm-cps: Change FSB workaround to CPU blacklist UPSTREAM: MIPS: Fix early CM probing UPSTREAM: MIPS: smp-cps: Stop printing EJTAG exceptions to UART UPSTREAM: MIPS: smp-cps: Add nothreads kernel parameter UPSTREAM: MIPS: smp-cps: Support MIPSr6 Virtual Processors UPSTREAM: MIPS: smp-cps: Skip core setup if coherent UPSTREAM: MIPS: smp-cps: Pull boot config retrieval out of mips_cps_boot_vpes UPSTREAM: MIPS: smp-cps: Pull cache init into a function UPSTREAM: MIPS: smp-cps: Ensure our VP ident calculation is correct UPSTREAM: irqchip: mips-gic: Provide VP ID accessor UPSTREAM: irqchip: mips-gic: Use HW IDs for VPE_OTHER_ADDR UPSTREAM: MIPS: CM: Fix mips_cm_max_vp_width for UP kernels UPSTREAM: MIPS: CM: Add CM GCR_BEV_BASE accessors UPSTREAM: MIPS: CPC: Add start, stop and running CM3 CPC registers UPSTREAM: MIPS: pm-cps: Avoid offset overflow on MIPSr6 UPSTREAM: MIPS: traps: Make sure secondary cores have a sane ebase register UPSTREAM: MIPS: Detect MIPSr6 Virtual Processor support UPSTREAM: Documentation: Add device tree binding for Goldfish FB driver UPSTREAM: MIPS: math-emu: Use preferred flavor of unsigned integer declarations UPSTREAM: MIPS: math-emu: <MADDF|MSUBF>.D: Fix accuracy (64-bit case) UPSTREAM: MIPS: math-emu: <MADDF|MSUBF>.S: Fix accuracy (32-bit case) UPSTREAM: MIPS: Update Goldfish RTC driver maintainer email address UPSTREAM: MIPS: Update RINT emulation maintainer email address UPSTREAM: MIPS: math-emu: do not use bools for arithmetic UPSTREAM: rtc: goldfish: Add RTC driver for Android emulator BACKPORT: dt-bindings: Add device tree binding for Goldfish RTC driver UPSTREAM: tty: goldfish: Implement support for kernel 'earlycon' parameter UPSTREAM: tty: goldfish: Use streaming DMA for r/w operations on Ranchu platforms UPSTREAM: tty: goldfish: Refactor constants to better reflect their nature UPSTREAM: MIPS: math-emu: Add FP emu debugfs stats for individual instructions UPSTREAM: MIPS: math-emu: Add FP emu debugfs clear functionality UPSTREAM: MIPS: math-emu: Add FP emu debugfs statistics for branches BACKPORT: MIPS: math-emu: CLASS.D: Zero bits 32-63 of the result BACKPORT: MIPS: math-emu: RINT.<D|S>: Fix several problems by reimplementation UPSTREAM: MIPS: math-emu: CMP.Sxxx.<D|S>: Prevent occurrences of SIGILL crashes UPSTREAM: MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Clean up "maddf_flags" enumeration UPSTREAM: MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix some cases of zero inputs UPSTREAM: MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix some cases of infinite inputs UPSTREAM: MIPS: math-emu: <MADDF|MSUBF>.<D|S>: Fix NaN propagation UPSTREAM: tty: goldfish: Fix a parameter of a call to free_irq UPSTREAM: MIPS: VDSO: Fix clobber lists in fallback code paths UPSTREAM: MIPS: VDSO: Fix a mismatch between comment and preprocessor constant UPSTREAM: MIPS: VDSO: Add implementation of gettimeofday() fallback UPSTREAM: MIPS: VDSO: Add implementation of clock_gettime() fallback UPSTREAM: MIPS: VDSO: Fix conversions in do_monotonic()/do_monotonic_coarse() UPSTREAM: MIPS: unaligned: Add DSP lwx & lhx missaligned access support UPSTREAM: MIPS: build: Fix "-modd-spreg" switch usage when compiling for mips32r6 UPSTREAM: MIPS: cmdline: Add support for 'memmap' parameter UPSTREAM: MIPS: math-emu: Handle zero accumulator case in MADDF and MSUBF separately UPSTREAM: MIPS: Support per-device DMA coherence UPSTREAM: MIPS: dma-default: Don't check hw_coherentio if device is non-coherent UPSTREAM: MIPS: Sanitise coherentio semantics UPSTREAM: MIPS: CPC: Provide default mips_cpc_default_phys_base to ignore CPC UPSTREAM: MIPS: generic: Introduce generic DT-based board support UPSTREAM: MIPS: Support generating Flattened Image Trees (.itb) UPSTREAM: MIPS: Allow emulation for unaligned [LS]DXC1 instructions UPSTREAM: MIPS: math-emu: Fix BC1EQZ and BC1NEZ condition handling UPSTREAM: MIPS: r2-on-r6-emu: Clear BLTZALL and BGEZALL debugfs counters UPSTREAM: MIPS: r2-on-r6-emu: Fix BLEZL and BGTZL identification UPSTREAM: MIPS: remove aliasing alignment if HW has antialising support BACKPORT: MIPS: store the appended dtb address in a variable UPSTREAM: MIPS: Fix FCSR Cause bit handling for correct SIGFPE issue UPSTREAM: MIPS: kernel: Audit and remove any unnecessary uses of module.h UPSTREAM: MIPS: c-r4k: Fix sigtramp SMP call to use kmap UPSTREAM: MIPS: c-r4k: Fix protected_writeback_scache_line for EVA UPSTREAM: MIPS: Spelling fix lets -> let's UPSTREAM: MIPS: R6: Fix typo UPSTREAM: MIPS: traps: Correct the SIGTRAP debug ABI in `do_watch' and `do_trap_or_bp' UPSTREAM: MIPS: inst.h: Rename cbcond{0,1}_op to pop{1,3}0_op UPSTREAM: MIPS: inst.h: Rename b{eq,ne}zcji[al]c_op to pop{6,7}6_op UPSTREAM: MIPS: math-emu: Fix m{add,sub}.s shifts UPSTREAM: MIPS: inst: Declare fsel_op for sel.fmt instruction UPSTREAM: MIPS: math-emu: Fix code indentation UPSTREAM: MIPS: math-emu: Fix bit-width in ieee754dp_{mul, maddf, msubf} comments UPSTREAM: MIPS: math-emu: Add z argument macros UPSTREAM: MIPS: math-emu: Unify ieee754dp_m{add,sub}f UPSTREAM: MIPS: math-emu: Unify ieee754sp_m{add,sub}f UPSTREAM: MIPS: math-emu: Emulate MIPSr6 sel.fmt instruction UPSTREAM: MIPS: math-emu: Fix BC1{EQ,NE}Z emulation UPSTREAM: MIPS: math-emu: Always propagate sNaN payload in quieting UPSTREAM: MIPS: Fix misspellings in comments. UPSTREAM: MIPS: math-emu: Add IEEE Std 754-2008 NaN encoding emulation UPSTREAM: MIPS: math-emu: Add IEEE Std 754-2008 ABS.fmt and NEG.fmt emulation UPSTREAM: MIPS: non-exec stack & heap when non-exec PT_GNU_STACK is present UPSTREAM: MIPS: Add IEEE Std 754 conformance mode selection UPSTREAM: MIPS: Determine the presence of IEEE Std 754-2008 features UPSTREAM: MIPS: Define the legacy-NaN and 2008-NaN features UPSTREAM: MIPS: ELF: Interpret the NAN2008 file header flag UPSTREAM: ELF: Also pass any interpreter's file header to `arch_check_elf' UPSTREAM: MIPS: Use a union to access the ELF file header UPSTREAM: MIPS: Fix delay slot emulation count in debugfs BACKPORT: exit_thread: accept a task parameter to be exited UPSTREAM: mn10300: let exit_fpu accept a task UPSTREAM: MIPS: Use per-mm page to execute branch delay slot instructions BACKPORT: s390: get rid of exit_thread() BACKPORT: exit_thread: remove empty bodies UPSTREAM: MIPS: Make flush_thread UPSTREAM: MIPS: Properly disable FPU in start_thread() UPSTREAM: MIPS: Select CONFIG_HANDLE_DOMAIN_IRQ and make it work. UPSTREAM: MIPS: math-emu: Fix typo UPSTREAM: MIPS: math-emu: dsemul: Remove an unused bit in ADDIUPC emulation UPSTREAM: MIPS: math-emu: dsemul: Reduce `get_isa16_mode' clutter UPSTREAM: MIPS: math-emu: dsemul: Correct description of the emulation frame UPSTREAM: MIPS: math-emu: Correct the emulation of microMIPS ADDIUPC instruction UPSTREAM: MIPS: math-emu: Make microMIPS branch delay slot emulation work UPSTREAM: MIPS: math-emu: dsemul: Fix ill formatting of microMIPS part UPSTREAM: MIPS: math-emu: Correctly handle NOP emulation Conflicts: drivers/irqchip/Kconfig drivers/irqchip/Makefile drivers/media/v4l2-core/v4l2-compat-ioctl32.c Change-Id: I98374358ab24ce80dba3afa2f4562c71f45b7aab Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
| * FROMLIST: dt-bindings: Document mti,mips-cpc bindingPaul Burton2018-02-05
| | | | | | | | | | | | | | | | | | | | | | Document a binding for the MIPS Cluster Power Controller (CPC) that allows the device tree to specify where the CPC registers are located. Signed-off-by: Paul Burton <paul.burton@mips.com> Signed-off-by: Aleksandar Markovic <aleksandar.markovic@mips.com> Reviewed-by: Rob Herring <robh@kernel.org> (cherry picked from: https://patchwork.linux-mips.org/patch/18512/) Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
* | Merge "power: qpnp-fg-gen3: add support for configuring cutoff current"Linux Build Service Account2018-01-19
|\ \
| * | power: qpnp-fg-gen3: add support for configuring cutoff currentSubbaraman Narayanamurthy2017-12-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add support to configure cutoff current that will be used for cutoff SOC estimate. CRs-Fixed: 2160773 Change-Id: I26730f35659a227717a33682683746f13f1175eb Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | | power: qpnp-fg-gen3: Improve ESR accuracy at cold temperature with QnovoSubbaraman Narayanamurthy2017-12-20
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | When the battery is in cold temperature for a certain amount of time and device is charged with Qnovo enabled charging, ESR pulse will fire less frequently. This along with ESR pulses not getting qualified can cause the ESR to be less accurate. To improve ESR accuracy, add change to apply relaxed filter coefficients once the battery temperature starts ramping up after hitting a lower threshold of say 6 C after charging begins. CRs-Fixed: 2151708 Change-Id: Iff6c2ffbab1f327dfefcf1550213c37df4a8ad42 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | power: qpnp-fg-gen3: Update ESR filter coefficients for low temperatureSubbaraman Narayanamurthy2017-12-07
| | | | | | | | | | | | | | | | | | As per the hardware recommendation, update ESR tight and broad filter coefficients for low temperature (< 10 C) to 3 %. CRs-Fixed: 2155610 Change-Id: I7e5a77bcd14ad64459f6bd13f0be0551dcbefdba Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | Revert "power: supply: qcom: remove unused drivers"Anirudh Ghayal2017-10-17
| | | | | | | | | | | | | | | | | | | | This reverts commit 941bfaf2dc352b2ba2cd7e50c55843e4585aaffb. Bring back the charger and fuel gauge drivers supported on 8996. Change-Id: Ibba07ece69e29a8c7bf26acdc9dda30ac755fb83 Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
* | power: qpnp-fg-gen3: adjust ki coefficient for full soc dynamicallySubbaraman Narayanamurthy2017-09-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In certain conditions, after the battery SOC reaches 100%, SOC is not getting updated during discharging. Based on the hardware recommendation, adjust the Ki coefficient for full SOC so that SOC can be updated faster during discharging. While at it, remove prev_charge_status variable which is not used really. CRs-Fixed: 2089555 Change-Id: I54b7d86529c21c016ab777053895ccda9c7a2b35 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | power: qpnp-fg-gen3: apply SOC linearization based on user inputSubbaraman Narayanamurthy2017-08-31
| | | | | | | | | | | | | | | | | | | | | | Currently, SOC linearization is done when SOC masking feature is enabled to spread out the drop in SOC across a wider range and for better user experience. Make this configurable through a DT property "qcom,linearize-soc" so that the user can enable it as and when required. Change-Id: Ic9f5f04f4e872d7804152c17206a8b204de3a9c1 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | qpnp-qnovo: disable qnovo for dcinAbhijeet Dharmapurikar2017-08-24
| | | | | | | | | | | | | | | | | | | | Usually, DC path is connected to a wireless charger. It is advisable to disable qnovo when charging wirelessly. Disable qnovo for dc path unless a property in device tree is set to specifically enable qnovo for dc path. Change-Id: I4ca475f30ca0a564f533b4ed8bcd55cfb5da291f Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* | power: qcom-step-chg: Add temperature based step-chargingAshay Jaiswal2017-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | It supports for temperature (JEITA) based step charging. The solution samples the battery temperature periodically and applies the FCC from a static look-up table. There is a provision for timed hysteresis which is achieved using a 5 second delayed work. Change-Id: Ica18f2c812232d6938799dab16fb9f18bc14b48f Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org> Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* | power: smb-lib: Move to SW based step-chargingAnirudh Ghayal2017-07-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the HW SOC-based step-charging logic and enable SW based step-charging. The SW based step-charging uses the periodic WD bark IRQ to notify the battery properties. The bark-time can be changes using the property 'qcom,wd-bark-time-secs' 'qcom,step-charging-enable' enables the feature. Change-Id: Ib162f3eb3f98a4e7f144bedc8c8cea40fbf6137a Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
* | Merge "qpnp-fg-gen3: configure ESR timers dynamically based on charge ↵Linux Build Service Account2017-06-01
|\ \ | | | | | | | | | termination"
| * | qpnp-fg-gen3: configure ESR timers dynamically based on charge terminationSubbaraman Narayanamurthy2017-05-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With ESR discharge timer retry, max having same value, ESR pulse can fire frequently when battery FET is open past charge termination. This frequent ESR pulses increase power consumption when the device is idle. Upon charge termination, change the ESR discharging timer retry to 0 so that ESR pulse can fire less frequently saving power. Add support for this through fg_esr_timer_config() based on end of charge and sleep conditions. Currently, retry/max for ESR charging and discharging timers are configured with the same value specified through device tree. Extend the device tree property to take in different retry/max values for those timers. Change-Id: Ib30b8ae7d893b5cab00ed83dd7318b53e3b63ac1 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | | Merge "power: qpnp-smb2: remove workaround for USBIN supplied VCONN"Linux Build Service Account2017-05-25
|\ \ \ | |/ / |/| |
| * | power: qpnp-smb2: remove workaround for USBIN supplied VCONNNicholas Troast2017-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VCONN is supplied by USBIN on MTP8998 which causes removal issues when PMI8998 is in source mode and VCONN is enabled. The workaround is to ensure VCONN is disabled when OTG is disabled which has implications on PD power role swap when PMI8998 is sourcing VCONN. The reference schematic has been updated to address this issue therefore the workaround should be removed. Change-Id: Ibe2309f3618d840340bd083cca0df8a8644dd9c8 Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
* | | qpnp-smb2: Add software based glitch filter for OTG detectionAshay Jaiswal2017-05-12
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | When the USB_ID line is pulled low for a very short time there is a possibility that the SW misses rising edge(removal) event. This may lead to the state where charger is stuck in the boost-mode forever. Fix this my adding a SW based glitch logic which checks for the USB_ID after a SW debounce time and then notifies its presence/removal to the USB driver. CRs-Fixed: 2044958 Change-Id: I31974f7d68b435bbef329278cedbd726ada02e3f Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
* | Revert "smb138x: introduce support for smb1355"Abhijeet Dharmapurikar2017-05-03
| | | | | | | | | | | | | | | | | | | | This reverts commit 566b44214cc08786375ac8266ee387e431413078 (smb138x: introduce support for smb1355). This is not required since smb1355 support is moved to its own driver. Change-Id: Ibad8595c09a865e273adb6f30d6a75f931220131 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* | power: qpnp-smb2: Specify the min/max charger switching frequencyAnirudh Ghayal2017-04-14
| | | | | | | | | | | | | | | | Add a device tree property to override the minimum and maximum charger buck/boost switching frequency. Change-Id: I6b827157c23a389edf2daa412e6825b6ce07a886 Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
* | Merge "power: qpnp-fg-gen3: Add support to configure base termination current"Linux Build Service Account2017-04-13
|\ \
| * | power: qpnp-fg-gen3: Add support to configure base termination currentSubbaraman Narayanamurthy2017-04-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add support to configure base termination current which is the upper boundary at which fuel gauge will signal an end of charge to the charger during discharging. Change-Id: Ied2f89fc8e132161d55a9bfbcca6738fef164b20 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | | Merge "smb138x: introduce support for smb1355"Linux Build Service Account2017-04-11
|\ \ \ | |/ / |/| |
| * | smb138x: introduce support for smb1355Abhijeet Dharmapurikar2017-04-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Smb1355 is a derivative chip of smb1381, where features like input current control and the tadc have been removed. Smb1355 can only be used in parallel mode and that too in mid-mid configuration. Note that even if smb1355 doesn't have an adc, its die temperature could be measured by an external adc. So keep the support for charger_temp and charger_temp_max properties. Also smb1355's aux therm input will likely be connected to the connector thermistor. Support connector_temp_health property. Change-Id: I738d60ea3385c296187a9cc8afe8134feb8c615f Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* | | power: qpnp-fg-gen3: Add support to configure ESR pulse thresholdsSubbaraman Narayanamurthy2017-04-04
|/ / | | | | | | | | | | | | | | | | | | ESR pulse qualification threshold and measurement current should get set properly without which ESR pulses can fire frequently causing frequent wakeups. Add support to configure them. Use the default values as per the hardware recommendation. Change-Id: I160b2171c46df483c7fa4da2ce23009d99c6dcff Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | qcom: smb138x-charger: Add support for setting parallel modeHarry Yang2017-03-24
| | | | | | | | | | | | | | | | | | More than one parallel configurations between PMI8998 and SMB138x are supported. Update the parallel mode from DT. Change-Id: I07c30e8d4d860acaf24dd5d0608dca6ba3e65559 Signed-off-by: Harry Yang <harryy@codeaurora.org> Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* | Merge "power: qpnp-fg-gen3: Add support to clamp ESR"Linux Build Service Account2017-03-01
|\ \
| * | power: qpnp-fg-gen3: Add support to clamp ESRSubbaraman Narayanamurthy2017-02-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If ESR value goes to 0 because of some hardware issue, there is no way to recover it back from that state. This causes incorrect SOC reporting leading to a bad user experience. Hence add support to clamp ESR value based on user defined DT property so that ESR can be clamped to this value once it is found to go below it. Since this change modifies ESR value in SRAM, having FG_SRAM_ESR property would make encode and decode the value easier. Hence remove fg_get_battery_esr() and get it from FG_SRAM_ESR property. CRs-Fixed: 2011200 Change-Id: I96250b44f52d6208f3c64fb9e61f70ea41f54f4e Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | | power: supply: qcom: remove unused driversAbhijeet Dharmapurikar2017-02-28
|/ / | | | | | | | | | | | | qpnp-fg and qpnp-smbcharger are not supported anymore. Remove them. Change-Id: Icc010cd77d9d1e839a6dfa681b65e19b8978fb56 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* | power: qcom-charger: add support for internal and external rsenseAshay Jaiswal2017-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USBIN-USBIN parallel configuration can have either an internal current sensing via main charger's BATFET or an external current sense resistor. The FCC split between main and parallel charger differs based on current sensing mode, add support to differentiate internal/external sensing and the FCC split is done as follows: - Internal Sensing: Main charger configure to full FCC Parallel charger configured to 50% FCC. - External sensing: Main charger configure to 50% FCC Parallel charger configured to 50% FCC. Change-Id: Ia0c6234ce6f62af460edd3c4f56e34810899b3e3 Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
* | Merge "power: qpnp-fg-gen3: add support to configure batt_therm coefficients"Linux Build Service Account2017-02-15
|\ \
| * | power: qpnp-fg-gen3: add support to configure batt_therm coefficientscyizhao2017-02-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support to configure battery thermal coefficients so that different battery thermistors can be supported. These coefficients can be configured via "qcom,battery-thermal-coefficients" device tree property. CRs-Fixed: 2004461 Change-Id: Iff25acd397a68c31057dff4db1896d46e396adc6 Signed-off-by: Yingwei Zhao <cyizhao@codeaurora.org>
| * | qpnp-fg-gen3: add support for configuring slope limit coefficientsSubbaraman Narayanamurthy2017-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Slope limit coefficient is used to define the maximum change in battery SOC. There is a requirement to configure slope limit coefficient based on charging status and battery temperature threshold. Add support for it through the following properties. - qcom,slope-limit-temp-threshold - qcom,slope-limit-coeffs Possibe values allowed for slope limit coefficient is 0 to 31. Change-Id: I41eacb13734f1692a16c1b011c58a488e46515ec Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | | qpnp-smb2: Add DT option for enabling input suspend on fake batteryAshay Jaiswal2017-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | Input suspend on fake battery feature is by default enabled in the software, add a DT property to enable/disable the feature. Change-Id: I06bda6c72010699f4be24ff6044fe3bb248b06fb Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org> Signed-off-by: Harry Yang <harryy@codeaurora.org>
* | | Merge "iio: qcom-tadc: set all threshold comparators directions"Linux Build Service Account2017-02-08
|\ \ \
| * | | smb138x-charger: configure connector temp thresholdsNicholas Troast2017-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a device tree property qcom,connector-temp-max-mdegc to configure the connector temperature at which mitigation should start. This will set the thresholds for when the temperature-change IRQ will fire. Change-Id: I47df477b56a6654fbf94b5bb0f7dfdfb80e2f16e Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
| * | | smb138x-charger: configure charger temperature thresholdNicholas Troast2017-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The charger temperature threshold should be configured for thermal balancing. Add a device tree property to configure the temperature threshold. A default value will be used in the absence of this property. Change-Id: I5d64a8012a9c13c578714d91f1e7e4426cef235a Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
* | | | Merge "power: qcom: apm: replace msmtitanium code name with MSM8953"Linux Build Service Account2017-02-07
|\ \ \ \ | |_|/ / |/| | |
| * | | power: qcom: apm: replace msmtitanium code name with MSM8953David Collins2017-01-31
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Remove all reference to the internal code name "msmtitanium" and replace them with "MSM8953" which is the official name for the SoC. Change-Id: I1637b0270ddbe8283dd9b4ba07e8e263b0a5a944 Signed-off-by: David Collins <collinsd@codeaurora.org>
* | | qpnp-fg-gen3: Adjust recharge voltage to help SOC maskingSubbaraman Narayanamurthy2017-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When SOC masking algorithm is enabled, a SOC of 100 will be shown to the user when certain conditions are met. When the device starts discharging after charge termination, auto recharge will be triggered once the SOC or Vbatt goes below the threshold. When the recharge is based on Vbatt, a fluctutation in Vbatt can cause issues in SOC masking algorithm. To make it robust, adjust the recharge voltage dynamically based on charging status and battery SOC. Add a device tree property to allow configuring auto recharge to be based off SOC or battery voltage. This will help the user to select auto recharge configuration easily. Change-Id: I2d749806aa51b9fa747967b592b6622cc12bee65 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | | qpnp-fg-gen3: improve SOC masking algorithmSubbaraman Narayanamurthy2017-02-02
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After charge termination, charging status might not get updated until the recharge begins. This makes charge_full_update to be not called at all thereby causing SOC masking algorithm to not clear the charge_full flag. Use delta battery SOC interrupt to help with this. Keep it disabled by default and enable it after the charge termination. Disable it again when the user removes the charger. Since this needs delta battery SOC threshold to be configured, add support for it. Change-Id: Ic1a9f8a065c87efe88e315f2b2e1e1378151531b Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | qpnp-fg-gen3: remove support for configuring external senseSubbaraman Narayanamurthy2017-01-17
| | | | | | | | | | | | | | External sense configuration is not supported. Hence remove it. Change-Id: If65eb8c4d9720d4c4e9d913c91c8b33f420f29d1 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | power: align qcom drivers with msm-4.9 kernelNicholas Troast2017-01-17
| | | | | | | | | | | | | | | | The power directory structure has changed in kernel version 4.9. Align msm-4.4 with this new directory structure. Change-Id: Iba729f8ef33245ea78cdc05276ba8f5593191509 Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
* | smb-lib: fix Type-C removal detection with OTGNicholas Troast2017-01-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When VCONN is enabled while OTG is disabled the CC line which is not configured for VCONN can be internally pulled down. If the Type-C plug were removed then Type-C detection would still see that Rd is applied and not detect the removal. Fix this by ensuring that OTG is enabled while VCONN is enabled. If OTG were disabled due to an over-current event then VCONN must also be disabled. Implement a retry mechanism if over-current is detected on either VCONN or VBUS. Change-Id: Iccfb923bce8f06c7c1270943211ce134ea9ef616 Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
* | qpnp-fg-gen3: add support for configuring ESR filter coefficientsSubbaraman Narayanamurthy2017-01-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per the hardware documentation, add support for configuring ESR tight and broad filters for normal and low temperature. This is needed as the low temperature ESR filter coefficients are not functional in the hardware. All the filter values (in terms of percentage) can be configured through the device tree. When the battery temperature goes below 10 C or user configured temperature threshold, ESR filter values of room temperature will be applied to ESR low temperature filters. Once the battery temperature goes above 10 C, original values will be applied back to ESR low temperature filters. Change-Id: I347f194f96ace3036a3c49efe0306d9f909cef36 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | qcom-charger: smb2: support for micro USB modeAshay Jaiswal2016-12-20
| | | | | | | | | | | | | | | | | | | | | | | | Add support to disable TypeC mode of charger hardware and enable micro USB mode. Enabling micro USB mode involves following changes: - hvdcp needs to be kept enabled. Create a new votable hvdcp_enable and vote true when uUSB connector is in use. - Add support of extcon for sending notification to USB driver. Change-Id: I109c07cd15052f4be15fee203f7cbaf02b6fd5cf Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
* | Merge "qcom-charger: set optimal boost switching frequency"Linux Build Service Account2016-12-19
|\ \
| * | qcom-charger: set optimal boost switching frequencyHarry Yang2016-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the default boost switching frequency is fixed at 800KHz, which shows low efficiency in low USB load. To improve it, only use the default 800KHz when boost current goes above 100mA; otherwise, switch to 2MHz. CRs-Fixed: 1095917 Change-Id: Iebb62303febfb78738ada4553fdb9b9eb4810ed5 Signed-off-by: Harry Yang <harryy@codeaurora.org>