| From b24783c18f026c8e94fd090c29ff183ca1340367 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Thu, 20 Sep 2018 16:33:52 +0200 |
| Subject: ARM: dts: stm32: enable display on stm32mp157c-ev1 board |
| MIME-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| From: Yannick Fertré <yannick.fertre@st.com> |
| |
| [ Upstream commit 67330599f93672bd351123c729e2591a460fd24c ] |
| |
| Enable panel raydium RM68200, DSI bridge & display controller. |
| |
| Signed-off-by: Yannick Fertré <yannick.fertre@st.com> |
| Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| arch/arm/boot/dts/stm32mp157c-ev1.dts | 73 ++++++++++++++++++++++++--- |
| 1 file changed, 67 insertions(+), 6 deletions(-) |
| |
| diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts |
| index 372bc2ea6b921..063ee8ac5dcbd 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,58 @@ |
| serial0 = &uart4; |
| ethernet0 = ðernet0; |
| }; |
| + |
| + panel_backlight: panel-backlight { |
| + compatible = "gpio-backlight"; |
| + gpios = <&gpiod 13 GPIO_ACTIVE_LOW>; |
| + default-on; |
| + status = "okay"; |
| + }; |
| +}; |
| + |
| +&cec { |
| + pinctrl-names = "default"; |
| + pinctrl-0 = <&cec_pins_a>; |
| + 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 = <<dc_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>; |
| + }; |
| + }; |
| + }; |
| }; |
| |
| ðernet0 { |
| @@ -40,12 +93,6 @@ |
| }; |
| }; |
| |
| -&cec { |
| - pinctrl-names = "default"; |
| - pinctrl-0 = <&cec_pins_a>; |
| - status = "okay"; |
| -}; |
| - |
| &i2c2 { |
| pinctrl-names = "default"; |
| pinctrl-0 = <&i2c2_pins_a>; |
| @@ -62,6 +109,20 @@ |
| status = "okay"; |
| }; |
| |
| +<dc { |
| + 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.20.1 |
| |