Change the qcom_pm8008-regulator "regulator-name" device tree
property parsing procedure from an exact match to a substring
match. This allows multiple PM8008 chips to be used on a given
board which have unique names specified for their respective
regulators.
Change-Id: I519107431148cdf1882d8e50056f2d2e20ce018f
Signed-off-by: David Collins <collinsd@codeaurora.org>
Use of_property_read_u32() instead of of_property_read_u16() to
read the "reg" property of each PM8008 regulator device tree node.
This allows the "reg" property value to be specified in device
tree without the parameter "/bits/ 16". This in turn avoids
device tree compilation warnings like this one:
arch/arm64/boot/dts/vendor/qcom/lahaina-pmic-overlay.dtsi:68.5-30:
Warning (reg_format):
/soc/i2c@a94000/pm8008i@8/qcom,pm8008i-regulator/regulator@4000:reg:
property has invalid length (2 bytes)
(#address-cells == 1, #size-cells == 0)
Change-Id: I69d7af28339abf3b7ed1365ccfc9343958f944da
Signed-off-by: David Collins <collinsd@codeaurora.org>
When the load on an LDO is higher than what it can supply in the current
operational mode, the LDO can hit the OCP (Over Current Protection)
condition. Add interrupt support to notify the consumers about the OCP
condition so that the consumers can take the necessary action.
Note that mutex_lock() and mutex_unlock() in the original version
of this patch were replaced with regulator_lock() and
regulator_unlock() respectively to resolve a compilation error.
Change-Id: I118364ea0f5ea28e8749861136301c1c6b8d7f84
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Signed-off-by: David Collins <collinsd@codeaurora.org>
Qualcomm Technologies, Inc. PM8008 is an I2C controlled PMIC
containing 7 LDO regulators (two N600 and five P300). Add a
PM8008 regulator driver to support PMIC regulator management
via the regulator framework.
This is a snapshot of the PM8008 regulator driver found in the
msm-4.19 kernel branch with a few small changes. The most
significant of these was replacing module_platform_driver()
with module_init() and module_exit() to avoid a compilation
error when compiling the driver as a module.
Change-Id: Ie8d96b50558b8dd3084134216dff6393bac16f71
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
Signed-off-by: David Collins <collinsd@codeaurora.org>
dsb should be invoked before wfi instruction without which
core can get stuck or do not respond to IPIs. Use cpu_do_idle
that invokes both dsb and wfi instructions for shallower mode
entry.
Change-Id: I2e9d2317048781590a626a0b3d93f23bbf9eb496
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Removed circular dependency of nfc_common.c on NFC I2C and I3C drivers,
by setting interface specific API for nfc read,write,enable and disable
interrupts, in the interface drivers.
Change-Id: I66587d39ad92556d6e8fda3281e7bbcf1980683d
Signed-off-by: Karthik Poosa <kpoosa2@codeaurora.org>
Add sync_state functionality to remove threshold held during initial
boot up and clean up any linger proxy resources that were voted for
from bootloaders.
Change-Id: Ib2fe3f3e54775b85c3ee8107c9aafdcd32841017
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Enable the external display module for both production and debug
level builds. This module is a utility to manage display interface
and audio codec interactions associated with the cable connect
and disconnect events of the display interfaces.
Change-Id: If4458132955f56aa3809c3fc11d72b3f5fde1a32
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
Disable the timeout where PIL waits for an error-ready
interrupt from the subsystems. This is needed for emulation
platform where the time doesn't scale well with the actual
time.
Change-Id: I9d7bb40c6d490a439c76be116d5968ea43723650
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Userspace does not have access to QGKI configs,
so remove redundant QGKI config checks.
Change-Id: Iedb5c3d37cd5d59cc5bf6177a7e6448628350fbf
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Userspace does not have access to QGKI configs,
so remove redundant QGKI config checks.
Change-Id: Ifa4792d581d916b71bb25c9ba5119d1d18a7e4b2
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Userspace does not have access to QGKI configs,
so remove redundant QGKI config checks.
Change-Id: I0eef5a3f924c673db6c486318b91d3156d139f9c
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Userspace does not have access to QGKI configs,
so remove redundant QGKI config checks.
Change-Id: Ie07f430fc9a172e4388d0e475a21739671beb17a
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Enable the config CONFIG_MODULE_SIG to help generate a key to do
module signing.
Change-Id: I8ffebe2ca15a9ad0b1ad7644cd264149dc2653ee
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
Building with llvm generates the following warning:
drivers/media/platform/msm/cvp//msm_cvp_ioctl.c:611:13: warning: stack frame
size of 2064 bytes in function 'cvp_ioctl' [-Wframe-larger-than=]
struct cvp_kmd_hfi_packet is 1880 bytes and is a member of a union inside
struct cvp_kmd_arg which eventually triggers the warning. Allocate the
struct from the heap instead.
Fixes: ffe925cbca ("msm: cvp: Port CVP driver to 5.x kernel")
Change-Id: Ic0dedbad82d36b7faade85c3428b1013b527b576
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Enable the Register Trace Buffer driver for Lahaina platform
to trace the register reads and writes.
Change-Id: I13434a8884bd113aa188799929a36a41c3068173
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Replace a #ifdef with a IS_ENABLED() to allow rpmh master stat to be built
as a module.
Fixes: 6d5e000 ("drivers: soc: qcom: snapshot of sleep drivers for Lahaina")
Change-Id: Ic0dedbad11812a0bd932a9c0099dfb4632842177
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>