arm64: dts: qcom: add LG V60 ThinQ 5G (timelm) support
Subsystems (8)
v6 cover arm64: dts: qcom: add LG V60 ThinQ 5G (timelm) support
This series adds initial mainline device tree and driver support for the Qualcomm SM8250-based LG V60 ThinQ 5G (timelm / LM-V600) smartphone.
Hardware features supported in this stage:
- Base board devicetree (sm8250-lg-timelm.dts)
- PM8150, PM8150B, PM8150L, and PM8009 PMICs and regulators
- UFS 3.0 storage and MicroSD card slot
- GPIO keys (Volume Down, Assistant) and PON keys (Power, Volume Up)
- Simple framebuffer (continuous splash handed off from bootloader)
- Adreno 650 GPU with GMU and zap shader
- LG SW43103 1080x2460 DSI command mode AMOLED panel with DSC
- LG SW42902 I2C touchscreen controller
- PM8150B USB Type-C controller in sink mode with USB-PD and orientation switch
- QCA6390 Bluetooth HCI controller on UART6
Changes in v6:
- Series structure & DTS:
- Squash all board DTS additions (base board, panel, touchscreen, USB Type-C, Bluetooth) into a single commit per review feedback.
- Reorder series so DT bindings and drivers precede the board DTS.
- Sort root and &tlmm child nodes alphabetically in sm8250-lg-timelm.dts.
- Board binding (Documentation/devicetree/bindings/arm/qcom.yaml):
- Collect Acked-by from Krzysztof Kozlowski.
- MAINTAINERS:
- Drop the individual board entry for LG V60 ThinQ 5G (timelm).
- Rename the touchscreen entry to LG SW42902 TOUCHSCREEN DRIVER and order entries alphabetically.
- Panel binding & driver (lg,sw43103):
- Drop redundant literal block indicator '|' from description in
lg,sw43103.yaml.
- Clarify vendor as LG only: drop boe,sw43103 compatible and "LG / BOE" wording across binding, driver, and Kconfig.
- Touchscreen binding & driver (lg,sw42902):
- Rename schema title, description, Kconfig text, input device name, and MODULE_DESCRIPTION from Silicon Works SW42902 to LG SW42902 for vendor consistency.
- Drop redundant literal block indicator '|' from description in
lg,sw42902.yaml.
Changes in v5:
- Touchscreen binding & DTS:
- Replace separate interrupt-parent and interrupts properties with interrupts-extended in the lg,sw42902 binding example and the touchscreen@48 DTS node.
Changes in v4:
- Base Device Tree (arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts):
- Drop vendor brand prefix "Google" from the assistant key description per review feedback: rename google-assist-state to assist-state, google_assist_state to assist_state, and update label to "Assistant".
Changes in v3:
- Base Device Tree (arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts):
- Model PM8150L SMPS6 as top-level fixed regulator smpc6-regulator (0.88V) rather than in regulators-1, because PM8150L SMPS6 is an ARC level resource (ebi.lvl) and querying it via VRM causes rpmh_regulator_probe() to fail with -ENODEV.
- Drop conflicting memory-region reference from framebuffer@9c000000 to prevent simple-framebuffer/simpledrm driver warning and mapping size mismatch with reserved memory.
- Add board-specific firmware paths for CDSP (qcom/sm8250/LG/timelm/cdsp.mbn) and GPU ZAP shader (qcom/sm8250/LG/timelm/a650_zap.mbn).
- Drop duplicate sdc2_sleep_state pin configuration from &tlmm (already defined in sm8250.dtsi) and redundant &pon { status = "okay"; }.
- Adjust ramoops pmsg-size to 0x100000 (1MB, power-of-two) to prevent kernel round-down.
- Drop unused <dt-bindings/phy/phy.h> header.
- Touchscreen driver (drivers/input/touchscreen/sw42902.c):
- Fix potential unbalanced regulator disable in error and unbind paths by registering devm_add_action_or_reset() after sw42902_power_on() succeeds.
- Guard sw42902_power_off() when suspended to avoid calling regulator_bulk_disable() while supplies are already turned off.
Changes in v2:
- General / DCO & Identity:
- Replaced account handle "rofikkerneldev" with real name "Abdur Rofik <[email protected]>" across all commit authors, Signed-off-by trailers, MAINTAINERS entries, and copyright headers per Documentation/process/submitting-patches.rst.
- Replaced un-documented "lge" vendor prefix with documented "lg" prefix across devicetree bindings, compatible strings, and dts files.
- Devicetree bindings:
- Added lg,timelm compatible in arm/qcom.yaml.
- Added lg,sw43103 panel binding with enable-gpios and vddi/vpnl supplies.
- Added lg,sw42902 touchscreen binding with vcl-supply and vdd-supply.
- Device Tree (arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts):
- Renamed file to sm8250-lg-timelm.dts matching vendor prefix.
- Reserved memory: folded cont_splash_mem and log regions into base dts; sorted all nodes by ascending unit-address.
- Ramoops: adjusted size allocations ensuring panic dump space is kept.
- Regulators: dropped unused LDO4 from PM8009 regulators-2 node, resolving the invalid 1.05V constraint failure.
- USB QMP PHY: corrected swapped supplies (vdda-phy to 0.9V l18a_0p9,
vdda-pll to 1.2V l9a_1p2).
- GPU: enabled &gmu alongside &gpu to ensure MSM DRM component
binding succeeds without -ENODEV in a6xx_gmu_init().
- SDHC: added complete pinctrl states (sdc2_default_state,
sdc2_sleep_state, sdc2_card_det_n) to &sdhc_2.
- UFS: added regulator-allow-set-load and regulator-allowed-modes for
dynamic load scaling.
- Panel: added enable-gpios to panel@0 node; sorted display nodes
alphabetically.
- Touchscreen: used fixed regulators reg_ts_vcl and reg_ts_vdd for
power supplies instead of raw GPIO toggles.
- USB Type-C: replaced PDO_BATT with PDO_VAR(5000, 9000, 3000) to
ensure valid 9V/3A PD sink requests without clamping to 600mA;
added OF graph ports connecting DWC3 HS and SuperSpeed QMP PHY
orientation switch.
- Bluetooth: corrected QCA6390 PMU voltages by setting smps6 (0.95V)
and smps8 (1.35V) constraints. - Cleaned up unused dt-bindings headers and enforced strict alphabetical ordering of all referenced label nodes.
- Panel driver (drivers/gpu/drm/panel/panel-lg-sw43103.c):
- Removed redundant manual unprepare call in sw43103_remove().
- Guarded sw43103_backlight_update_status() against execution when unprepared, avoiding unsynchronized DSI DCS writes.
- Removed hardcoded full brightness writes in sw43103_enable().
- Expanded Kconfig help paragraph to 4 lines.
- Touchscreen driver (drivers/input/touchscreen/sw42902.c):
- Converted GPIO power controls to standard regulator bulk supplies (vcl and vdd).
- Pre-scanned for palm touch reports before queueing MT slots.
- Used named initializer in struct i2c_device_id table.
- Followed input subsystem error naming conventions.
- MAINTAINERS:
- Added entries for LG V60 ThinQ 5G, LG SW43103 panel driver, and Silicon Works SW42902 touchscreen driver in strict alphabetical order.
---
Abdur Rofik (6):
dt-bindings: arm: qcom: add LG V60 ThinQ 5G (timelm)
dt-bindings: display: panel: add LG SW43103 drm/panel: add LG SW43103 panel driver
dt-bindings: input: touchscreen: add LG SW42902
Input: touchscreen: add LG SW42902 support
arm64: dts: qcom: add LG V60 ThinQ 5G (timelm) support
.../devicetree/bindings/arm/qcom.yaml | 1 + .../bindings/display/panel/lg,sw43103.yaml | 67 ++ .../input/touchscreen/lg,sw42902.yaml | 72 ++ MAINTAINERS | 13 + arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts | 815 ++++++++++++++++++ drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-lg-sw43103.c | 586 +++++++++++++ drivers/input/touchscreen/Kconfig | 13 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/sw42902.c | 360 ++++++++ 12 files changed, 1943 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/lg,sw43103.yaml create mode 100644 Documentation/devicetree/bindings/input/touchscreen/lg,sw42902.yaml create mode 100644 arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts create mode 100644 drivers/gpu/drm/panel/panel-lg-sw43103.c create mode 100644 drivers/input/touchscreen/sw42902.c
Signature · 1 line
2.39.5
PATCH v6 1/6 dt-bindings: arm: qcom: add LG V60 ThinQ 5G (timelm)
Document the compatible for the LG V60 ThinQ 5G (timelm), based on the Qualcomm SM8250 platform.
--- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
@@ -1139,6 +1139,7 @@ properties: - items: - enum: + - lg,timelm - qcom,qrb5165-rb5 - qcom,sm8250-hdk - qcom,sm8250-mtp
Signature · 1 line
2.39.5
PATCH v6 2/6 dt-bindings: display: panel: add LG SW43103
In reply to Abdur RofikDocument the SW43103 FHD+ AMOLED panel used by the LG V60. The panel uses DSI command mode with DSC and DCS backlight control.
--- .../bindings/display/panel/lg,sw43103.yaml | 67 +++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/lg,sw43103.yaml
Documentation/devicetree/bindings/display/panel/lg,sw43103.yaml new file +67 -0
@@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/lg,sw43103.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LG SW43103 1080x2460 DSI cmd mode panel + +maintainers: + - Abdur Rofik <[email protected]> + +description: + The SW43103 is a 1080x2460 command-mode AMOLED panel used by LG V60 (timelm). + It uses Display Stream Compression (DSC) over a 4-lane MIPI DSI interface. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: lg,sw43103 + + reg: + maxItems: 1 + + port: true + vddi-supply: true + vpnl-supply: true + reset-gpios: true + enable-gpios: true + +required: + - compatible + - reg + - vddi-supply + - vpnl-supply + - reset-gpios + - port + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "lg,sw43103"; + reg = <0>; + + vddi-supply = <&vreg_l14a_1p8>; + vpnl-supply = <&vreg_l11c_3p0>; + + reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>; + enable-gpios = <&pm8150l_gpios 4 GPIO_ACTIVE_HIGH>; + + port { + endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; + }; +...
MAINTAINERS +5 -0
@@ -15211,6 +15211,11 @@ F: Documentation/ABI/testing/sysfs-platform-lg-laptop F: Documentation/admin-guide/laptops/lg-laptop.rst F: drivers/platform/x86/lg-laptop.c +LG SW43103 PANEL DRIVER +M: Abdur Rofik <[email protected]> +S: Maintained +F: Documentation/devicetree/bindings/display/panel/lg,sw43103.yaml + LG2160 MEDIA DRIVER M: Michael Krufky <[email protected]> L: [email protected]
Signature · 1 line
2.39.5
PATCH v6 3/6 drm/panel: add LG SW43103 panel driver
In reply to Abdur RofikAdd support for the 1080x2460 SW43103 AMOLED panel. Handle power and reset sequencing, DCS backlight control, and the DSC configuration required by the panel.
--- MAINTAINERS | 1 + drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-lg-sw43103.c | 586 +++++++++++++++++++++++ 4 files changed, 601 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-lg-sw43103.c
MAINTAINERS +1 -0
@@ -15215,6 +15215,7 @@ LG SW43103 PANEL DRIVER M: Abdur Rofik <[email protected]> S: Maintained F: Documentation/devicetree/bindings/display/panel/lg,sw43103.yaml +F: drivers/gpu/drm/panel/panel-lg-sw43103.c LG2160 MEDIA DRIVER M: Michael Krufky <[email protected]>
drivers/gpu/drm/panel/Kconfig +13 -0
@@ -540,6 +540,19 @@ config DRM_PANEL_LG_LG4573 Say Y here if you want to enable support for LG4573 RGB panel. To compile this driver as a module, choose M here. +config DRM_PANEL_LG_SW43103 + tristate "LG SW43103 panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select DRM_DISPLAY_DSC_HELPER + select DRM_DISPLAY_HELPER + help + Say Y here if you want to enable support for the LG SW43103 + 1080x2460 AMOLED panel used in the LG V60 ThinQ 5G smartphone. + The panel operates in DSI command mode with Display Stream + Compression (DSC). + config DRM_PANEL_LG_SW43408 tristate "LG SW43408 panel" depends on GPIOLIB
drivers/gpu/drm/panel/Makefile +1 -0
@@ -53,6 +53,7 @@ obj-$(CONFIG_DRM_PANEL_LINCOLNTECH_LCD197) += panel-lincolntech-lcd197.o obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) += panel-lg-lb035q02.o obj-$(CONFIG_DRM_PANEL_LG_LD070WX3) += panel-lg-ld070wx3.o obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o +obj-$(CONFIG_DRM_PANEL_LG_SW43103) += panel-lg-sw43103.o obj-$(CONFIG_DRM_PANEL_LG_SW43408) += panel-lg-sw43408.o obj-$(CONFIG_DRM_PANEL_LXD_M9189A) += panel-lxd-m9189a.o obj-$(CONFIG_DRM_PANEL_MAGNACHIP_D53E6EA8966) += panel-magnachip-d53e6ea8966.o
drivers/gpu/drm/panel/panel-lg-sw43103.c new file +586 -0
586 lines not on this page · raw message
Signature · 1 line
2.39.5
PATCH v6 4/6 dt-bindings: input: touchscreen: add LG SW42902
In reply to Abdur RofikDocument the LG SW42902 I2C touchscreen controller, including its interrupt, reset GPIO, power supplies, and panel touch properties.
--- .../input/touchscreen/lg,sw42902.yaml | 72 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/lg,sw42902.yaml
Documentation/devicetree/bindings/input/touchscreen/lg,sw42902.yaml new file +72 -0
@@ -0,0 +1,72 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/lg,sw42902.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LG SW42902 Touchscreen Controller + +maintainers: + - Abdur Rofik <[email protected]> + +description: + The LG SW42902 is an I2C capacitive touchscreen controller used on the + LG V60 (timelm). + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + const: lg,sw42902 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + description: Active-low hardware reset + + vcl-supply: + description: 3.3 V power supply + + vdd-supply: + description: 1.8 V power supply + +required: + - compatible + - reg + - interrupts + - reset-gpios + - vcl-supply + - vdd-supply + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/interrupt-controller/irq.h> + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@48 { + compatible = "lg,sw42902"; + reg = <0x48>; + + interrupts-extended = <&tlmm 39 IRQ_TYPE_LEVEL_LOW>; + + reset-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; + vcl-supply = <®_ts_vcl>; + vdd-supply = <®_ts_vdd>; + + touchscreen-size-x = <1080>; + touchscreen-size-y = <2460>; + }; + }; +...
MAINTAINERS +6 -0
@@ -15211,6 +15211,12 @@ F: Documentation/ABI/testing/sysfs-platform-lg-laptop F: Documentation/admin-guide/laptops/lg-laptop.rst F: drivers/platform/x86/lg-laptop.c +LG SW42902 TOUCHSCREEN DRIVER +M: Abdur Rofik <[email protected]> +L: [email protected] +S: Maintained +F: Documentation/devicetree/bindings/input/touchscreen/lg,sw42902.yaml + LG SW43103 PANEL DRIVER M: Abdur Rofik <[email protected]> S: Maintained
Signature · 1 line
2.39.5
PATCH v6 5/6 Input: touchscreen: add LG SW42902 support
In reply to Abdur RofikAdd basic multitouch support for the SW42902 controller. Implement the power and reset sequence using regulator supplies and use the firmware already present in controller flash; no firmware update is performed.
--- MAINTAINERS | 1 + drivers/input/touchscreen/Kconfig | 13 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/sw42902.c | 360 ++++++++++++++++++++++++++++ 4 files changed, 375 insertions(+) create mode 100644 drivers/input/touchscreen/sw42902.c
MAINTAINERS +1 -0
@@ -15216,6 +15216,7 @@ M: Abdur Rofik <[email protected]> L: [email protected] S: Maintained F: Documentation/devicetree/bindings/input/touchscreen/lg,sw42902.yaml +F: drivers/input/touchscreen/sw42902.c LG SW43103 PANEL DRIVER M: Abdur Rofik <[email protected]>
drivers/input/touchscreen/Kconfig +13 -0
@@ -1299,6 +1299,19 @@ config TOUCHSCREEN_SURFACE3_SPI To compile this driver as a module, choose M here: the module will be called surface3_spi. +config TOUCHSCREEN_SW42902 + tristate "LG SW42902 touchscreen" + depends on I2C + depends on GPIOLIB + help + Say Y here if you have an LG SW42902 touchscreen + connected to your system (e.g. LG V60). + + If unsure, say N. + + To compile this driver as a module, choose M here: the + module will be called sw42902. + config TOUCHSCREEN_SX8654 tristate "Semtech SX8654 touchscreen" depends on I2C
drivers/input/touchscreen/Makefile +1 -0
@@ -86,6 +86,7 @@ obj-$(CONFIG_TOUCHSCREEN_STMPE) += stmpe-ts.o obj-$(CONFIG_TOUCHSCREEN_SUN4I) += sun4i-ts.o obj-$(CONFIG_TOUCHSCREEN_SUR40) += sur40.o obj-$(CONFIG_TOUCHSCREEN_SURFACE3_SPI) += surface3_spi.o +obj-$(CONFIG_TOUCHSCREEN_SW42902) += sw42902.o obj-$(CONFIG_TOUCHSCREEN_TI_AM335X_TSC) += ti_am335x_tsc.o obj-$(CONFIG_TOUCHSCREEN_TOUCHIT213) += touchit213.o obj-$(CONFIG_TOUCHSCREEN_TOUCHRIGHT) += touchright.o
drivers/input/touchscreen/sw42902.c new file +360 -0
360 lines not on this page · raw message
Signature · 1 line
2.39.5
PATCH v6 6/6 arm64: dts: qcom: add LG V60 ThinQ 5G (timelm) support
In reply to Abdur RofikAdd device tree for the LG V60 ThinQ 5G (timelm), an SM8250-based smartphone released in 2020.
The description enables:
- Memory reservations for bootloader and firmware log regions
- Simple framebuffer continuous splash reservation
- Volume Down and Assistant keys via PM8150 GPIOs
- Volume Up key via PM8150 RESIN
- RPMh power supplies across PM8150, PM8150L, and PM8009
- Storage via UFS 3.0 and SD card via SDHC2 with pinctrl states
- Graphics via Adreno 650 GPU with GMU and ZAP shader firmware
- High-Speed USB and SuperSpeed QMP PHY
- Console output on GENI UART12
- SW43103 FHD+ AMOLED display panel via MDSS DSI0
- SW42902 touchscreen via GENI I2C13
- USB Type-C CC logic via PM8150B with USB-C connector and orientation switching
- Bluetooth HCI via GENI UART6 and QCA6390 power sequencer
--- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts | 815 ++++++++++++++++++ 2 files changed, 816 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts
arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -409,6 +409,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sm8150-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8150-sony-xperia-kumano-bahamut.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8150-sony-xperia-kumano-griffin.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-hdk.dtb +dtb-$(CONFIG_ARCH_QCOM) += sm8250-lg-timelm.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-samsung-r8q.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-samsung-x1q.dtb
arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts new file +815 -0
815 lines not on this page · raw message
Signature · 1 line
2.39.5