Commit graph

793 commits

Author SHA1 Message Date
Tirupathi Reddy
1a9dfe24c5 regulator: max20010: Add max20010 regulator driver
The max20010 external buck supplies VDD_GFX for msm8996-auto
boards. Add max20010 regulator device driver to program the
necessary configuration as per the board specific requirements.

CRs-Fixed: 2062515
Change-Id: I68ad73e0c7cff1a87d218dc4677801f9e0206db6
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-06-16 15:18:48 +05:30
Devesh Jhunjhunwala
96e7d2f66e clk: msm: gcc-8996: Add pinctrl clk for ln_bb_clk
Add the pinctrl clock for ln_bb_clk to the GCC driver
for MSM8996.

CRs-Fixed: 1063062
Change-Id: If85a0dbb26e350588cbd6614c032bf208a205be2
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2017-03-22 00:23:24 -07:00
Linux Build Service Account
f098395d7d Merge "ARM: dts: msm: Fix KPDPWR and KPDPWR_RESIN PON configuration in pm8998" 2017-03-21 13:28:27 -07:00
Subbaraman Narayanamurthy
b7dad2b5a4 dt-bindings: Add DVDD_HARD_RESET and DVDD_SHUTDOWN types to power-on.h
Add DVDD_HARD_RESET and DVDD_SHUTDOWN types to power-on.h so that
they can be used in PMIC PON configuration.

CRs-Fixed: 2017642
Change-Id: I34ec58230fe38a193c50f7bf4d3ab0b2d96f82f1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-14 19:28:40 -07:00
Taniya Das
161b113017 clk: qcom: Add separate aggre2_noc clock voters for SDM660/630
Separate out the aggre2_noc voters so that individual voters could vote on
these clocks and voter clock would aggregate the clock rates before sending
a request to RPM.

Change-Id: I8ef30af257d2f37ec5af6aa5e3d1b69e5ba8ec8c
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-03-07 15:58:32 +05:30
Linux Build Service Account
e2d1087249 Merge "clk: msm: clock-gcc-8998: Remove control of the hmss_ahb_clk from Linux" 2017-02-25 19:49:15 -08:00
Amit Nischal
e9a6b4b935 clk: qcom: Remove gcc_hmss_ahb_clk for sdm660
The gcc_hmss_ahb_clk will be controlled by RPM. Remove all
control of it from the HLOS clock driver.

Change-Id: I26525787352cb0b85937cc005afba7c37a7989ff
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2017-02-21 14:39:12 +05:30
Odelu Kukatla
5e79af97dd clk: qcom: Clean up the MSM8996 multimedia clock controller (MMCC) driver
Following list of changes have been made
1. Add the missing clocks in multimedia clock controller driver.
   Also clean up clock flags and parent info for few clocks.
2. Removing clocks which are not controlled by HLOS.
3. MMCC needs to vote for volatge level on rail for the clock
   frequencies, so add voltage voting in MMCC.
4. Initial rate configuration for MMPLLs.

Change-Id: If3d84e52783651b611b624dbc60b18993c0f0b1a
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2017-02-13 12:29:55 +05:30
Deepak Katragadda
a93c9bdb03 clk: msm: clock-gcc-8998: Remove control of the hmss_ahb_clk from Linux
The gcc_hmss_ahb_clk will be controlled by RPM. Remove all
control of it from the Linux clock driver.

Change-Id: I0a6885e286841eb3f2d31223da3d430dde21d975
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2017-02-09 17:25:17 -08:00
Amit Nischal
b6cc695ac2 clk: qcom: Remove gcc_rx2_qlink_clkref_clk for sdm660
The gcc_rx2_qlink_clkref_clk is not required by
any client, so remove controlling the clock from
HLOS clock driver.

Change-Id: I20dbb38f3f0fcbcdb3974923f4a0b540153d3fde
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2017-02-07 15:26:39 +05:30
Linux Build Service Account
46b116edc8 Merge "clk: qcom: mdss: add support for MDSS DP PLL for SDM660" 2017-01-28 00:46:32 -08:00
Padmanabhan Komanduru
e2d34afade clk: qcom: mdss: add support for MDSS DP PLL for SDM660
Model and configure MDSS Display Port PLL for SDM660 target.
Add changes to define and register DP VCO, divider and mux clocks
as per common clock infrastructure.

