Commit Graph

33 Commits

Author SHA1 Message Date
Anjelique Melendez
ff3eff593b ARM: dts: qcom: Add qcom,ship-mode-immediate property for Sun platforms
Currently, charger FW configures and enables ship mode in parallel with
shutdown activity. This can cause a race condition leaving the device in
a bad state if the device is powering off while SW is still issuing SPMI
writes.

Add the battery charger "qcom,ship-mode-immediate" property on Sun
platforms so that ship mode will be configured immediately by charger FW
after user sets ship_mode_en.

Change-Id: I55a78c7b5c59b8b82519713fb4267d081c54a92f
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2024-03-04 12:20:22 -08:00
qctecmdr
a38b262d71 Merge "ARM: dts: msm: Update override sequence for eUSB2 repeater on sun" 2024-01-31 17:24:15 -08:00
qctecmdr
65dcbbe801 Merge "ARM: dts: msm: Add wcd_usbss reference to USB on sun" 2024-01-31 15:16:06 -08:00
qctecmdr
8e17709148 Merge "ARM: dts: msm: set trusted touch IRQ for sun" 2024-01-30 15:23:14 -08:00
Rui Chen
7009bee681 ARM: dts: msm: set trusted touch IRQ for sun
Set spi irq for touch in sun.

Signed-off-by: Rui Chen <quic_ruc@quicinc.com>
2024-01-30 03:38:05 -08:00
Anjelique Melendez
a1a9956a47 ARM: dts: msm: Add wireless firmware name for Sun platforms
Add wireless firmware name in battery charger device to support wireless
FW update for IDT9418 wireless transceiver found on Sun platforms.

Change-Id: I0e715b5a2bd297eec5f801c2fb09bc6023ac9c42
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2024-01-23 18:16:52 -08:00
Ronak Vijay Raheja
3db0e539f6 ARM: dts: msm: Update override sequence for eUSB2 repeater on sun
Update HS transmit amplitude and TX pre-emphasis based for eUSB2
repeater on MTP board for sun.

Change-Id: I222c41333ca1d57e2305945408557256dd7311f6
Signed-off-by: Ronak Vijay Raheja <quic_rraheja@quicinc.com>
2024-01-17 16:30:43 -08:00
Ronak Vijay Raheja
4991cc1e5b ARM: dts: msm: Add wcd_usbss reference to USB on sun
The USB D+/D- signal lines are first routed through the WCD939x USB
subsystem before connecting to the USB controller on MTP platform for
sun. Add a phandle to the former to the USB device node. This will allow
the USB driver to control the D+/D- switches when USB 2.0 functionality
is needed.

Change-Id: Iae9cc1fc46826c1f355e230029d6b5a41eae057f
Signed-off-by: Ronak Vijay Raheja <quic_rraheja@quicinc.com>
2024-01-17 14:47:30 -08:00
Manaf Meethalavalappu Pallikunhi
9d9e4afb8d ARM: dts: qcom: Enable bcl thermal zone mitigation for sun
Enable bcl thermal zones and cooling maps for both pmih010x
and pm8550 bcl peripherals and bcl socd.

Change-Id: Iece388b34729a8775f216ab90dc882a291c8a9f6
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
2024-01-17 11:33:36 +05:30
Subbaraman Narayanamurthy
5a8cf88567 ARM: dts: qcom: enable thermal mitigation for sun boards
Add thermal mitigation step for sun boards so that clients like
thermal SW can do thermal mitigation via charge_control_limit
property under battery power supply.

Change-Id: I0a4ec6e466d5cc52577a28334ec66eddcaf35ef5
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
2023-11-30 12:27:02 -08:00
qctecmdr
7693df90a2 Merge "ARM: dts: msm: Enable UCSI nodes for sun" 2023-11-23 05:57:35 -08:00
qctecmdr
5a1f81a599 Merge "ARM: dts: msm: Add REFGEN_VDD_A_0P9 vote for UFS PHY" 2023-11-22 10:24:29 -08:00
Wesley Cheng
feaf29dcbb ARM: dts: msm: Enable UCSI nodes for sun
To support cable detection events from UCSI, updates need to be made to
enable usb role switch and setting up a connection to the UCSI PMIC glink
node.

