Commit Graph

219 Commits

Author SHA1 Message Date
Taniya Das fcee91fc77 clk: qcom: clock-gcc-8952: Thermal changes for GPLL0/GPLL6
Add support for SR PLLs to be voted ON at low temperature threshold and
voted OFF once high threshold is reached. Register with thermal framework
to receive notifications for temperature thresholds and vote for PLLs
accordingly.

Change-Id: Icd689e479899757d821d19853e1600cdf4a84d63
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-01-08 00:05:43 -08:00
Anirudh Ghayal 7b75c77b0d ARM: dts: msm: Add a new RPM regulator voltage level
Add TURBO_HIGH RPM regulator level to support additional
regulator configuration.

Use this voltage level for MX rail on 8976.

CRs-Fixed: 927137
Change-Id: I57c03805a4b3f9c934c534ad5defd512efe9823a
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2015-11-03 22:14:08 -08:00
Taniya Das 0528556d72 clk: qcom: clock-gcc-8976: remove support for DSA clocks
DSA clocks used for debug purpose will not be used by any client, remove
the support for the same.

Change-Id: I9465caf45bb5c5c46aa26be1d2c11c46a5c1a322
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-10-27 00:11:37 -07:00
Taniya Das d55e49ab2c clk: qcom: clock-gcc-8952: GMEM clock moved from gate clock
Modify gmem clock from gate clock to branch clock and also disable gmem
clock gating.

Change-Id: I574dd3fdceeb819e7f7afdcf5e7e3f044a7657ab
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-09-26 11:20:27 -07:00
Taniya Das 5b433bc48e clk: qcom: 8976: Add new compatible string to support MSM8976 v1.1
Clock changes for MSM8976 v1.1 supports new frequency table for SDCC clock
and PCLK1/BYTE1 clock.

Change-Id: If16533206511c64db4a7b7d5388e3a98f1a80677
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-09-21 10:36:26 +05:30
Alok Chauhan 23a9665dbc platform: msm: Add snapshot of missing msm_bus driver changes
The msm_bus driver provides offers a means of managing performance
levels for the buses, fabrics and NoCs, which connect the peripherals
and processes within MSM chipsets.

This snapshot is taken to merge missing changes from msm-3.18 to msm-3.10

Change-Id: If6fff441265716632ee2b8d666cbbdaf5974a34e
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2015-08-25 16:33:54 +05:30
Taniya Das 526012c282 clk: qcom: clock-cpu-8939: Re-org cpu clock code for spm pll management
To support SPM pll management cpu ops are required to be added which needs
re-organization of the code.

SPM child node probe is required for the spm event management to be handled
for the SR2/HF PLL of C0/C1/CCI.

Also make the corresponding device tree changes for the clock name changes
which are added to accommodate the new clock code.

Change-Id: I08e7a7ff367c0ae8ae71f954f2c91858b1e9c386
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-08-20 04:00:55 -07:00
Devesh Jhunjhunwala 5eb090dd55 regulator: rpm-smd-regulator: Add retention_plus voting level
Add RPM_SMD_REGULATOR_LEVEL_RETENTION_PLUS voting level to the
level voting scheme.

CRs-Fixed: 847166
Change-Id: I78184d9da0de3999de1f68c4f61ae2d00b3231e5
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2015-08-07 22:04:26 -07:00
Sujeet Kumar 381bfe3852 clk: qcom: Add NOC sleep clocks for USB client to vote
USB required to vote for active and sleep NOC clocks both
because when apps power collapse happens, then USB vote is
not honoured. Move the NOC clocks to active and sleep both.

Change-Id: I6528ff0511af8f6209dded1b64a374e02f314283
Signed-off-by: Sujeet Kumar <ksujeet@codeaurora.org>
2015-07-10 14:29:09 -07:00
Taniya Das 2e58ae52b2 clk: qcom: Add qos snoc external clock for MSM8939
External snoc qos clock added for 8939 for clients to enable/
disable the clock.

Change-Id: I4083831b2329eadf51866ed3fc9462dbccce2bb7
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-06-30 14:57:14 +05:30
Taniya Das c931cab4ca clk: qcom: clock-gcc-8976: Add APS0 and APS1 clk in list
Add branch clocks of aps0 and aps1 in the clock list for clients to
enable/disable and set rate.