Change-Id: Ice83e21323087e81e2f30998260be85120e41fa8
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2017-01-25 14:45:26 +05:30
Linux Build Service Account
53d9fa23b7 Merge "ASoC: audio-ext-clk: add parent to div and lnbb clks" 2017-01-18 23:48:43 -08:00
Linux Build Service Account
42c03251c6 Merge "clk: qcom: Remove few graphics clock for sdm660" 2017-01-18 14:23:15 -08:00
Yeleswarapu Nagaradhesh
1a43bb07cb ASoC: audio-ext-clk: add parent to div and lnbb clks
Add parents to div_clk1 and ln_bbclk. And register
both the clocks independently.

Change-Id: Ic0435ebad533879e3e0648775956c91cc680644d
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2017-01-19 00:52:56 +05:30
Taniya Das
60fd13b746 clk: qcom: Remove few graphics clock for sdm660
The gcc_gpu_bimc_gfx_src_clk and gcc_gpu_snoc_dvm_gfx_clk need
to left at their default state of ON. Remove controlling them
from the linux clock driver to avoid disabling them during
late_init.

Change-Id: Iefc033998bf87fcc98dfaa1b7321d9cc33dedd5e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-01-18 08:59:33 +05:30
Taniya Das
7a9931fca2 clk: qcom: Add support for GPLL0 active clock for CPU
CPU clocks would require to vote on active only instance of GPLL0, so add
the clock and also update the parent names for the CPU clocks.

Change-Id: Id8c7f76170a1cc94fe045b8ba975aaa42c4b3819
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-01-17 18:16:55 +05:30
Linux Build Service Account
8bfd4fdbf3 Merge "clk: qcom: Add support to register GPU rbcpr clocks" 2017-01-10 12:27:05 -08:00
Taniya Das
6a6c254115 clk: qcom: Add support to register GPU rbcpr clocks
GPU RBCPR clocks needs to registered separately, as GFX CPR would require
the rbcpr clocks to register the regulator handle.

Change-Id: I59def76e7dd69600be8faf47eb867a97ab04739e
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-01-10 20:54:51 +05:30
Taniya Das
55b19878c2 clk: qcom: Fix clocks which are required to be always on
Following are the changes made:
1. Add CLK_IGNORE_UNUSED flag for some clocks which are not
   supposed to be disabled at late_init_level.
2. Fix clock measure debug mux value for mmcc clocks.
3. Add mmss_mdss_byte1_intf_div_clk for mdp.
4. Fix usb ref clocks to branch voted.

Change-Id: I06396c73f7855acfac283abe576e0b4cc1a92bd5
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-01-10 14:10:02 +05:30
Neeraj Upadhyay
da23c02138 msm: Rename msmfalcon/apqfalcon to sdm660/sda660
Update the code name from msmfalcon/apqfalcon to sdm660/sda660.
As part of this, update the filename containing "falcon" and
files content containing "falcon".

Change-Id: Iec85862251b9e1b4dcc8bdce8b214ce87c0049bc
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2016-12-28 21:56:21 +05:30
Linux Build Service Account
7c77d8252a Merge "clk: qcom: Add voltage voting for MSM8996 GCC driver" 2016-12-26 08:58:26 -08:00
Amit Nischal
999531d98e clk: qcom: Add smd-rpm voter & voter branch clocks for MSM8996
MSM8996 requires the voter & voter branch clocks to be
available for clients to be able to enable/disable and
set rate on these clocks.
Also add support for keeping active set vote on mmssnoc
and pnoc voter clocks.

Change-Id: Ie596ddee60aac3e6fc996f9a3e8dc988b0f4aa88
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-12-26 11:48:49 +05:30
Odelu Kukatla
83f20c0612 clk: qcom: Add voltage voting for MSM8996 GCC driver
Global Clock Controller(GCC) needs to vote for volatge level on
rail for the clock frequencies, so add voltage voting in GCC.
Also clean up clock flags and parent info for few clocks.

