Commit graph

1045122 commits

Author SHA1 Message Date
Jami Kettunen
39294c71d0 arm64: oneplus5_defconfig: Enable rest of LED triggers 2021-11-01 06:13:47 +02:00
Jami Kettunen
8948f5c05d TEMP: oneplus5: disable all speaker amp stuff
We don't want to blow this up while messing around with audio stuff
early on...
2021-11-01 06:13:47 +02:00
Jami Kettunen
ee15712244 arm64: dts: msm8998-oneplus-common: Add TFA9890 speaker amp bindings 2021-11-01 06:13:47 +02:00
Jami Kettunen
68a902fe55 ASoC: codecs: tfa989x: Add support for tfa9890
This speaker amp model appears to be rather popular on phones and is
used for example by the OnePlus 5/5T.
2021-11-01 06:13:47 +02:00
Jami Kettunen
76e224dc98 arm64: (msm8998|oneplus5)_defconfig: Enable SND_SOC_MSM8998 2021-11-01 06:13:47 +02:00
Jami Kettunen
6517d9007b FIXUP: oneplus5_defconfig: update for 5.14 2021-11-01 06:13:47 +02:00
Jami Kettunen
1b236d1075 arm64: msm8998_defconfig: Enable OnePlus 5/5T panels 2021-11-01 06:13:47 +02:00
Jami Kettunen
5de8b284f8 arm64: oneplus5_defconfig: Add from .config 2021-11-01 06:13:47 +02:00
Jami Kettunen
7646d0f7f1 arm64: dts: qcom: msm8998-oneplus-common: Enable PMI8998 LPG leds
Now the RGB notification LEDs can each be controlled individually :)
2021-11-01 06:13:47 +02:00
Jami Kettunen
a924a833d0 msm8998-oneplus-common: Configure Adreno 540 GPU 2021-11-01 06:13:47 +02:00
Jami Kettunen
5d5c508d47 arm64: dts: msm8998-oneplus-*: Configure S6E3FA5 & S6E3FC1 panels
These Samsung DSI panels are used on the OnePlus 5/5T respectively.
Additionally disable simplefb until a proper handoff solution can be
found to avoid conflicts between it and the MSM DRM driver.
2021-11-01 06:13:47 +02:00
Jami Kettunen
8a0a87c923 msm8998-oneplus-common: Configure IPA for cellular data 2021-11-01 06:13:47 +02:00
Jami Kettunen
393cd16f3a msm8998-oneplus-common: Configure PMI8998 fuel gauge for battery info 2021-11-01 06:13:47 +02:00
Jami Kettunen
e1033dcc0e msm8998-oneplus-common: Configure CPUfreq scaling hardware 2021-11-01 06:13:47 +02:00
Jami Kettunen
b6ee419de4 arm64: dts: msm8998-oneplus-cheeseburger: Configure RMI4 F1A buttons
This allows the capacitive buttons below the touchscreen to be used on
e.g. Android normally :)
2021-11-01 06:13:47 +02:00
Jami Kettunen
f548d786a8 msm8998-oneplus-common: Add remoteproc configuration & enable WLAN 2021-11-01 06:13:47 +02:00
Jami Kettunen
332ec26e7b msm8998-oneplus-common: Configure blsp1_i2c5_sleep (TS) as no-pull 2021-11-01 06:13:47 +02:00
Jami Kettunen
9f4ffb9a9c drm/panel: Add panel driver for Samsung S6E3FC1
The S6E3FC1 is 6" 1080x2160 MIPI DSI command mode AMOLED LCD display
found on OnePlus 5T (2017) smartphones.

The panel needs to be enabled from a device tree using the
"samsung,s6e3fc1" compatible.