Change-Id: I06e5d491e93bd0d4b6378e78e554d710ec2220c2
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-06-25 00:40:41 -07:00
Taniya Das 62fc374736 qcom: clock-cpu-8976: Introduce a CPU scaling driver for MSM8976
Introduce a driver that models the cluster and CCI clock trees for
MSM8976, and provides clocks to various drivers that decide the frequency
of those clocks.

Change-Id: Ief20f386b9fa07ebbf84427e70230c1a96b644fa
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-06-21 20:36:34 -07:00
Taniya Das fdd393b2b9 clk: qcom: clock-gcc-8976: Fix QDSS clock type for MSM8976
Fix QDSS clock type from RPM_SMD to RPM_SMD_QDSS so as to not send any
initial rate for QDSS clock.

The byte1 and pixe1 clock sources from DSI1 only, so cleanup the same.

Change-Id: I2d9593f41e1f9b365830ad859e7c43b0004f215a
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-06-15 23:36:12 -07:00
Taniya Das cec8e09efe clk: clock-gcc-8976: Add support for GFX GPLL3 configuration
GPLL3 is now controlled by APSS, so configure the pll, also remove the
OXILI_GMEM_CLAMP_IO clamp for oxili gdsc power up sequence.

Cleanup the below
 - Venus core1 which is no longer available.
 - Fix the clock rate of 64MHz for blsp*_uart1.

Change-Id: I453ad9aa6eecec7fd79060b0d42356440b719663
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-06-12 22:59:10 -07:00
Linux Build Service Account b443c6767b Merge "ARM: dts: msm: add support for audio in 8976" 2015-06-06 18:40:13 -07:00
Taniya Das 4b551ea2fd clk: qcom: clock-gcc-8976: Add GFX regulator node for gfx3d clock
GFX has a new rail which needs to be voted when there is a request of clock
rate change from gfx client.

Also add frequency-voltage corner table for gfx clock and populate the OPP
table. Move some of the gfx clocks which were earlier under clock_gcc
device to clock_gcc_gfx device.

Change-Id: I002cd6220c0886230e7c2ece2691e2dffc5aa450
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-06-05 21:33:26 -07:00
Aravind Kumar 032fa2417b clk: qcom: 8976: Add support for audio clocks
Add entries for audio clocks required by the external
wcd codec in 8976.

Change-Id: Ice17aa73da66e26e501452ef7fa8cc6c54cc08a8
Signed-off-by: Aravind Kumar <akumark@codeaurora.org>
2015-06-05 10:58:45 +05:30
Padmanabhan Komanduru 1f7491d942 clk: qcom: mdss: refactor DSI PLL driver for 28nm HPM
The current PLL driver for DSI 28nm HPM uses deprecated clock
APIs and supports only PLL0 which will be able to drive the
DSI link clocks for single DSI and split DSI use cases. Add
the support for DSI PLL1 which is needed to drive the DSI
link clocks for a secondary DSI panel for use cases where
two independent DSI panels are involved.

Change-Id: I34b27ad6a73072af4a3501ed142443b735598ff5
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2015-06-03 11:07:08 +05:30
Linux Build Service Account e86aa1b911 Merge "ASoC: wcd: Add support for audio external clock driver" 2015-06-02 12:36:12 -07:00
Taniya Das 688351df9a clk: qcom: clock-gcc-8976: Add PMIC clocks in clock list
PMIC clocks are added in the clock list which were missing for the clients
to use.

Change-Id: If8a23ec21f391a9d89e71609b82bf25eaf79b899
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-06-01 02:28:34 -07:00
Aravind Kumar a7b56721a9 ASoC: wcd: Add support for audio external clock driver
Add support for new audio external clock driver in 8952.
This driver registers to kernel clock framework and
provides clock ops to enable the external (reference) clock
to audio codec hardware. This clock needs to be enabled
for any audio use-cases to run.

Change-Id: I67cd78b801e8354cd7217f94979cf939023fcbcf
Signed-off-by: Aravind Kumar <akumark@codeaurora.org>
2015-06-01 11:26:58 +05:30
Taniya Das c31b14c9f2 ARM: dts: msm: Support gcc clocks for MSM8976
Move clock_gcc from dummy clocks to real clocks. As clock_rpm is now part
of clock_gcc, remove clock_rpm device node. Also add node for gfx and mdss
device node.

Move clock_rpm for clients to clock_gcc. MSM8976 rumi supports only dummy
clocks.

Also fix the vdd_dig_levels so as to vote for correct voltage level.