Change-Id: Ib7b212ab00022ee4e559f046dddead7aaf7539af
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2023-11-21 17:14:07 -08:00
qctecmdr
2cd2e95689 Merge "ARM: dts: msm: add fts touch device nodes for Sun" 2023-11-20 20:37:23 -08:00
qctecmdr
b012a14a7b Merge "ARM: dts: qcom: Add uses_level_shifter for sun" 2023-11-20 19:20:22 -08:00
Bao D. Nguyen
8dcabf7ea5 ARM: dts: msm: Add REFGEN_VDD_A_0P9 vote for UFS PHY
Add the REFGEN_VDD_A_0P9/VDD_A_PCIE_0_0P9 regulator so that the
ufs phy driver can vote for this regulator. This vote is needed
according to the Sun's Power Grid Analysis document.

Change-Id: I3427e2f529ec734983ea6c2db97411c997260bb0
Signed-off-by: Bao D. Nguyen <quic_nguyenb@quicinc.com>
2023-11-20 16:08:41 -08:00
Rohith Iyer
36a1551ff2 ARM: dts: msm: add fts touch device nodes for Sun
Change adds fts touch driver device nodes for Sun
CDP and MTP target. Also adds pinctrl states for
touchscreen.

Change-Id: Iabba28806e4f1f3cced6270f82cbdca1c1366ede
Signed-off-by: Rohith Iyer <quic_rohiiyer@quicinc.com>
2023-11-15 14:03:57 -08:00
qctecmdr
d52ab4dc00 Merge "ARM: dts: qcom: add flash/torch/switch devices for Sun boards" 2023-11-09 07:43:35 -08:00
Ronak Vijay Raheja
6b8cb6e8ba ARM: dts: msm: Add eUSB2 repeater nodes for sun
Add the eUSB2 repeater node and references for PMIH010x.

Change-Id: I7f4cbb0976510068e5347e0625e7c48e286286e7
Signed-off-by: Ronak Vijay Raheja <quic_rraheja@quicinc.com>
2023-11-07 12:03:43 -08:00
Anjelique Melendez
6af8d8d6cf ARM: dts: qcom: add flash/torch/switch devices for Sun boards
Add flash, torch, and switch devices from PM8550 flash LED device to
support camera flash use cases on Sun boards.

Change-Id: Ieb78a7ab63709f04489024e8fcaf8f14de90347e
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-11-06 12:55:41 -08:00
Ziqi Chen
e4199f6cf9 ARM: dts: qcom: Add uses_level_shifter for sun
When this "qcom,uses_level_shifter" DT entry is present
but "qcom,external-fb-clk" is not present, the SD card's
HS50 mode is run at 37.5MHz clock. This is to work around
a latency issue caused by the addition of the Level Shifter
logic. In order to use the 50MHz clock in HS50 mode, there
are two ways:
- Keep "qcom,uses_level_shifter" and "qcom,external-fb-clk"
  and make sure the Feedback Clock (FB CLK) connection between
  the Level Shifter and the MSM must be good.

- Remove "qcom,uses_level_shifter" from DT.

Please note that the "qcom,external-fb-clk" depends on
"qcom,uses_level_shifter", only set "qcom,external-fb-clk"
would not take effect.

Change-Id: Ib3a4cf5c9c20e2094556c3196d91b7e9723e0a1e
Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
2023-11-05 18:47:03 -08:00
Ziqi Chen
d1de22a32a ARM: dts: qcom: Add SD card support for sun platforms
Add SD card support for mtp/cdp/qrd sun platforms.