This driver was generated using the following & includes some minor
cleanup (such as s/to_s6e3fc1/to_s6e3fc1_panel/g):
$ python3 lmdpdg.py dumpling.dtb -r vddio
2021-11-01 06:13:47 +02:00
Jami Kettunen
ed101b0949 drm/panel: s6e3fa5: Read panel orientation
The panel is mounted upside down on the OnePlus 5, so we need to handle
this in the driver.
2021-11-01 06:13:46 +02:00
Jami Kettunen
fa8171e920 drm/panel: Add panel driver for Samsung S6E3FA5
The S6E3FA5 is 5.5" 1080x1920 MIPI DSI command mode AMOLED LCD display
found on OnePlus 5 (2017) smartphones.

The panel needs to be enabled from a device tree using the
"samsung,s6e3fa5" compatible.

This driver was generated using the following & includes some minor
cleanup (such as s/to_s6e3fa5/to_s6e3fa5_panel/g):
$ python3 lmdpdg.py cheeseburger.dtb -r vddio

Signed-off-by: Jami Kettunen <jami.kettunen@protonmail.com>
2021-11-01 06:13:46 +02:00
Jami Kettunen
122ab67613 [ANNOTATION] Apply some F(x)tec Pro1 patches 2021-11-01 06:13:46 +02:00
Jami Kettunen
945e0f5efc FIXUP: msm8998_defconfig: update for 5.14 2021-11-01 06:13:46 +02:00
Jami Kettunen
6fca65ccb0 arm64: msm8998_defconfig: Add from .config
This is meant to be a more generic MSM8998 defconfig compared to the
OnePlus 5 one which also drops e.g. MMC support and such which aren't
present on the device.
2021-11-01 06:13:46 +02:00
Danct12
859a1ae388 arm64: dts: msm8998-fxtec-pro1: Add remoteproc configuration 2021-11-01 06:13:46 +02:00
Danct12
41179d35fb arm64: dts: msm8998-fxtec-pro1: Enable PMI8998 haptics 2021-11-01 06:13:46 +02:00
Danct12
57c7528f8c arm64: dts: msm8998-fxtec-pro1: Configure PMI8998 fuel gauge
This will account for battery statistics reporting on the Fxtec Pro1 (QX1000)
2021-11-01 06:13:46 +02:00
Danct12
23a6de947e FIXUP: arm64: dts: msm8998-fxtec-pro1: Fix volume down button compatible 2021-11-01 06:13:46 +02:00
Jami Kettunen
ac057abd31 [ANNOTATION] Apply miscellaneous hacks and patches 2021-11-01 06:13:46 +02:00
Jami Kettunen
694be6adcd Input: synaptics-rmi4 - add support for F1A
RMI4 F1A supports the simple capacitive buttons function, it's used for
example on embedded devices such as smartphones for capacitive Android
back and recents buttons.
2021-11-01 06:13:46 +02:00
Jami Kettunen
ea6b8af19e arm64: dts: qcom: msm8998: add IPA information
Add support for the MSM8998 SoC, which includes IPA version 3.1.
2021-11-01 06:13:46 +02:00
Jami Kettunen
42b3371dfa power: supply: qcom_fg: Report online property 2021-11-01 06:13:46 +02:00
Jami Kettunen
986190113f drm/msm: Mention DSI 10nm PHY support for MSM8998 2021-11-01 06:13:46 +02:00
Jami Kettunen
d2e6912f20 dt-bindings: Document bindings for all MSM8998 devices 2021-11-01 06:13:46 +02:00
Jami Kettunen
054ad80080 [HACK] ath10k: Fake MSA ready event after event server arrival
This finally allowed me to get past the 2 ath10k_info()'s in qmi.c!

