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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Add SD card support for mtp/cdp/qrd sun platforms.
Change-Id: I40ea8c28354040dd7417d6401d60613226c495f4
Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
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>
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>
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>
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>
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>
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>
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>
Add initial device trees to support Sun SoC and it's
platforms.
Change-Id: I885a56e29438675e3d7aa449f5e25f00cb28b02a
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>