mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 21:45:01 +08:00
1cbf45e40a
Add WP/CD pinctrl for esdhc2. Also, add vmmc-supply for esdhc2. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
184 lines
4.0 KiB
Plaintext
184 lines
4.0 KiB
Plaintext
/*
|
|
* Copyright 2012 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
|
|
* Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>, Pengutronix
|
|
*
|
|
* The code contained herein is licensed under the GNU General Public
|
|
* License. You may obtain a copy of the GNU General Public License
|
|
* Version 2 or later at the following locations:
|
|
*
|
|
* http://www.opensource.org/licenses/gpl-license.html
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
*/
|
|
|
|
#include "imx53.dtsi"
|
|
|
|
/ {
|
|
model = "TQ TQMa53";
|
|
compatible = "tq,tqma53", "fsl,imx53";
|
|
|
|
memory {
|
|
reg = <0x70000000 0x40000000>; /* Up to 1GiB */
|
|
};
|
|
|
|
regulators {
|
|
compatible = "simple-bus";
|
|
|
|
reg_3p3v: 3p3v {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "3P3V";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-always-on;
|
|
};
|
|
};
|
|
};
|
|
|
|
&esdhc2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_esdhc2_1>,
|
|
<&pinctrl_tqma53_esdhc2_2>;
|
|
vmmc-supply = <®_3p3v>;
|
|
wp-gpios = <&gpio1 2 0>;
|
|
cd-gpios = <&gpio1 4 0>;
|
|
status = "disabled";
|
|
};
|
|
|
|
&uart3 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_uart3_2>;
|
|
status = "disabled";
|
|
};
|
|
|
|
&ecspi1 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_ecspi1_1>;
|
|
fsl,spi-num-chipselects = <4>;
|
|
cs-gpios = <&gpio2 30 0>, <&gpio3 19 0>,
|
|
<&gpio3 24 0>, <&gpio3 25 0>;
|
|
status = "disabled";
|
|
};
|
|
|
|
&esdhc3 { /* EMMC */
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_esdhc3_1>;
|
|
vmmc-supply = <®_3p3v>;
|
|
non-removable;
|
|
bus-width = <8>;
|
|
status = "okay";
|
|
};
|
|
|
|
&iomuxc {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_hog>;
|
|
|
|
esdhc2_2 {
|
|
pinctrl_tqma53_esdhc2_2: esdhc2-tqma53-grp2 {
|
|
fsl,pins = <
|
|
MX53_PAD_GPIO_4__GPIO1_4 0x80000000 /* SD2_CD */
|
|
MX53_PAD_GPIO_2__GPIO1_2 0x80000000 /* SD2_WP */
|
|
>;
|
|
};
|
|
};
|
|
|
|
i2s {
|
|
pinctrl_i2s_1: i2s-grp1 {
|
|
fsl,pins = <
|
|
MX53_PAD_KEY_COL0__AUDMUX_AUD5_TXC 0x80000000 /* I2S_SCLK */
|
|
MX53_PAD_KEY_ROW0__AUDMUX_AUD5_TXD 0x80000000 /* I2S_DOUT */
|
|
MX53_PAD_KEY_COL1__AUDMUX_AUD5_TXFS 0x80000000 /* I2S_LRCLK */
|
|
MX53_PAD_KEY_ROW1__AUDMUX_AUD5_RXD 0x80000000 /* I2S_DIN */
|
|
>;
|
|
};
|
|
};
|
|
|
|
hog {
|
|
pinctrl_hog: hoggrp {
|
|
fsl,pins = <
|
|
MX53_PAD_GPIO_0__CCM_SSI_EXT1_CLK 0x80000000 /* SSI_MCLK */
|
|
MX53_PAD_PATA_DA_1__GPIO7_7 0x80000000 /* LCD_BLT_EN */
|
|
MX53_PAD_PATA_DA_2__GPIO7_8 0x80000000 /* LCD_RESET */
|
|
MX53_PAD_PATA_DATA5__GPIO2_5 0x80000000 /* LCD_POWER */
|
|
MX53_PAD_PATA_DATA6__GPIO2_6 0x80000000 /* PMIC_INT */
|
|
MX53_PAD_PATA_DATA14__GPIO2_14 0x80000000 /* CSI_RST */
|
|
MX53_PAD_PATA_DATA15__GPIO2_15 0x80000000 /* CSI_PWDN */
|
|
MX53_PAD_GPIO_19__GPIO4_5 0x80000000 /* #SYSTEM_DOWN */
|
|
MX53_PAD_GPIO_3__GPIO1_3 0x80000000
|
|
MX53_PAD_PATA_DA_0__GPIO7_6 0x80000000 /* #PHY_RESET */
|
|
MX53_PAD_GPIO_1__PWM2_PWMO 0x80000000 /* LCD_CONTRAST */
|
|
>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&uart1 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_uart1_2>;
|
|
fsl,uart-has-rtscts;
|
|
status = "disabled";
|
|
};
|
|
|
|
&uart2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_uart2_1>;
|
|
status = "disabled";
|
|
};
|
|
|
|
&can1 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_can1_2>;
|
|
status = "disabled";
|
|
};
|
|
|
|
&can2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_can2_1>;
|
|
status = "disabled";
|
|
};
|
|
|
|
&i2c3 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_i2c3_1>;
|
|
status = "disabled";
|
|
};
|
|
|
|
&cspi {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_cspi_1>;
|
|
fsl,spi-num-chipselects = <3>;
|
|
cs-gpios = <&gpio1 18 0>, <&gpio1 19 0>,
|
|
<&gpio1 21 0>;
|
|
status = "disabled";
|
|
};
|
|
|
|
&i2c2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_i2c2_1>;
|
|
status = "okay";
|
|
|
|
pmic: mc34708@8 {
|
|
compatible = "fsl,mc34708";
|
|
reg = <0x8>;
|
|
fsl,mc13xxx-uses-rtc;
|
|
interrupt-parent = <&gpio2>;
|
|
interrupts = <6 4>; /* PATA_DATA6, active high */
|
|
};
|
|
|
|
sensor1: lm75@48 {
|
|
compatible = "lm75";
|
|
reg = <0x48>;
|
|
};
|
|
|
|
eeprom: 24c64@50 {
|
|
compatible = "at,24c64";
|
|
pagesize = <32>;
|
|
reg = <0x50>;
|
|
};
|
|
};
|
|
|
|
&fec {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_fec_1>;
|
|
phy-mode = "rmii";
|
|
status = "disabled";
|
|
};
|