However, this doesn't fix everything; it seems you *have* to run
diag-router from https://github.com/andersson/diag to calm the firmware
down and stop constantly crashing; need to look into a way to get Wi-Fi
working later without needing this debug crap to be running.
2021-11-01 06:13:46 +02:00
Jami Kettunen
c70f833efa [HACK] scripts: Stop appending "+" to localversion
This always gets added and doesn't look nice in the version string, so
it's purely for aesthetic reasons :p
2021-11-01 06:13:46 +02:00
Jami Kettunen
b608dfd547 [ANNOTATION] Apply WIP "Qualcomm SPMI Fuel Gauge" patches
https://gitlab.com/sdm845-mainline/linux/-/commits/driver/pmi8998_fg/
2021-11-01 06:13:46 +02:00
Yassine Oudjana
dffa02cc2a arm64: dts: qcom: pmi8994: Add fuel gauge 2021-11-01 06:13:46 +02:00
Yassine Oudjana
a33fd4351b power: pmi8998_fg: Rename to qcom_fg and add support for PMI8994/6
This adds support for accessing SRAM. That includes requesting and releasing
access to SRAM by setting some registers and handling the mem-avail IRQ,
configuring access, and reading from/writing to it.

Pre-gen3 fuel gauges require reading from SRAM to get voltage, current
and temperature data. Getting capacity is identical to gen3.

Tested on Xiaomi Mi Note 2 with PMI8996.
2021-11-01 06:13:46 +02:00
Yassine Oudjana
0953d76319 power: pmi8998_fg: Remove some trailing spaces and tabs
This should be squashed.
2021-11-01 06:13:45 +02:00
Joel Selvaraj
804dea4ce6 arm64: dts: qcom: sdm845-oneplus: enable pmi8998 fuel guage
Enable the new pmi8998 fuel gauge

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2021-11-01 06:13:45 +02:00
Joel Selvaraj
68229c25b8 fg: clean and read charge full and max voltage from dts 2021-11-01 06:13:45 +02:00
Joel Selvaraj
bed14a3bb9 power: supply: add battery charging status feature 2021-11-01 06:13:45 +02:00
Joel Selvaraj
41531113f2 arm64: dts: qcom: pmi8998: Add nodes for pmi8998 fuel guage 2021-11-01 06:13:45 +02:00
Joel Selvaraj
ea5b58fcdf power: supply: introduce pmi8998 fuel guage driver 2021-11-01 06:13:45 +02:00
Jami Kettunen
ae78fc1d7e [ANNOTATION] Apply "input: Introduce support for SPMI haptics found on Qcom PMICs" series
https://patchwork.kernel.org/project/linux-arm-msm/cover/20210816221931.1998187-1-caleb@connolly.tech/
2021-11-01 06:13:45 +02:00
Jami Kettunen
b48f513acf arm64: dts: qcom: msm8998-oneplus-common: Enable PMI8998 haptics
The OnePlus 5 and 5T both have a haptics engine connected to PMI8998.

Signed-off-by: Jami Kettunen <jami.kettunen@somainline.org>
Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2021-11-01 06:13:45 +02:00
Joel Selvaraj
b6492e810e arm64: dts: qcom: sdm845-xiaomi-beryllium: add haptics
Enable the pmi8998 SPMI haptics driver and configure the play rate for the
hardware.

Signed-off-by: Joel Selvaraj <jo@jsfamily.in>
Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2021-11-01 06:13:45 +02:00
Caleb Connolly
25f251ea49 arm64: dts: qcom: sdm845-oneplus-common: add haptics
Enable the pmi8998 SPMI haptics driver and configure the play rate for the
hardware.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2021-11-01 06:13:45 +02:00
Caleb Connolly
600576bd13 arm64: dts: qcom: pmi8998: introduce spmi haptics
Add bindings for Qualcomm SPMI haptics on platforms using pmi8998.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2021-11-01 06:13:45 +02:00
Caleb Connolly
9040d9932a input: add Qualcomm SPMI haptics driver
Add support for the haptics found in pmi8998 and related PMICs.
Based on the ff-memless interface. Currently this driver provides
a partial implementation of hardware features.

This driver only supports LRAs (Linear Resonant Actuators) in the "buffer"
mode with a single wave pattern.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2021-11-01 06:13:45 +02:00