* [PATCH 0/2] add display and panel on qcm6490 idp
@ 2024-01-16 9:49 Ritesh Kumar
2024-01-16 9:49 ` [PATCH 1/2] arm64: defconfig: enable Novatek NT36672E DSI Panel driver Ritesh Kumar
2024-01-16 9:49 ` [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel Ritesh Kumar
0 siblings, 2 replies; 16+ messages in thread
From: Ritesh Kumar @ 2024-01-16 9:49 UTC (permalink / raw)
To: andersson, konrad.dybcio, robh+dt, krzysztof.kozlowski+dt,
conor+dt, catalin.marinas, will, quic_bjorande, geert+renesas,
arnd, neil.armstrong, dmitry.baryshkov, nfraprado, m.szyprowski
Cc: Ritesh Kumar, linux-arm-msm, devicetree, linux-kernel,
linux-arm-kernel, quic_abhinavk, quic_rajeevny, quic_vproddut
Build the Novatek NT36672E DSI Panel driver as module and enable
display subsystem on Qualcomm qcm6490 idp board.
---
This series depends on following series:
1. https://lore.kernel.org/all/20231222073135.2512313-1-quic_uchheda@quicinc.com/
(arm64: dts: qcom: qcm6490-idp: Add support for PM7250B PMIC)
2. https://lore.kernel.org/all/20240108095902.22725-1-quic_riteshk@quicinc.com/
(Add support for Novatek NT36672E LCD DSI panel)
3. https://lore.kernel.org/all/20240116071803.5264-1-quic_riteshk@quicinc.com/t/#u
(drm/panel: novatek-nt36672e: Include <linux/of.h>)
---
Ritesh Kumar (2):
arm64: defconfig: enable Novatek NT36672E DSI Panel driver
arm64: dts: qcom: qcm6490-idp: add display and panel
arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 100 +++++++++++++++++++++++
arch/arm64/configs/defconfig | 1 +
2 files changed, 101 insertions(+)
--
2.17.1
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 1/2] arm64: defconfig: enable Novatek NT36672E DSI Panel driver
2024-01-16 9:49 [PATCH 0/2] add display and panel on qcm6490 idp Ritesh Kumar
@ 2024-01-16 9:49 ` Ritesh Kumar
2024-01-16 9:59 ` Dmitry Baryshkov
2024-01-16 9:49 ` [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel Ritesh Kumar
1 sibling, 1 reply; 16+ messages in thread
From: Ritesh Kumar @ 2024-01-16 9:49 UTC (permalink / raw)
To: andersson, konrad.dybcio, robh+dt, krzysztof.kozlowski+dt,
conor+dt, catalin.marinas, will, quic_bjorande, geert+renesas,
arnd, neil.armstrong, dmitry.baryshkov, nfraprado, m.szyprowski
Cc: Ritesh Kumar, linux-arm-msm, devicetree, linux-kernel,
linux-arm-kernel, quic_abhinavk, quic_rajeevny, quic_vproddut
Build the Novatek NT36672E DSI Panel driver as module.
Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 361c31b5d064..028d80be95f6 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -859,6 +859,7 @@ CONFIG_DRM_PANEL_LVDS=m
CONFIG_DRM_PANEL_SIMPLE=m
CONFIG_DRM_PANEL_EDP=m
CONFIG_DRM_PANEL_ILITEK_ILI9882T=m
+CONFIG_DRM_PANEL_NOVATEK_NT36672E=m
CONFIG_DRM_PANEL_MANTIX_MLAF057WE51=m
CONFIG_DRM_PANEL_RAYDIUM_RM67191=m
CONFIG_DRM_PANEL_SITRONIX_ST7703=m
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel
2024-01-16 9:49 [PATCH 0/2] add display and panel on qcm6490 idp Ritesh Kumar
2024-01-16 9:49 ` [PATCH 1/2] arm64: defconfig: enable Novatek NT36672E DSI Panel driver Ritesh Kumar
@ 2024-01-16 9:49 ` Ritesh Kumar
2024-01-16 9:58 ` Dmitry Baryshkov
2024-01-16 12:06 ` Konrad Dybcio
1 sibling, 2 replies; 16+ messages in thread
From: Ritesh Kumar @ 2024-01-16 9:49 UTC (permalink / raw)
To: andersson, konrad.dybcio, robh+dt, krzysztof.kozlowski+dt,
conor+dt, catalin.marinas, will, quic_bjorande, geert+renesas,
arnd, neil.armstrong, dmitry.baryshkov, nfraprado, m.szyprowski
Cc: Ritesh Kumar, linux-arm-msm, devicetree, linux-kernel,
linux-arm-kernel, quic_abhinavk, quic_rajeevny, quic_vproddut
Enable Display Subsystem with Novatek NT36672E Panel
on qcm6490 idp platform.
Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
---
arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 100 +++++++++++++++++++++++
1 file changed, 100 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
index 2a6e4907c5ee..efa5252130a1 100644
--- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
+++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
@@ -9,6 +9,7 @@
#define PM7250B_SID 8
#define PM7250B_SID1 9
+#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include "sc7280.dtsi"
#include "pm7250b.dtsi"
@@ -38,6 +39,25 @@
stdout-path = "serial0:115200n8";
};
+ lcd_disp_bias: lcd-disp-bias-regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "lcd_disp_bias";
+ regulator-min-microvolt = <5500000>;
+ regulator-max-microvolt = <5500000>;
+ gpio = <&pm7250b_gpios 2 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ pinctrl-names = "default";
+ pinctrl-0 = <&lcd_disp_bias_en>;
+ };
+
+ pm8350c_pwm_backlight: backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pm8350c_pwm 3 65535>;
+ enable-gpios = <&pm8350c_gpios 7 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pmic_lcd_bl_en>;
+ };
+
reserved-memory {
xbl_mem: xbl@80700000 {
reg = <0x0 0x80700000 0x0 0x100000>;
@@ -420,6 +440,86 @@
};
};
+&gpu {
+ status = "disabled";
+};
+
+&mdss {
+ status = "okay";
+};
+
+&mdss_dsi {
+ vdda-supply = <&vreg_l6b_1p2>;
+ status = "okay";
+
+ panel@0 {
+ compatible = "novatek,nt36672e";
+ reg = <0>;
+
+ reset-gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
+
+ vddi-supply = <&vreg_l8c_1p62>;
+ avdd-supply = <&lcd_disp_bias>;
+ avee-supply = <&lcd_disp_bias>;
+
+ backlight = <&pm8350c_pwm_backlight>;
+
+ port {
+ panel0_in: endpoint {
+ remote-endpoint = <&mdss_dsi0_out>;
+ };
+ };
+ };
+};
+
+&mdss_dsi0_out {
+ remote-endpoint = <&panel0_in>;
+ data-lanes = <0 1 2 3>;
+};
+
+&mdss_dsi_phy {
+ vdds-supply = <&vreg_l10c_0p88>;
+ status = "okay";
+};
+
+&pm7250b_gpios {
+ lcd_disp_bias_en: lcd-disp-bias-en-state {
+ pins = "gpio2";
+ function = "func1";
+ bias-disable;
+ qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
+ input-disable;
+ output-enable;
+ power-source = <0>;
+ };
+};
+
+&pm8350c_gpios {
+ pmic_lcd_bl_en: pmic-lcd-bl-en-state {
+ pins = "gpio7";
+ function = "normal";
+ bias-disable;
+ qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
+ output-low;
+ power-source = <0>;
+ };
+
+ pmic_lcd_bl_pwm: pmic-lcd-bl-pwm-state {
+ pins = "gpio8";
+ function = "func1";
+ bias-disable;
+ qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
+ output-low;
+ power-source = <0>;
+ };
+};
+
+&pm8350c_pwm {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pmic_lcd_bl_pwm>;
+ status = "okay";
+};
+
&qupv3_id_0 {
status = "okay";
};
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel
2024-01-16 9:49 ` [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel Ritesh Kumar
@ 2024-01-16 9:58 ` Dmitry Baryshkov
2024-01-23 12:43 ` Ritesh Kumar
2024-01-16 12:06 ` Konrad Dybcio
1 sibling, 1 reply; 16+ messages in thread
From: Dmitry Baryshkov @ 2024-01-16 9:58 UTC (permalink / raw)
To: Ritesh Kumar
Cc: andersson, konrad.dybcio, robh+dt, krzysztof.kozlowski+dt,
conor+dt, catalin.marinas, will, quic_bjorande, geert+renesas,
arnd, neil.armstrong, nfraprado, m.szyprowski, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, quic_abhinavk,
quic_rajeevny, quic_vproddut
On Tue, 16 Jan 2024 at 11:49, Ritesh Kumar <quic_riteshk@quicinc.com> wrote:
>
> Enable Display Subsystem with Novatek NT36672E Panel
> on qcm6490 idp platform.
Is this panel always present on the IDP board or is it an optional
addon, like the panels for all the RBn boards?
>
> Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 100 +++++++++++++++++++++++
> 1 file changed, 100 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> index 2a6e4907c5ee..efa5252130a1 100644
> --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> @@ -9,6 +9,7 @@
> #define PM7250B_SID 8
> #define PM7250B_SID1 9
>
> +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
> #include "sc7280.dtsi"
> #include "pm7250b.dtsi"
> @@ -38,6 +39,25 @@
> stdout-path = "serial0:115200n8";
> };
>
> + lcd_disp_bias: lcd-disp-bias-regulator {
> + compatible = "regulator-fixed";
> + regulator-name = "lcd_disp_bias";
> + regulator-min-microvolt = <5500000>;
> + regulator-max-microvolt = <5500000>;
> + gpio = <&pm7250b_gpios 2 GPIO_ACTIVE_HIGH>;
> + enable-active-high;
> + pinctrl-names = "default";
> + pinctrl-0 = <&lcd_disp_bias_en>;
> + };
> +
> + pm8350c_pwm_backlight: backlight {
> + compatible = "pwm-backlight";
> + pwms = <&pm8350c_pwm 3 65535>;
> + enable-gpios = <&pm8350c_gpios 7 GPIO_ACTIVE_HIGH>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pmic_lcd_bl_en>;
> + };
> +
> reserved-memory {
> xbl_mem: xbl@80700000 {
> reg = <0x0 0x80700000 0x0 0x100000>;
> @@ -420,6 +440,86 @@
> };
> };
>
> +&gpu {
> + status = "disabled";
> +};
> +
> +&mdss {
> + status = "okay";
> +};
> +
> +&mdss_dsi {
> + vdda-supply = <&vreg_l6b_1p2>;
> + status = "okay";
> +
> + panel@0 {
> + compatible = "novatek,nt36672e";
> + reg = <0>;
> +
> + reset-gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
> +
> + vddi-supply = <&vreg_l8c_1p62>;
> + avdd-supply = <&lcd_disp_bias>;
> + avee-supply = <&lcd_disp_bias>;
> +
> + backlight = <&pm8350c_pwm_backlight>;
> +
> + port {
> + panel0_in: endpoint {
> + remote-endpoint = <&mdss_dsi0_out>;
> + };
> + };
> + };
> +};
> +
> +&mdss_dsi0_out {
> + remote-endpoint = <&panel0_in>;
> + data-lanes = <0 1 2 3>;
> +};
> +
> +&mdss_dsi_phy {
> + vdds-supply = <&vreg_l10c_0p88>;
> + status = "okay";
> +};
> +
> +&pm7250b_gpios {
> + lcd_disp_bias_en: lcd-disp-bias-en-state {
> + pins = "gpio2";
> + function = "func1";
> + bias-disable;
> + qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
> + input-disable;
> + output-enable;
> + power-source = <0>;
> + };
> +};
> +
> +&pm8350c_gpios {
> + pmic_lcd_bl_en: pmic-lcd-bl-en-state {
> + pins = "gpio7";
> + function = "normal";
> + bias-disable;
> + qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
> + output-low;
> + power-source = <0>;
> + };
> +
> + pmic_lcd_bl_pwm: pmic-lcd-bl-pwm-state {
> + pins = "gpio8";
> + function = "func1";
> + bias-disable;
> + qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
> + output-low;
> + power-source = <0>;
> + };
> +};
> +
> +&pm8350c_pwm {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pmic_lcd_bl_pwm>;
> + status = "okay";
> +};
> +
> &qupv3_id_0 {
> status = "okay";
> };
> --
> 2.17.1
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/2] arm64: defconfig: enable Novatek NT36672E DSI Panel driver
2024-01-16 9:49 ` [PATCH 1/2] arm64: defconfig: enable Novatek NT36672E DSI Panel driver Ritesh Kumar
@ 2024-01-16 9:59 ` Dmitry Baryshkov
2024-01-16 10:25 ` Ritesh Kumar (QUIC)
0 siblings, 1 reply; 16+ messages in thread
From: Dmitry Baryshkov @ 2024-01-16 9:59 UTC (permalink / raw)
To: Ritesh Kumar
Cc: andersson, konrad.dybcio, robh+dt, krzysztof.kozlowski+dt,
conor+dt, catalin.marinas, will, quic_bjorande, geert+renesas,
arnd, neil.armstrong, nfraprado, m.szyprowski, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, quic_abhinavk,
quic_rajeevny, quic_vproddut
On Tue, 16 Jan 2024 at 11:49, Ritesh Kumar <quic_riteshk@quicinc.com> wrote:
>
> Build the Novatek NT36672E DSI Panel driver as module.
... because it is used on ....
>
> Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
> ---
> arch/arm64/configs/defconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index 361c31b5d064..028d80be95f6 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -859,6 +859,7 @@ CONFIG_DRM_PANEL_LVDS=m
> CONFIG_DRM_PANEL_SIMPLE=m
> CONFIG_DRM_PANEL_EDP=m
> CONFIG_DRM_PANEL_ILITEK_ILI9882T=m
> +CONFIG_DRM_PANEL_NOVATEK_NT36672E=m
> CONFIG_DRM_PANEL_MANTIX_MLAF057WE51=m
> CONFIG_DRM_PANEL_RAYDIUM_RM67191=m
> CONFIG_DRM_PANEL_SITRONIX_ST7703=m
> --
> 2.17.1
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* RE: [PATCH 1/2] arm64: defconfig: enable Novatek NT36672E DSI Panel driver
2024-01-16 9:59 ` Dmitry Baryshkov
@ 2024-01-16 10:25 ` Ritesh Kumar (QUIC)
2024-01-16 10:44 ` Dmitry Baryshkov
0 siblings, 1 reply; 16+ messages in thread
From: Ritesh Kumar (QUIC) @ 2024-01-16 10:25 UTC (permalink / raw)
To: dmitry.baryshkov@linaro.org
Cc: andersson@kernel.org, konrad.dybcio@linaro.org,
robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
conor+dt@kernel.org, catalin.marinas@arm.com, will@kernel.org,
Bjorn Andersson (QUIC), geert+renesas@glider.be, arnd@arndb.de,
neil.armstrong@linaro.org, nfraprado@collabora.com,
m.szyprowski@samsung.com, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, Abhinav Kumar (QUIC),
Rajeev Nandan (QUIC), Vishnuvardhan Prodduturi (QUIC)
>-----Original Message-----
>From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>Sent: Tuesday, January 16, 2024 3:30 PM
>To: Ritesh Kumar (QUIC) <quic_riteshk@quicinc.com>
>Cc: andersson@kernel.org; konrad.dybcio@linaro.org; robh+dt@kernel.org;
>krzysztof.kozlowski+dt@linaro.org; conor+dt@kernel.org;
>catalin.marinas@arm.com; will@kernel.org; Bjorn Andersson (QUIC)
><quic_bjorande@quicinc.com>; geert+renesas@glider.be; arnd@arndb.de;
>neil.armstrong@linaro.org; nfraprado@collabora.com;
>m.szyprowski@samsung.com; linux-arm-msm@vger.kernel.org;
>devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; linux-arm-
>kernel@lists.infradead.org; Abhinav Kumar (QUIC)
><quic_abhinavk@quicinc.com>; Rajeev Nandan (QUIC)
><quic_rajeevny@quicinc.com>; Vishnuvardhan Prodduturi (QUIC)
><quic_vproddut@quicinc.com>
>Subject: Re: [PATCH 1/2] arm64: defconfig: enable Novatek NT36672E DSI
>Panel driver
>
>On Tue, 16 Jan 2024 at 11:49, Ritesh Kumar <quic_riteshk@quicinc.com>
>wrote:
>>
>> Build the Novatek NT36672E DSI Panel driver as module.
>
>... because it is used on ....
>
Thanks, will update in next version.
>>
>> Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
>> ---
>> arch/arm64/configs/defconfig | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm64/configs/defconfig
>> b/arch/arm64/configs/defconfig index 361c31b5d064..028d80be95f6
>100644
>> --- a/arch/arm64/configs/defconfig
>> +++ b/arch/arm64/configs/defconfig
>> @@ -859,6 +859,7 @@ CONFIG_DRM_PANEL_LVDS=m
>CONFIG_DRM_PANEL_SIMPLE=m
>> CONFIG_DRM_PANEL_EDP=m CONFIG_DRM_PANEL_ILITEK_ILI9882T=m
>> +CONFIG_DRM_PANEL_NOVATEK_NT36672E=m
>> CONFIG_DRM_PANEL_MANTIX_MLAF057WE51=m
>> CONFIG_DRM_PANEL_RAYDIUM_RM67191=m
>> CONFIG_DRM_PANEL_SITRONIX_ST7703=m
>> --
>> 2.17.1
>>
Thanks,
Ritesh
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/2] arm64: defconfig: enable Novatek NT36672E DSI Panel driver
2024-01-16 10:25 ` Ritesh Kumar (QUIC)
@ 2024-01-16 10:44 ` Dmitry Baryshkov
0 siblings, 0 replies; 16+ messages in thread
From: Dmitry Baryshkov @ 2024-01-16 10:44 UTC (permalink / raw)
To: Ritesh Kumar (QUIC)
Cc: andersson@kernel.org, konrad.dybcio@linaro.org,
robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
conor+dt@kernel.org, catalin.marinas@arm.com, will@kernel.org,
Bjorn Andersson (QUIC), geert+renesas@glider.be, arnd@arndb.de,
neil.armstrong@linaro.org, nfraprado@collabora.com,
m.szyprowski@samsung.com, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, Abhinav Kumar (QUIC),
Rajeev Nandan (QUIC), Vishnuvardhan Prodduturi (QUIC)
On Tue, 16 Jan 2024 at 12:25, Ritesh Kumar (QUIC)
<quic_riteshk@quicinc.com> wrote:
>
>
> >-----Original Message-----
> >From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> >Sent: Tuesday, January 16, 2024 3:30 PM
> >To: Ritesh Kumar (QUIC) <quic_riteshk@quicinc.com>
> >Cc: andersson@kernel.org; konrad.dybcio@linaro.org; robh+dt@kernel.org;
> >krzysztof.kozlowski+dt@linaro.org; conor+dt@kernel.org;
> >catalin.marinas@arm.com; will@kernel.org; Bjorn Andersson (QUIC)
> ><quic_bjorande@quicinc.com>; geert+renesas@glider.be; arnd@arndb.de;
> >neil.armstrong@linaro.org; nfraprado@collabora.com;
> >m.szyprowski@samsung.com; linux-arm-msm@vger.kernel.org;
> >devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; linux-arm-
> >kernel@lists.infradead.org; Abhinav Kumar (QUIC)
> ><quic_abhinavk@quicinc.com>; Rajeev Nandan (QUIC)
> ><quic_rajeevny@quicinc.com>; Vishnuvardhan Prodduturi (QUIC)
> ><quic_vproddut@quicinc.com>
> >Subject: Re: [PATCH 1/2] arm64: defconfig: enable Novatek NT36672E DSI
> >Panel driver
This is ugly. Please fix your email setup.
> >
> >On Tue, 16 Jan 2024 at 11:49, Ritesh Kumar <quic_riteshk@quicinc.com>
> >wrote:
> >>
> >> Build the Novatek NT36672E DSI Panel driver as module.
> >
> >... because it is used on ....
> >
>
> Thanks, will update in next version.
>
> >>
> >> Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
> >> ---
> >> arch/arm64/configs/defconfig | 1 +
> >> 1 file changed, 1 insertion(+)
> >>
> >> diff --git a/arch/arm64/configs/defconfig
> >> b/arch/arm64/configs/defconfig index 361c31b5d064..028d80be95f6
> >100644
> >> --- a/arch/arm64/configs/defconfig
> >> +++ b/arch/arm64/configs/defconfig
> >> @@ -859,6 +859,7 @@ CONFIG_DRM_PANEL_LVDS=m
> >CONFIG_DRM_PANEL_SIMPLE=m
> >> CONFIG_DRM_PANEL_EDP=m CONFIG_DRM_PANEL_ILITEK_ILI9882T=m
> >> +CONFIG_DRM_PANEL_NOVATEK_NT36672E=m
> >> CONFIG_DRM_PANEL_MANTIX_MLAF057WE51=m
> >> CONFIG_DRM_PANEL_RAYDIUM_RM67191=m
> >> CONFIG_DRM_PANEL_SITRONIX_ST7703=m
> >> --
> >> 2.17.1
> >>
>
> Thanks,
> Ritesh
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel
2024-01-16 9:49 ` [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel Ritesh Kumar
2024-01-16 9:58 ` Dmitry Baryshkov
@ 2024-01-16 12:06 ` Konrad Dybcio
2024-01-16 12:57 ` Dmitry Baryshkov
1 sibling, 1 reply; 16+ messages in thread
From: Konrad Dybcio @ 2024-01-16 12:06 UTC (permalink / raw)
To: Ritesh Kumar, andersson, robh+dt, krzysztof.kozlowski+dt,
conor+dt, catalin.marinas, will, quic_bjorande, geert+renesas,
arnd, neil.armstrong, dmitry.baryshkov, nfraprado, m.szyprowski
Cc: linux-arm-msm, devicetree, linux-kernel, linux-arm-kernel,
quic_abhinavk, quic_rajeevny, quic_vproddut
On 1/16/24 10:49, Ritesh Kumar wrote:
> Enable Display Subsystem with Novatek NT36672E Panel
> on qcm6490 idp platform.
>
> Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 100 +++++++++++++++++++++++
> 1 file changed, 100 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> index 2a6e4907c5ee..efa5252130a1 100644
> --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> @@ -9,6 +9,7 @@
> #define PM7250B_SID 8
> #define PM7250B_SID1 9
>
> +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
> #include "sc7280.dtsi"
> #include "pm7250b.dtsi"
> @@ -38,6 +39,25 @@
> stdout-path = "serial0:115200n8";
> };
>
> + lcd_disp_bias: lcd-disp-bias-regulator {
> + compatible = "regulator-fixed";
> + regulator-name = "lcd_disp_bias";
> + regulator-min-microvolt = <5500000>;
> + regulator-max-microvolt = <5500000>;
> + gpio = <&pm7250b_gpios 2 GPIO_ACTIVE_HIGH>;
> + enable-active-high;
> + pinctrl-names = "default";
> + pinctrl-0 = <&lcd_disp_bias_en>;
property-n
property-names
all throughout the patch
> +&gpu {
> + status = "disabled";
> +};
Hm.. generally we disable the GPU in the SoC DT, but that doesn't
seem to have happened here..
Thinking about it more, is disabling it here necessary? Does it
not fail gracefully?
Konrad
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel
2024-01-16 12:06 ` Konrad Dybcio
@ 2024-01-16 12:57 ` Dmitry Baryshkov
2024-01-23 13:43 ` Ritesh Kumar
0 siblings, 1 reply; 16+ messages in thread
From: Dmitry Baryshkov @ 2024-01-16 12:57 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Ritesh Kumar, andersson, robh+dt, krzysztof.kozlowski+dt,
conor+dt, catalin.marinas, will, quic_bjorande, geert+renesas,
arnd, neil.armstrong, nfraprado, m.szyprowski, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, quic_abhinavk,
quic_rajeevny, quic_vproddut
On Tue, 16 Jan 2024 at 14:06, Konrad Dybcio <konrad.dybcio@linaro.org> wrote:
>
>
>
> On 1/16/24 10:49, Ritesh Kumar wrote:
> > Enable Display Subsystem with Novatek NT36672E Panel
> > on qcm6490 idp platform.
> >
> > Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
> > ---
> > arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 100 +++++++++++++++++++++++
> > 1 file changed, 100 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> > index 2a6e4907c5ee..efa5252130a1 100644
> > --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> > +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> > @@ -9,6 +9,7 @@
> > #define PM7250B_SID 8
> > #define PM7250B_SID1 9
> >
> > +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
> > #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
> > #include "sc7280.dtsi"
> > #include "pm7250b.dtsi"
> > @@ -38,6 +39,25 @@
> > stdout-path = "serial0:115200n8";
> > };
> >
> > + lcd_disp_bias: lcd-disp-bias-regulator {
> > + compatible = "regulator-fixed";
> > + regulator-name = "lcd_disp_bias";
> > + regulator-min-microvolt = <5500000>;
> > + regulator-max-microvolt = <5500000>;
> > + gpio = <&pm7250b_gpios 2 GPIO_ACTIVE_HIGH>;
> > + enable-active-high;
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&lcd_disp_bias_en>;
>
> property-n
> property-names
>
> all throughout the patch
>
> > +&gpu {
> > + status = "disabled";
> > +};
>
> Hm.. generally we disable the GPU in the SoC DT, but that doesn't
> seem to have happened here..
>
> Thinking about it more, is disabling it here necessary? Does it
> not fail gracefully?
Missed this.
I'd say, I don't see a reason to disable it at all. The GPU should be
working on sc7280 / qcm4290.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel
2024-01-16 9:58 ` Dmitry Baryshkov
@ 2024-01-23 12:43 ` Ritesh Kumar
2024-01-23 13:07 ` Dmitry Baryshkov
0 siblings, 1 reply; 16+ messages in thread
From: Ritesh Kumar @ 2024-01-23 12:43 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: andersson, konrad.dybcio, robh+dt, krzysztof.kozlowski+dt,
conor+dt, catalin.marinas, will, quic_bjorande, geert+renesas,
arnd, neil.armstrong, nfraprado, m.szyprowski, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, quic_abhinavk,
quic_rajeevny, quic_vproddut
On 1/16/2024 3:28 PM, Dmitry Baryshkov wrote:
> On Tue, 16 Jan 2024 at 11:49, Ritesh Kumar <quic_riteshk@quicinc.com> wrote:
>> Enable Display Subsystem with Novatek NT36672E Panel
>> on qcm6490 idp platform.
> Is this panel always present on the IDP board or is it an optional
> addon, like the panels for all the RBn boards?
This panel is always present on the IDP board.
>> Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
>> ---
>> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 100 +++++++++++++++++++++++
>> 1 file changed, 100 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>> index 2a6e4907c5ee..efa5252130a1 100644
>> --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>> @@ -9,6 +9,7 @@
>> #define PM7250B_SID 8
>> #define PM7250B_SID1 9
>>
>> +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
>> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
>> #include "sc7280.dtsi"
>> #include "pm7250b.dtsi"
>> @@ -38,6 +39,25 @@
>> stdout-path = "serial0:115200n8";
>> };
>>
>> + lcd_disp_bias: lcd-disp-bias-regulator {
>> + compatible = "regulator-fixed";
>> + regulator-name = "lcd_disp_bias";
>> + regulator-min-microvolt = <5500000>;
>> + regulator-max-microvolt = <5500000>;
>> + gpio = <&pm7250b_gpios 2 GPIO_ACTIVE_HIGH>;
>> + enable-active-high;
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&lcd_disp_bias_en>;
>> + };
>> +
>> + pm8350c_pwm_backlight: backlight {
>> + compatible = "pwm-backlight";
>> + pwms = <&pm8350c_pwm 3 65535>;
>> + enable-gpios = <&pm8350c_gpios 7 GPIO_ACTIVE_HIGH>;
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pmic_lcd_bl_en>;
>> + };
>> +
>> reserved-memory {
>> xbl_mem: xbl@80700000 {
>> reg = <0x0 0x80700000 0x0 0x100000>;
>> @@ -420,6 +440,86 @@
>> };
>> };
>>
>> +&gpu {
>> + status = "disabled";
>> +};
>> +
>> +&mdss {
>> + status = "okay";
>> +};
>> +
>> +&mdss_dsi {
>> + vdda-supply = <&vreg_l6b_1p2>;
>> + status = "okay";
>> +
>> + panel@0 {
>> + compatible = "novatek,nt36672e";
>> + reg = <0>;
>> +
>> + reset-gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
>> +
>> + vddi-supply = <&vreg_l8c_1p62>;
>> + avdd-supply = <&lcd_disp_bias>;
>> + avee-supply = <&lcd_disp_bias>;
>> +
>> + backlight = <&pm8350c_pwm_backlight>;
>> +
>> + port {
>> + panel0_in: endpoint {
>> + remote-endpoint = <&mdss_dsi0_out>;
>> + };
>> + };
>> + };
>> +};
>> +
>> +&mdss_dsi0_out {
>> + remote-endpoint = <&panel0_in>;
>> + data-lanes = <0 1 2 3>;
>> +};
>> +
>> +&mdss_dsi_phy {
>> + vdds-supply = <&vreg_l10c_0p88>;
>> + status = "okay";
>> +};
>> +
>> +&pm7250b_gpios {
>> + lcd_disp_bias_en: lcd-disp-bias-en-state {
>> + pins = "gpio2";
>> + function = "func1";
>> + bias-disable;
>> + qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
>> + input-disable;
>> + output-enable;
>> + power-source = <0>;
>> + };
>> +};
>> +
>> +&pm8350c_gpios {
>> + pmic_lcd_bl_en: pmic-lcd-bl-en-state {
>> + pins = "gpio7";
>> + function = "normal";
>> + bias-disable;
>> + qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
>> + output-low;
>> + power-source = <0>;
>> + };
>> +
>> + pmic_lcd_bl_pwm: pmic-lcd-bl-pwm-state {
>> + pins = "gpio8";
>> + function = "func1";
>> + bias-disable;
>> + qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
>> + output-low;
>> + power-source = <0>;
>> + };
>> +};
>> +
>> +&pm8350c_pwm {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pmic_lcd_bl_pwm>;
>> + status = "okay";
>> +};
>> +
>> &qupv3_id_0 {
>> status = "okay";
>> };
>> --
>> 2.17.1
>>
Thanks,
Ritesh
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel
2024-01-23 12:43 ` Ritesh Kumar
@ 2024-01-23 13:07 ` Dmitry Baryshkov
0 siblings, 0 replies; 16+ messages in thread
From: Dmitry Baryshkov @ 2024-01-23 13:07 UTC (permalink / raw)
To: Ritesh Kumar
Cc: andersson, konrad.dybcio, robh+dt, krzysztof.kozlowski+dt,
conor+dt, catalin.marinas, will, quic_bjorande, geert+renesas,
arnd, neil.armstrong, nfraprado, m.szyprowski, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, quic_abhinavk,
quic_rajeevny, quic_vproddut
On Tue, 23 Jan 2024 at 14:43, Ritesh Kumar <quic_riteshk@quicinc.com> wrote:
>
>
> On 1/16/2024 3:28 PM, Dmitry Baryshkov wrote:
>
> > On Tue, 16 Jan 2024 at 11:49, Ritesh Kumar <quic_riteshk@quicinc.com> wrote:
> >> Enable Display Subsystem with Novatek NT36672E Panel
> >> on qcm6490 idp platform.
> > Is this panel always present on the IDP board or is it an optional
> > addon, like the panels for all the RBn boards?
>
> This panel is always present on the IDP board.
Ack, please drop the gpu chunk, fix other review comments and send v2.
>
> >> Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
> >> ---
> >> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 100 +++++++++++++++++++++++
> >> 1 file changed, 100 insertions(+)
> >>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel
2024-01-16 12:57 ` Dmitry Baryshkov
@ 2024-01-23 13:43 ` Ritesh Kumar
2024-01-23 15:12 ` Dmitry Baryshkov
0 siblings, 1 reply; 16+ messages in thread
From: Ritesh Kumar @ 2024-01-23 13:43 UTC (permalink / raw)
To: Dmitry Baryshkov, Konrad Dybcio
Cc: andersson, robh+dt, krzysztof.kozlowski+dt, conor+dt,
catalin.marinas, will, quic_bjorande, geert+renesas, arnd,
neil.armstrong, nfraprado, m.szyprowski, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, quic_abhinavk,
quic_rajeevny, quic_vproddut
On 1/16/2024 6:27 PM, Dmitry Baryshkov wrote:
> On Tue, 16 Jan 2024 at 14:06, Konrad Dybcio <konrad.dybcio@linaro.org> wrote:
>>
>>
>> On 1/16/24 10:49, Ritesh Kumar wrote:
>>> Enable Display Subsystem with Novatek NT36672E Panel
>>> on qcm6490 idp platform.
>>>
>>> Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
>>> ---
>>> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 100 +++++++++++++++++++++++
>>> 1 file changed, 100 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>>> index 2a6e4907c5ee..efa5252130a1 100644
>>> --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>>> @@ -9,6 +9,7 @@
>>> #define PM7250B_SID 8
>>> #define PM7250B_SID1 9
>>>
>>> +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
>>> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
>>> #include "sc7280.dtsi"
>>> #include "pm7250b.dtsi"
>>> @@ -38,6 +39,25 @@
>>> stdout-path = "serial0:115200n8";
>>> };
>>>
>>> + lcd_disp_bias: lcd-disp-bias-regulator {
>>> + compatible = "regulator-fixed";
>>> + regulator-name = "lcd_disp_bias";
>>> + regulator-min-microvolt = <5500000>;
>>> + regulator-max-microvolt = <5500000>;
>>> + gpio = <&pm7250b_gpios 2 GPIO_ACTIVE_HIGH>;
>>> + enable-active-high;
>>> + pinctrl-names = "default";
>>> + pinctrl-0 = <&lcd_disp_bias_en>;
>> property-n
>> property-names
>>
>> all throughout the patch
Thanks, I will update in the new version.
>>> +&gpu {
>>> + status = "disabled";
>>> +};
>> Hm.. generally we disable the GPU in the SoC DT, but that doesn't
>> seem to have happened here..
>>
>> Thinking about it more, is disabling it here necessary? Does it
>> not fail gracefully?
> Missed this.
>
> I'd say, I don't see a reason to disable it at all. The GPU should be
> working on sc7280 / qcm4290.
With GPU device node enabled, adreno_bind failure is seen as the
"speed_bin" was not populated on QCM6490 target which leads to display
bind failure.
Spoke with GPU team and on QCM6490 board, only CPU rendering is
supported for now and there is no plan to enable GPU rendering in near
future.
In this regard, what do you suggest
1) Disable GPU in QCM6490 DT (as per the current patch)
2) Disable GPU in the SoC DT, but enable it in other platform DTs. (This
will prompt change in all the dt's and we don't have all the devices to
test)
Please let me know your views on it.
Thanks,
Ritesh
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel
2024-01-23 13:43 ` Ritesh Kumar
@ 2024-01-23 15:12 ` Dmitry Baryshkov
2024-01-23 18:04 ` Konrad Dybcio
0 siblings, 1 reply; 16+ messages in thread
From: Dmitry Baryshkov @ 2024-01-23 15:12 UTC (permalink / raw)
To: Ritesh Kumar
Cc: Konrad Dybcio, andersson, robh+dt, krzysztof.kozlowski+dt,
conor+dt, catalin.marinas, will, quic_bjorande, geert+renesas,
arnd, neil.armstrong, nfraprado, m.szyprowski, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, quic_abhinavk,
quic_rajeevny, quic_vproddut
On Tue, 23 Jan 2024 at 15:43, Ritesh Kumar <quic_riteshk@quicinc.com> wrote:
>
>
> On 1/16/2024 6:27 PM, Dmitry Baryshkov wrote:
>
> > On Tue, 16 Jan 2024 at 14:06, Konrad Dybcio <konrad.dybcio@linaro.org> wrote:
> >>
> >>
> >> On 1/16/24 10:49, Ritesh Kumar wrote:
> >>> Enable Display Subsystem with Novatek NT36672E Panel
> >>> on qcm6490 idp platform.
> >>>
> >>> Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
> >>> ---
> >>> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 100 +++++++++++++++++++++++
> >>> 1 file changed, 100 insertions(+)
> >>>
> >>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> >>> index 2a6e4907c5ee..efa5252130a1 100644
> >>> --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> >>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> >>> @@ -9,6 +9,7 @@
> >>> #define PM7250B_SID 8
> >>> #define PM7250B_SID1 9
> >>>
> >>> +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
> >>> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
> >>> #include "sc7280.dtsi"
> >>> #include "pm7250b.dtsi"
> >>> @@ -38,6 +39,25 @@
> >>> stdout-path = "serial0:115200n8";
> >>> };
> >>>
> >>> + lcd_disp_bias: lcd-disp-bias-regulator {
> >>> + compatible = "regulator-fixed";
> >>> + regulator-name = "lcd_disp_bias";
> >>> + regulator-min-microvolt = <5500000>;
> >>> + regulator-max-microvolt = <5500000>;
> >>> + gpio = <&pm7250b_gpios 2 GPIO_ACTIVE_HIGH>;
> >>> + enable-active-high;
> >>> + pinctrl-names = "default";
> >>> + pinctrl-0 = <&lcd_disp_bias_en>;
> >> property-n
> >> property-names
> >>
> >> all throughout the patch
>
> Thanks, I will update in the new version.
>
> >>> +&gpu {
> >>> + status = "disabled";
> >>> +};
> >> Hm.. generally we disable the GPU in the SoC DT, but that doesn't
> >> seem to have happened here..
> >>
> >> Thinking about it more, is disabling it here necessary? Does it
> >> not fail gracefully?
> > Missed this.
> >
> > I'd say, I don't see a reason to disable it at all. The GPU should be
> > working on sc7280 / qcm4290.
>
> With GPU device node enabled, adreno_bind failure is seen as the
> "speed_bin" was not populated on QCM6490 target which leads to display
> bind failure.
Excuse me please. The GPU node for sc7280 already has speed_bin, which
points to qfprom + 0x1e9, bits 5 to 9.
Do you mean that qcm6490 uses different speed bin location? Or
different values for the speed bins?
> Spoke with GPU team and on QCM6490 board, only CPU rendering is
> supported for now and there is no plan to enable GPU rendering in near
> future.
This sounds like having the feature disabled for no particular reason.
Both the kernel and Mesa have supported the Adreno 635 for quite a
while.
> In this regard, what do you suggest
>
> 1) Disable GPU in QCM6490 DT (as per the current patch)
> 2) Disable GPU in the SoC DT, but enable it in other platform DTs. (This
> will prompt change in all the dt's and we don't have all the devices to
> test)
The second option definitely follows what is present on other platforms.
> Please let me know your views on it.
Please enable the GPU instead.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel
2024-01-23 15:12 ` Dmitry Baryshkov
@ 2024-01-23 18:04 ` Konrad Dybcio
2024-02-12 12:28 ` Ritesh Kumar
0 siblings, 1 reply; 16+ messages in thread
From: Konrad Dybcio @ 2024-01-23 18:04 UTC (permalink / raw)
To: Dmitry Baryshkov, Ritesh Kumar
Cc: andersson, robh+dt, krzysztof.kozlowski+dt, conor+dt,
catalin.marinas, will, quic_bjorande, geert+renesas, arnd,
neil.armstrong, nfraprado, m.szyprowski, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, quic_abhinavk,
quic_rajeevny, quic_vproddut
On 1/23/24 16:12, Dmitry Baryshkov wrote:
> On Tue, 23 Jan 2024 at 15:43, Ritesh Kumar <quic_riteshk@quicinc.com> wrote:
>>
>>
>> On 1/16/2024 6:27 PM, Dmitry Baryshkov wrote:
>>
>>> On Tue, 16 Jan 2024 at 14:06, Konrad Dybcio <konrad.dybcio@linaro.org> wrote:
>>>>
>>>>
>>>> On 1/16/24 10:49, Ritesh Kumar wrote:
>>>>> Enable Display Subsystem with Novatek NT36672E Panel
>>>>> on qcm6490 idp platform.
>>>>>
>>>>> Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
>>>>> ---
>>>>> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 100 +++++++++++++++++++++++
>>>>> 1 file changed, 100 insertions(+)
>>>>>
>>>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>>>>> index 2a6e4907c5ee..efa5252130a1 100644
>>>>> --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>>>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>>>>> @@ -9,6 +9,7 @@
>>>>> #define PM7250B_SID 8
>>>>> #define PM7250B_SID1 9
>>>>>
>>>>> +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
>>>>> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
>>>>> #include "sc7280.dtsi"
>>>>> #include "pm7250b.dtsi"
>>>>> @@ -38,6 +39,25 @@
>>>>> stdout-path = "serial0:115200n8";
>>>>> };
>>>>>
>>>>> + lcd_disp_bias: lcd-disp-bias-regulator {
>>>>> + compatible = "regulator-fixed";
>>>>> + regulator-name = "lcd_disp_bias";
>>>>> + regulator-min-microvolt = <5500000>;
>>>>> + regulator-max-microvolt = <5500000>;
>>>>> + gpio = <&pm7250b_gpios 2 GPIO_ACTIVE_HIGH>;
>>>>> + enable-active-high;
>>>>> + pinctrl-names = "default";
>>>>> + pinctrl-0 = <&lcd_disp_bias_en>;
>>>> property-n
>>>> property-names
>>>>
>>>> all throughout the patch
>>
>> Thanks, I will update in the new version.
>>
>>>>> +&gpu {
>>>>> + status = "disabled";
>>>>> +};
>>>> Hm.. generally we disable the GPU in the SoC DT, but that doesn't
>>>> seem to have happened here..
>>>>
>>>> Thinking about it more, is disabling it here necessary? Does it
>>>> not fail gracefully?
>>> Missed this.
>>>
>>> I'd say, I don't see a reason to disable it at all. The GPU should be
>>> working on sc7280 / qcm4290.
>>
>> With GPU device node enabled, adreno_bind failure is seen as the
>> "speed_bin" was not populated on QCM6490 target which leads to display
>> bind failure.
>
> Excuse me please. The GPU node for sc7280 already has speed_bin, which
> points to qfprom + 0x1e9, bits 5 to 9.
>
> Do you mean that qcm6490 uses different speed bin location? Or
> different values for the speed bins?
>
>> Spoke with GPU team and on QCM6490 board, only CPU rendering is
>> supported for now and there is no plan to enable GPU rendering in near
>> future.
>
> This sounds like having the feature disabled for no particular reason.
> Both the kernel and Mesa have supported the Adreno 635 for quite a
> while.
643 [1], [2]
>
>> In this regard, what do you suggest
>>
>> 1) Disable GPU in QCM6490 DT (as per the current patch)
>> 2) Disable GPU in the SoC DT, but enable it in other platform DTs. (This
>> will prompt change in all the dt's and we don't have all the devices to
>> test)
>
> The second option definitely follows what is present on other platforms.
>
>> Please let me know your views on it.
>
> Please enable the GPU instead.
+1
Konrad
[1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25408/diffs?commit_id=b1e851d66c3a3e53f1a464023f675f3f6cbd3503
[2] https://patches.linaro.org/project/linux-arm-msm/cover/20230926-topic-a643-v1-0-7af6937ac0a3@linaro.org/
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel
2024-01-23 18:04 ` Konrad Dybcio
@ 2024-02-12 12:28 ` Ritesh Kumar
2024-02-12 13:27 ` Dmitry Baryshkov
0 siblings, 1 reply; 16+ messages in thread
From: Ritesh Kumar @ 2024-02-12 12:28 UTC (permalink / raw)
To: Konrad Dybcio, Dmitry Baryshkov
Cc: andersson, robh+dt, krzysztof.kozlowski+dt, conor+dt,
catalin.marinas, will, quic_bjorande, geert+renesas, arnd,
neil.armstrong, nfraprado, m.szyprowski, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, quic_abhinavk,
quic_rajeevny, quic_vproddut
On 1/23/2024 11:34 PM, Konrad Dybcio wrote:
>
>
> On 1/23/24 16:12, Dmitry Baryshkov wrote:
>> On Tue, 23 Jan 2024 at 15:43, Ritesh Kumar <quic_riteshk@quicinc.com>
>> wrote:
>>>
>>>
>>> On 1/16/2024 6:27 PM, Dmitry Baryshkov wrote:
>>>
>>>> On Tue, 16 Jan 2024 at 14:06, Konrad Dybcio
>>>> <konrad.dybcio@linaro.org> wrote:
>>>>>
>>>>>
>>>>> On 1/16/24 10:49, Ritesh Kumar wrote:
>>>>>> Enable Display Subsystem with Novatek NT36672E Panel
>>>>>> on qcm6490 idp platform.
>>>>>>
>>>>>> Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
>>>>>> ---
>>>>>> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 100
>>>>>> +++++++++++++++++++++++
>>>>>> 1 file changed, 100 insertions(+)
>>>>>>
>>>>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>>>>>> b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>>>>>> index 2a6e4907c5ee..efa5252130a1 100644
>>>>>> --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>>>>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>>>>>> @@ -9,6 +9,7 @@
>>>>>> #define PM7250B_SID 8
>>>>>> #define PM7250B_SID1 9
>>>>>>
>>>>>> +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
>>>>>> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
>>>>>> #include "sc7280.dtsi"
>>>>>> #include "pm7250b.dtsi"
>>>>>> @@ -38,6 +39,25 @@
>>>>>> stdout-path = "serial0:115200n8";
>>>>>> };
>>>>>>
>>>>>> + lcd_disp_bias: lcd-disp-bias-regulator {
>>>>>> + compatible = "regulator-fixed";
>>>>>> + regulator-name = "lcd_disp_bias";
>>>>>> + regulator-min-microvolt = <5500000>;
>>>>>> + regulator-max-microvolt = <5500000>;
>>>>>> + gpio = <&pm7250b_gpios 2 GPIO_ACTIVE_HIGH>;
>>>>>> + enable-active-high;
>>>>>> + pinctrl-names = "default";
>>>>>> + pinctrl-0 = <&lcd_disp_bias_en>;
>>>>> property-n
>>>>> property-names
>>>>>
>>>>> all throughout the patch
>>>
>>> Thanks, I will update in the new version.
>>>
>>>>>> +&gpu {
>>>>>> + status = "disabled";
>>>>>> +};
>>>>> Hm.. generally we disable the GPU in the SoC DT, but that doesn't
>>>>> seem to have happened here..
>>>>>
>>>>> Thinking about it more, is disabling it here necessary? Does it
>>>>> not fail gracefully?
>>>> Missed this.
>>>>
>>>> I'd say, I don't see a reason to disable it at all. The GPU should be
>>>> working on sc7280 / qcm4290.
>>>
>>> With GPU device node enabled, adreno_bind failure is seen as the
>>> "speed_bin" was not populated on QCM6490 target which leads to display
>>> bind failure.
>>
>> Excuse me please. The GPU node for sc7280 already has speed_bin, which
>> points to qfprom + 0x1e9, bits 5 to 9.
>>
>> Do you mean that qcm6490 uses different speed bin location? Or
>> different values for the speed bins?
>>
>>> Spoke with GPU team and on QCM6490 board, only CPU rendering is
>>> supported for now and there is no plan to enable GPU rendering in near
>>> future.
>>
>> This sounds like having the feature disabled for no particular reason.
>> Both the kernel and Mesa have supported the Adreno 635 for quite a
>> while.
>
> 643 [1], [2]
>
>>
>>> In this regard, what do you suggest
>>>
>>> 1) Disable GPU in QCM6490 DT (as per the current patch)
>>> 2) Disable GPU in the SoC DT, but enable it in other platform DTs.
>>> (This
>>> will prompt change in all the dt's and we don't have all the devices to
>>> test)
>>
>> The second option definitely follows what is present on other platforms.
>>
>>> Please let me know your views on it.
>>
>> Please enable the GPU instead.
>
> +1
>
> Konrad
>
> [1]
> https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25408/diffs?commit_id=b1e851d66c3a3e53f1a464023f675f3f6cbd3503
> [2]
> https://patches.linaro.org/project/linux-arm-msm/cover/20230926-topic-a643-v1-0-7af6937ac0a3@linaro.org/
Thanks for the help. After applying missing patches from series
https://patches.linaro.org/project/linux-arm-msm/cover/20230926-topic-a643-v1-0-7af6937ac0a3@linaro.org/
in my local build, GPU is working fine. GPU disablement change is not
needed. I will send new version of patch removing GPU part and
addressing other review comments.
Thanks,
Ritesh
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel
2024-02-12 12:28 ` Ritesh Kumar
@ 2024-02-12 13:27 ` Dmitry Baryshkov
0 siblings, 0 replies; 16+ messages in thread
From: Dmitry Baryshkov @ 2024-02-12 13:27 UTC (permalink / raw)
To: Ritesh Kumar
Cc: Konrad Dybcio, andersson, robh+dt, krzysztof.kozlowski+dt,
conor+dt, catalin.marinas, will, quic_bjorande, geert+renesas,
arnd, neil.armstrong, nfraprado, m.szyprowski, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, quic_abhinavk,
quic_rajeevny, quic_vproddut
On Mon, 12 Feb 2024 at 14:28, Ritesh Kumar <quic_riteshk@quicinc.com> wrote:
>
>
> On 1/23/2024 11:34 PM, Konrad Dybcio wrote:
> >
> >
> > On 1/23/24 16:12, Dmitry Baryshkov wrote:
> >> On Tue, 23 Jan 2024 at 15:43, Ritesh Kumar <quic_riteshk@quicinc.com>
> >> wrote:
> >>>
> >>>
> >>> On 1/16/2024 6:27 PM, Dmitry Baryshkov wrote:
> >>>
> >>>> On Tue, 16 Jan 2024 at 14:06, Konrad Dybcio
> >>>> <konrad.dybcio@linaro.org> wrote:
> >>>>>
> >>>>>
> >>>>> On 1/16/24 10:49, Ritesh Kumar wrote:
> >>>>>> Enable Display Subsystem with Novatek NT36672E Panel
> >>>>>> on qcm6490 idp platform.
> >>>>>>
> >>>>>> Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
> >>>>>> ---
> >>>>>> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 100
> >>>>>> +++++++++++++++++++++++
> >>>>>> 1 file changed, 100 insertions(+)
> >>>>>>
> >>>>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> >>>>>> b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> >>>>>> index 2a6e4907c5ee..efa5252130a1 100644
> >>>>>> --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> >>>>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
> >>>>>> @@ -9,6 +9,7 @@
> >>>>>> #define PM7250B_SID 8
> >>>>>> #define PM7250B_SID1 9
> >>>>>>
> >>>>>> +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
> >>>>>> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
> >>>>>> #include "sc7280.dtsi"
> >>>>>> #include "pm7250b.dtsi"
> >>>>>> @@ -38,6 +39,25 @@
> >>>>>> stdout-path = "serial0:115200n8";
> >>>>>> };
> >>>>>>
> >>>>>> + lcd_disp_bias: lcd-disp-bias-regulator {
> >>>>>> + compatible = "regulator-fixed";
> >>>>>> + regulator-name = "lcd_disp_bias";
> >>>>>> + regulator-min-microvolt = <5500000>;
> >>>>>> + regulator-max-microvolt = <5500000>;
> >>>>>> + gpio = <&pm7250b_gpios 2 GPIO_ACTIVE_HIGH>;
> >>>>>> + enable-active-high;
> >>>>>> + pinctrl-names = "default";
> >>>>>> + pinctrl-0 = <&lcd_disp_bias_en>;
> >>>>> property-n
> >>>>> property-names
> >>>>>
> >>>>> all throughout the patch
> >>>
> >>> Thanks, I will update in the new version.
> >>>
> >>>>>> +&gpu {
> >>>>>> + status = "disabled";
> >>>>>> +};
> >>>>> Hm.. generally we disable the GPU in the SoC DT, but that doesn't
> >>>>> seem to have happened here..
> >>>>>
> >>>>> Thinking about it more, is disabling it here necessary? Does it
> >>>>> not fail gracefully?
> >>>> Missed this.
> >>>>
> >>>> I'd say, I don't see a reason to disable it at all. The GPU should be
> >>>> working on sc7280 / qcm4290.
> >>>
> >>> With GPU device node enabled, adreno_bind failure is seen as the
> >>> "speed_bin" was not populated on QCM6490 target which leads to display
> >>> bind failure.
> >>
> >> Excuse me please. The GPU node for sc7280 already has speed_bin, which
> >> points to qfprom + 0x1e9, bits 5 to 9.
> >>
> >> Do you mean that qcm6490 uses different speed bin location? Or
> >> different values for the speed bins?
> >>
> >>> Spoke with GPU team and on QCM6490 board, only CPU rendering is
> >>> supported for now and there is no plan to enable GPU rendering in near
> >>> future.
> >>
> >> This sounds like having the feature disabled for no particular reason.
> >> Both the kernel and Mesa have supported the Adreno 635 for quite a
> >> while.
> >
> > 643 [1], [2]
> >
> >>
> >>> In this regard, what do you suggest
> >>>
> >>> 1) Disable GPU in QCM6490 DT (as per the current patch)
> >>> 2) Disable GPU in the SoC DT, but enable it in other platform DTs.
> >>> (This
> >>> will prompt change in all the dt's and we don't have all the devices to
> >>> test)
> >>
> >> The second option definitely follows what is present on other platforms.
> >>
> >>> Please let me know your views on it.
> >>
> >> Please enable the GPU instead.
> >
> > +1
> >
> > Konrad
> >
> > [1]
> > https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25408/diffs?commit_id=b1e851d66c3a3e53f1a464023f675f3f6cbd3503
> > [2]
> > https://patches.linaro.org/project/linux-arm-msm/cover/20230926-topic-a643-v1-0-7af6937ac0a3@linaro.org/
>
> Thanks for the help. After applying missing patches from series
> https://patches.linaro.org/project/linux-arm-msm/cover/20230926-topic-a643-v1-0-7af6937ac0a3@linaro.org/
> in my local build, GPU is working fine. GPU disablement change is not
> needed. I will send new version of patch removing GPU part and
> addressing other review comments.
Thank you!
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2024-02-12 13:27 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-16 9:49 [PATCH 0/2] add display and panel on qcm6490 idp Ritesh Kumar
2024-01-16 9:49 ` [PATCH 1/2] arm64: defconfig: enable Novatek NT36672E DSI Panel driver Ritesh Kumar
2024-01-16 9:59 ` Dmitry Baryshkov
2024-01-16 10:25 ` Ritesh Kumar (QUIC)
2024-01-16 10:44 ` Dmitry Baryshkov
2024-01-16 9:49 ` [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel Ritesh Kumar
2024-01-16 9:58 ` Dmitry Baryshkov
2024-01-23 12:43 ` Ritesh Kumar
2024-01-23 13:07 ` Dmitry Baryshkov
2024-01-16 12:06 ` Konrad Dybcio
2024-01-16 12:57 ` Dmitry Baryshkov
2024-01-23 13:43 ` Ritesh Kumar
2024-01-23 15:12 ` Dmitry Baryshkov
2024-01-23 18:04 ` Konrad Dybcio
2024-02-12 12:28 ` Ritesh Kumar
2024-02-12 13:27 ` Dmitry Baryshkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).