2018-08-21 13:36:27

by Yannick FERTRE

[permalink] [raw]
Subject: [PATCH] ARM: dts: stm32: enable display on stm32mp157c-ev1 board

Enable panel raydium RM68200, DSI bridge & display controller.

Signed-off-by: Yannick Fertré <[email protected]>
---
arch/arm/boot/dts/stm32mp157c-ev1.dts | 60 +++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts
index 372bc2e..cd9062a 100644
--- a/arch/arm/boot/dts/stm32mp157c-ev1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ev1.dts
@@ -6,6 +6,7 @@
/dts-v1/;

#include "stm32mp157c-ed1.dts"
+#include <dt-bindings/gpio/gpio.h>

/ {
model = "STMicroelectronics STM32MP157C eval daughter on eval mother";
@@ -19,6 +20,12 @@
serial0 = &uart4;
ethernet0 = &ethernet0;
};
+ panel_backlight: panel-backlight {
+ compatible = "gpio-backlight";
+ gpios = <&gpiod 13 GPIO_ACTIVE_LOW>;
+ default-on;
+ status = "okay";
+ };
};

&ethernet0 {
@@ -46,6 +53,45 @@
status = "okay";
};

+&dsi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+ dsi_in: endpoint {
+ remote-endpoint = <&ltdc_ep0_out>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+ dsi_out: endpoint {
+ remote-endpoint = <&dsi_panel_in>;
+ };
+ };
+ };
+
+ panel-dsi@0 {
+ compatible = "raydium,rm68200";
+ reg = <0>;
+ reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
+ backlight = <&panel_backlight>;
+ status = "okay";
+
+ port {
+ dsi_panel_in: endpoint {
+ remote-endpoint = <&dsi_out>;
+ };
+ };
+ };
+};
+
&i2c2 {
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins_a>;
@@ -62,6 +108,20 @@
status = "okay";
};

+&ltdc {
+ status = "okay";
+
+ port {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ltdc_ep0_out: endpoint@0 {
+ reg = <0>;
+ remote-endpoint = <&dsi_in>;
+ };
+ };
+};
+
&m_can1 {
pinctrl-names = "default";
pinctrl-0 = <&m_can1_pins_a>;
--
2.7.4



2018-09-03 10:05:44

by Alexandre Torgue

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: stm32: enable display on stm32mp157c-ev1 board

Hi Yannick,

On 08/21/2018 02:58 PM, Yannick Fertré wrote:
> Enable panel raydium RM68200, DSI bridge & display controller.
>
> Signed-off-by: Yannick Fertré <[email protected]>
> ---
> arch/arm/boot/dts/stm32mp157c-ev1.dts | 60 +++++++++++++++++++++++++++++++++++
> 1 file changed, 60 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts
> index 372bc2e..cd9062a 100644
> --- a/arch/arm/boot/dts/stm32mp157c-ev1.dts
> +++ b/arch/arm/boot/dts/stm32mp157c-ev1.dts
> @@ -6,6 +6,7 @@
> /dts-v1/;
>
> #include "stm32mp157c-ed1.dts"
> +#include <dt-bindings/gpio/gpio.h>
>
> / {
> model = "STMicroelectronics STM32MP157C eval daughter on eval mother";
> @@ -19,6 +20,12 @@
> serial0 = &uart4;
> ethernet0 = &ethernet0;
> };
> + panel_backlight: panel-backlight {
> + compatible = "gpio-backlight";
> + gpios = <&gpiod 13 GPIO_ACTIVE_LOW>;
> + default-on;
> + status = "okay";
> + };
> };
>
> &ethernet0 {
> @@ -46,6 +53,45 @@
> status = "okay";
> };
>
> +&dsi {

Can you check ordering please ?

> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "okay";
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> + dsi_in: endpoint {
> + remote-endpoint = <&ltdc_ep0_out>;
> + };
> + };
> +
> + port@1 {
> + reg = <1>;
> + dsi_out: endpoint {
> + remote-endpoint = <&dsi_panel_in>;
> + };
> + };
> + };
> +
> + panel-dsi@0 {
> + compatible = "raydium,rm68200";
> + reg = <0>;
> + reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
> + backlight = <&panel_backlight>;
> + status = "okay";
> +
> + port {
> + dsi_panel_in: endpoint {
> + remote-endpoint = <&dsi_out>;
> + };
> + };
> + };
> +};
> +
> &i2c2 {
> pinctrl-names = "default";
> pinctrl-0 = <&i2c2_pins_a>;
> @@ -62,6 +108,20 @@
> status = "okay";
> };
>
> +&ltdc {
> + status = "okay";
> +
> + port {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + ltdc_ep0_out: endpoint@0 {
> + reg = <0>;
> + remote-endpoint = <&dsi_in>;
> + };
> + };
> +};
> +
> &m_can1 {
> pinctrl-names = "default";
> pinctrl-0 = <&m_can1_pins_a>;
>

2018-09-20 15:31:06

by Alexandre Torgue

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: stm32: enable display on stm32mp157c-ev1 board

Hi Yannick

On 08/21/2018 02:58 PM, Yannick Fertré wrote:
> Enable panel raydium RM68200, DSI bridge & display controller.
>
> Signed-off-by: Yannick Fertré <[email protected]>
> ---

Applied on stm32-next.

Thanks.
Alex