This change adds support to read the HW information and use it
to select FW version.
Change-Id: I8ce11341f87b61668f907e969e07bdde5601c066
Signed-off-by: Rajakumar Govindaram <rajakuma@codeaurora.org>
This change reimplements MSM camera V4L2 driver for camera
2.0. Current architecture cannot support 2.0 API very well.
This initial change contains plumbing code for v4l2 device
node creation, ioctls, events, videobuf2, etc.
The new code avoids payload deep-copy by passing them
between user space processes via IPC.
Change-Id: I8598cce8dd25fbd19743398ae0d228081f847d98
Signed-off-by: Jignesh Mehta <jigneshm@codeaurora.org>
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
Add new register definitions for QCE5.0 Hardware
Add new HAL (qce50.c) for interfacing with CE 5.0 hardware:
-- Implement the new interface to BAM (instead of data mover).
-- Add support for multiple Pipes.
-- Add support for use of HW key.
Change-Id: I69dc3993f607553d4752f9f9fb4fdfe1a09a6345
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
Add support for setting up RTB via matching in the device tree
in addition to the platform_data driven model. Also add
the corresponding device for 8974 in the device tree.
Change-Id: I76615fc75ff4fe428cab16a4aa161b032e548983
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Change the default sink from ETR to ETF since this means ETM tracing
can be enabled to the high bandwidth ETF without requiring sink
switching.
Change-Id: Ia4826a0dd76e208db9a9398278a688228e8c1304
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
Add coresight CSR (CoreSight Slave Registers) device and BAM register
definition for TMC-ETR to support ETR to USB output.
Change-Id: I1f9081a0a684a9a6d5b08361be1e09c323a2d4fe
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
The busy/idle behavior of different cores can be correlated by
DCVS when determining what frequency to run cores at. However,
this is not desirable below a certain frequency. Add a parameter
to establish what this frequency is. The parameter is configurable
in userspace via sysfs.
The ss_iobusy_conv parameter is currently unused, so it is
being replaced with ss_no_corr_below_freq.
(cherry picked from commit e8c6d615259af5fde8a6613f53c41c212407bda9)
Change-Id: Ibf814f3f93b92a532d7b3af80721a5bc7db1bd31
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
With 8974, bandwidth requests are exceeding integer size.
Update ab and ib to ensure values over 4Gbps can be requested.
For 64-bit support, there are four changes in this patch:
Changes in the bus driver structures and functions to
update ab and ib values to uint64.
Updates in client drivers to ensure that the bus APIs
are called with the right types.
Updates to the device-tree. Device-tree nodes don't
provide a clean mechanism to read a combination of u32
and u64 variables within the same property name. So, the
ab and ib values must be specified in kbps instead of
bytes/sec from the device tree. The bus driver function
will convert the ab and ib values read from device-tree
to Mbps.
Change the existing property names to make them consistent
with the convention used by the new property name, which
abides to the Device Tree convention.
Change-Id: Ib0a6db0e221af366c61c51cc21ac722f02cb7a34
CRs-Fixed: 408786
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
Signed-off-by: Rajeev Kulkarni <krajeev@codeaurora.org>
Populate bus vectors for the audio ocmem driver with use of new
bus device tree APIs.
Change-Id: If965c269706763a3a67b22243f265429f23427d6
Signed-off-by: Phani Kumar Uppalapati <phanik@codeaurora.org>
Signed-off-by: Rajeev Kulkarni <krajeev@codeaurora.org>
DSI controller and the DSI PLL are powered by
these regulators. Fix the memory map region
to include only DSI-0 controller related registers.
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
(cherry picked from commit 7632f672ac493a9e4710f8b688fbf0309cb23021)
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
(cherry picked from commit 287860aa2eda50956f1102c1793e1194b4d0dbb9)
Change-Id: Ia1a7e0da99eb6ade86e9c04fc11fb794ed95ac3c
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
Add new device file to enable this device.
This dtsi file will be included only for supported
platform.
Add this device for 8974 CDP platform.
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
(cherry picked from commit 916bc4f9f9f4121541b933599a54ae7cd7b5fb75)
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
(cherry picked from commit a73834031afe52a2c019a7289af99f879cee4b38)
Change-Id: Icd276fc0bed4205bd4e630a4f08a0665026ccd62
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
Add the DTS file for the MSM9625 RUMI and make the original DTS file
to a DTS include file.
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
(cherry picked from commit fb9d9a571c206ee77434d4c34ddec387655a39ca)
Change-Id: Id379c6ceb64c72b5e3fdb776eb45d45bb1539fdb
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
Update the channel properties for channels - usb_in,
vchg_sns, vcoin, vbat_sns, vph_pwr and reference
voltage channels 0.625V and 1.25V. The changes for
the channel usb_in, vchg_sns, vcoin, vbat_sns, vph_pwr
ref_625mv and ref_1250v is to update the pre-div scaling
ratio of 1/20, 1/6, 1/3, 1/3, 1/3, 1, 1 respectively.
Also update the type for ref_1250v channel node. The
reference channels are .625mv and 1.250V. Previously
the ref_1250v was incorrectly referenced as ref_1125v.
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
(cherry picked from commit f5367670d12cfe5c042daa1c71c253eab3d334b3)
Change-Id: Iec1be5fa4feaa0b4ed45a00038a2319f66258be0
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
Add additional main-mux voltage channel nodes.
The new channels are to support reading the
PMIC die temperature, dc_in, spare channels for
reading the usb_in channel, batt_therm, batt_id
and xo_therm with no pullups.
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
(cherry picked from commit 5a5d551ee837b1b17e7f3e10697a7aeff32d1b11)
Change-Id: I32947601cda16faad52a2af739c23f1790cb73c7
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
When doing RPM assisted PC, with L2 in power collapse, the Krait PMIC
FTS gang can also be disabled. Configure PMIC_DATA1 to disable the gang
and PMIC_DATA0 to enable the gang. These data registers are used by SPM
sequence when doing RPM assisted power collapse with L2 power collapse.
Also, the PMIC delay after the PMIC SPM command is now part of PMIC_DATAn
commands in SAW v2.2. Remove these unused PMIC_DATAn values from the
device tree.
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
(cherry picked from commit 32e3a9e652c9d6603155db382cbd747b6db15d27)
Conflicts:
arch/arm/boot/dts/msm8974_pm.dtsi
Change-Id: I6604fdac1df7c7d943d0a5c6f196f8a4df390258
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
The algorithm needs thermal inputs for all the cores. Create members in
the internal core_info strucutre and platform data/device tree to pass
in the sensors they use.
Update the dcvs code to notify the temperature to TZ.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
(cherry picked from commit fc7dca4c325725492af997fa282e07b9d03154d1)
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
(cherry picked from commit eb478c5b7b55ea8a57e0336e4cf9979be935b289)
Change-Id: I505903eb8b9779f2065aebfab5b3f2aefc874200
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
This change
-removes the use of group id and instead introduces core type
-rearranges platform data, adds energy curve coefficients and power
parameters
-allow for the energy params to be -ve numbers
The change also mandates updates to the msm8974-gpu.dtsi and the
associated binding documentation.
Also take this opportunity to remove devices for unsupported platform
- 8930 and 8960
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
(cherry picked from commit 4445166ad16be0c45b077bfb10487de355ed2e05)
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
(cherry picked from commit 24d2351f6a5e7069e5d554dbc999280a69288c5d)
Change-Id: I5c65c0e65cc7652eee72c525f0db10e128061cf9
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
Create new MDSS device node file to handle display specific
device nodes.
Change-Id: I04b4ee368b4fb4c532b467a19725c0db3f906bff
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Some USB cores have a separate IRQ line for issuing ASYNC
interrupts in LPM. This interrupt needs to be enabled only
when hardware is put in low power state.
Change-Id: Ie7de237ccbaa90294b20d3fce594ec280cb1641a
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
The RESIN bark interrupt is used for the reporting a key event.
Provide the RESIN reset configuration.
Change-Id: I5bb403bcb92b0d082e5f0382a13eb70763e69db9
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
The PON device supports reset and standard-key based configurations.
Change-Id: I23f538fff32054217ed6c79d199aa0eb86f9a94d
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Add support for 3 keys connected on PM8941 GPIOs and specify the
required GPIO configuration for these keys.
The supported keys are -
camera snapshot - PM8941 GPIO 3
camera focus - PM8941 GPIO 4
volume up - PM8941 GPIO 5
Change-Id: Icdc6f31fa5055c7e9b86a541e618cd421a0dcd2a
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
"#gpio-cells" property somehow ended up being defined
twice in the device node for gpio. Remove it
Change-Id: I555a2d23c2f11c8bb28c8797b9e71a48cb066a49
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
9625 supports SPI ethernet on BLSP1 QUP6. Add the dts data,
gpiomux configurations and the board setup code for it.
Change-Id: Ib185a9a0a6bf830fcb53b05a2c60e34a740e8e52
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Update mapping of PMIC-PPID to PMIC-arbiter-APID in device
tree, to reflect current PMIC-arbiter mapping.
Change-Id: I702a27ce3a9bc7133559a2d73bd92ca3c852c9
Signed-off-by: Gilad Avidov <gavidov@codeaurora.org>
The IOMMU driver expects context fault interrupts to go to
the non-secure IOMMU interrupt. MSM8974-sim is the only
target not following this pattern.
Change-Id: I17101246672c8bc7d5efbdf8d465e751c2134dbc
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
The mentioned device data entries were defined earlier in a patch but
does not match the relevant documentation. In due course of merging/
auto-rebasing on the initial patch (that added these entries), the
changes in this file was replaced with the incorrect ones, which got
merged.
This patch corrects the entries as per the documentation by doing the
following:
-Add reg-names to refer to the crypto register base and bam register
base.
-Rename "bam-pipes" to "bame-pipe-pair".
Change-Id: I47974b3c12500ca70ea46fcd58841af741461004
Signed-off-by: Ramesh Masavarapu <rameshm@codeaurora.org>
Add thermal monitoring and mitigation to kernel boot on msm8974
to prevent thermal conditions during boot time.
Change-Id: I9db10a4a69772fdcb8f2a450044ce446da8b593c
Signed-off-by: Eugene Seah <eseah@codeaurora.org>
Add CoreSight component devices (sinks, links and sources) to the
msm8974 device tree. CoreSight devices provide tracing support for
the SoC.
Change-Id: I33c4d3adff45c263b36141f1158434d9c83f0662
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
Add additional main-mux voltage channels to read ADC
from VADC USRP peripheral. The new channels have different
pre-div scaling compared to previous channel voltage node.
The new channel nodes include support to read vbatt, vcharger
that can be used by the battery driver. In addition, the
625mV and 1.125V channel nodes are added to verify the
reference channels used for absolute calibration.
Change-Id: I53265a00b95ba4f5fb726731532070b8b758d86a
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Add Taiko codec to device tree so that platform specific data
can be read from device tree.
Change-Id: I8b470bb7f40925baec95fff5fd08be5eb04b3a84
Signed-off-by: Kiran Kandi <kkandi@codeaurora.org>
Add devices for the PMIC that match against the qpnp-regulator
driver for all supported regulator devices from the apps side.
Remove most devices from the rpm_bus with the exception of the
devices that acpuclock is currently using. These need to stay
since acpuclock is calling rpm_regulator_get() that is only
available on the rpm-regulator driver.
For regulators that are duplicates between rpm and local, rename
the local names to end if a suffix of "_local" to make them
unique. With the absense of a RPM, these RPM devices will amount
to NOPs at runtime.
This switch to local control is temporary and will be reverted
once the RPM regulator support has been validated on 8974 CDP.
Change-Id: Ie50db44595e487dcad659e67d623d32f4883d987
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
Add the device tree entries and clock table entries to
support the serial console on the MSM8974 CDP target.
Change-Id: I55bb2cbf3f02b6f78738baec55840a041c823d99
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
pm8841_s2, pm8841_s(4-8) all report the wrong type and subtype
for FTS2 CTRL peripherals. Also, pm8941_l5 and pm8941_l7 are
not reported as LDOs correctly. Specify them as the correct
type and subtype using the qcom,force-type binding.
Change-Id: I282ef934e38da5ad3faba3ea34258630cf8b7366
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
Interfacing with some modem subsystem peripherals is not possible
unless the UNCLAMP_ALL bit is set in MSS_CLAMP_IO register. Set
this bit accordingly.
Change-Id: I5685383c506b0bcb89d6b6f808021512079cc607
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
The gpio driver was not a true platform driver and hence wasn't
supported by device tree. This patch fixes that for non-DT targets
by making sure the device gets added early on during board init.
For DT-targets, adding the gpio-controller property for the device
makes sure the msmgpio device gets probed.
This change is done for all TLMM_v2 targets (msm8660 and future)
TLMM_V1 targets remain unaffected.
Change-Id: I8a55ab1e2af0366b3e6893b334ba2396d2a83190
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
These regulators will operate in ganged mode and will be controlled
by the krait regulator driver.
Remove these definitions.
Change-Id: I4b1c407241e35c571f20b382ef1b004733336d90
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Disable the simulation UARTs in the top-level DTSI file and
explicitly enable them in the simulation DTS files to avoid
the maintenance burden of disabling them on all new
targets.
Change-Id: Ifc85b131c13abbf13ebe6066388e2c64efea0a51
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Add device tree entry for OCMEM power control on 8974
using the existing bindings.
Change-Id: I0b5e09b62f072a860f8506c9c1a4a9b7a4a36e4b
Signed-off-by: Naveen Ramaraj <nramaraj@codeaurora.org>
The 9625 chipset has an external L2 cache controller; add support for it
to the device tree and board config.
Change-Id: I900aa28ded4dc6968c5305f9b5a31aa44d2f9774
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
The qcom,msm-id entry specifies the MSM chipset, platform and
hardware revision. This is used by the Android dtbtool utility
to generate a table of device tree used in the boot.img.
The qcom,msm-id syntax is:
qcom,msm-id = <chipset_id, platform_id, rev_id> [, <...>];
The entry can optionally be an array with variable number of
triplets indicating the device tree supports more than one
chipset/platform/hardware rev.
Note that the id's are hardware ID's reported by the hardware
and not commonly used literal ID's. E.g. MSM8974's chipset ID
is 126, not 8974.
Change-Id: If65b40d6e947504cb4b07a36aa895f8ec6f9d300
Signed-off-by: David Ng <dave@codeaurora.org>
Due to some issue with older USB PHYs, USB h/w requires to be
RESET everytime cable is diconnected. Avoid this on 8974's
USB core which doesn't have this issue.
Change-Id: I918492032de6d65eaba7c9b656c700d4f443aa99
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Add the DTS file for the MSM8974 CDP target.
Change-Id: Ibb65d718640ab926d7a3af072166233524e1730a
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Enable the simulator DSI panel for sim-platform.
Disable DSI controller for only RUMI-platform.
Change-Id: I38132e46e93d9bd5501f62a1a327e14d8fa4d92d
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>