Change-Id: Ib4cc69afb32a7654bbdd98f2efff901729c4d3da
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2016-12-25 21:26:12 -08:00
Taniya Das
79871232a8 clk: qcom: Support CPU clock for OSM for common clock framework
Following list of changes have been made
- Update the clock osm to register to common clock framework
- Update clock ops as per common clock framework
- cleanup unused function (clk_osm_setup_osm_was)
- Fix tabs for macro definitions
- Add clocks ids for power and perf clock for clients

Change-Id: I389cc9e93a26a434be752cf74444d6c0985ff36d
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-22 09:09:20 +05:30
Linux Build Service Account
89bf1c6f82 Merge "clk: qcom: Add new voter clocks for camss clocks" 2016-12-21 07:30:21 -08:00
Linux Build Service Account
ab81637373 Merge "msm: msm_bus: Add new bus master id for pimem" 2016-12-20 23:45:10 -08:00
Taniya Das
1f35bc8062 clk: qcom: Add new voter clocks for camss clocks
Add new voter clocks of camss_jpeg0 clocks which are required by camera
client. Update the clock indexes for multimedia clocks for the same. Also
update the clock ops for hardware control branch clocks.

Change-Id: I4bc6608789b8b900e0af007d2ca24ba19f675cb7
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-20 17:53:55 +05:30
Odelu Kukatla
8709ea4752 msm: msm_bus: Add new bus master id for pimem
Add new bus master id to identify the pimem bus master
for bandwidth aggregation and QoS programming done
by the bus driver.

Change-Id: I0991065984b35511c33ab4c9bd274ad465d19601
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2016-12-19 15:57:52 +05:30
Linux Build Service Account
4cc397ff6d Merge "clk: msm: clock-gpu-8998: Program the Droop Detector gfx_pdn" 2016-12-19 00:45:06 -08:00
Sandeep Panda
6a21dcc9bf clk: qcom: add common clock framework support for MDSS PLL
Model and configure MDSS DSI PLL using upstream clock framework
APIs. Add changes to define and register vco, divider, mux clcoks
as per common clock infrastructure.

Change-Id: Idc51070e2bb36d1a757d2714d2875a99901321a7
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2016-12-16 15:51:27 +05:30
Deepak Katragadda
78417f5478 clk: msm: clock-gpu-8998: Program the Droop Detector gfx_pdn
In order to avoid leakage between the graphics and the CX
rails, set the GPU_DD_WRAP_CTRL__GFX_PDN bit.

Change-Id: I7b2e59606e73c467c2b862f0162a176611d7ae3d
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-12-12 14:48:12 -08:00
Meng Wang
043b01d09a include: clock: remove ifdef from header file
As audio-ext-clk.h is finally included in device tree and
and using ifdef results in compilation failure. Delete
ifdef from audio-ext-clk.h.

CRs-Fixed: 1090500
Change-Id: Ib6f715c3f606770e7e0b1f0f84ab50e442398cd0
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-12-07 22:24:56 -08:00
Linux Build Service Account
308d5348fe Merge "include: clock: Add audio external clock of_index extries" 2016-11-25 17:47:01 -08:00
Linux Build Service Account
57f5019a62 Merge "clk: qcom: Add support for MMCC clock for MSMFalcon" 2016-11-24 06:13:26 -08:00
Runmin Wang
1289f98375 msm: 8998: Replace cobalt with 8998
Update the code name from msmcobalt to msm8998. As a result, update
the filename containing "cobalt" and files content containing "cobalt".

CRs-Fixed: 1070840
Change-Id: I2c7b95e3e2a2fec7730724da9eeb86a39a77faf1
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2016-11-22 13:07:05 -08:00
Taniya Das
48638ac98d clk: qcom: Add support for MMCC clock for MSMFalcon
Add support for the multimedia clock controller found on MSMFalcon
based devices. This should allow most clocks for multimedia peripherals
which includes display, video, camera etc.

Change-Id: If8aa0b094af5ff82fe66c95e3ef2f13632950d2e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-21 12:42:02 +05:30
Meng Wang
dd076b8ad2 include: clock: Add audio external clock of_index extries
Add clock of_idx entries for audio external clock registered
to the qcom clock framework.

Change-Id: Ie592d06d2e09c2e263a2e9485a42eafb368e49cc
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-11-16 10:45:40 +08:00
Deepak Katragadda
bfda35b58b clk: msm: clock: Remove controlling some graphics clocks in Linux
The gcc_gpu_bimc_gfx_src_clk and gcc_gpu_snoc_dvm_gfx_clk need
to left at their default state of ON. Remove controlling them
from the linux clock driver to avoid disabling them during
late_init.

