From mboxrd@z Thu Jan 1 00:00:00 1970 From: Denis Carikli Subject: [PATCHv6][ 6/7] ARM: dts: Add support for the cpuimx25 board from Eukrea and its baseboard. Date: Thu, 24 Oct 2013 10:01:04 +0200 Message-ID: <1382601665-6830-6-git-send-email-denis@eukrea.com> References: <1382601665-6830-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: <1382601665-6830-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 List-Id: devicetree@vger.kernel.org The following devices/functionalities were added: * Main and secondary UARTs. * i2c and the pcf8563 device. * CMO-QVGA(With backlight), DVI-VGA and DVI-SVGA displays * Ethernet. * NAND. * The BP1 button. * The LED. * Watchdog * SD. 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: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Cc: Eric B=C3=A9nard Signed-off-by: Denis Carikli --- ChangeLog v5->v6: - Since the sound support is now in a separate patch, remove its mentio= n from the commit message. --- arch/arm/boot/dts/imx25-eukrea-cpuimx25.dtsi | 53 +++++++++ .../imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts | 63 +++++++++++ .../imx25-eukrea-mbimxsd25-baseboard-dvi-svga.dts | 50 +++++++++ .../imx25-eukrea-mbimxsd25-baseboard-dvi-vga.dts | 50 +++++++++ .../boot/dts/imx25-eukrea-mbimxsd25-baseboard.dts | 116 ++++++++++++= ++++++++ 5 files changed, 332 insertions(+) create mode 100644 arch/arm/boot/dts/imx25-eukrea-cpuimx25.dtsi create mode 100644 arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-= cmo-qvga.dts create mode 100644 arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-= dvi-svga.dts create mode 100644 arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-= dvi-vga.dts create mode 100644 arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard.= dts diff --git a/arch/arm/boot/dts/imx25-eukrea-cpuimx25.dtsi b/arch/arm/bo= ot/dts/imx25-eukrea-cpuimx25.dtsi new file mode 100644 index 0000000..0cc7864 --- /dev/null +++ b/arch/arm/boot/dts/imx25-eukrea-cpuimx25.dtsi @@ -0,0 +1,53 @@ +/* + * 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 "imx25.dtsi" + +/ { + model =3D "Eukrea CPUIMX25"; + compatible =3D "eukrea,cpuimx25", "fsl,imx25"; + + memory { + reg =3D <0x80000000 0x4000000>; /* 64M */ + }; +}; + +&fec { + phy-mode =3D "rmii"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_fec_1>; + status =3D "okay"; +}; + +&i2c1 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_i2c1_1>; + status =3D "okay"; + + pcf8563@51 { + compatible =3D "nxp,pcf8563"; + reg =3D <0x51>; + }; +}; + +&nfc { + nand-bus-width =3D <8>; + nand-ecc-mode =3D "hw"; + nand-on-flash-bbt; + status =3D "okay"; +}; diff --git a/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvg= a.dts b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts new file mode 100644 index 0000000..cabd6f6 --- /dev/null +++ b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts @@ -0,0 +1,63 @@ +/* + * 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 "imx25-eukrea-mbimxsd25-baseboard.dts" + +/ { + model =3D "Eukrea MBIMXSD25 with the CMO-QVGA Display"; + compatible =3D "eukrea,mbimxsd25-baseboard-cmo-qvga", "eukrea,mbimxsd= 25-baseboard", "eukrea,cpuimx25", "fsl,imx25"; + + cmo_qvga: display { + model =3D "CMO-QVGA"; + bits-per-pixel =3D <16>; + fsl,pcr =3D <0xcad08b80>; + bus-width =3D <18>; + native-mode =3D <&qvga_timings>; + display-timings { + qvga_timings: 320x240 { + clock-frequency =3D <6500000>; + hactive =3D <320>; + vactive =3D <240>; + hback-porch =3D <30>; + hfront-porch =3D <38>; + vback-porch =3D <20>; + vfront-porch =3D <3>; + hsync-len =3D <15>; + vsync-len =3D <4>; + }; + }; + }; + + reg_lcd_3v3: lcd-en { + compatible =3D "regulator-fixed"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_reg_lcd_3v3>; + regulator-name =3D "lcd-3v3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + gpio =3D <&gpio1 26 0>; + enable-active-high; + }; +}; + +&lcdc { + display =3D <&cmo_qvga>; + fsl,pwmr =3D <0x00a903ff>; + lcd-supply =3D <®_lcd_3v3>; + status =3D "okay"; +}; diff --git a/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-dvi-svg= a.dts b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-dvi-svga.dts new file mode 100644 index 0000000..1089ac2 --- /dev/null +++ b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-dvi-svga.dts @@ -0,0 +1,50 @@ +/* + * 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 "imx25-eukrea-mbimxsd25-baseboard.dts" + +/ { + model =3D "Eukrea MBIMXSD25 with the DVI-SVGA Display"; + compatible =3D "eukrea,mbimxsd25-baseboard-dvi-svga", "eukrea,mbimxsd= 25-baseboard", "eukrea,cpuimx25", "fsl,imx25"; + + dvi_svga: display { + model =3D "DVI-SVGA"; + bits-per-pixel =3D <16>; + fsl,pcr =3D <0xfa208b80>; + bus-width =3D <18>; + native-mode =3D <&dvi_svga_timings>; + display-timings { + dvi_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>; + }; + }; + }; +}; + +&lcdc { + display =3D <&dvi_svga>; + status =3D "okay"; +}; diff --git a/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-dvi-vga= =2Edts b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-dvi-vga.dts new file mode 100644 index 0000000..2edbbab --- /dev/null +++ b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-dvi-vga.dts @@ -0,0 +1,50 @@ +/* + * 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 "imx25-eukrea-mbimxsd25-baseboard.dts" + +/ { + model =3D "Eukrea MBIMXSD25 with the DVI-VGA Display"; + compatible =3D "eukrea,mbimxsd25-baseboard-dvi-vga", "eukrea,mbimxsd2= 5-baseboard", "eukrea,cpuimx25", "fsl,imx25"; + + dvi_vga: display { + model =3D "DVI-VGA"; + bits-per-pixel =3D <16>; + fsl,pcr =3D <0xfa208b80>; + bus-width =3D <18>; + native-mode =3D <&dvi_vga_timings>; + display-timings { + dvi_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>; + }; + }; + }; +}; + +&lcdc { + display =3D <&dvi_vga>; + status =3D "okay"; +}; diff --git a/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard.dts b/a= rch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard.dts new file mode 100644 index 0000000..be24a85 --- /dev/null +++ b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard.dts @@ -0,0 +1,116 @@ +/* + * 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. + */ + +/dts-v1/; +#include "imx25-eukrea-cpuimx25.dtsi" + +/ { + model =3D "Eukrea MBIMXSD25"; + compatible =3D "eukrea,mbimxsd25-baseboard", "eukrea,cpuimx25", "fsl,= imx25"; + + gpio_keys { + compatible =3D "gpio-keys"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_gpiokeys_1>; + + bp1 { + label =3D "BP1"; + gpios =3D <&gpio3 18 1>; + linux,code =3D <256>; + gpio-key,wakeup; + linux,input-type =3D <1>; + }; + }; + + leds { + compatible =3D "gpio-leds"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_gpioled>; + + led1 { + label =3D "led1"; + gpios =3D <&gpio3 19 1>; + linux,default-trigger =3D "heartbeat"; + }; + }; +}; + +&audmux { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_audmux_1>; + status =3D "okay"; +}; + +&esdhc1 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_esdhc1_1>; + cd-gpios =3D <&gpio1 20>; + status =3D "okay"; +}; + +&i2c1 { + tlv320aic23: codec@1a { + compatible =3D "ti,tlv320aic23"; + reg =3D <0x1a>; + }; +}; + +&iomuxc { + gpio_keys { + pinctrl_gpiokeys_1: gpiokeysgrp-1 { + fsl,pins =3D < + MX25_PAD_VSTBY_ACK__GPIO_3_18 0x80000000 + >; + }; + }; + + leds { + pinctrl_gpioled: gpioledgrp-1 { + fsl,pins =3D < + MX25_PAD_POWER_FAIL__GPIO_3_19 0x80000000 + >; + }; + }; + + reg_lcd_3v3 { + pinctrl_reg_lcd_3v3: reg_lcd_3v3 { + fsl,pins =3D < + MX25_PAD_PWM__GPIO_1_26 0x80000000 + >; + }; + }; +}; + +&ssi1 { + fsl,mode =3D "i2s-slave"; + status =3D "okay"; +}; + +&uart1 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_uart1_1>; + fsl,uart-has-rtscts; + status =3D "okay"; +}; + +&uart2 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_uart2_1>; + fsl,uart-has-rtscts; + 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