aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYannick Fertré <yannick.fertre@st.com>2018-09-20 10:33:52 -0400
committerAlexandre Torgue <alexandre.torgue@st.com>2018-09-21 08:58:41 -0400
commit67330599f93672bd351123c729e2591a460fd24c (patch)
tree5216a9eba94d130fb1cfa8ce5a5defc0d156b4a6
parentaf345df14dc8ec97cb78e98426d62f6f107a28c0 (diff)
ARM: dts: stm32: enable display on stm32mp157c-ev1 board
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>
-rw-r--r--arch/arm/boot/dts/stm32mp157c-ev1.dts73
1 files changed, 67 insertions, 6 deletions
diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts
index 372bc2ea6b92..063ee8ac5dcb 100644
--- a/arch/arm/boot/dts/stm32mp157c-ev1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ev1.dts
@@ -6,6 +6,7 @@
6/dts-v1/; 6/dts-v1/;
7 7
8#include "stm32mp157c-ed1.dts" 8#include "stm32mp157c-ed1.dts"
9#include <dt-bindings/gpio/gpio.h>
9 10
10/ { 11/ {
11 model = "STMicroelectronics STM32MP157C eval daughter on eval mother"; 12 model = "STMicroelectronics STM32MP157C eval daughter on eval mother";
@@ -19,6 +20,58 @@
19 serial0 = &uart4; 20 serial0 = &uart4;
20 ethernet0 = &ethernet0; 21 ethernet0 = &ethernet0;
21 }; 22 };
23
24 panel_backlight: panel-backlight {
25 compatible = "gpio-backlight";
26 gpios = <&gpiod 13 GPIO_ACTIVE_LOW>;
27 default-on;
28 status = "okay";
29 };
30};
31
32&cec {
33 pinctrl-names = "default";
34 pinctrl-0 = <&cec_pins_a>;
35 status = "okay";
36};
37
38&dsi {
39 #address-cells = <1>;
40 #size-cells = <0>;
41 status = "okay";
42
43 ports {
44 #address-cells = <1>;
45 #size-cells = <0>;
46
47 port@0 {
48 reg = <0>;
49 dsi_in: endpoint {
50 remote-endpoint = <&ltdc_ep0_out>;
51 };
52 };
53
54 port@1 {
55 reg = <1>;
56 dsi_out: endpoint {
57 remote-endpoint = <&dsi_panel_in>;
58 };
59 };
60 };
61
62 panel-dsi@0 {
63 compatible = "raydium,rm68200";
64 reg = <0>;
65 reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
66 backlight = <&panel_backlight>;
67 status = "okay";
68
69 port {
70 dsi_panel_in: endpoint {
71 remote-endpoint = <&dsi_out>;
72 };
73 };
74 };
22}; 75};
23 76
24&ethernet0 { 77&ethernet0 {
@@ -40,12 +93,6 @@
40 }; 93 };
41}; 94};
42 95
43&cec {
44 pinctrl-names = "default";
45 pinctrl-0 = <&cec_pins_a>;
46 status = "okay";
47};
48
49&i2c2 { 96&i2c2 {
50 pinctrl-names = "default"; 97 pinctrl-names = "default";
51 pinctrl-0 = <&i2c2_pins_a>; 98 pinctrl-0 = <&i2c2_pins_a>;
@@ -62,6 +109,20 @@
62 status = "okay"; 109 status = "okay";
63}; 110};
64 111
112&ltdc {
113 status = "okay";
114
115 port {
116 #address-cells = <1>;
117 #size-cells = <0>;
118
119 ltdc_ep0_out: endpoint@0 {
120 reg = <0>;
121 remote-endpoint = <&dsi_in>;
122 };
123 };
124};
125
65&m_can1 { 126&m_can1 {
66 pinctrl-names = "default"; 127 pinctrl-names = "default";
67 pinctrl-0 = <&m_can1_pins_a>; 128 pinctrl-0 = <&m_can1_pins_a>;