mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 02:06:49 +07:00
2636c1e27f
imx27-pdk has a MC13783 PMIC connected to CSPI2 port. Add support for it. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
126 lines
2.8 KiB
Plaintext
126 lines
2.8 KiB
Plaintext
/*
|
|
* Copyright 2012 Sascha Hauer, 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
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "imx27.dtsi"
|
|
|
|
/ {
|
|
model = "Freescale i.MX27 Product Development Kit";
|
|
compatible = "fsl,imx27-pdk", "fsl,imx27";
|
|
|
|
memory {
|
|
reg = <0xa0000000 0x08000000>;
|
|
};
|
|
};
|
|
|
|
&cspi2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_cspi2>;
|
|
fsl,spi-num-chipselects = <1>;
|
|
cs-gpios = <&gpio4 21 GPIO_ACTIVE_HIGH>;
|
|
status = "okay";
|
|
|
|
pmic: mc13783@0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
compatible = "fsl,mc13783";
|
|
reg = <0>;
|
|
spi-cs-high;
|
|
spi-max-frequency = <1000000>;
|
|
interrupt-parent = <&gpio3>;
|
|
interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
regulators {
|
|
vgen_reg: vgen {
|
|
regulator-min-microvolt = <1500000>;
|
|
regulator-max-microvolt = <1500000>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
vmmc1_reg: vmmc1 {
|
|
regulator-min-microvolt = <1600000>;
|
|
regulator-max-microvolt = <3000000>;
|
|
};
|
|
|
|
gpo1_reg: gpo1 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
gpo3_reg: gpo3 {
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&fec {
|
|
phy-mode = "mii";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_fec>;
|
|
status = "okay";
|
|
};
|
|
|
|
&uart1 {
|
|
fsl,uart-has-rtscts;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_uart1>;
|
|
status = "okay";
|
|
};
|
|
|
|
&iomuxc {
|
|
imx27-pdk {
|
|
pinctrl_cspi2: cspi2grp {
|
|
fsl,pins = <
|
|
MX27_PAD_CSPI2_MISO__CSPI2_MISO 0x0
|
|
MX27_PAD_CSPI2_MOSI__CSPI2_MOSI 0x0
|
|
MX27_PAD_CSPI2_SCLK__CSPI2_SCLK 0x0
|
|
MX27_PAD_CSPI2_SS0__GPIO4_21 0x0 /* SPI2 CS0 */
|
|
MX27_PAD_TOUT__GPIO3_14 0x0 /* PMIC IRQ */
|
|
>;
|
|
};
|
|
|
|
pinctrl_fec: fecgrp {
|
|
fsl,pins = <
|
|
MX27_PAD_SD3_CMD__FEC_TXD0 0x0
|
|
MX27_PAD_SD3_CLK__FEC_TXD1 0x0
|
|
MX27_PAD_ATA_DATA0__FEC_TXD2 0x0
|
|
MX27_PAD_ATA_DATA1__FEC_TXD3 0x0
|
|
MX27_PAD_ATA_DATA2__FEC_RX_ER 0x0
|
|
MX27_PAD_ATA_DATA3__FEC_RXD1 0x0
|
|
MX27_PAD_ATA_DATA4__FEC_RXD2 0x0
|
|
MX27_PAD_ATA_DATA5__FEC_RXD3 0x0
|
|
MX27_PAD_ATA_DATA6__FEC_MDIO 0x0
|
|
MX27_PAD_ATA_DATA7__FEC_MDC 0x0
|
|
MX27_PAD_ATA_DATA8__FEC_CRS 0x0
|
|
MX27_PAD_ATA_DATA9__FEC_TX_CLK 0x0
|
|
MX27_PAD_ATA_DATA10__FEC_RXD0 0x0
|
|
MX27_PAD_ATA_DATA11__FEC_RX_DV 0x0
|
|
MX27_PAD_ATA_DATA12__FEC_RX_CLK 0x0
|
|
MX27_PAD_ATA_DATA13__FEC_COL 0x0
|
|
MX27_PAD_ATA_DATA14__FEC_TX_ER 0x0
|
|
MX27_PAD_ATA_DATA15__FEC_TX_EN 0x0
|
|
>;
|
|
};
|
|
|
|
pinctrl_uart1: uart1grp {
|
|
fsl,pins = <
|
|
MX27_PAD_UART1_TXD__UART1_TXD 0x0
|
|
MX27_PAD_UART1_RXD__UART1_RXD 0x0
|
|
MX27_PAD_UART1_CTS__UART1_CTS 0x0
|
|
MX27_PAD_UART1_RTS__UART1_RTS 0x0
|
|
>;
|
|
};
|
|
};
|
|
};
|