From mboxrd@z Thu Jan 1 00:00:00 1970 From: Denis Carikli Subject: [PATCHv3][ 5/5] ARM: dts: mbimxsd35 Add video and displays support. Date: Wed, 23 Oct 2013 14:43:49 +0200 Message-ID: <1382532229-32755-5-git-send-email-denis@eukrea.com> References: <1382532229-32755-1-git-send-email-denis@eukrea.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1382532229-32755-1-git-send-email-denis-fO0SIAKYzcbQT0dZR+AlfA@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Sascha Hauer Cc: Shawn Guo , =?UTF-8?q?Eric=20B=C3=A9nard?= , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Denis Carikli , Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jean-Christophe Plagniol-Villard , Tomi Valkeinen , linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Stephen Warren Cc: Ian Campbell Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Sascha Hauer Cc: Jean-Christophe Plagniol-Villard Cc: Tomi Valkeinen Cc: linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Eric B=C3=A9nard Signed-off-by: Denis Carikli --- ChangeLog v2->v3: - The dts were adapted to the new DT bindings which looks more like the= IPUv3 ones. --- .../imx35-eukrea-mbimxsd35-baseboard-cmo-qvga.dts | 61 ++++++++++++= ++++++++ .../imx35-eukrea-mbimxsd35-baseboard-dvi-svga.dts | 51 ++++++++++++= ++++ .../imx35-eukrea-mbimxsd35-baseboard-dvi-vga.dts | 51 ++++++++++++= ++++ 3 files changed, 163 insertions(+) create mode 100644 arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard-= cmo-qvga.dts create mode 100644 arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard-= dvi-svga.dts create mode 100644 arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard-= dvi-vga.dts diff --git a/arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard-cmo-qvg= a.dts b/arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard-cmo-qvga.dts new file mode 100644 index 0000000..6d186ca --- /dev/null +++ b/arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard-cmo-qvga.dts @@ -0,0 +1,61 @@ +/* + * Copyright 2013 Eukr=C3=A9a Electromatique + * + * 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. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + +#include "imx35-eukrea-mbimxsd35-baseboard.dts" + +/ { + model =3D "Eukrea MBIMXSD35 with the CMO-QVGA Display"; + compatible =3D "eukrea,mbimxsd35-baseboard-cmo-qvga", "eukrea,mbimxsd= 35-baseboard", "eukrea,cpuimx35", "fsl,imx35"; + + display@di0 { + regulator-name =3D "lcd"; + interface-pix-fmt =3D "rgb666"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_lcdc_1>; + model =3D "CMO-QVGA"; + display-timings { + qvga_timings: 320x240 { + clock-frequency =3D <6500000>; + hactive =3D <320>; + vactive =3D <240>; + hback-porch =3D <68>; + hfront-porch =3D <20>; + vback-porch =3D <15>; + vfront-porch =3D <4>; + hsync-len =3D <30>; + vsync-len =3D <3>; + }; + }; + }; + + reg_lcd_3v3: lcd-en { + compatible =3D "regulator-fixed"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_reg_lcd_3v3>; + regulator-name =3D "lcd"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + gpio =3D <&gpio1 4 0>; + enable-active-high; + }; +}; + +&lcdc { + lcd-supply =3D <®_lcd_3v3>; + status =3D "okay"; +}; diff --git a/arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard-dvi-svg= a.dts b/arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard-dvi-svga.dts new file mode 100644 index 0000000..ccf5f48 --- /dev/null +++ b/arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard-dvi-svga.dts @@ -0,0 +1,51 @@ +/* + * Copyright 2013 Eukr=C3=A9a Electromatique + * + * 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. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + +#include "imx35-eukrea-mbimxsd35-baseboard.dts" + +/ { + model =3D "Eukrea MBIMXSD35 with the DVI-SVGA Display"; + compatible =3D "eukrea,mbimxsd35-baseboard-dvi-svga", "eukrea,mbimxsd= 35-baseboard", "eukrea,cpuimx35", "fsl,imx35"; + display@di0 { + interface-pix-fmt =3D "rgb666"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_lcdc_1>; + model =3D "DVI-SVGA"; + display-timings { + svga_timings: 800x600 { + clock-frequency =3D <40000000>; + hactive =3D <800>; + vactive =3D <600>; + hback-porch =3D <75>; + hfront-porch =3D <75>; + vback-porch =3D <7>; + vfront-porch =3D <75>; + hsync-len =3D <7>; + vsync-len =3D <7>; + hsync-active =3D <1>; + vsync-active =3D <1>; + de-active =3D <1>; + pixelclk-active =3D <0>; + }; + }; + }; +}; + +&lcdc { + status =3D "okay"; +}; diff --git a/arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard-dvi-vga= =2Edts b/arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard-dvi-vga.dts new file mode 100644 index 0000000..6e31684 --- /dev/null +++ b/arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard-dvi-vga.dts @@ -0,0 +1,51 @@ +/* + * Copyright 2013 Eukr=C3=A9a Electromatique + * + * 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. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + +#include "imx35-eukrea-mbimxsd35-baseboard.dts" + +/ { + model =3D "Eukrea MBIMXSD35 with the DVI-VGA Display"; + compatible =3D "eukrea,mbimxsd35-baseboard-dvi-vga", "eukrea,mbimxsd3= 5-baseboard", "eukrea,cpuimx35", "fsl,imx35"; + display@di0 { + interface-pix-fmt =3D "rgb666"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_lcdc_1>; + model =3D "DVI-VGA"; + display-timings { + vga_timings: 640x480 { + clock-frequency =3D <31250000>; + hactive =3D <640>; + vactive =3D <480>; + hback-porch =3D <100>; + hfront-porch =3D <100>; + vback-porch =3D <7>; + vfront-porch =3D <100>; + hsync-len =3D <7>; + vsync-len =3D <7>; + hsync-active =3D <1>; + vsync-active =3D <1>; + de-active =3D <1>; + pixelclk-active =3D <0>; + }; + }; + }; +}; + +&lcdc { + status =3D "okay"; +}; --=20 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe devicetree" i= n the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html