]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ARM: dts: imx25: mbimxsd25: Add displays support.
authorDenis Carikli <denis@eukrea.com>
Thu, 22 May 2014 14:00:43 +0000 (16:00 +0200)
committerShawn Guo <shawn.guo@freescale.com>
Fri, 18 Jul 2014 08:49:34 +0000 (16:49 +0800)
The CMO-QVGA, DVI-VGA and DVI-SVGA displays were added.

Signed-off-by: Denis Carikli <denis@eukrea.com>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts [new file with mode: 0644]
arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-dvi-svga.dts [new file with mode: 0644]
arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-dvi-vga.dts [new file with mode: 0644]

index 677154184697405a21fe4e30016126bd423ba09a..aa2b35ecd938ef9b7b3fabbe5b4765af095261bb 100644 (file)
@@ -157,6 +157,9 @@ dtb-$(CONFIG_ARCH_MARCO) += marco-evb.dtb
 dtb-$(CONFIG_ARCH_MOXART) += moxart-uc7112lx.dtb
 dtb-$(CONFIG_ARCH_MXC) += \
        imx25-eukrea-mbimxsd25-baseboard.dtb \
+       imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dtb \
+       imx25-eukrea-mbimxsd25-baseboard-dvi-svga.dtb \
+       imx25-eukrea-mbimxsd25-baseboard-dvi-vga.dtb \
        imx25-karo-tx25.dtb \
        imx25-pdk.dtb \
        imx27-apf27.dtb \
diff --git a/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts
new file mode 100644 (file)
index 0000000..9797280
--- /dev/null
@@ -0,0 +1,72 @@
+/*
+ * Copyright 2013 Eukréa Electromatique <denis@eukrea.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include "imx25-eukrea-mbimxsd25-baseboard.dts"
+
+/ {
+       model = "Eukrea MBIMXSD25 with the CMO-QVGA Display";
+       compatible = "eukrea,mbimxsd25-baseboard-cmo-qvga", "eukrea,mbimxsd25-baseboard", "eukrea,cpuimx25", "fsl,imx25";
+
+       cmo_qvga: display {
+               model = "CMO-QVGA";
+               bits-per-pixel = <16>;
+               fsl,pcr = <0xcad08b80>;
+               bus-width = <18>;
+               native-mode = <&qvga_timings>;
+               display-timings {
+                       qvga_timings: 320x240 {
+                               clock-frequency = <6500000>;
+                               hactive = <320>;
+                               vactive = <240>;
+                               hback-porch = <30>;
+                               hfront-porch = <38>;
+                               vback-porch = <20>;
+                               vfront-porch = <3>;
+                               hsync-len = <15>;
+                               vsync-len = <4>;
+                       };
+               };
+       };
+
+       regulators {
+               compatible = "simple-bus";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               reg_lcd_3v3: regulator@0 {
+                       compatible = "regulator-fixed";
+                       reg = <0>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pinctrl_reg_lcd_3v3>;
+                       regulator-name = "lcd-3v3";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       gpio = <&gpio1 26 GPIO_ACTIVE_HIGH>;
+               };
+       };
+};
+
+&iomuxc {
+       imx25-eukrea-mbimxsd25-baseboard-cmo-qvga {
+               pinctrl_reg_lcd_3v3: reg_lcd_3v3 {
+                       fsl,pins = <MX25_PAD_PWM__GPIO_1_26 0x80000000>;
+               };
+       };
+};
+
+&lcdc {
+       display = <&cmo_qvga>;
+       fsl,lpccr = <0x00a903ff>;
+       lcd-supply = <&reg_lcd_3v3>;
+       status = "okay";
+};
diff --git a/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-dvi-svga.dts b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-dvi-svga.dts
new file mode 100644 (file)
index 0000000..8eee2f6
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2013 Eukréa Electromatique <denis@eukrea.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include "imx25-eukrea-mbimxsd25-baseboard.dts"
+
+/ {
+       model = "Eukrea MBIMXSD25 with the DVI-SVGA Display";
+       compatible = "eukrea,mbimxsd25-baseboard-dvi-svga", "eukrea,mbimxsd25-baseboard", "eukrea,cpuimx25", "fsl,imx25";
+
+       dvi_svga: display {
+               model = "DVI-SVGA";
+               bits-per-pixel = <16>;
+               fsl,pcr = <0xfa208b80>;
+               bus-width = <18>;
+               native-mode = <&dvi_svga_timings>;
+               display-timings {
+                       dvi_svga_timings: 800x600 {
+                               clock-frequency = <40000000>;
+                               hactive = <800>;
+                               vactive = <600>;
+                               hback-porch = <75>;
+                               hfront-porch = <75>;
+                               vback-porch = <7>;
+                               vfront-porch = <75>;
+                               hsync-len = <7>;
+                               vsync-len = <7>;
+                       };
+               };
+       };
+};
+
+&lcdc {
+       display = <&dvi_svga>;
+       status = "okay";
+};
diff --git a/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-dvi-vga.dts b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-dvi-vga.dts
new file mode 100644 (file)
index 0000000..447da62
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2013 Eukréa Electromatique <denis@eukrea.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include "imx25-eukrea-mbimxsd25-baseboard.dts"
+
+/ {
+       model = "Eukrea MBIMXSD25 with the DVI-VGA Display";
+       compatible = "eukrea,mbimxsd25-baseboard-dvi-vga", "eukrea,mbimxsd25-baseboard", "eukrea,cpuimx25", "fsl,imx25";
+
+       dvi_vga: display {
+               model = "DVI-VGA";
+               bits-per-pixel = <16>;
+               fsl,pcr = <0xfa208b80>;
+               bus-width = <18>;
+               native-mode = <&dvi_vga_timings>;
+               display-timings {
+                       dvi_vga_timings: 640x480 {
+                               clock-frequency = <31250000>;
+                               hactive = <640>;
+                               vactive = <480>;
+                               hback-porch = <100>;
+                               hfront-porch = <100>;
+                               vback-porch = <7>;
+                               vfront-porch = <100>;
+                               hsync-len = <7>;
+                               vsync-len = <7>;
+                       };
+               };
+       };
+};
+
+&lcdc {
+       display = <&dvi_vga>;
+       status = "okay";
+};