Change-Id: I1176fbc6bbb28f1177e18262f8f9987be7d0deca
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-05-29 02:55:16 -07:00
Taniya Das 5e5733e8f0 clk: qcom: clk-gcc-8976: Add clock support for MSM8976
Supports clocks for global clock controller for all peripherals, RPM clock
nodes for bus clocks and pmic xo clocks.

Change-Id: I45fc5eb92b7ac4bf7779974e1ed0711741331e7a
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-05-25 18:21:16 +05:30
Linux Build Service Account 041d9be6e0 Merge "clk: qcom: clock-gcc-fsm9010: Remove blsp1_uart3 clock" 2015-05-15 03:11:22 -07:00
Linux Build Service Account 0bc43ee722 Merge "clk: qcom: clock-mmss-8994: Support parent switching for display clocks" 2015-05-14 14:40:53 -07:00
Linux Build Service Account bc5be1282d Merge "clk: qcom: clock-mmss-8992: Support parent switching for display clocks" 2015-05-14 14:40:52 -07:00
Rohit Vaswani 5e59522a40 clk: qcom: clock-gcc-fsm9010: Remove blsp1_uart3 clock
Apps processor should not access blsp1_uart3 clock. This
is assigned to modem subsystem.

Change-Id: I913930012cc084b44e9cc70e27066e8f2870bf26
Acked-by: Kaushik Sikdar <ksikdar@qti.qualcomm.com>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2015-05-14 11:20:18 -07:00
Arun KS 7135403adb clk: qcom: clock-gcc-8952: Add support for sdcc1_ice_core_clk
Define clock structures for sdcc1_ice_core_clk and register
with the clock core. So that it can be used by client drivers.

Change-Id: I15bb0f5e720b04e50f517630be8c9200457e64ad
Signed-off-by: Arun KS <arunks@codeaurora.org>
2015-05-13 21:32:00 -07:00
Linux Build Service Account 977205e532 Merge "clk: msm: mdss: Export DSI1 PLL clocks" 2015-05-13 13:55:23 -07:00
Linux Build Service Account aae74356a6 Merge "clk: qcom: clock-gcc-fsm9010: Add Cortex-A7 debug clocks" 2015-05-13 06:21:33 -07:00
Kranthikumar Kurapati 38b11d3d1d clk: qcom: clock-gcc-fsm9010: Add Cortex-A7 debug clocks
Add apss_debug_pri_mux to the clock driver.
Add all the cpu clocks to be measured by the driver.

Change-Id: I6eb3963235258f45093e23ca18109a0394692e9a
Acked-by: Liran Mishali <c_liranm@qti.qualcomm.com>
Signed-off-by: Kranthikumar Kurapati <kkurap@codeaurora.org>
2015-05-12 18:08:46 +05:30
Venkatesh Yadav Abbarapu 75c64ab735 ARM: dts: msm: Add a UIM device in fsm9010
Add a UIM device on BLSP_UART1 to FSM9010 based CDP target. This device
controls 4 GPIOs (present, reset, clk and data) via pinctrl driver.

Change-Id: I7184fb00415c3388b773763bca85001bed586260
Acked-by: Ho Lee <holee@qti.qualcomm.com>
Signed-off-by: Venkatesh Yadav Abbarapu <quicvenkat@codeaurora.org>
2015-05-11 22:59:43 -04:00
Aravind Venkateswaran 1bbaf51610 clk: msm: mdss: Export DSI1 PLL clocks
Add support for all the clocks provided by the DSI1 PLL in preparation
for supporting two independent displays using the two DSI controllers.

Change-Id: I9c9e4cddd23be869d9f16a5c3e1351a88f88699f
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2015-05-11 18:42:03 -07:00
Pushkar Joshi 65d454ab84 clk: qcom: clock-mmss-8992: Support parent switching for display clocks
The byte and pixel RCG clocks can have multiple parents. Use the new clk
ops which support switching between those parents. Update the frequency
table for those RCGs to list out all possible parents and add the missing
ones to the clock list.

Change-Id: Ie926b0d31e79799799146b9f9cf9579c8062300b
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
2015-05-07 19:29:41 -07:00
Pushkar Joshi 8b5e6ac7f0 clk: qcom: clock-mmss-8994: Support parent switching for display clocks
The byte and pixel RCG clocks can have multiple parents. Use the new clk
ops which support switching between those parents. Update the frequency
table for those RCGs to list out all possible parents and add the missing
ones to the clock list.

