arm64: qcom: dts: Add display support for Qualcomm Shikra
v4 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 v4:
- Rebased on top of next-20260915 tag.
- Dropped all prerequisite-message-id references since the dependent patches have been merged.
- Link to v3:
https://lore.kernel.org/all/[email protected]/
Changes in v3:
- Drop redundant vph_pwr fixed-regulator node (Krzysztof Kozlowski)
- Remove vin-supply = <&vph_pwr> from lcd_bias node (Krzysztof
Kozlowski).
- Add the new line between the last property and the following
subnodes in mdss block(Konrad).
- Link to v2: https://patch.msgid.link/[email protected]
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]
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]>
To: Abel Vesa <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
Arpit Saini (3):
arm64: dts: qcom: shikra-cqs-evk: Enable display and add ili7807s panel
arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
arm64: defconfig: Enable ILI7807S DSI panel driver
Nabige Aala (1):
arm64: dts: qcom: shikra: Add MDSS display subsystem
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 118 ++++++++++++++++ arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 118 ++++++++++++++++ arch/arm64/boot/dts/qcom/shikra.dtsi | 206 +++++++++++++++++++++++++++- arch/arm64/configs/defconfig | 1 + 4 files changed, 441 insertions(+), 2 deletions(-)
---
base-commit: e6e35979777d646fe3c7c94dca7dd32fb25d45f4
change-id: 20260626-shikra-dt-changes-8d127be951d5
Best regards,
Signature · 1 line
Nabige Aala <[email protected]>
PATCH v4 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 | 206 ++++++++++++++++++++++++++++++++++- 1 file changed, 204 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/shikra.dtsi +204 -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>
@@ -2281,6 +2282,207 @@ adreno_smmu: iommu@59a0000 { power-domains = <&gpucc GPU_CX_GDSC>; }; + 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>;
@@ -2288,8 +2490,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>; clock-names = "bi_tcxo", "bi_tcxo_ao", "gcc_disp_gpll0_clk_src",
Signature · 1 line
2.34.1
Re: [PATCH v4 1/4] arm64: dts: qcom: shikra: Add MDSS display subsystem
Quoted 8 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.
Quoted 9 lines
The dispcc clock inputs for the DSI byte and pixel PLLs are wired from
mdss_dsi0_phy.Reviewed-by Konrad Dybcio <[email protected]>Signed-off-by Nabige Aala <[email protected]>--- arch/arm64/boot/dts/qcom/shikra.dtsi | 206 ++++++++++++++++++++++++++++++++++- 1 file changed, 204 insertions(+), 2 deletions(-)
Signature · 2 lines
With best wishes Dmitry
PATCH v4 2/4 arm64: dts: qcom: shikra-cqs-evk: Enable display and add ili7807s panel
In reply to Nabige AalaFrom: Arpit Saini <[email protected]>
Enable the 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 | 118 ++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+)
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +118 -0
@@ -21,6 +21,78 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + lcd_bias: regulator-lcd-bias { + compatible = "regulator-fixed"; + regulator-name = "lcd_bias"; + gpio = <&tlmm 151 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&lcd_bias_en>; + pinctrl-names = "default"; + }; + + 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>; + }; +}; + +&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 {
@@ -57,3 +129,49 @@ &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; + }; +};
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH v4 2/4] arm64: dts: qcom: shikra-cqs-evk: Enable display and add ili7807s panel
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] dts: qcom: backlight left on during screen blanking due to static pinctrl --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dts: qcom: backlight left on during screen blanking due to static pinctrl --
commit 720635a18d3694cb65f6d9de1eaf9550b30b64e1
Author: Arpit Saini <[email protected]>
arm64: dts: qcom: shikra-cqs-evk: Enable display and add ili7807s panel
Enable the Shikra MDSS display subsystem on the Qualcomm Shikra CQS EVK board and add the DLC0697 MIPI DSI display panel node.
Quoted 4 lines
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +0
-0
[ ... ]
Quoted 8 lines
+&mdss_dsi0 {
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +7
-0+ vdda-supply = <&pm4125_l5>; + + status = "okay"; + + panel@0 { + compatible = "dlc,dlc0697", "ilitek,ili7807s"; + reg = <0>;
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts aliases { · line 72
Quoted 10 lines
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +10
-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";
[Severity: Medium]
Will this configuration leave the backlight on when the screen is blanked?
Since the default pinctrl state is applied unconditionally during device probe, the backlight enable pin is statically driven high by the panel_bl_en node.
The DRM framework does not transition a device's pinctrl to the sleep state when a display is blanked at runtime, such as during a screen timeout. It typically only engages sleep states during a full system suspend.
This means when the screen is logically blanked, the backlight will remain actively driven high, even though the panel's data pipeline may be cut.
Could the backlight enable be modeled as a dynamic gpio-backlight device node and linked to the panel via a backlight property, or handled via a dedicated GPIO property in the panel driver, instead of bypassing DRM runtime power management with static pinctrl?
[ ... ]
Quoted 1 line
+&tlmm {
[ ... ]
Quoted 15 lines
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +15
-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 { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low; + };
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Re: [PATCH v4 2/4] arm64: dts: qcom: shikra-cqs-evk: Enable display and add ili7807s panel
In reply to Nabige AalaQuoted 19 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the 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 | 118 ++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+)arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +8
-0+ +&mdss_dsi0 { + vdda-supply = <&pm4125_l5>; + + status = "okay"; + + panel@0 { + compatible = "dlc,dlc0697", "ilitek,ili7807s";
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts aliases { · line 71
Quoted 10 lines
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +10
-0+ 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>;
Same question, panel_bl_en should be a regulator.
Quoted 3 lines
(quoted diff) +2
-0+ pinctrl-names = "default", "sleep"; +
Signature · 2 lines
With best wishes Dmitry
PATCH v4 3/4 arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
In reply to Nabige AalaFrom: Arpit Saini <[email protected]>
Enable the Shikra MDSS display subsystem on the Qualcomm 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 | 118 ++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+)
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +118 -0
@@ -21,6 +21,78 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + lcd_bias: regulator-lcd-bias { + compatible = "regulator-fixed"; + regulator-name = "lcd_bias"; + gpio = <&tlmm 151 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 = <&lcd_bias_en>; + pinctrl-names = "default"; + }; + + 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>; + }; +}; + +&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 {
@@ -57,3 +129,49 @@ &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; + }; +};
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH v4 3/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] dts: backlight enable GPIO permanently asserted via pinctrl --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dts: backlight enable GPIO permanently asserted via pinctrl
--
commit 00c4e0f47a97a648f49ab088ecacedb0603403a5
Author: Arpit Saini <[email protected]>
arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
This commit enables the Shikra MDSS display subsystem on the Qualcomm Shikra CQM EVK board and adds the DLC0697 MIPI DSI display panel node. It also pins pm4125_l5 to 1.232V for DSI PHY PLL stability.
Quoted 4 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +0
-0
[ ... ]
Quoted 6 lines
+&mdss_dsi0 {
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +5
-0+ vdda-supply = <&pm4125_l5>; + + status = "okay"; + + panel@0 {
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts aliases { · line 70
Quoted 10 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +10
-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>;
[Severity: Medium]
Does mapping panel_bl_en in the default pinctrl state bypass the display power management sequence?
The device core automatically applies this default state before calling the panel's probe function. Since the panel driver (panel-ilitek-ili7807s) does not natively acquire this GPIO nor implement runtime power management (PM), the driver core will not switch to the sleep pinctrl state during DRM unprepare (blanking).
Quoted 10 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +10
-0+ pinctrl-1 = <&panel_rst_n_suspend &panel_bl_en_suspend>; + pinctrl-names = "default", "sleep"; + + port { + panel_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; +};
[ ... ]
Quoted 1 line
+&tlmm {
[ ... ]
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts &sdhc_1 { · line 161
Quoted 7 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +7
-0+ panel_bl_en: panel-bl-en-state { + pins = "gpio91"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-high; + };
[Severity: Medium]
Will this output-high configuration cause the backlight to remain permanently powered on while the system is awake?
Because the panel driver does not toggle this via runtime PM, this could result in a glowing black screen when the display is conceptually blanked (DPMS off), wasting battery power. Could it also turn on the backlight too early during boot before the panel driver has cleared the screen, causing visual garbage?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
Re: [PATCH v4 3/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
In reply to Nabige AalaQuoted 20 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Shikra MDSS display subsystem on the Qualcomm 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 | 118 ++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+)arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +7
-0+ +&mdss_dsi0 { + vdda-supply = <&pm4125_l5>; + + status = "okay"; + + panel@0 {
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts aliases { · line 70
Quoted 10 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +10
-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>;
As far as I remember, your panel_bl_en enables an external regulator. Why is it not described in this way?
Quoted 11 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +11
-0+ pinctrl-1 = <&panel_rst_n_suspend &panel_bl_en_suspend>; + pinctrl-names = "default", "sleep"; + + port { + panel_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; +}; +
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v4 3/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Hi Dmitry,
Quoted 26 lines · Dmitry Baryshkov
Quoted 25 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Shikra MDSS display subsystem on the Qualcomm 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 | 118 ++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+)arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +12
-0+ +&mdss_dsi0 { + vdda-supply = <&pm4125_l5>; + + status = "okay"; + + panel@0 { + compatible = "dlc,dlc0697", "ilitek,ili7807s"; + reg = <0>; + + reset-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; +
Quoted 9 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts aliases { · line 70
Quoted 5 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +5
-0+ 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>;As far as I remember, your
panel_bl_enenables an external regulator. Why is it not described in this way?
panel_bl_en is a Qcom's daughter card specific platform signal , it does not feed into the panel.
It is a board-level GPIO on the CQM EVK daughter card used purely for platform power sequencing.
Adding panel_bl_en as an external regulator would be misleading and incorrect from a hardware perspective, as it is not directly going into the panel.
for the CQM EVK, the backlight is MIPI DCS driven and panel_bl_en is a platform-specific sequencing pin, making pinctrl states the appropriate binding here.
Could you please take a look at earlier discussion we had and let us know your thoughts ?
https://lore.kernel.org/all/[email protected]/
Thanks,
Arpit
Re: [PATCH v4 3/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Quoted 39 lines · Arpit Saini
Hi Dmitry,
Quoted 26 lines · Dmitry Baryshkov
Quoted 25 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Shikra MDSS display subsystem on the Qualcomm 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 | 118 ++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+)arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +12
-0+ +&mdss_dsi0 { + vdda-supply = <&pm4125_l5>; + + status = "okay"; + + panel@0 { + compatible = "dlc,dlc0697", "ilitek,ili7807s"; + reg = <0>; + + reset-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; +Quoted 9 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts aliases { · line 70
Quoted 5 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +5
-0+ 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>;As far as I remember, your
panel_bl_enenables an external regulator. Why is it not described in this way?
Quoted 7 lines
panel_bl_enis a Qcom's daughter card specific platform signal , it does not feed into the panel.It is a board-level GPIO on the CQM EVK daughter card used purely for platform power sequencing.
Adding
panel_bl_enas an external regulator would be misleading and incorrect from a hardware perspective, as it is not directly going into the panel.
Well... Aren't VREG_WLED and WLED_SIN1 / SIN2 directly going to the panel?
Quoted 8 lines
for the CQM EVK, the backlight is MIPI DCS driven and
panel_bl_enis a platform-specific sequencing pin, making pinctrl states the appropriate binding here.Could you please take a look at earlier discussion we had and let us know your thoughts ?
Exactly. The diagram there shows that GPIO 91 (panel_bl_en) is an enable signal for the WLED regulator, whose output is then fed to the panel.
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v4 3/4] arm64: dts: qcom: shikra-cqm-evk: Enable display and add ili7807s panel
Quoted 56 lines · Dmitry Baryshkov
Quoted 39 lines · Arpit Saini
Hi Dmitry,
Quoted 26 lines · Dmitry Baryshkov
Quoted 25 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the Shikra MDSS display subsystem on the Qualcomm 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 | 118 ++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+)arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +12
-0+ +&mdss_dsi0 { + vdda-supply = <&pm4125_l5>; + + status = "okay"; + + panel@0 { + compatible = "dlc,dlc0697", "ilitek,ili7807s"; + reg = <0>; + + reset-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; +Quoted 9 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts aliases { · line 70
Quoted 5 lines
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +5
-0+ 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>;As far as I remember, your
panel_bl_enenables an external regulator. Why is it not described in this way?Quoted 7 lines
panel_bl_enis a Qcom's daughter card specific platform signal , it does not feed into the panel.It is a board-level GPIO on the CQM EVK daughter card used purely for platform power sequencing.
Adding
panel_bl_enas an external regulator would be misleading and incorrect from a hardware perspective, as it is not directly going into the panel.Well... Aren't
VREG_WLEDandWLED_SIN1/ SIN2 directly going to the panel?Quoted 5 lines
for the CQM EVK, the backlight is MIPI DCS driven and
panel_bl_enis a platform-specific sequencing pin, making pinctrl states the appropriate binding here.
Quoted 7 lines
Quoted 3 lines
Could you please take a look at earlier discussion we had and let us know your thoughts ?
Exactly. The diagram there shows that GPIO 91 (
panel_bl_en) is an enable signal for the WLED regulator, whose output is then fed to the panel.
Hi Dmitry
Based on your feedback, I understand that the daughter-card WLED circuit should be modelled as a regulator-controlled device.
I am planning the following implementation:
vreg_wled: regulator-wled {
compatible = "regulator-fixed";
regulator-name = "vreg_wled";
gpio = <&tlmm 91 GPIO_ACTIVE_HIGH>;
enable-active-high;
};The panel node will reference it as:
wled-supply = <&vreg_wled>;
In the panel driver, I will add wled to the existing bulk supply list:
static const struct regulator_bulk_data ili7807s_supplies[] = {
{ .supply = "vddi" },
{ .supply = "avdd" },
{ .supply = "avee" },
{ .supply = "wled" },
};The existing regulator_bulk_enable() and regulator_bulk_disable() calls in prepare() and unprepare() will then control GPIO 91 through the fixed regulator.
Brightness will continue to be controlled through the panel's DCS backlight implementation:
wled-supply controls the WLED driver's enable signal.
The DCS backlight controls brightness through the panel CABC/PWM output. panel_bl_en and panel_bl_suspend pinctrl states will be removed.
Could you please confirm whether this modelling and driver sequence match your expectations?
Thanks,
Arpit
PATCH v4 4/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 Shikra CQM EVK board and CQS EVK board.
--- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
@@ -1021,6 +1021,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_ILI9806E_SPI=m CONFIG_DRM_PANEL_ILITEK_ILI9882T=m CONFIG_DRM_PANEL_KHADAS_TS050=m
Signature · 1 line
2.34.1
Re: [PATCH v4 4/4] arm64: defconfig: Enable ILI7807S DSI panel driver
Quoted 11 lines · Nabige Aala
From: Arpit Saini <[email protected]>
Enable the ILI7807S 1080x1920 video-mode DSI panel driver as a module, used on the Shikra CQM EVK board and CQS EVK board.
Signed-off-by Arpit Saini <[email protected]>Signed-off-by Nabige Aala <[email protected]>--- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+)
Signature · 2 lines
With best wishes Dmitry