2018-02-15 08:22:54

by Philippe Cornu

[permalink] [raw]
Subject: [PATCH 0/3] ARM: dts: stm32: Add display support on stm32f469-disco

This serie adds the mipi dsi support to stm32f469 and enables it
on the stm32f469-disco board.

Philippe CORNU (1):
ARM: dts: stm32: Add display support on stm32f469-disco

Philippe Cornu (2):
ARM: dts: stm32: Add dt-bindings gpio.h include on stm32f469-disco
ARM: dts: stm32: Add new stm32f469 dtsi file with mipi dsi

arch/arm/boot/dts/stm32f469-disco.dts | 54 +++++++++++++++++++++++++++++++++--
arch/arm/boot/dts/stm32f469.dtsi | 19 ++++++++++++
2 files changed, 71 insertions(+), 2 deletions(-)
create mode 100644 arch/arm/boot/dts/stm32f469.dtsi

--
2.15.1



2018-02-15 08:22:11

by Philippe Cornu

[permalink] [raw]
Subject: [PATCH 1/3] ARM: dts: stm32: Add dt-bindings gpio.h include on stm32f469-disco

Add dt-bindings/gpio/gpio.h include and use it on vcc5v_otg.

Signed-off-by: Philippe Cornu <[email protected]>
---
arch/arm/boot/dts/stm32f469-disco.dts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts
index bdd03ac7a4b5..7d53b794d27b 100644
--- a/arch/arm/boot/dts/stm32f469-disco.dts
+++ b/arch/arm/boot/dts/stm32f469-disco.dts
@@ -48,6 +48,7 @@
/dts-v1/;
#include "stm32f429.dtsi"
#include "stm32f469-pinctrl.dtsi"
+#include <dt-bindings/gpio/gpio.h>

/ {
model = "STMicroelectronics STM32F469i-DISCO board";
@@ -74,7 +75,7 @@
vcc5v_otg: vcc5v-otg-regulator {
compatible = "regulator-fixed";
enable-active-high;
- gpio = <&gpiob 2 0>;
+ gpio = <&gpiob 2 GPIO_ACTIVE_HIGH>;
regulator-name = "vcc5_host1";
regulator-always-on;
};
--
2.15.1


2018-02-15 08:23:29

by Philippe Cornu

[permalink] [raw]
Subject: [PATCH 2/3] ARM: dts: stm32: Add new stm32f469 dtsi file with mipi dsi

In the stm32f4 family, mipi dsi is only supported on stm32f469.
So add a new stm32f469 dtsi file & add mipi dsi support inside.

Signed-off-by: Philippe Cornu <[email protected]>
---
arch/arm/boot/dts/stm32f469.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 arch/arm/boot/dts/stm32f469.dtsi

diff --git a/arch/arm/boot/dts/stm32f469.dtsi b/arch/arm/boot/dts/stm32f469.dtsi
new file mode 100644
index 000000000000..5ae5213f68cb
--- /dev/null
+++ b/arch/arm/boot/dts/stm32f469.dtsi
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
+/* Copyright (C) STMicroelectronics 2017 - All Rights Reserved */
+
+#include "stm32f429.dtsi"
+
+/ {
+ soc {
+ dsi: dsi@40016c00 {
+ compatible = "st,stm32-dsi";
+ reg = <0x40016c00 0x800>;
+ interrupts = <92>;
+ resets = <&rcc STM32F4_APB2_RESET(DSI)>;
+ reset-names = "apb";
+ clocks = <&rcc 1 CLK_F469_DSI>, <&clk_hse>;
+ clock-names = "pclk", "ref";
+ status = "disabled";
+ };
+ };
+};
--
2.15.1


2018-02-15 08:23:52

by Philippe Cornu

[permalink] [raw]
Subject: [PATCH 3/3] ARM: dts: stm32: Add display support on stm32f469-disco

From: Philippe CORNU <[email protected]>

Add display support on the stm32f469-disco board.

Signed-off-by: Philippe Cornu <[email protected]>
---
arch/arm/boot/dts/stm32f469-disco.dts | 51 ++++++++++++++++++++++++++++++++++-
1 file changed, 50 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts
index 7d53b794d27b..9bfb040e9909 100644
--- a/arch/arm/boot/dts/stm32f469-disco.dts
+++ b/arch/arm/boot/dts/stm32f469-disco.dts
@@ -46,7 +46,7 @@
*/

/dts-v1/;
-#include "stm32f429.dtsi"
+#include "stm32f469.dtsi"
#include "stm32f469-pinctrl.dtsi"
#include <dt-bindings/gpio/gpio.h>

@@ -89,6 +89,55 @@
clock-frequency = <8000000>;
};

+&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_out_dsi>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+ dsi_out: endpoint {
+ remote-endpoint = <&dsi_panel_in>;
+ };
+ };
+ };
+
+ panel-dsi@0 {
+ compatible = "orisetech,otm8009a";
+ reg = <0>; /* dsi virtual channel (0..3) */
+ reset-gpios = <&gpioh 7 GPIO_ACTIVE_LOW>;
+ status = "okay";
+
+ port {
+ dsi_panel_in: endpoint {
+ remote-endpoint = <&dsi_out>;
+ };
+ };
+ };
+};
+
+&ltdc {
+ dma-ranges;
+ status = "okay";
+
+ port {
+ ltdc_out_dsi: endpoint@0 {
+ remote-endpoint = <&dsi_in>;
+ };
+ };
+};
+
&rtc {
status = "okay";
};
--
2.15.1


2018-02-17 23:00:47

by kernel test robot

[permalink] [raw]
Subject: Re: [PATCH 3/3] ARM: dts: stm32: Add display support on stm32f469-disco

Hi Philippe,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on v4.16-rc1 next-20180216]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Philippe-Cornu/ARM-dts-stm32-Add-display-support-on-stm32f469-disco/20180218-052546
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: arm-at91_dt_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm

All errors (new ones prefixed by >>):

>> Error: arch/arm/boot/dts/stm32f469.dtsi:14.21-22 syntax error
FATAL ERROR: Unable to parse input tree

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation


Attachments:
(No filename) (1.12 kB)
.config.gz (23.05 kB)
Download all attachments

2018-05-03 14:59:48

by Alexandre Torgue

[permalink] [raw]
Subject: Re: [PATCH 0/3] ARM: dts: stm32: Add display support on stm32f469-disco

Hi Philippe

On 02/15/2018 09:20 AM, Philippe Cornu wrote:
> This serie adds the mipi dsi support to stm32f469 and enables it
> on the stm32f469-disco board.
>
> Philippe CORNU (1):
> ARM: dts: stm32: Add display support on stm32f469-disco
>
> Philippe Cornu (2):
> ARM: dts: stm32: Add dt-bindings gpio.h include on stm32f469-disco
> ARM: dts: stm32: Add new stm32f469 dtsi file with mipi dsi
>
> arch/arm/boot/dts/stm32f469-disco.dts | 54 +++++++++++++++++++++++++++++++++--
> arch/arm/boot/dts/stm32f469.dtsi | 19 ++++++++++++
> 2 files changed, 71 insertions(+), 2 deletions(-)
> create mode 100644 arch/arm/boot/dts/stm32f469.dtsi
>

Thanks for new dtsi file. Series applied on stm32-next.

Regards
Alex