* [PATCH v2 1/2] dt-bindings: display: panel: samsung,atna45dc02: Document ATNA45DC02
@ 2024-07-19 18:52 Rob Clark
2024-07-19 18:52 ` [PATCH v2 2/2] arm64: dts: qcom: x1e80100-yoga: Update panel bindings Rob Clark
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Rob Clark @ 2024-07-19 18:52 UTC (permalink / raw)
To: linux-arm-msm
Cc: Doug Anderson, Dmitry Baryshkov, Abel Vesa, Rob Clark,
Neil Armstrong, Jessica Zhang, David Airlie, Daniel Vetter,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, open list:DRM PANEL DRIVERS,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
From: Rob Clark <robdclark@chromium.org>
The Samsung ATNA45DC02 panel is an AMOLED eDP panel, similar to the
existing ATNA45AF01 and ATNA33XC20 panel but with a higher resolution.
Signed-off-by: Rob Clark <robdclark@chromium.org>
---
.../devicetree/bindings/display/panel/samsung,atna33xc20.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml b/Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml
index 5192c93fbd67..3ec9b8c79b5f 100644
--- a/Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml
+++ b/Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml
@@ -21,6 +21,10 @@ properties:
- items:
- const: samsung,atna45af01
- const: samsung,atna33xc20
+ # Samsung 14.5" 3K (2944x1840 pixels) eDP AMOLED panel
+ - items:
+ - const: samsung,atna45dc02
+ - const: samsung,atna33xc20
enable-gpios: true
port: true
--
2.45.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v2 2/2] arm64: dts: qcom: x1e80100-yoga: Update panel bindings
2024-07-19 18:52 [PATCH v2 1/2] dt-bindings: display: panel: samsung,atna45dc02: Document ATNA45DC02 Rob Clark
@ 2024-07-19 18:52 ` Rob Clark
2024-07-21 16:27 ` Abel Vesa
2024-07-22 7:15 ` Stephan Gerhold
2024-07-21 13:35 ` [PATCH v2 1/2] dt-bindings: display: panel: samsung,atna45dc02: Document ATNA45DC02 Krzysztof Kozlowski
2024-07-22 17:14 ` Conor Dooley
2 siblings, 2 replies; 8+ messages in thread
From: Rob Clark @ 2024-07-19 18:52 UTC (permalink / raw)
To: linux-arm-msm
Cc: Doug Anderson, Dmitry Baryshkov, Abel Vesa, Rob Clark,
Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
From: Rob Clark <robdclark@chromium.org>
Use the correct panel compatible, and wire up enable-gpio. It is wired
up in the same way as the x1e80100-crd.
Signed-off-by: Rob Clark <robdclark@chromium.org>
---
.../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
index f569f0fbd1fc..28a6ea5a24fd 100644
--- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
+++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
@@ -592,9 +592,13 @@ &mdss_dp3 {
aux-bus {
panel {
- compatible = "edp-panel";
+ compatible = "samsung,atna45dc02", "samsung,atna33xc20";
+ enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>;
power-supply = <&vreg_edp_3p3>;
+ pinctrl-0 = <&edp_bl_en>;
+ pinctrl-names = "default";
+
port {
edp_panel_in: endpoint {
remote-endpoint = <&mdss_dp3_out>;
@@ -663,6 +667,13 @@ &pcie6a_phy {
status = "okay";
};
+&pmc8380_3_gpios {
+ edp_bl_en: edp-bl-en-state {
+ pins = "gpio4";
+ function = "normal";
+ };
+};
+
&qupv3_0 {
status = "okay";
};
--
2.45.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: display: panel: samsung,atna45dc02: Document ATNA45DC02
2024-07-19 18:52 [PATCH v2 1/2] dt-bindings: display: panel: samsung,atna45dc02: Document ATNA45DC02 Rob Clark
2024-07-19 18:52 ` [PATCH v2 2/2] arm64: dts: qcom: x1e80100-yoga: Update panel bindings Rob Clark
@ 2024-07-21 13:35 ` Krzysztof Kozlowski
2024-07-22 17:14 ` Conor Dooley
2 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-21 13:35 UTC (permalink / raw)
To: Rob Clark, linux-arm-msm
Cc: Doug Anderson, Dmitry Baryshkov, Abel Vesa, Rob Clark,
Neil Armstrong, Jessica Zhang, David Airlie, Daniel Vetter,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, open list:DRM PANEL DRIVERS,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
On 19/07/2024 20:52, Rob Clark wrote:
> From: Rob Clark <robdclark@chromium.org>
>
> The Samsung ATNA45DC02 panel is an AMOLED eDP panel, similar to the
> existing ATNA45AF01 and ATNA33XC20 panel but with a higher resolution.
>
> Signed-off-by: Rob Clark <robdclark@chromium.org>
> ---
> .../devicetree/bindings/display/panel/samsung,atna33xc20.yaml | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml b/Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml
> index 5192c93fbd67..3ec9b8c79b5f 100644
> --- a/Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml
> +++ b/Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml
> @@ -21,6 +21,10 @@ properties:
> - items:
> - const: samsung,atna45af01
> - const: samsung,atna33xc20
> + # Samsung 14.5" 3K (2944x1840 pixels) eDP AMOLED panel
> + - items:
> + - const: samsung,atna45dc02
This should be just enum of above entry (the first compatible).
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: qcom: x1e80100-yoga: Update panel bindings
2024-07-19 18:52 ` [PATCH v2 2/2] arm64: dts: qcom: x1e80100-yoga: Update panel bindings Rob Clark
@ 2024-07-21 16:27 ` Abel Vesa
2024-07-22 7:15 ` Stephan Gerhold
1 sibling, 0 replies; 8+ messages in thread
From: Abel Vesa @ 2024-07-21 16:27 UTC (permalink / raw)
To: Rob Clark
Cc: linux-arm-msm, Doug Anderson, Dmitry Baryshkov, Rob Clark,
Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
On 24-07-19 11:52:50, Rob Clark wrote:
> From: Rob Clark <robdclark@chromium.org>
>
> Use the correct panel compatible, and wire up enable-gpio. It is wired
> up in the same way as the x1e80100-crd.
>
> Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
> ---
> .../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 13 ++++++++++++-
> 1 file changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
> index f569f0fbd1fc..28a6ea5a24fd 100644
> --- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
> +++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
> @@ -592,9 +592,13 @@ &mdss_dp3 {
>
> aux-bus {
> panel {
> - compatible = "edp-panel";
> + compatible = "samsung,atna45dc02", "samsung,atna33xc20";
> + enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>;
> power-supply = <&vreg_edp_3p3>;
>
> + pinctrl-0 = <&edp_bl_en>;
> + pinctrl-names = "default";
> +
> port {
> edp_panel_in: endpoint {
> remote-endpoint = <&mdss_dp3_out>;
> @@ -663,6 +667,13 @@ &pcie6a_phy {
> status = "okay";
> };
>
> +&pmc8380_3_gpios {
> + edp_bl_en: edp-bl-en-state {
> + pins = "gpio4";
> + function = "normal";
> + };
> +};
> +
> &qupv3_0 {
> status = "okay";
> };
> --
> 2.45.2
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: qcom: x1e80100-yoga: Update panel bindings
2024-07-19 18:52 ` [PATCH v2 2/2] arm64: dts: qcom: x1e80100-yoga: Update panel bindings Rob Clark
2024-07-21 16:27 ` Abel Vesa
@ 2024-07-22 7:15 ` Stephan Gerhold
2024-07-22 14:37 ` Rob Clark
1 sibling, 1 reply; 8+ messages in thread
From: Stephan Gerhold @ 2024-07-22 7:15 UTC (permalink / raw)
To: Rob Clark
Cc: linux-arm-msm, Doug Anderson, Dmitry Baryshkov, Abel Vesa,
Rob Clark, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
On Fri, Jul 19, 2024 at 11:52:50AM -0700, Rob Clark wrote:
> From: Rob Clark <robdclark@chromium.org>
>
> Use the correct panel compatible, and wire up enable-gpio. It is wired
> up in the same way as the x1e80100-crd.
>
> Signed-off-by: Rob Clark <robdclark@chromium.org>
> ---
> .../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 13 ++++++++++++-
> 1 file changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
> index f569f0fbd1fc..28a6ea5a24fd 100644
> --- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
> +++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
> @@ -592,9 +592,13 @@ &mdss_dp3 {
>
> aux-bus {
> panel {
> - compatible = "edp-panel";
> + compatible = "samsung,atna45dc02", "samsung,atna33xc20";
> + enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>;
> power-supply = <&vreg_edp_3p3>;
>
> + pinctrl-0 = <&edp_bl_en>;
> + pinctrl-names = "default";
> +
> port {
> edp_panel_in: endpoint {
> remote-endpoint = <&mdss_dp3_out>;
> @@ -663,6 +667,13 @@ &pcie6a_phy {
> status = "okay";
> };
>
> +&pmc8380_3_gpios {
> + edp_bl_en: edp-bl-en-state {
> + pins = "gpio4";
> + function = "normal";
> + };
Did you omit the "power-source" here on purpose? It works without
because the firmware already configures this pin, but ideally we should
provide the full configuration.
In /sys/kernel/debug/gpio you can check how the firmware has configured
the pin. It is probably exactly the same as for the CRD.
Thanks,
Stephan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: qcom: x1e80100-yoga: Update panel bindings
2024-07-22 7:15 ` Stephan Gerhold
@ 2024-07-22 14:37 ` Rob Clark
2024-07-22 14:40 ` Stephan Gerhold
0 siblings, 1 reply; 8+ messages in thread
From: Rob Clark @ 2024-07-22 14:37 UTC (permalink / raw)
To: Stephan Gerhold
Cc: linux-arm-msm, Doug Anderson, Dmitry Baryshkov, Abel Vesa,
Rob Clark, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
On Mon, Jul 22, 2024 at 12:15 AM Stephan Gerhold
<stephan.gerhold@linaro.org> wrote:
>
> On Fri, Jul 19, 2024 at 11:52:50AM -0700, Rob Clark wrote:
> > From: Rob Clark <robdclark@chromium.org>
> >
> > Use the correct panel compatible, and wire up enable-gpio. It is wired
> > up in the same way as the x1e80100-crd.
> >
> > Signed-off-by: Rob Clark <robdclark@chromium.org>
> > ---
> > .../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 13 ++++++++++++-
> > 1 file changed, 12 insertions(+), 1 deletion(-)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
> > index f569f0fbd1fc..28a6ea5a24fd 100644
> > --- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
> > +++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
> > @@ -592,9 +592,13 @@ &mdss_dp3 {
> >
> > aux-bus {
> > panel {
> > - compatible = "edp-panel";
> > + compatible = "samsung,atna45dc02", "samsung,atna33xc20";
> > + enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>;
> > power-supply = <&vreg_edp_3p3>;
> >
> > + pinctrl-0 = <&edp_bl_en>;
> > + pinctrl-names = "default";
> > +
> > port {
> > edp_panel_in: endpoint {
> > remote-endpoint = <&mdss_dp3_out>;
> > @@ -663,6 +667,13 @@ &pcie6a_phy {
> > status = "okay";
> > };
> >
> > +&pmc8380_3_gpios {
> > + edp_bl_en: edp-bl-en-state {
> > + pins = "gpio4";
> > + function = "normal";
> > + };
>
> Did you omit the "power-source" here on purpose? It works without
> because the firmware already configures this pin, but ideally we should
> provide the full configuration.
I just copied the CRD.. other than the panel, things appear to be
wired up in the same way.
BR,
-R
> In /sys/kernel/debug/gpio you can check how the firmware has configured
> the pin. It is probably exactly the same as for the CRD.
>
> Thanks,
> Stephan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: qcom: x1e80100-yoga: Update panel bindings
2024-07-22 14:37 ` Rob Clark
@ 2024-07-22 14:40 ` Stephan Gerhold
0 siblings, 0 replies; 8+ messages in thread
From: Stephan Gerhold @ 2024-07-22 14:40 UTC (permalink / raw)
To: Rob Clark
Cc: linux-arm-msm, Doug Anderson, Dmitry Baryshkov, Abel Vesa,
Rob Clark, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
On Mon, Jul 22, 2024 at 07:37:05AM -0700, Rob Clark wrote:
> On Mon, Jul 22, 2024 at 12:15 AM Stephan Gerhold
> <stephan.gerhold@linaro.org> wrote:
> >
> > On Fri, Jul 19, 2024 at 11:52:50AM -0700, Rob Clark wrote:
> > > From: Rob Clark <robdclark@chromium.org>
> > >
> > > Use the correct panel compatible, and wire up enable-gpio. It is wired
> > > up in the same way as the x1e80100-crd.
> > >
> > > Signed-off-by: Rob Clark <robdclark@chromium.org>
> > > ---
> > > .../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 13 ++++++++++++-
> > > 1 file changed, 12 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
> > > index f569f0fbd1fc..28a6ea5a24fd 100644
> > > --- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
> > > +++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
> > > @@ -592,9 +592,13 @@ &mdss_dp3 {
> > >
> > > aux-bus {
> > > panel {
> > > - compatible = "edp-panel";
> > > + compatible = "samsung,atna45dc02", "samsung,atna33xc20";
> > > + enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>;
> > > power-supply = <&vreg_edp_3p3>;
> > >
> > > + pinctrl-0 = <&edp_bl_en>;
> > > + pinctrl-names = "default";
> > > +
> > > port {
> > > edp_panel_in: endpoint {
> > > remote-endpoint = <&mdss_dp3_out>;
> > > @@ -663,6 +667,13 @@ &pcie6a_phy {
> > > status = "okay";
> > > };
> > >
> > > +&pmc8380_3_gpios {
> > > + edp_bl_en: edp-bl-en-state {
> > > + pins = "gpio4";
> > > + function = "normal";
> > > + };
> >
> > Did you omit the "power-source" here on purpose? It works without
> > because the firmware already configures this pin, but ideally we should
> > provide the full configuration.
>
> I just copied the CRD.. other than the panel, things appear to be
> wired up in the same way.
>
It looks like Abel has an older version of my patch in his tree. The
patch that I sent upstream has the "power-source":
https://lore.kernel.org/linux-arm-msm/20240715-x1e80100-crd-backlight-v2-3-31b7f2f658a3@linaro.org/
Can you copy it from there?
Thanks,
Stephan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: display: panel: samsung,atna45dc02: Document ATNA45DC02
2024-07-19 18:52 [PATCH v2 1/2] dt-bindings: display: panel: samsung,atna45dc02: Document ATNA45DC02 Rob Clark
2024-07-19 18:52 ` [PATCH v2 2/2] arm64: dts: qcom: x1e80100-yoga: Update panel bindings Rob Clark
2024-07-21 13:35 ` [PATCH v2 1/2] dt-bindings: display: panel: samsung,atna45dc02: Document ATNA45DC02 Krzysztof Kozlowski
@ 2024-07-22 17:14 ` Conor Dooley
2 siblings, 0 replies; 8+ messages in thread
From: Conor Dooley @ 2024-07-22 17:14 UTC (permalink / raw)
To: Rob Clark
Cc: linux-arm-msm, Doug Anderson, Dmitry Baryshkov, Abel Vesa,
Rob Clark, Neil Armstrong, Jessica Zhang, David Airlie,
Daniel Vetter, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
open list:DRM PANEL DRIVERS,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
[-- Attachment #1: Type: text/plain, Size: 365 bytes --]
On Fri, Jul 19, 2024 at 11:52:49AM -0700, Rob Clark wrote:
> From: Rob Clark <robdclark@chromium.org>
>
> The Samsung ATNA45DC02 panel is an AMOLED eDP panel, similar to the
> existing ATNA45AF01 and ATNA33XC20 panel but with a higher resolution.
>
> Signed-off-by: Rob Clark <robdclark@chromium.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-07-22 17:14 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-19 18:52 [PATCH v2 1/2] dt-bindings: display: panel: samsung,atna45dc02: Document ATNA45DC02 Rob Clark
2024-07-19 18:52 ` [PATCH v2 2/2] arm64: dts: qcom: x1e80100-yoga: Update panel bindings Rob Clark
2024-07-21 16:27 ` Abel Vesa
2024-07-22 7:15 ` Stephan Gerhold
2024-07-22 14:37 ` Rob Clark
2024-07-22 14:40 ` Stephan Gerhold
2024-07-21 13:35 ` [PATCH v2 1/2] dt-bindings: display: panel: samsung,atna45dc02: Document ATNA45DC02 Krzysztof Kozlowski
2024-07-22 17:14 ` Conor Dooley
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).