Change-Id: Ie3992c2a20820423a35639263f3eec0de166126f
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
2015-05-07 19:17:34 -07:00
Linux Build Service Account 39d5c2293f Merge "clk: qcom: clock-gcc-8952: Add support for cpu debug clocks" 2015-05-04 21:28:35 -07:00
Linux Build Service Account a14ab987e5 Merge "qcom: clk: Configure wakeup cycles and sleep cycles for gmem clock" 2015-04-30 23:29:25 -07:00
Linux Build Service Account 8ead449038 Merge "Update target name references for 8976" 2015-04-30 12:50:33 -07:00
Taniya Das 6673dfe6a8 clk: qcom: clock-gcc-8952: Add support for cpu debug clocks
Support cpu debug clocks for cluster-0, cluster-1, cci to measure the clock
frequencies using the ring oscillator.

Change-Id: I74941c7c9dd79ff4c6b2a2b50dcb739d4e790d2f
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-04-30 19:56:18 +05:30
Taniya Das 41d98673a5 qcom: clk: Configure wakeup cycles and sleep cycles for gmem clock
gcc_oxili_gmem_clk configure wakeup cycle and sleep cycles to number
of clock cycle 1,i.e 0x0 for dynamic power gating.

Change-Id: I28ae61474f818773acb303d1c5f4b4ef635fbb13
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-04-30 11:18:57 +05:30
Ian Maund cd50d4cdb5 Update target name references for 8976
With the official announcement of 8976, remove all references to its
internal code name, and replace them with 8976.

Change-Id: I6d507418e5259908addedf2975e391200b4e0c83
Signed-off-by: Ian Maund <imaund@codeaurora.org>
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
2015-04-29 15:07:39 +05:30
Linux Build Service Account e7296448c0 Merge "clk: qcom: clock-mmss-8994: Support multiple parents for byte/pixel clocks" 2015-04-28 22:49:47 -07:00
Linux Build Service Account bc7ee85e25 Merge "clk: qcom: clock-mmss-8992: Support multiple parents for byte/pixel clocks" 2015-04-28 22:49:46 -07:00
Linux Build Service Account 362e9aa3a1 Merge "clk: qcom: gcc-8952: Remove div_clk1 and add div_clk2 clock" 2015-04-25 12:17:50 -07:00
Pushkar Joshi 7f0ddb93c7 clk: qcom: clock-mmss-8994: Support multiple parents for byte/pixel clocks
Add additional parents for the pixel and byte clocks as these can now
switch between those. Also export the sources for the byte and pixel
clocks so that clients can switch between the parents for the relevant
RCGs.

Change-Id: If2c7fe4f12c6ad5a15f13acf71d6dc296b57b665
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
2015-04-23 17:39:57 -07:00
Pushkar Joshi c9b7730f10 clk: qcom: clock-mmss-8992: Support multiple parents for byte/pixel clocks
Add additional parents for the pixel and byte clocks as these can now
switch between those. Also export the sources for the byte and pixel
clocks so that clients can switch between the parents for the relevant
RCGs.

Change-Id: I4e1430778dae4a0b77ecc81836b23b6f8c841197
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
2015-04-23 11:02:00 -07:00
Alok Chauhan af191628cc ARM: dts: msm: Introduce bus topology for msmterbium
Introduce bus topology for msmterbium. This is a representation
of the bus connections in the SOC and allows the bus driver
to setup bandwidth requests from clients for the paths desired.

Change-Id: Iea841cd77daf1b59fa8d2bb73b58264af0a2e9ea
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2015-04-20 12:46:54 +05:30
Taniya Das 4e8e16fc7c clk: qcom: gcc-8952: Remove div_clk1 and add div_clk2 clock
As per latest specification div2 clock controls the mclk of codec, fix the
div_clk1 to div_clk2.

Change-Id: Ife071783f29fa1c28967b5a645da37b8241ac620
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2015-04-15 02:55:15 +05:30
Arun KS 89e9526a9a clk: qcom: 8952: Update gpll4 frequency as per clock plan
GPLL4 is a voteable pll and it is controlled by RPM.

Modify gpll4 frequency to 1152MHz and make corresponding changes
to the sdcc frequency table.

Change-Id: I1d0c4e78cb8c35c8b1117828cc47ce93875fb51b
Signed-off-by: Arun KS <arunks@codeaurora.org>
2015-03-30 13:15:15 +05:30
Linux Build Service Account 5c147a3b29 Merge "regulator: rpm-smd-regulator: add support for level based voting" 2015-03-27 07:56:59 -07:00