arm64: qcom: dts: Add display support for Qualcomm Shikra
v2 cover arm64: qcom: dts: Add display support for Qualcomm Shikra
This series adds display support for the Qualcomm Shikra platform.
It introduces the Qualcomm Shikra MDSS display subsystem support at the SoC level, and enables display on the Qualcomm Shikra CQS EVK and CQM EVK boards with the required DSI panel nodes.
---
Changes in v2:
- Replace QCM2290-specific RPM power domain identifiers with generic RPMPD_VDDCX/VDDMX macros in Shikra display and DSI nodes.
- Add missing blank line before status = "okay" in &mdss_dsi0 node(Dmitry).
- Split avdd-supply and avee-supply into separate regulators vreg_disp_p
and vreg_disp_n instead of sharing the same lcd_bias regulator(Dmitry).
- Sort tlmm pin state entries by pin number: gpio3, gpio86, gpio91,
gpio151 (Dmitry).
- Add vph_pwr as an always-on fixed regulator representing the main
board power supply, used as vin-supply for lcd_bias.
- Droped the 5th patch "Shikra LT9611UXD support". NAK by Dmitry. Once
the hdmi-dsi driver is fixed then we will post DT changes.
- Link to v1: https://patch.msgid.link/[email protected]
prerequisite-message-id: <[email protected]>
prerequisite-message-id: <[email protected]>
prerequisite-message-id: <[email protected]>
prerequisite-message-id: <[email protected]>
prerequisite-message-id: <[email protected]>
prerequisite-message-id: <[email protected]>
prerequisite-message-id: <[email protected]>
To: Bjorn Andersson <[email protected]>
To: Konrad Dybcio <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
Arpit Saini (3):
arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
arm64: defconfig: Enable ILI7807S DSI panel driver
arm64: dts: qcom: shikra-cqs-evk: Enable display and add ili7807s panel
Nabige Aala (1):
arm64: dts: qcom: shikra: Add MDSS display subsystem
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 126 +++++++++++++++++ arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 126 +++++++++++++++++ arch/arm64/boot/dts/qcom/shikra.dtsi | 203 +++++++++++++++++++++++++++- arch/arm64/configs/defconfig | 1 + 4 files changed, 454 insertions(+), 2 deletions(-)
---
base-commit: f28fb4ff0d25819c58341fec6e3953f1ebb1fc2e
change-id: 20260626-shikra-dt-changes-8d127be951d5
Best regards,
Signature · 1 line
Nabige Aala <[email protected]>
PATCH v2 1/4 arm64: dts: qcom: shikra: Add MDSS display subsystem
Add the SoC-level display subsystem nodes for Qualcomm Shikra:
MDSS wrapper,DPU display controller, DSI host controller, and 14nm DSI PHY.
Qualcomm Shikra uses DPU 6.5 hardware (same as QCM2290). Platform-specific compatible strings are used as the primary match with QCM2290 fallbacks to reuse the existing driver support.
The dispcc clock inputs for the DSI byte and pixel PLLs are wired from mdss_dsi0_phy.
--- arch/arm64/boot/dts/qcom/shikra.dtsi | 203 ++++++++++++++++++++++++++++++++++- 1 file changed, 201 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/shikra.dtsi +201 -2
@@ -4,6 +4,7 @@ */ #include <dt-bindings/clock/qcom,dispcc-qcm2290.h> +#include <dt-bindings/clock/qcom,dsi-phy-28nm.h> #include <dt-bindings/clock/qcom,qcm2290-gpucc.h> #include <dt-bindings/clock/qcom,rpmcc.h> #include <dt-bindings/clock/qcom,shikra-gcc.h>
@@ -1990,6 +1991,204 @@ gpucc: clock-controller@5990000 { #power-domain-cells = <1>; }; + mdss: display-subsystem@5e00000 { + compatible = "qcom,shikra-mdss", "qcom,qcm2290-mdss"; + reg = <0x0 0x05e00000 0x0 0x1000>; + reg-names = "mdss"; + interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH 0>; + interrupt-controller; + #interrupt-cells = <1>; + + clocks = <&gcc GCC_DISP_AHB_CLK>, + <&gcc GCC_DISP_HF_AXI_CLK>, + <&dispcc DISP_CC_MDSS_MDP_CLK>; + clock-names = "iface", + "bus", + "core"; + + resets = <&dispcc DISP_CC_MDSS_CORE_BCR>; + + power-domains = <&dispcc MDSS_GDSC>; + + iommus = <&apps_smmu 0x420 0x2>; + interconnects = <&mmrt_virt MASTER_MDP_PORT0 RPM_ALWAYS_TAG + &mc_virt SLAVE_EBI_CH0 RPM_ALWAYS_TAG>, + <&mem_noc MASTER_AMPSS_M0 RPM_ALWAYS_TAG + &config_noc SLAVE_DISPLAY_CFG RPM_ALWAYS_TAG>; + interconnect-names = "mdp0-mem", + "cpu-cfg"; + + #address-cells = <2>; + #size-cells = <2>; + ranges; + + status = "disabled"; + + mdp: display-controller@5e01000 { + compatible = "qcom,shikra-dpu", "qcom,qcm2290-dpu"; + reg = <0x0 0x05e01000 0x0 0x8f000>, + <0x0 0x05eb0000 0x0 0x3000>; + reg-names = "mdp", + "vbif"; + + interrupt-parent = <&mdss>; + interrupts = <0>; + + clocks = <&gcc GCC_DISP_HF_AXI_CLK>, + <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&dispcc DISP_CC_MDSS_MDP_CLK>, + <&dispcc DISP_CC_MDSS_MDP_LUT_CLK>, + <&dispcc DISP_CC_MDSS_VSYNC_CLK>; + clock-names = "bus", + "iface", + "core", + "lut", + "vsync"; + + operating-points-v2 = <&mdp_opp_table>; + power-domains = <&rpmpd RPMPD_VDDCX>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dpu_intf1_out: endpoint { + remote-endpoint = <&mdss_dsi0_in>; + }; + }; + }; + + mdp_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-19200000 { + opp-hz = /bits/ 64 <19200000>; + required-opps = <&rpmpd_opp_min_svs>; + }; + + opp-192000000 { + opp-hz = /bits/ 64 <192000000>; + required-opps = <&rpmpd_opp_low_svs>; + }; + + opp-256000000 { + opp-hz = /bits/ 64 <256000000>; + required-opps = <&rpmpd_opp_svs>; + }; + + opp-307200000 { + opp-hz = /bits/ 64 <307200000>; + required-opps = <&rpmpd_opp_svs_plus>; + }; + + opp-384000000 { + opp-hz = /bits/ 64 <384000000>; + required-opps = <&rpmpd_opp_nom>; + }; + }; + }; + + mdss_dsi0: dsi@5e94000 { + compatible = "qcom,shikra-dsi-ctrl", + "qcom,qcm2290-dsi-ctrl", + "qcom,mdss-dsi-ctrl"; + reg = <0x0 0x05e94000 0x0 0x400>; + reg-names = "dsi_ctrl"; + + interrupt-parent = <&mdss>; + interrupts = <4>; + + clocks = <&dispcc DISP_CC_MDSS_BYTE0_CLK>, + <&dispcc DISP_CC_MDSS_BYTE0_INTF_CLK>, + <&dispcc DISP_CC_MDSS_PCLK0_CLK>, + <&dispcc DISP_CC_MDSS_ESC0_CLK>, + <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&gcc GCC_DISP_HF_AXI_CLK>; + clock-names = "byte", + "byte_intf", + "pixel", + "core", + "iface", + "bus"; + + assigned-clocks = <&dispcc DISP_CC_MDSS_BYTE0_CLK_SRC>, + <&dispcc DISP_CC_MDSS_PCLK0_CLK_SRC>; + assigned-clock-parents = <&mdss_dsi0_phy DSI_BYTE_PLL_CLK>, + <&mdss_dsi0_phy DSI_PIXEL_PLL_CLK>; + + operating-points-v2 = <&dsi_opp_table>; + power-domains = <&rpmpd RPMPD_VDDCX>; + phys = <&mdss_dsi0_phy>; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + + dsi_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-19200000 { + opp-hz = /bits/ 64 <19200000>; + required-opps = <&rpmpd_opp_min_svs>; + }; + + opp-164000000 { + opp-hz = /bits/ 64 <164000000>; + required-opps = <&rpmpd_opp_low_svs>; + }; + + opp-187500000 { + opp-hz = /bits/ 64 <187500000>; + required-opps = <&rpmpd_opp_svs>; + }; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + mdss_dsi0_in: endpoint { + remote-endpoint = <&dpu_intf1_out>; + }; + }; + + port@1 { + reg = <1>; + mdss_dsi0_out: endpoint { + }; + }; + }; + }; + + mdss_dsi0_phy: phy@5e94400 { + compatible = "qcom,dsi-phy-14nm-2290"; + reg = <0x0 0x05e94400 0x0 0x100>, + <0x0 0x05e94500 0x0 0x300>, + <0x0 0x05e94800 0x0 0x188>; + reg-names = "dsi_phy", + "dsi_phy_lane", + "dsi_pll"; + + clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "iface", + "ref"; + + power-domains = <&rpmpd RPMPD_VDDMX>; + required-opps = <&rpmpd_opp_nom>; + + #clock-cells = <1>; + #phy-cells = <0>; + + status = "disabled"; + }; + }; + dispcc: clock-controller@5f00000 { compatible = "qcom,shikra-dispcc", "qcom,qcm2290-dispcc"; reg = <0x0 0x05f00000 0x0 0x20000>;
@@ -1997,8 +2196,8 @@ dispcc: clock-controller@5f00000 { <&rpmcc RPM_SMD_XO_A_CLK_SRC>, <&gcc GCC_DISP_GPLL0_CLK_SRC>, <&gcc GCC_DISP_GPLL0_DIV_CLK_SRC>, - <0>, - <0>, + <&mdss_dsi0_phy DSI_BYTE_PLL_CLK>, + <&mdss_dsi0_phy DSI_PIXEL_PLL_CLK>, <0>, <0>, <&sleep_clk>;
Signature · 1 line
2.34.1
Re: [PATCH v2 1/4] arm64: dts: qcom: shikra: Add MDSS display subsystem
Quoted 13 lines · Nabige Aala
Add the SoC-level display subsystem nodes for Qualcomm Shikra:
MDSS wrapper,DPU display controller, DSI host controller, and 14nm DSI PHY.Qualcomm Shikra uses DPU 6.5 hardware (same as QCM2290). Platform-specific compatible strings are used as the primary match with QCM2290 fallbacks to reuse the existing driver support.
The dispcc clock inputs for the DSI byte and pixel PLLs are wired from
mdss_dsi0_phy.Signed-off-by Nabige Aala <[email protected]>---
[...]
arch/arm64/boot/dts/qcom/shikra.dtsi gpucc: clock-controller@5990000 { · line 2057
Quoted 7 lines
arch/arm64/boot/dts/qcom/shikra.dtsi +7
-0+ ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dpu_intf1_out: endpoint {
Please keep a \n between the last property and the following subnodes
otherwise lgtm
Konrad
PATCH v2 2/4 arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
In reply to Nabige AalaFrom: Arpit Saini <[email protected]>
Enable the Qualcomm Shikra MDSS display subsystem on the Shikra CQM EVK board and add the DLC0697 MIPI DSI display panel node. Pin pm4125_l5 to 1.232V with regulator-allow-set-load for DSI PHY PLL stability.
--- arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 126 ++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+)
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +126 -0
@@ -23,6 +23,39 @@ chosen { stdout-path = "serial0:115200n8"; }; + lcd_bias: regulator-lcd-bias { + compatible = "regulator-fixed"; + regulator-name = "lcd_bias"; + vin-supply = <&vph_pwr>; + gpio = <&tlmm 151 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&lcd_bias_en>; + pinctrl-names = "default"; + }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on; + }; + + vreg_disp_n: regulator-vreg-disp-n { + compatible = "regulator-fixed"; + regulator-name = "vreg_disp_n"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + vin-supply = <&lcd_bias>; + }; + + vreg_disp_p: regulator-vreg-disp-p { + compatible = "regulator-fixed"; + regulator-name = "vreg_disp_p"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + vin-supply = <&lcd_bias>; + }; + wcn3988-pmu { compatible = "qcom,wcn3988-pmu";
@@ -60,6 +93,53 @@ vreg_pmu_ch1: ldo4 { }; }; +&mdss { + status = "okay"; +}; + +&mdss_dsi0 { + vdda-supply = <&pm4125_l5>; + + status = "okay"; + + panel@0 { + compatible = "dlc,dlc0697", "ilitek,ili7807s"; + reg = <0>; + + reset-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; + + vddi-supply = <&pm4125_l15>; + avdd-supply = <&vreg_disp_p>; + avee-supply = <&vreg_disp_n>; + + pinctrl-0 = <&panel_rst_n &panel_te_pin &panel_bl_en>; + pinctrl-1 = <&panel_rst_n_suspend &panel_bl_en_suspend>; + pinctrl-names = "default", "sleep"; + + port { + panel_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; +}; + +&mdss_dsi0_out { + remote-endpoint = <&panel_in>; + data-lanes = <0 1 2 3>; +}; + +&mdss_dsi0_phy { + status = "okay"; +}; + +&pm4125_l5 { + /* DSI VDDA - must be at NOM voltage for PHY PLL lock */ + regulator-min-microvolt = <1232000>; + regulator-max-microvolt = <1232000>; + regulator-allow-set-load; +}; + &remoteproc_cdsp { firmware-name = "qcom/shikra/cdsp.mbn";
@@ -95,6 +175,52 @@ &sdhc_1 { status = "okay"; }; +&tlmm { + panel_rst_n: panel-rst-n-state { + pins = "gpio3"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; + + panel_rst_n_suspend: panel-rst-n-suspend-state { + pins = "gpio3"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + panel_te_pin: panel-te-pin-state { + pins = "gpio86"; + function = "mdp_vsync_p"; + drive-strength = <2>; + bias-pull-down; + }; + + panel_bl_en: panel-bl-en-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + panel_bl_en_suspend: panel-bl-en-suspend-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + + lcd_bias_en: lcd-bias-en-state { + pins = "gpio151"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; +}; + &uart8 { status = "okay";
Signature · 1 line
2.34.1
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts chosen { · line 36
Quoted 11 lines · Nabige Aala
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +11
-0+ lcd_bias: regulator-lcd-bias { + compatible = "regulator-fixed"; + regulator-name = "lcd_bias"; + vin-supply = <&vph_pwr>; + gpio = <&tlmm 151 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&lcd_bias_en>; + pinctrl-names = "default"; + }; + + vph_pwr: vph-pwr-regulator {
Why so inconsistent names?
Anyway, drop the node, not used and not controllable.
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts chosen { · line 40
Quoted 4 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +4
-0+ compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on;
Best regards,
Krzysztof
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Hi Krzyszto,
Quoted 14 lines · Krzysztof Kozlowski
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts chosen { · line 36
Quoted 11 lines · Nabige Aala
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +11
-0+ lcd_bias: regulator-lcd-bias { + compatible = "regulator-fixed"; + regulator-name = "lcd_bias"; + vin-supply = <&vph_pwr>; + gpio = <&tlmm 151 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&lcd_bias_en>; + pinctrl-names = "default"; + }; + + vph_pwr: vph-pwr-regulator {Why so inconsistent names?
Quoted 1 line
Anyway, drop the node, not used and not controllable.
As per the schematics of LCD display Bias driver , vph_pwr is used as vin for that.
So I created vph_pwr , if you want , I can drop that in next patchset.
Thanks,
Arpit
Quoted 8 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts chosen { · line 40
Quoted 4 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +4
-0+ compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on;Best regards,
Krzysztof
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Quoted 17 lines · Arpit Saini
Hi Krzyszto,
Quoted 14 lines · Krzysztof Kozlowski
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts chosen { · line 36
Quoted 11 lines · Nabige Aala
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +11
-0+ lcd_bias: regulator-lcd-bias { + compatible = "regulator-fixed"; + regulator-name = "lcd_bias"; + vin-supply = <&vph_pwr>; + gpio = <&tlmm 151 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&lcd_bias_en>; + pinctrl-names = "default"; + }; + + vph_pwr: vph-pwr-regulator {Why so inconsistent names?
Quoted 6 lines
Quoted 1 line
Anyway, drop the node, not used and not controllable.
As per the schematics of LCD display Bias driver ,
vph_pwris used as vin for that.So I created
vph_pwr, if you want , I can drop that in next patchset.
But vph_pwr gets its own supply from main power, which gets from socket, which gets from building wiring, which gets from a power plant... Drop the node, as I said, it is redundant in DTS.
Best regards,
Krzysztof
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Quoted 20 lines · Krzysztof Kozlowski
Quoted 19 lines · Arpit Saini
Hi Krzyszto,
Quoted 15 lines · Krzysztof Kozlowski
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts chosen { · line 36
Quoted 11 lines · Nabige Aala
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +11
-0+ lcd_bias: regulator-lcd-bias { + compatible = "regulator-fixed"; + regulator-name = "lcd_bias"; + vin-supply = <&vph_pwr>; + gpio = <&tlmm 151 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&lcd_bias_en>; + pinctrl-names = "default"; + }; + + vph_pwr: vph-pwr-regulator {Why so inconsistent names?
Anyway, drop the node, not used and not controllable.
Quoted 8 lines
Quoted 4 lines
As per the schematics of LCD display Bias driver ,
vph_pwris used as vin for that.So I created
vph_pwr, if you want , I can drop that in next patchset.But
vph_pwrgets its own supply from main power, which gets from socket, which gets from building wiring, which gets from a power plant... Drop the node, as I said, it is redundant in DTS.
Just for my understanding. Is it fine if it gets used as an input to PMICs?
Quoted 3 lines
Best regards,
Krzysztof
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Quoted 24 lines · Dmitry Baryshkov
Quoted 23 lines · Krzysztof Kozlowski
Quoted 22 lines · Arpit Saini
Hi Krzyszto,
Quoted 14 lines · Krzysztof Kozlowski
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts chosen { · line 36
Quoted 11 lines · Nabige Aala
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +11
-0+ lcd_bias: regulator-lcd-bias { + compatible = "regulator-fixed"; + regulator-name = "lcd_bias"; + vin-supply = <&vph_pwr>; + gpio = <&tlmm 151 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&lcd_bias_en>; + pinctrl-names = "default"; + }; + + vph_pwr: vph-pwr-regulator {Why so inconsistent names?
Quoted 1 line
Anyway, drop the node, not used and not controllable.
As per the schematics of LCD display Bias driver ,
vph_pwris used as vin for that.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
So I created
vph_pwr, if you want , I can drop that in next patchset.But
vph_pwrgets its own supply from main power, which gets from socket, which gets from building wiring, which gets from a power plant... Drop the node, as I said, it is redundant in DTS.Just for my understanding. Is it fine if it gets used as an input to PMICs?
Yes, if it is used to any device as supply, then it is fine.
Best regards,
Krzysztof
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
In reply to Nabige AalaQuoted 9 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Qualcomm Shikra MDSS display subsystem on the Shikra CQM EVK board and add the DLC0697 MIPI DSI display panel node. Pin
pm4125_l5to 1.232V with regulator-allow-set-load for DSI PHY PLL stability.Signed-off-by Arpit Saini <[email protected]>Signed-off-by Nabige Aala <[email protected]>---
[...]
Quoted 5 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +5
-0+ panel_bl_en: panel-bl-en-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-disable;
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts &sdhc_1 { · line 214
Quoted 10 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +10
-0+ output-high; + }; + + panel_bl_en_suspend: panel-bl-en-suspend-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low; + };
output-foo isn't necessary, the panel driver will assert it as necessary
Konrad
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Hi Konrad,
Quoted 30 lines · Konrad Dybcio
Quoted 9 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Qualcomm Shikra MDSS display subsystem on the Shikra CQM EVK board and add the DLC0697 MIPI DSI display panel node. Pin
pm4125_l5to 1.232V with regulator-allow-set-load for DSI PHY PLL stability.Signed-off-by Arpit Saini <[email protected]>Signed-off-by Nabige Aala <[email protected]>---
[...]
Quoted 5 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +5
-0+ panel_bl_en: panel-bl-en-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-disable;arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts &sdhc_1 { · line 214
Quoted 10 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +10
-0+ output-high; + }; + + panel_bl_en_suspend: panel-bl-en-suspend-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low; + };output-foo isn't necessary, the panel driver will assert it as necessary
Quoted 1 line
Konrad
Ack, thanks for pointing out.
Arpit
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Hi Konrad,
Quoted 30 lines · Arpit Saini
Hi Konrad,
Quoted 27 lines · Konrad Dybcio
Quoted 9 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Qualcomm Shikra MDSS display subsystem on the Shikra CQM EVK board and add the DLC0697 MIPI DSI display panel node. Pin
pm4125_l5to 1.232V with regulator-allow-set-load for DSI PHY PLL stability.Signed-off-by Arpit Saini <[email protected]>Signed-off-by Nabige Aala <[email protected]>---
[...]
Quoted 15 lines
+
panel_bl_en: panel-bl-en-state {
+ pins = "gpio91";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ output-high;
+ };
+
+panel_bl_en_suspend: panel-bl-en-suspend-state { + pins = "gpio91";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-down;
+ output-low;
+ };
Quoted 9 lines
Quoted 4 lines
output-foo isn't necessary, the panel driver will assert it as necessary
Konrad
Ack, thanks for pointing out.
Arpit
I just checked,
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
separate backlight driver. Since there is no driver to assert gpio91,
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
the backlight.
Thanks,
Arpit
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Quoted 8 lines · Arpit Saini
Hi Konrad,
Quoted 5 lines · Arpit Saini
Hi Konrad,
Quoted 2 lines · Konrad Dybcio
Quoted 1 line · Nabige Aala
From: Arpit Saini <[email protected]>
[...]
Quoted 22 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
+
panel_bl_en_suspend: panel-bl-en-suspend-state { + pins = "gpio91";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-down;
+ output-low;
+ };Quoted 9 lines
Quoted 4 lines
output-foo isn't necessary, the panel driver will assert it as necessary
Konrad
Ack, thanks for pointing out.
Arpit
I just checked,
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
Quoted 7 lines
separate backlight driver. Since there is no driver to assert gpio91,
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
the backlight.
Why would the backlight state be so tightly defined by the panel? Disabling or adjusting the backlight level without shutting down the panel is a perfectly valid use case.
Take a look at pwm-backlight or gpio-backlight.
Konrad
P.S. Set mailnews.wraplength = 0 in your thunderbird config - it currently inserts an extra \n between every single line
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Quoted 40 lines · Konrad Dybcio
Quoted 8 lines · Arpit Saini
Hi Konrad,
Quoted 5 lines · Arpit Saini
Hi Konrad,
Quoted 2 lines · Konrad Dybcio
Quoted 1 line · Nabige Aala
From: Arpit Saini <[email protected]>
[...]
Quoted 28 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
+
panel_bl_en_suspend: panel-bl-en-suspend-state { + pins = "gpio91";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-down;
+ output-low;
+ };Quoted 9 lines
Quoted 4 lines
output-foo isn't necessary, the panel driver will assert it as necessary
Konrad
Ack, thanks for pointing out.
Arpit
I just checked,
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
separate backlight driver. Since there is no driver to assert gpio91,
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
Quoted 7 lines
Quoted 1 line
the backlight.
Why would the backlight state be so tightly defined by the panel? Disabling or adjusting the backlight level without shutting down the panel is a perfectly valid use case.
Take a look at pwm-backlight or gpio-backlight.
This one is different. The backlight is controlled over the DSI link. In this case there is no separate driver for the backlight, the panel driver handles it (it needs to be like this for multiple reasons).
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Quoted 10 lines · Dmitry Baryshkov
Quoted 9 lines · Konrad Dybcio
Quoted 8 lines · Arpit Saini
Hi Konrad,
Quoted 5 lines · Arpit Saini
Hi Konrad,
Quoted 2 lines · Konrad Dybcio
Quoted 1 line · Nabige Aala
From: Arpit Saini <[email protected]>
[...]
Quoted 18 lines
Quoted 18 lines
Quoted 6 lines
I just checked,
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
Quoted 7 lines
separate backlight driver. Since there is no driver to assert gpio91,
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
the backlight.
Why would the backlight state be so tightly defined by the panel? Disabling or adjusting the backlight level without shutting down the panel is a perfectly valid use case.
Quoted 5 lines
Quoted 1 line
Take a look at pwm-backlight or gpio-backlight.
This one is different. The backlight is controlled over the DSI link. In this case there is no separate driver for the backlight, the panel driver handles it (it needs to be like this for multiple reasons).
Ah, OK I misread the statement above as 'this panel [doesn't use] MIPI DCS based backlight'
Konrad
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
In reply to Arpit SainiQuoted 48 lines · Arpit Saini
Hi Konrad,
Quoted 30 lines · Arpit Saini
Hi Konrad,
Quoted 27 lines · Konrad Dybcio
Quoted 9 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Qualcomm Shikra MDSS display subsystem on the Shikra CQM EVK board and add the DLC0697 MIPI DSI display panel node. Pin
pm4125_l5to 1.232V with regulator-allow-set-load for DSI PHY PLL stability.Signed-off-by Arpit Saini <[email protected]>Signed-off-by Nabige Aala <[email protected]>---
[...]
Quoted 15 lines
+
panel_bl_en: panel-bl-en-state {
+ pins = "gpio91";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ output-high;
+ };
+
+panel_bl_en_suspend: panel-bl-en-suspend-state { + pins = "gpio91";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-down;
+ output-low;
+ };Quoted 9 lines
Quoted 4 lines
output-foo isn't necessary, the panel driver will assert it as necessary
Konrad
Ack, thanks for pointing out.
Arpit
I just checked,
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
Quoted 7 lines
separate backlight driver. Since there is no driver to assert gpio91,
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
the backlight.
Handle it from the panel driver. Also please fix your editor to prevent it from inserting extra empty lines.
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Hi Dmitry,Konrad
Quoted 51 lines · Dmitry Baryshkov
Quoted 50 lines · Arpit Saini
Hi Konrad,
Quoted 30 lines · Arpit Saini
Hi Konrad,
Quoted 27 lines · Konrad Dybcio
Quoted 9 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Qualcomm Shikra MDSS display subsystem on the Shikra CQM EVK board and add the DLC0697 MIPI DSI display panel node. Pin
pm4125_l5to 1.232V with regulator-allow-set-load for DSI PHY PLL stability.Signed-off-by Arpit Saini <[email protected]>Signed-off-by Nabige Aala <[email protected]>---
[...]
Quoted 15 lines
+
panel_bl_en: panel-bl-en-state {
+ pins = "gpio91";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ output-high;
+ };
+
+panel_bl_en_suspend: panel-bl-en-suspend-state { + pins = "gpio91";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-down;
+ output-low;
+ };Quoted 9 lines
Quoted 4 lines
output-foo isn't necessary, the panel driver will assert it as necessary
Konrad
Ack, thanks for pointing out.
Arpit
I just checked,
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
separate backlight driver. Since there is no driver to assert gpio91,
Quoted 9 lines
Quoted 5 lines
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
the backlight.
Handle it from the panel driver. Also please fix your editor to prevent it from inserting extra empty lines.
Earlier I handled it through panel driver, but this GPIO is specific to our Qualcomm Daughter Card, it is not going to the panel connector.
In earlier panel driver version v1, I got comments on dt bindings for that, so I modeled it like this.
as Dmitry suggested here [1], to not include backlight-en-gpios in dt bindings as it is not panel specific.
are you suggesting any other way to do so, Please let me know.
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Quoted 7 lines · Arpit Saini
Hi Dmitry,Konrad
Quoted 4 lines · Dmitry Baryshkov
Quoted 3 lines · Arpit Saini
Hi Konrad,
On 7/10/2026 2:31 PM, Arpit Saini wrote:
[...]
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
separate backlight driver. Since there is no driver to assert gpio91,
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
the backlight.
Handle it from the panel driver. Also please fix your editor to prevent it from inserting extra empty lines.
Earlier I handled it through panel driver, but this GPIO is specific to our Qualcomm Daughter Card, it is not going to the panel connector.
So is it an enable pin of a voltage regulator maybe? I'm having trouble understanding how this is all tied together, given the panel driver uses DCS commands to control the backlight status
Konrad
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Hi Konrad,
Quoted 27 lines · Konrad Dybcio
Quoted 7 lines · Arpit Saini
Hi Dmitry,Konrad
Quoted 4 lines · Dmitry Baryshkov
Quoted 3 lines · Arpit Saini
Hi Konrad,
On 7/10/2026 2:31 PM, Arpit Saini wrote:
[...]
Quoted 16 lines
Quoted 15 lines
Quoted 11 lines
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
separate backlight driver. Since there is no driver to assert gpio91,
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
the backlight.
Handle it from the panel driver. Also please fix your editor to prevent it from inserting extra empty lines.
Quoted 8 lines
Quoted 2 lines
Earlier I handled it through panel driver, but this GPIO is specific to our Qualcomm Daughter Card, it is not going to the panel connector.
So is it an enable pin of a voltage regulator maybe? I'm having trouble understanding how this is all tied together, given the panel driver uses DCS commands to control the backlight status
Konrad
No, it is not a voltage regulator enable.
GPIO91 (WLED_P1_EN) is the enable pin of the WLED driver IC on the Qualcomm daughter card. The WLED driver is a boost LED driver that powers the backlight LEDs.
The backlight control works in two parts:
1. GPIO91 must be asserted to enable the WLED driver IC itself.
2. The panel's CABC output (a PWM signal) is connected to the WLED driver's PWM input and controls the actual brightness.
This CABC output is driven by the DCS set_display_brightness command sent from the panel driver.
So the DCS commands control brightness via the panel's PWM/CABC output, but the WLED driver IC needs to be enabled first via GPIO91.
Since GPIO91 is on the Qualcomm daughter card and not on the panel connector.
Dmitry suggested , it is not appropriate to model it in the panel binding.
The current approach of asserting it via pinctrl default state in the board DTS keeps it board-specific.
If you have a better suggestion for modelling this, I'm happy to follow your guidance.
SoC (ITP Baseband Card)
├── GPIO91 (WLED_P1_EN) ─────────────────────────────────────┐
│ │
└── DSI ──────────────────────────────────────────────────┐ │
│ │
┌──────────────────────────────────────────────────────────┼──┼──────────────────────────────────┐
│ Qualcomm Display Daughter Card │ │ │
│ │ │ │
│ ┌─────────────────────────────────┐ │ │ ┌──────────────────────┐ │
│ │ DLC DLC0697 Panel (ILI7807S) │◄────────────────────┘ │ │ WLED Driver IC │ │
│ │ │ | │ │ │
│ │ DCS set_display_brightness() │ └──►│ EN │ │
│ │ │ │ │ │ │
│ │ ▼ │ │ │ │
│ │ CABC output ───────────────────┼───────────────────────────►│ PWM │ │
│ │ │ │ │ │
│ │ │ │ LED outputs ────────┼──► Backlight LEDs
│ └─────────────────────────────────┘ └──────────────────────┘ │
│ │
└────────────────────────────────────────────────────────────────────────────────────────────────┘Thanks,
Arpit
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Quoted 37 lines · Arpit Saini
Hi Konrad,
Quoted 34 lines · Konrad Dybcio
Quoted 7 lines · Arpit Saini
Hi Dmitry,Konrad
Quoted 4 lines · Dmitry Baryshkov
Quoted 3 lines · Arpit Saini
Hi Konrad,
On 7/10/2026 2:31 PM, Arpit Saini wrote:
[...]
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
separate backlight driver. Since there is no driver to assert gpio91,
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
the backlight.
Handle it from the panel driver. Also please fix your editor to prevent it from inserting extra empty lines.
Earlier I handled it through panel driver, but this GPIO is specific to our Qualcomm Daughter Card, it is not going to the panel connector.
So is it an enable pin of a voltage regulator maybe? I'm having trouble understanding how this is all tied together, given the panel driver uses DCS commands to control the backlight status
Quoted 6 lines
Quoted 1 line
Konrad
No, it is not a voltage regulator enable.
GPIO91 (WLED_P1_EN) is the enable pin of the WLED driver IC on the Qualcomm daughter card. The WLED driver is a boost LED driver that powers the backlight LEDs.
The backlight control works in two parts:
_that powers the backlight LEDs_.
So it is a power supply.
Quoted 28 lines
1. GPIO91 must be asserted to enable the WLED driver IC itself.
2. The panel's CABC output (a PWM signal) is connected to the WLED driver's PWM input and controls the actual brightness.
This CABC output is driven by the DCSset_display_brightnesscommand sent from the panel driver.So the DCS commands control brightness via the panel's PWM/CABC output, but the WLED driver IC needs to be enabled first via GPIO91.
Since GPIO91 is on the Qualcomm daughter card and not on the panel connector.
Dmitry suggested , it is not appropriate to model it in the panel binding.
The current approach of asserting it via pinctrl default state in the board DTS keeps it board-specific.If you have a better suggestion for modelling this, I'm happy to follow your guidance.
SoC (ITP Baseband Card)
├── GPIO91 (WLED_P1_EN) ─────────────────────────────────────┐ │ │ └── DSI ──────────────────────────────────────────────────┐ │ │ │ ┌──────────────────────────────────────────────────────────┼──┼──────────────────────────────────┐ │ Qualcomm Display Daughter Card │ │ │ │ │ │ │ │ ┌─────────────────────────────────┐ │ │ ┌──────────────────────┐ │ │ │ DLC DLC0697 Panel (ILI7807S) │◄────────────────────┘ │ │ WLED Driver IC │ │ │ │ │ | │ │ │ │ │ DCS set_display_brightness() │ └──►│ EN │ │
Quoted 8 lines
│ │ │ │ │ │ │ │ │ ▼ │ │ │ │ │ │ CABC output ───────────────────┼───────────────────────────►│ PWM │ │ │ │ │ │ │ │ │ │ │ │ LED outputs ────────┼──► Backlight LEDs │ └─────────────────────────────────┘ └──────────────────────┘ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────┘
This is a nice diagram, but it shows backlight LEDs as something completely separate. Usually they are a part of the panel. Are they not in this case?
I'd be more interested in a different representation of the information. What are the _actual_ panel inputs? Decribe those (and only those) in the panel bindings.
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Hi Dmitry,
Quoted 86 lines · Dmitry Baryshkov
Quoted 37 lines · Arpit Saini
Hi Konrad,
Quoted 34 lines · Konrad Dybcio
Quoted 7 lines · Arpit Saini
Hi Dmitry,Konrad
Quoted 4 lines · Dmitry Baryshkov
Quoted 3 lines · Arpit Saini
Hi Konrad,
On 7/10/2026 2:31 PM, Arpit Saini wrote:
[...]
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
separate backlight driver. Since there is no driver to assert gpio91,
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
the backlight.
Handle it from the panel driver. Also please fix your editor to prevent it from inserting extra empty lines.
Earlier I handled it through panel driver, but this GPIO is specific to our Qualcomm Daughter Card, it is not going to the panel connector.
So is it an enable pin of a voltage regulator maybe? I'm having trouble understanding how this is all tied together, given the panel driver uses DCS commands to control the backlight status
Quoted 6 lines
Quoted 1 line
Konrad
No, it is not a voltage regulator enable.
GPIO91 (WLED_P1_EN) is the enable pin of the WLED driver IC on the Qualcomm daughter card. The WLED driver is a boost LED driver that powers the backlight LEDs.
The backlight control works in two parts:
_thatpowers the backlightLEDs_.So it is a power supply.
Quoted 28 lines
1. GPIO91 must be asserted to enable the WLED driver IC itself.
2. The panel's CABC output (a PWM signal) is connected to the WLED driver's PWM input and controls the actual brightness.
This CABC output is driven by the DCSset_display_brightnesscommand sent from the panel driver.So the DCS commands control brightness via the panel's PWM/CABC output, but the WLED driver IC needs to be enabled first via GPIO91.
Since GPIO91 is on the Qualcomm daughter card and not on the panel connector.
Dmitry suggested , it is not appropriate to model it in the panel binding.
The current approach of asserting it via pinctrl default state in the board DTS keeps it board-specific.If you have a better suggestion for modelling this, I'm happy to follow your guidance.
SoC (ITP Baseband Card)
├── GPIO91 (WLED_P1_EN) ─────────────────────────────────────┐ │ │ └── DSI ──────────────────────────────────────────────────┐ │ │ │ ┌──────────────────────────────────────────────────────────┼──┼──────────────────────────────────┐ │ Qualcomm Display Daughter Card │ │ │ │ │ │ │ │ ┌─────────────────────────────────┐ │ │ ┌──────────────────────┐ │ │ │ DLC DLC0697 Panel (ILI7807S) │◄────────────────────┘ │ │ WLED Driver IC │ │ │ │ │ | │ │ │ │ │ DCS set_display_brightness() │ └──►│ EN │ │Quoted 8 lines
│ │ │ │ │ │ │ │ │ ▼ │ │ │ │ │ │ CABC output ───────────────────┼───────────────────────────►│ PWM │ │ │ │ │ │ │ │ │ │ │ │ LED outputs ────────┼──► Backlight LEDs │ └─────────────────────────────────┘ └──────────────────────┘ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────┘
Quoted 8 lines
This is a nice diagram, but it shows backlight LEDs as something completely separate. Usually they are a part of the panel. Are they not in this case?
I'd be more interested in a different representation of the information. What are the _actual_ panel inputs? Decribe those (and only those) in the panel bindings.
No , Backlight LEDs are part of the panel, I will correct the diagram for that, and regards panel bindings, I modeled only the actual panel inputs.
Hopefully, this diagram will clear this.
┌─────────────────┐ ┌───────────────────────────────────────────────────────────────────────────────────────────┐ │ SOC Card │ │ Display DC │ │ │ │ ┌──────────────────────────────┐ │ │ DSI0 │ │ │ DLC Display CONN │ │ │ ├─ DSICLK_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSICLK_P/M │ │ │ ├─ DSILN0_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN0_P/M │ │ │ ├─ DSILN1_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN1_P/M │ │ │ ├─ DSILN2_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN2_P/M │ │ │ └─ DSILN3_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN3_P/M │ │ │ │ │ │ │ │ │ 1.8V ──────────┼─────────┼──────────────────────────────────── vddi ──────────────┼──► vddi │ │ │ │ │ │ │ │ │ VSYS_PWR ──────┼─────────┼──────┐ │ │ │ │ │ │ │ │ │ │ │ LCD_BIAS_EN ───┼─────────┼──────┼──► ┌──────────────────┐ │ │ │ │ │ │ ├───►│ LCD BIAS DRIVER ├──── VREG_DISP_P (+5.5V)┼──► VREG_DISP_P (+5.5V) │ │ │ │ │ │ └──────────────────┘──── VREG_DISP_N (-5.5V)─┼──► VREG_DISP_N (-5.5V) │ │ │ │ │ │ │ │ │ │ LCD_BKLT_EN ───┼─────────┼──────┼──► ┌──────────────────┐ │ │ │ │ | | | │ WLED DRIVER ├──── VREG_WLED ──────────┼──► VREG_WLED │ │ │ │ │ └───►│ ├──── WLED_SIN1 ─────────┼──► WLED_SIN1 │ │ │ │ │ │ ├──── WLED_SIN2 ─────────┼──► WLED_SIN2 │ │ │ │ │ │ ◄─PWM─┤◄───────────────────────┼◄── CABC │ │ │ │ │ └──────────────────┘ │ │ │ │ MDP_VSYNC_P ───┼─────────┼────────────────────────────────────────────────────────┼──► MDP_VSYNC_P │ │ │ │ │ │ │ │ │ DISP_RST ──────┼─────────┼────────────────────────────────────────────────────────┼──► DISP_RST │ │ │ │ │ │ │ │ │ Touch ─//──────┼─────────┼────────────────────────────────────────────────────────┼──► Touch signals │ │ │ signals │ │ └──────────────────────────────┘ │ └─────────────────┘ └───────────────────────────────────────────────────────────────────────────────────────────┘
Thanks,
Arpit
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Quoted 119 lines · Arpit Saini
Hi Dmitry,
Quoted 86 lines · Dmitry Baryshkov
Quoted 37 lines · Arpit Saini
Hi Konrad,
Quoted 34 lines · Konrad Dybcio
Quoted 7 lines · Arpit Saini
Hi Dmitry,Konrad
Quoted 4 lines · Dmitry Baryshkov
Quoted 3 lines · Arpit Saini
Hi Konrad,
On 7/10/2026 2:31 PM, Arpit Saini wrote:
[...]
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
separate backlight driver. Since there is no driver to assert gpio91,
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
the backlight.
Handle it from the panel driver. Also please fix your editor to prevent it from inserting extra empty lines.
Earlier I handled it through panel driver, but this GPIO is specific to our Qualcomm Daughter Card, it is not going to the panel connector.
So is it an enable pin of a voltage regulator maybe? I'm having trouble understanding how this is all tied together, given the panel driver uses DCS commands to control the backlight status
Quoted 6 lines
Quoted 1 line
Konrad
No, it is not a voltage regulator enable.
GPIO91 (WLED_P1_EN) is the enable pin of the WLED driver IC on the Qualcomm daughter card. The WLED driver is a boost LED driver that powers the backlight LEDs.
The backlight control works in two parts:
_thatpowers the backlightLEDs_.So it is a power supply.
Quoted 28 lines
1. GPIO91 must be asserted to enable the WLED driver IC itself.
2. The panel's CABC output (a PWM signal) is connected to the WLED driver's PWM input and controls the actual brightness.
This CABC output is driven by the DCSset_display_brightnesscommand sent from the panel driver.So the DCS commands control brightness via the panel's PWM/CABC output, but the WLED driver IC needs to be enabled first via GPIO91.
Since GPIO91 is on the Qualcomm daughter card and not on the panel connector.
Dmitry suggested , it is not appropriate to model it in the panel binding.
The current approach of asserting it via pinctrl default state in the board DTS keeps it board-specific.If you have a better suggestion for modelling this, I'm happy to follow your guidance.
SoC (ITP Baseband Card)
├── GPIO91 (WLED_P1_EN) ─────────────────────────────────────┐ │ │ └── DSI ──────────────────────────────────────────────────┐ │ │ │ ┌──────────────────────────────────────────────────────────┼──┼──────────────────────────────────┐ │ Qualcomm Display Daughter Card │ │ │ │ │ │ │ │ ┌─────────────────────────────────┐ │ │ ┌──────────────────────┐ │ │ │ DLC DLC0697 Panel (ILI7807S) │◄────────────────────┘ │ │ WLED Driver IC │ │ │ │ │ | │ │ │ │ │ DCS set_display_brightness() │ └──►│ EN │ │Quoted 8 lines
│ │ │ │ │ │ │ │ │ ▼ │ │ │ │ │ │ CABC output ───────────────────┼───────────────────────────►│ PWM │ │ │ │ │ │ │ │ │ │ │ │ LED outputs ────────┼──► Backlight LEDs │ └─────────────────────────────────┘ └──────────────────────┘ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────┘Quoted 8 lines
This is a nice diagram, but it shows backlight LEDs as something completely separate. Usually they are a part of the panel. Are they not in this case?
I'd be more interested in a different representation of the information. What are the _actual_ panel inputs? Decribe those (and only those) in the panel bindings.
No , Backlight LEDs are part of the panel, I will correct the diagram for that, and regards panel bindings, I modeled only the actual panel inputs.
Hopefully, this diagram will clear this.
┌─────────────────┐ ┌───────────────────────────────────────────────────────────────────────────────────────────┐ │ SOC Card │ │ Display DC │ │ │ │ ┌──────────────────────────────┐ │ │ DSI0 │ │ │ DLC Display CONN │ │ │ ├─ DSICLK_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSICLK_P/M │ │ │ ├─ DSILN0_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN0_P/M │ │ │ ├─ DSILN1_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN1_P/M │ │ │ ├─ DSILN2_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN2_P/M │ │ │ └─ DSILN3_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN3_P/M │ │ │ │ │ │ │ │ │ 1.8V ──────────┼─────────┼──────────────────────────────────── vddi ──────────────┼──► vddi │ │ │ │ │ │ │ │ │ VSYS_PWR ──────┼─────────┼──────┐ │ │ │ │ │ │ │ │ │ │ │ LCD_BIAS_EN ───┼─────────┼──────┼──► ┌──────────────────┐ │ │ │ │ │ │ ├───►│ LCD BIAS DRIVER ├──── VREG_DISP_P (+5.5V)┼──► VREG_DISP_P (+5.5V) │ │
Quoted 8 lines
│ │ │ │ └──────────────────┘──── VREG_DISP_N (-5.5V)─┼──► VREG_DISP_N (-5.5V) │ │ │ │ │ │ │ │ │ │ LCD_BKLT_EN ───┼─────────┼──────┼──► ┌──────────────────┐ │ │ │ │ | | | │ WLED DRIVER ├──── VREG_WLED ──────────┼──► VREG_WLED │ │ │ │ │ └───►│ ├──── WLED_SIN1 ─────────┼──► WLED_SIN1 │ │ │ │ │ │ ├──── WLED_SIN2 ─────────┼──► WLED_SIN2 │ │ │ │ │ │ ◄─PWM─┤◄───────────────────────┼◄── CABC │ │ │ │ │ └──────────────────┘ │ │ │
Perfect. So this is LED device, it provides backlight to the panel. Describe it correctly in the DT.
Think of somebody using PM8150's WLED with the panel.
For the panel bindings use only actual panel inputs. Think of it being used on a completely different platform, without the DC card.
Quoted 10 lines
│ MDP_VSYNC_P ───┼─────────┼────────────────────────────────────────────────────────┼──► MDP_VSYNC_P │ │ │ │ │ │ │ │ │ DISP_RST ──────┼─────────┼────────────────────────────────────────────────────────┼──► DISP_RST │ │ │ │ │ │ │ │ │ Touch ─//──────┼─────────┼────────────────────────────────────────────────────────┼──► Touch signals │ │ │ signals │ │ └──────────────────────────────┘ │ └─────────────────┘ └───────────────────────────────────────────────────────────────────────────────────────────┘Thanks,
Arpit
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Hi Dmitry,
Quoted 129 lines · Dmitry Baryshkov
Quoted 119 lines · Arpit Saini
Hi Dmitry,
Quoted 86 lines · Dmitry Baryshkov
Quoted 37 lines · Arpit Saini
Hi Konrad,
Quoted 34 lines · Konrad Dybcio
Quoted 7 lines · Arpit Saini
Hi Dmitry,Konrad
Quoted 4 lines · Dmitry Baryshkov
Quoted 3 lines · Arpit Saini
Hi Konrad,
On 7/10/2026 2:31 PM, Arpit Saini wrote:
[...]
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
separate backlight driver. Since there is no driver to assert gpio91,
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
the backlight.
Handle it from the panel driver. Also please fix your editor to prevent it from inserting extra empty lines.
Earlier I handled it through panel driver, but this GPIO is specific to our Qualcomm Daughter Card, it is not going to the panel connector.
So is it an enable pin of a voltage regulator maybe? I'm having trouble understanding how this is all tied together, given the panel driver uses DCS commands to control the backlight status
Quoted 6 lines
Quoted 1 line
Konrad
No, it is not a voltage regulator enable.
GPIO91 (WLED_P1_EN) is the enable pin of the WLED driver IC on the Qualcomm daughter card. The WLED driver is a boost LED driver that powers the backlight LEDs.
The backlight control works in two parts:
_thatpowers the backlightLEDs_.So it is a power supply.
Quoted 28 lines
1. GPIO91 must be asserted to enable the WLED driver IC itself.
2. The panel's CABC output (a PWM signal) is connected to the WLED driver's PWM input and controls the actual brightness.
This CABC output is driven by the DCSset_display_brightnesscommand sent from the panel driver.So the DCS commands control brightness via the panel's PWM/CABC output, but the WLED driver IC needs to be enabled first via GPIO91.
Since GPIO91 is on the Qualcomm daughter card and not on the panel connector.
Dmitry suggested , it is not appropriate to model it in the panel binding.
The current approach of asserting it via pinctrl default state in the board DTS keeps it board-specific.If you have a better suggestion for modelling this, I'm happy to follow your guidance.
SoC (ITP Baseband Card)
├── GPIO91 (WLED_P1_EN) ─────────────────────────────────────┐ │ │ └── DSI ──────────────────────────────────────────────────┐ │ │ │ ┌──────────────────────────────────────────────────────────┼──┼──────────────────────────────────┐ │ Qualcomm Display Daughter Card │ │ │ │ │ │ │ │ ┌─────────────────────────────────┐ │ │ ┌──────────────────────┐ │ │ │ DLC DLC0697 Panel (ILI7807S) │◄────────────────────┘ │ │ WLED Driver IC │ │ │ │ │ | │ │ │ │ │ DCS set_display_brightness() │ └──►│ EN │ │Quoted 8 lines
│ │ │ │ │ │ │ │ │ ▼ │ │ │ │ │ │ CABC output ───────────────────┼───────────────────────────►│ PWM │ │ │ │ │ │ │ │ │ │ │ │ LED outputs ────────┼──► Backlight LEDs │ └─────────────────────────────────┘ └──────────────────────┘ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────┘Quoted 8 lines
This is a nice diagram, but it shows backlight LEDs as something completely separate. Usually they are a part of the panel. Are they not in this case?
I'd be more interested in a different representation of the information. What are the _actual_ panel inputs? Decribe those (and only those) in the panel bindings.
No , Backlight LEDs are part of the panel, I will correct the diagram for that, and regards panel bindings, I modeled only the actual panel inputs.
Hopefully, this diagram will clear this.
┌─────────────────┐ ┌───────────────────────────────────────────────────────────────────────────────────────────┐ │ SOC Card │ │ Display DC │ │ │ │ ┌──────────────────────────────┐ │ │ DSI0 │ │ │ DLC Display CONN │ │ │ ├─ DSICLK_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSICLK_P/M │ │ │ ├─ DSILN0_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN0_P/M │ │ │ ├─ DSILN1_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN1_P/M │ │ │ ├─ DSILN2_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN2_P/M │ │ │ └─ DSILN3_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN3_P/M │ │ │ │ │ │ │ │ │ 1.8V ──────────┼─────────┼──────────────────────────────────── vddi ──────────────┼──► vddi │ │ │ │ │ │ │ │ │ VSYS_PWR ──────┼─────────┼──────┐ │ │ │ │ │ │ │ │ │ │ │ LCD_BIAS_EN ───┼─────────┼──────┼──► ┌──────────────────┐ │ │ │ │ │ │ ├───►│ LCD BIAS DRIVER ├──── VREG_DISP_P (+5.5V)┼──► VREG_DISP_P (+5.5V) │ │Quoted 8 lines
│ │ │ │ └──────────────────┘──── VREG_DISP_N (-5.5V)─┼──► VREG_DISP_N (-5.5V) │ │ │ │ │ │ │ │ │ │ LCD_BKLT_EN ───┼─────────┼──────┼──► ┌──────────────────┐ │ │ │ │ | | | │ WLED DRIVER ├──── VREG_WLED ──────────┼──► VREG_WLED │ │ │ │ │ └───►│ ├──── WLED_SIN1 ─────────┼──► WLED_SIN1 │ │ │ │ │ │ ├──── WLED_SIN2 ─────────┼──► WLED_SIN2 │ │ │ │ │ │ ◄─PWM─┤◄───────────────────────┼◄── CABC │ │ │ │ │ └──────────────────┘ │ │ │
Quoted 8 lines
Perfect. So this is LED device, it provides backlight to the panel. Describe it correctly in the DT.
Think of somebody using PM8150's WLED with the panel.
For the panel bindings use only actual panel inputs. Think of it being used on a completely different platform, without the DC card.
The panel driver already handles this generically. In ili7807s_probe():
ret = drm_panel_of_backlight(&ctx->panel);
if (ret)
return ret;
if (!ctx->panel.backlight) {
ctx->panel.backlight = ili7807s_create_backlight(dsi);
if (IS_ERR(ctx->panel.backlight))
return dev_err_probe(dev, PTR_ERR(ctx->panel.backlight),
"failed to create backlight\n");
}If a platform provides a backlight phandle in the panel DT node (e.g., PM8150 WLED or any other backlight device), drm_panel_of_backlight() will use that external backlight device.
The DCS fallback is not created in that case.
For our Qualcomm display daughter card, the DCS fallback backlight is used.
So the panel driver is already platform-agnostic:
- On a platform with PM8150 WLED → provide backlight = <&pm8150_wled> in the panel DT node, and the panel driver uses it directly.
- On our daughter card → no backlight phandle, panel driver creates DCS backlight, GPIO91 is handled via board-level pinctrl.
Please let me know if there is another way to do this, or if I have misunderstood your comment.
Thanks,
Arpit
Quoted 12 lines
Quoted 11 lines
│ MDP_VSYNC_P ───┼─────────┼────────────────────────────────────────────────────────┼──► MDP_VSYNC_P │ │ │ │ │ │ │ │ │ DISP_RST ──────┼─────────┼────────────────────────────────────────────────────────┼──► DISP_RST │ │ │ │ │ │ │ │ │ Touch ─//──────┼─────────┼────────────────────────────────────────────────────────┼──► Touch signals │ │ │ signals │ │ └──────────────────────────────┘ │ └─────────────────┘ └───────────────────────────────────────────────────────────────────────────────────────────┘Thanks,
Arpit
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Hi Dmitry,
Just following up on this,
I've addressed all the review comments, Could you take another look when you have a chance ?
Happy to make further changes if needed.
Thanks for your time!.
It was great meeting you in person
Thanks,
Arpit
Quoted 188 lines · Arpit Saini
Hi Dmitry,
Quoted 129 lines · Dmitry Baryshkov
Quoted 119 lines · Arpit Saini
Hi Dmitry,
Quoted 86 lines · Dmitry Baryshkov
Quoted 37 lines · Arpit Saini
Hi Konrad,
Quoted 34 lines · Konrad Dybcio
Quoted 7 lines · Arpit Saini
Hi Dmitry,Konrad
Quoted 4 lines · Dmitry Baryshkov
Quoted 3 lines · Arpit Saini
Hi Konrad,
On 7/10/2026 2:31 PM, Arpit Saini wrote:
[...]
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
separate backlight driver. Since there is no driver to assert gpio91,
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
the backlight.
Handle it from the panel driver. Also please fix your editor to prevent it from inserting extra empty lines.
Earlier I handled it through panel driver, but this GPIO is specific to our Qualcomm Daughter Card, it is not going to the panel connector.
So is it an enable pin of a voltage regulator maybe? I'm having trouble understanding how this is all tied together, given the panel driver uses DCS commands to control the backlight status
Quoted 6 lines
Quoted 1 line
Konrad
No, it is not a voltage regulator enable.
GPIO91 (WLED_P1_EN) is the enable pin of the WLED driver IC on the Qualcomm daughter card. The WLED driver is a boost LED driver that powers the backlight LEDs.
The backlight control works in two parts:
_thatpowers the backlightLEDs_.So it is a power supply.
Quoted 28 lines
1. GPIO91 must be asserted to enable the WLED driver IC itself.
2. The panel's CABC output (a PWM signal) is connected to the WLED driver's PWM input and controls the actual brightness.
This CABC output is driven by the DCSset_display_brightnesscommand sent from the panel driver.So the DCS commands control brightness via the panel's PWM/CABC output, but the WLED driver IC needs to be enabled first via GPIO91.
Since GPIO91 is on the Qualcomm daughter card and not on the panel connector.
Dmitry suggested , it is not appropriate to model it in the panel binding.
The current approach of asserting it via pinctrl default state in the board DTS keeps it board-specific.If you have a better suggestion for modelling this, I'm happy to follow your guidance.
SoC (ITP Baseband Card)
├── GPIO91 (WLED_P1_EN) ─────────────────────────────────────┐ │ │ └── DSI ──────────────────────────────────────────────────┐ │ │ │ ┌──────────────────────────────────────────────────────────┼──┼──────────────────────────────────┐ │ Qualcomm Display Daughter Card │ │ │ │ │ │ │ │ ┌─────────────────────────────────┐ │ │ ┌──────────────────────┐ │ │ │ DLC DLC0697 Panel (ILI7807S) │◄────────────────────┘ │ │ WLED Driver IC │ │ │ │ │ | │ │ │ │ │ DCS set_display_brightness() │ └──►│ EN │ │Quoted 8 lines
│ │ │ │ │ │ │ │ │ ▼ │ │ │ │ │ │ CABC output ───────────────────┼───────────────────────────►│ PWM │ │ │ │ │ │ │ │ │ │ │ │ LED outputs ────────┼──► Backlight LEDs │ └─────────────────────────────────┘ └──────────────────────┘ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────┘Quoted 8 lines
This is a nice diagram, but it shows backlight LEDs as something completely separate. Usually they are a part of the panel. Are they not in this case?
I'd be more interested in a different representation of the information. What are the _actual_ panel inputs? Decribe those (and only those) in the panel bindings.
No , Backlight LEDs are part of the panel, I will correct the diagram for that, and regards panel bindings, I modeled only the actual panel inputs.
Hopefully, this diagram will clear this.
┌─────────────────┐ ┌───────────────────────────────────────────────────────────────────────────────────────────┐ │ SOC Card │ │ Display DC │ │ │ │ ┌──────────────────────────────┐ │ │ DSI0 │ │ │ DLC Display CONN │ │ │ ├─ DSICLK_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSICLK_P/M │ │ │ ├─ DSILN0_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN0_P/M │ │ │ ├─ DSILN1_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN1_P/M │ │ │ ├─ DSILN2_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN2_P/M │ │ │ └─ DSILN3_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN3_P/M │ │ │ │ │ │ │ │ │ 1.8V ──────────┼─────────┼──────────────────────────────────── vddi ──────────────┼──► vddi │ │ │ │ │ │ │ │ │ VSYS_PWR ──────┼─────────┼──────┐ │ │ │ │ │ │ │ │ │ │ │ LCD_BIAS_EN ───┼─────────┼──────┼──► ┌──────────────────┐ │ │ │ │ │ │ ├───►│ LCD BIAS DRIVER ├──── VREG_DISP_P (+5.5V)┼──► VREG_DISP_P (+5.5V) │ │Quoted 8 lines
│ │ │ │ └──────────────────┘──── VREG_DISP_N (-5.5V)─┼──► VREG_DISP_N (-5.5V) │ │ │ │ │ │ │ │ │ │ LCD_BKLT_EN ───┼─────────┼──────┼──► ┌──────────────────┐ │ │ │ │ | | | │ WLED DRIVER ├──── VREG_WLED ──────────┼──► VREG_WLED │ │ │ │ │ └───►│ ├──── WLED_SIN1 ─────────┼──► WLED_SIN1 │ │ │ │ │ │ ├──── WLED_SIN2 ─────────┼──► WLED_SIN2 │ │ │ │ │ │ ◄─PWM─┤◄───────────────────────┼◄── CABC │ │ │ │ │ └──────────────────┘ │ │ │Quoted 8 lines
Perfect. So this is LED device, it provides backlight to the panel. Describe it correctly in the DT.
Think of somebody using PM8150's WLED with the panel.
For the panel bindings use only actual panel inputs. Think of it being used on a completely different platform, without the DC card.
The panel driver already handles this generically. In
ili7807s_probe():ret = drm_panel_of_backlight(&ctx->panel); if (ret) return ret; if (!ctx->panel.backlight) { ctx->panel.backlight = ili7807s_create_backlight(dsi); if (IS_ERR(ctx->panel.backlight)) return dev_err_probe(dev, PTR_ERR(ctx->panel.backlight), "failed to create backlight\n"); }If a platform provides a
backlightphandle in the panel DT node (e.g., PM8150 WLED or any other backlight device),drm_panel_of_backlight()will use that external backlight device.The DCS fallback is not created in that case.
For our Qualcomm display daughter card, the DCS fallback backlight is used.
So the panel driver is already platform-agnostic:
- On a platform with PM8150 WLED → provide backlight = <
&pm8150_wled> in the panel DT node, and the panel driver uses it directly.- On our daughter card → no backlight phandle, panel driver creates DCS backlight, GPIO91 is handled via board-level pinctrl.
Please let me know if there is another way to do this, or if I have misunderstood your comment.
Thanks,
ArpitQuoted 12 lines
Quoted 11 lines
│ MDP_VSYNC_P ───┼─────────┼────────────────────────────────────────────────────────┼──► MDP_VSYNC_P │ │ │ │ │ │ │ │ │ DISP_RST ──────┼─────────┼────────────────────────────────────────────────────────┼──► DISP_RST │ │ │ │ │ │ │ │ │ Touch ─//──────┼─────────┼────────────────────────────────────────────────────────┼──► Touch signals │ │ │ signals │ │ └──────────────────────────────┘ │ └─────────────────┘ └───────────────────────────────────────────────────────────────────────────────────────────┘Thanks,
Arpit
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
In reply to Arpit SainiHi Dmitry,
Just following up on this,
I've addressed all the review comments, Could you take another look when you have a chance ?
Happy to make further changes if needed.
Thanks for your time!.
Thanks,
Arpit
Quoted 188 lines · Arpit Saini
Hi Dmitry,
Quoted 129 lines · Dmitry Baryshkov
Quoted 119 lines · Arpit Saini
Hi Dmitry,
Quoted 86 lines · Dmitry Baryshkov
Quoted 37 lines · Arpit Saini
Hi Konrad,
Quoted 34 lines · Konrad Dybcio
Quoted 7 lines · Arpit Saini
Hi Dmitry,Konrad
Quoted 4 lines · Dmitry Baryshkov
Quoted 3 lines · Arpit Saini
Hi Konrad,
On 7/10/2026 2:31 PM, Arpit Saini wrote:
[...]
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Normally the backlight EN pin is controlled by a backlight driver.
However, this panel uses MIPI DCS based backlight control with no
separate backlight driver. Since there is no driver to assert gpio91,
we control it via the panel's pinctrl default state..
So this is platform specific pin , we need this to enable/disable
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
the backlight.
Handle it from the panel driver. Also please fix your editor to prevent it from inserting extra empty lines.
Earlier I handled it through panel driver, but this GPIO is specific to our Qualcomm Daughter Card, it is not going to the panel connector.
So is it an enable pin of a voltage regulator maybe? I'm having trouble understanding how this is all tied together, given the panel driver uses DCS commands to control the backlight status
Quoted 6 lines
Quoted 1 line
Konrad
No, it is not a voltage regulator enable.
GPIO91 (WLED_P1_EN) is the enable pin of the WLED driver IC on the Qualcomm daughter card. The WLED driver is a boost LED driver that powers the backlight LEDs.
The backlight control works in two parts:
_thatpowers the backlightLEDs_.So it is a power supply.
Quoted 28 lines
1. GPIO91 must be asserted to enable the WLED driver IC itself.
2. The panel's CABC output (a PWM signal) is connected to the WLED driver's PWM input and controls the actual brightness.
This CABC output is driven by the DCSset_display_brightnesscommand sent from the panel driver.So the DCS commands control brightness via the panel's PWM/CABC output, but the WLED driver IC needs to be enabled first via GPIO91.
Since GPIO91 is on the Qualcomm daughter card and not on the panel connector.
Dmitry suggested , it is not appropriate to model it in the panel binding.
The current approach of asserting it via pinctrl default state in the board DTS keeps it board-specific.If you have a better suggestion for modelling this, I'm happy to follow your guidance.
SoC (ITP Baseband Card)
├── GPIO91 (WLED_P1_EN) ─────────────────────────────────────┐ │ │ └── DSI ──────────────────────────────────────────────────┐ │ │ │ ┌──────────────────────────────────────────────────────────┼──┼──────────────────────────────────┐ │ Qualcomm Display Daughter Card │ │ │ │ │ │ │ │ ┌─────────────────────────────────┐ │ │ ┌──────────────────────┐ │ │ │ DLC DLC0697 Panel (ILI7807S) │◄────────────────────┘ │ │ WLED Driver IC │ │ │ │ │ | │ │ │ │ │ DCS set_display_brightness() │ └──►│ EN │ │Quoted 8 lines
│ │ │ │ │ │ │ │ │ ▼ │ │ │ │ │ │ CABC output ───────────────────┼───────────────────────────►│ PWM │ │ │ │ │ │ │ │ │ │ │ │ LED outputs ────────┼──► Backlight LEDs │ └─────────────────────────────────┘ └──────────────────────┘ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────┘Quoted 8 lines
This is a nice diagram, but it shows backlight LEDs as something completely separate. Usually they are a part of the panel. Are they not in this case?
I'd be more interested in a different representation of the information. What are the _actual_ panel inputs? Decribe those (and only those) in the panel bindings.
No , Backlight LEDs are part of the panel, I will correct the diagram for that, and regards panel bindings, I modeled only the actual panel inputs.
Hopefully, this diagram will clear this.
┌─────────────────┐ ┌───────────────────────────────────────────────────────────────────────────────────────────┐ │ SOC Card │ │ Display DC │ │ │ │ ┌──────────────────────────────┐ │ │ DSI0 │ │ │ DLC Display CONN │ │ │ ├─ DSICLK_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSICLK_P/M │ │ │ ├─ DSILN0_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN0_P/M │ │ │ ├─ DSILN1_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN1_P/M │ │ │ ├─ DSILN2_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN2_P/M │ │ │ └─ DSILN3_P/M ─┼─────────┼────────────────────────────────────────────────────────┼──► DSILN3_P/M │ │ │ │ │ │ │ │ │ 1.8V ──────────┼─────────┼──────────────────────────────────── vddi ──────────────┼──► vddi │ │ │ │ │ │ │ │ │ VSYS_PWR ──────┼─────────┼──────┐ │ │ │ │ │ │ │ │ │ │ │ LCD_BIAS_EN ───┼─────────┼──────┼──► ┌──────────────────┐ │ │ │ │ │ │ ├───►│ LCD BIAS DRIVER ├──── VREG_DISP_P (+5.5V)┼──► VREG_DISP_P (+5.5V) │ │Quoted 8 lines
│ │ │ │ └──────────────────┘──── VREG_DISP_N (-5.5V)─┼──► VREG_DISP_N (-5.5V) │ │ │ │ │ │ │ │ │ │ LCD_BKLT_EN ───┼─────────┼──────┼──► ┌──────────────────┐ │ │ │ │ | | | │ WLED DRIVER ├──── VREG_WLED ──────────┼──► VREG_WLED │ │ │ │ │ └───►│ ├──── WLED_SIN1 ─────────┼──► WLED_SIN1 │ │ │ │ │ │ ├──── WLED_SIN2 ─────────┼──► WLED_SIN2 │ │ │ │ │ │ ◄─PWM─┤◄───────────────────────┼◄── CABC │ │ │ │ │ └──────────────────┘ │ │ │Quoted 8 lines
Perfect. So this is LED device, it provides backlight to the panel. Describe it correctly in the DT.
Think of somebody using PM8150's WLED with the panel.
For the panel bindings use only actual panel inputs. Think of it being used on a completely different platform, without the DC card.
The panel driver already handles this generically. In
ili7807s_probe():ret = drm_panel_of_backlight(&ctx->panel); if (ret) return ret; if (!ctx->panel.backlight) { ctx->panel.backlight = ili7807s_create_backlight(dsi); if (IS_ERR(ctx->panel.backlight)) return dev_err_probe(dev, PTR_ERR(ctx->panel.backlight), "failed to create backlight\n"); }If a platform provides a
backlightphandle in the panel DT node (e.g., PM8150 WLED or any other backlight device),drm_panel_of_backlight()will use that external backlight device.The DCS fallback is not created in that case.
For our Qualcomm display daughter card, the DCS fallback backlight is used.
So the panel driver is already platform-agnostic:
- On a platform with PM8150 WLED → provide backlight = <
&pm8150_wled> in the panel DT node, and the panel driver uses it directly.- On our daughter card → no backlight phandle, panel driver creates DCS backlight, GPIO91 is handled via board-level pinctrl.
Please let me know if there is another way to do this, or if I have misunderstood your comment.
Thanks,
ArpitQuoted 12 lines
Quoted 11 lines
│ MDP_VSYNC_P ───┼─────────┼────────────────────────────────────────────────────────┼──► MDP_VSYNC_P │ │ │ │ │ │ │ │ │ DISP_RST ──────┼─────────┼────────────────────────────────────────────────────────┼──► DISP_RST │ │ │ │ │ │ │ │ │ Touch ─//──────┼─────────┼────────────────────────────────────────────────────────┼──► Touch signals │ │ │ signals │ │ └──────────────────────────────┘ │ └─────────────────┘ └───────────────────────────────────────────────────────────────────────────────────────────┘Thanks,
Arpit
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
In reply to Nabige AalaQuoted 17 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Qualcomm Shikra MDSS display subsystem on the Shikra CQM EVK board and add the DLC0697 MIPI DSI display panel node. Pin
pm4125_l5to 1.232V with regulator-allow-set-load for DSI PHY PLL stability.Signed-off-by Arpit Saini <[email protected]>Signed-off-by Nabige Aala <[email protected]>--- arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 126 ++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+)arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +6
-0+ + panel_bl_en: panel-bl-en-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-disable;
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts &sdhc_1 { · line 214
Quoted 10 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +10
-0+ output-high; + }; + + panel_bl_en_suspend: panel-bl-en-suspend-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low; + };
Is it an actual GPIO going to the panel or is it a regulator on one of the daughter / whatever cards?
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Hi Dmitry,
Quoted 22 lines · Dmitry Baryshkov
Quoted 21 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Qualcomm Shikra MDSS display subsystem on the Shikra CQM EVK board and add the DLC0697 MIPI DSI display panel node. Pin
pm4125_l5to 1.232V with regulator-allow-set-load for DSI PHY PLL stability.Signed-off-by Arpit Saini <[email protected]>Signed-off-by Nabige Aala <[email protected]>--- arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 126 ++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+)arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +10
-0+ + panel_bl_en: panel-bl-en-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + panel_bl_en_suspend: panel-bl-en-suspend-state {
Quoted 8 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts &sdhc_1 { · line 214
Quoted 6 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +6
-0+ pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low; + };Is it an actual GPIO going to the panel or is it a regulator on one of the daughter / whatever cards?
This GPIO is part of the daughter card, it is not going to the panel.
Quoted 1 line
Re: [PATCH v2 2/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Quoted 34 lines · Arpit Saini
Hi Dmitry,
Quoted 22 lines · Dmitry Baryshkov
Quoted 21 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Qualcomm Shikra MDSS display subsystem on the Shikra CQM EVK board and add the DLC0697 MIPI DSI display panel node. Pin
pm4125_l5to 1.232V with regulator-allow-set-load for DSI PHY PLL stability.Signed-off-by Arpit Saini <[email protected]>Signed-off-by Nabige Aala <[email protected]>--- arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 126 ++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+)arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +10
-0+ + panel_bl_en: panel-bl-en-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + panel_bl_en_suspend: panel-bl-en-suspend-state {Quoted 8 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts &sdhc_1 { · line 214
Quoted 6 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +6
-0+ pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low; + };Is it an actual GPIO going to the panel or is it a regulator on one of the daughter / whatever cards?
Quoted 1 line
This GPIO is part of the daughter card, it is not going to the panel.
Then it's not related to the panel too.
Signature · 2 lines
With best wishes Dmitry
PATCH v2 3/4 arm64: defconfig: Enable ILI7807S DSI panel driver
In reply to Nabige AalaFrom: Arpit Saini <[email protected]>
Enable the ILI7807S 1080x1920 video-mode DSI panel driver as a module, used on the Qualcomm Shikra CQM EVK board and CQS EVK board.
--- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
@@ -1013,6 +1013,7 @@ CONFIG_DRM_PANEL_LVDS=m CONFIG_DRM_PANEL_HIMAX_HX8279=m CONFIG_DRM_PANEL_HIMAX_HX83112A=m CONFIG_DRM_PANEL_HIMAX_HX83112B=m +CONFIG_DRM_PANEL_ILITEK_ILI7807S=m CONFIG_DRM_PANEL_ILITEK_ILI9882T=m CONFIG_DRM_PANEL_KHADAS_TS050=m CONFIG_DRM_PANEL_MANTIX_MLAF057WE51=m
Signature · 1 line
2.34.1
PATCH v2 4/4 arm64: dts: qcom: shikra-cqs-evk: Enable display and add ili7807s panel
In reply to Nabige AalaFrom: Arpit Saini <[email protected]>
Enable the Qualcomm Shikra MDSS display subsystem on the Qualcomm Shikra CQS EVK board and add the DLC0697 MIPI DSI display panel node.
--- arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 126 ++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+)
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +126 -0
@@ -23,6 +23,39 @@ chosen { stdout-path = "serial0:115200n8"; }; + lcd_bias: regulator-lcd-bias { + compatible = "regulator-fixed"; + regulator-name = "lcd_bias"; + vin-supply = <&vph_pwr>; + gpio = <&tlmm 151 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&lcd_bias_en>; + pinctrl-names = "default"; + }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on; + }; + + vreg_disp_n: regulator-vreg-disp-n { + compatible = "regulator-fixed"; + regulator-name = "vreg_disp_n"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + vin-supply = <&lcd_bias>; + }; + + vreg_disp_p: regulator-vreg-disp-p { + compatible = "regulator-fixed"; + regulator-name = "vreg_disp_p"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + vin-supply = <&lcd_bias>; + }; + wcn3988-pmu { compatible = "qcom,wcn3988-pmu";
@@ -60,6 +93,53 @@ vreg_pmu_ch1: ldo4 { }; }; +&mdss { + status = "okay"; +}; + +&mdss_dsi0 { + vdda-supply = <&pm4125_l5>; + + status = "okay"; + + panel@0 { + compatible = "dlc,dlc0697", "ilitek,ili7807s"; + reg = <0>; + + reset-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; + + vddi-supply = <&pm4125_l15>; + avdd-supply = <&vreg_disp_p>; + avee-supply = <&vreg_disp_n>; + + pinctrl-0 = <&panel_rst_n &panel_te_pin &panel_bl_en>; + pinctrl-1 = <&panel_rst_n_suspend &panel_bl_en_suspend>; + pinctrl-names = "default", "sleep"; + + port { + panel_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; +}; + +&mdss_dsi0_out { + remote-endpoint = <&panel_in>; + data-lanes = <0 1 2 3>; +}; + +&mdss_dsi0_phy { + status = "okay"; +}; + +&pm4125_l5 { + /* DSI VDDA - must be at NOM voltage for PHY PLL lock */ + regulator-min-microvolt = <1232000>; + regulator-max-microvolt = <1232000>; + regulator-allow-set-load; +}; + &remoteproc_cdsp { firmware-name = "qcom/shikra/cdsp.mbn";
@@ -95,6 +175,52 @@ &sdhc_1 { status = "okay"; }; +&tlmm { + panel_rst_n: panel-rst-n-state { + pins = "gpio3"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; + + panel_rst_n_suspend: panel-rst-n-suspend-state { + pins = "gpio3"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + panel_te_pin: panel-te-pin-state { + pins = "gpio86"; + function = "mdp_vsync_p"; + drive-strength = <2>; + bias-pull-down; + }; + + panel_bl_en: panel-bl-en-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + panel_bl_en_suspend: panel-bl-en-suspend-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + + lcd_bias_en: lcd-bias-en-state { + pins = "gpio151"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; +}; + &uart8 { status = "okay";
Signature · 1 line
2.34.1
Re: [PATCH v2 4/4] arm64: dts: qcom: shikra-cqs-evk: Enable display and add ili7807s panel
Quoted 20 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Qualcomm Shikra MDSS display subsystem on the Qualcomm Shikra CQS EVK board and add the DLC0697 MIPI DSI display panel node.
Signed-off-by Arpit Saini <[email protected]>Signed-off-by Nabige Aala <[email protected]>--- arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 126 ++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+)arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +1
-0@@ -23,6 +23,39 @@ chosen { stdout-path = "serial0:115200n8"; }; + lcd_bias: regulator-lcd-bias {
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts chosen { · line 36
Quoted 10 lines
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +10
-0+ compatible = "regulator-fixed"; + regulator-name = "lcd_bias"; + vin-supply = <&vph_pwr>; + gpio = <&tlmm 151 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&lcd_bias_en>; + pinctrl-names = "default"; + }; + + vph_pwr: vph-pwr-regulator {
Same comments.
Also, please organize your patchset correctly, so some other work is not in the middle of DTS. Splitting your DTS changes suggests dependency.
Best regards,
Krzysztof
Re: [PATCH v2 4/4] arm64: dts: qcom: shikra-cqs-evk: Enable display and add ili7807s panel
Hi Krzysztof,
Quoted 20 lines · Krzysztof Kozlowski
Quoted 19 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Qualcomm Shikra MDSS display subsystem on the Qualcomm Shikra CQS EVK board and add the DLC0697 MIPI DSI display panel node.
Signed-off-by Arpit Saini <[email protected]>Signed-off-by Nabige Aala <[email protected]>--- arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 126 ++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+)arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +0
-0@@ -23,6 +23,39 @@ chosen { stdout-path = "serial0:115200n8"; };
Quoted 12 lines
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts chosen { · line 36
Quoted 11 lines
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +11
-0+ lcd_bias: regulator-lcd-bias { + compatible = "regulator-fixed"; + regulator-name = "lcd_bias"; + vin-supply = <&vph_pwr>; + gpio = <&tlmm 151 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&lcd_bias_en>; + pinctrl-names = "default"; + }; + + vph_pwr: vph-pwr-regulator {Same comments.
Ack
Quoted 2 lines
Also, please organize your patchset correctly, so some other work is not in the middle of DTS. Splitting your DTS changes suggests dependency.
Ack, I will add the [PATCH v2 3/4] arm64: defconfig: Enable ILI7807S DSI panel driver
after both the dts patches.
Are you referring for the same or something else?
Thanks,
Arpit
Quoted 2 lines
Best regards,
Krzysztof