Change-Id: I40ea8c28354040dd7417d6401d60613226c495f4
Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
2023-11-06 10:44:25 +08:00
qctecmdr
fb52675156 Merge "ARM: dts: qcom: add primary SPMI debug bus for Sun boards" 2023-11-04 17:39:20 -07:00
qctecmdr
f78fe0ea4c Merge "ARM: dts: msm: add wcd_usbss and sdam_71 nodes for sun" 2023-11-03 19:34:10 -07:00
David Collins
494135fa9b ARM: dts: qcom: switch to RPMh control of VRM regulators on Sun
Replace the stub-regulator devices for VRM managed PMIC regulators
with rpmh-regulator devices.  This ensures that consumers are able
to modify the physical state of these PMIC regulators.

Update all regulator voltage limits to match the latest hardware
guidance.

Remove references to regulator L3B since RPMh will not be providing
support for it.

Change-Id: Ieee28b3860d013837ca273c32606bf3e0b0d2a6b
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-11-01 14:27:32 -07:00
Phani Kumar Uppalapati
d88e9a61df ARM: dts: msm: add wcd_usbss and sdam_71 nodes for sun
Add device tree nodes for wcd usb subsystem and pmic
sdam_71 needed for usb analog audio, display functionality.

Change-Id: I35cb8e17efb1c7288330a1b125a03b23990a829b
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-11-01 10:46:24 -07:00
David Collins
834840db5a ARM: dts: msm: add pmic-glink-debug PMIC subdevices for Sun boards
Add SMB and IDT charger PMIC devices inside of the pmic-glink-debug
device.  These are interfaced over I2C and an SPMI bridge bus.  This
ensures that software is able to access the registers of these PMICs.

Change-Id: I7afc56cb78a353960cb7db98ce5d9b51a05db9fe
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-10-25 12:09:31 -07:00
David Collins
47e74e072e ARM: dts: qcom: add PMIC Glink ADC channel nodes for Sun boards
Add PMIC Glink ADC channel nodes for Sun MTP and QRD boards.
This exposes an interface for software to read PMIC charger ADC
channels for input current, charge current, and die temperature.
This is useful for PMICs connected via I2C which are only
accessible to charger firmware.

Change-Id: Ie8a9a0690b9937f9c0c541123c28e544ba3495ec
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-10-25 11:46:30 -07:00
Bao D. Nguyen
49c2cf1dbf ARM: dts: qcom: Add ufs support for sun platforms
Add ufs support for mtp/cdp/qrd sun platforms.
Enable ufs's smmu fastmap attribute.
Enable ufs host and device resets.

Change-Id: I7e4194a48c022284308c3debd6e18be40289693b
Signed-off-by: Bao D. Nguyen <quic_nguyenb@quicinc.com>
2023-10-23 23:30:35 -07:00
David Collins
731cfb12e9 ARM: dts: qcom: add regulator OCP notifier device for Sun
Add a regulator over-current (OCP) notifier device along with
supply properties to map from PMIC peripherals to specific
regulator devices.  This provides a mechanism to notify
consumers of a particular regulator when OCP occurs.

Change-Id: I17ee6af65492ece062722c41f97f3ea052970a25
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-10-13 14:18:20 -07:00
Anjelique Melendez
fd47ab2bae ARM: dts: qcom: add volume up gpio-keys device for Sun boards
Add a gpio-keys device for Sun MTP, CDP and QRD boards that use
PM8550 GPIO 6.

Change-Id: I3b6ec4f7cb826cd482e85cdbbcbea3db485284c1
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-10-03 11:36:20 -07:00
Anjelique Melendez
0720a9afe6 ARM: dts: qcom: add PMIC devices for Sun
Add top level SPMI slave devices for PMD802x, PMIH010x, PM8550VE and
PM8550VS.

Change-Id: I7658cd5e9bb0c2801db10029380cb7a76a97abff
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-09-27 16:55:41 -07:00
Melody Olvera
c334acf377 ARM: dts: msm: Add initial device trees for Sun SoC
Add initial device trees to support Sun SoC and it's
platforms.

Change-Id: I885a56e29438675e3d7aa449f5e25f00cb28b02a
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
2023-04-03 11:54:34 -07:00