Change-Id: If3d964840362b6147ba7c9e26c4a3f5d20e5a557
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-10-20 16:50:12 -07:00
Linux Build Service Account
ca2803ad16 Merge "clk: msm: mdss: fix DSI PLL post vco divider configuration" 2016-10-17 13:34:03 -07:00
Taniya Das
b993440492 clk: qcom: Add support for the turing vote clocks
The turing hlos1 and hlos2 vote clocks is required to be enabled before
accessing the turing SMMUs, so add support for the same.

Change-Id: I9e4b0d7cc5f164b207a1a0e2c1ae24bdfd8fa063
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-13 09:13:31 +05:30
Aravind Venkateswaran
a17f1f9338 clk: msm: mdss: fix DSI PLL post vco divider configuration
The post vco divider clock in the DSI PLL can only be configured
to a fixed value of 1 or 4. Current implementation can result in
the divider being set to any value between 1 and 4 which can
result in failures while enabling the DSI pixel clock. Fix this
by replacing the post vco divider with a fixed /1 and /4 dividers
followed by a mux clock.

CRs-Fixed: 1064277
Change-Id: I01bc7304e446c622849c678c64a3fd6881413e89
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-10-12 16:38:35 -07:00
Linux Build Service Account
5dd11b0fad Merge "ARM: dts: msm: Add and update the dummy clocks for MSMfalcon/MSMtriton" 2016-10-07 12:20:01 -07:00
Taniya Das
5f86ca3e75 clk: qcom: Add support for GPU clocks for MSMFalcon
Add support for the graphics clock controller found on MSMFalcon based
devices. This should allow graphics clocks for GFX clients to be able to do
clock functionality.

Change-Id: I753b40d574a4afc2104a5c2bfe64b4831fbce8a0
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-07 11:35:12 +05:30
Amit Nischal
14ec7e8172 ARM: dts: msm: Add and update the dummy clocks for MSMfalcon/MSMtriton
For MSMfalcon and MSMtriton, clock consumers requires dummy
rpmcc, gcc, mmss and gfx clocks for their operation so add
the support for registering dummy clocks as follows:
  - Add clock-output-names property for the rpmcc, gcc, mmss
    and gfx clock controller nodes.
  - Add reset-cells property for clock controller nodes.
  - Add two fixed clock nodes named as xo_board and sleep_clk.
  - Remove RPM clock IDs from qcom,gcc-msmfalcon.h.
  - Modify RPM clock names as per qcom,rpmcc.h file.

Change-Id: I06262fe271ab6ba81d4fa5f67315fd1b54edee8c
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-10-07 10:44:20 +05:30
Linux Build Service Account
d764916497 Merge "clk: qcom: Add support to register rpm-smd clocks" 2016-09-30 18:24:02 -07:00
Taniya Das
496c9d2780 clk: qcom: Add support for GCC clock for MSMFalcon
Add support for the global clock controller found on MSMFalcon
based devices. This should allow most clocks for peripherals other than
multimedia clocks.

Change-Id: I1ec6309f32c658177580cc0601083d32bcdfad20
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-09-29 23:20:59 +05:30
Amit Nischal
7d88215503 clk: qcom: Add support to register rpm-smd clocks
Update the rpm-smd communication API to send across votes for clock
enable/disable to RPM. Use the clk_hw list for the RPM clocks and also
update the clock ids and clock names for RPM clocks.

Change-Id: I37ae97f22b1b39d040bb78c90b1ff231bc348fe6
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-09-29 20:40:47 +05:30
Linux Build Service Account
2b9c9ce4df Merge "msm: msm_bus: introduce bus topology for msmfalcon" 2016-09-20 10:20:42 -07:00
Kiran Gunda
6fcd5d81e4 msm: msm_bus: add new master/slave ids
Introduce new master/slave ids to identify
the corresponding master/slaves for the
bandwidth aggregation done by the bus driver.

Change-Id: Ibed309284b47ba3f22ccbac45c750f3e366ec40e
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2016-09-14 13:10:05 +05:30