xref: /freebsd/sys/contrib/device-tree/src/arm/nxp/imx/imx25-karo-tx25.dts (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright 2012 Sascha Hauer, Pengutronix
4f126890aSEmmanuel Vadot */
5f126890aSEmmanuel Vadot
6f126890aSEmmanuel Vadot/dts-v1/;
7f126890aSEmmanuel Vadot#include "imx25.dtsi"
8f126890aSEmmanuel Vadot
9f126890aSEmmanuel Vadot/ {
10f126890aSEmmanuel Vadot	model = "Ka-Ro TX25";
11f126890aSEmmanuel Vadot	compatible = "karo,imx25-tx25", "fsl,imx25";
12f126890aSEmmanuel Vadot
13f126890aSEmmanuel Vadot	chosen {
14f126890aSEmmanuel Vadot		stdout-path = &uart1;
15f126890aSEmmanuel Vadot	};
16f126890aSEmmanuel Vadot
17*aa1a8ff2SEmmanuel Vadot	reg_fec_phy: regulator-0 {
18f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
19f126890aSEmmanuel Vadot		regulator-name = "fec-phy";
20f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
21f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
22f126890aSEmmanuel Vadot		gpio = <&gpio4 9 0>;
23f126890aSEmmanuel Vadot		enable-active-high;
24f126890aSEmmanuel Vadot	};
25f126890aSEmmanuel Vadot
26f126890aSEmmanuel Vadot	memory@80000000 {
27f126890aSEmmanuel Vadot		device_type = "memory";
28f126890aSEmmanuel Vadot		reg = <0x80000000 0x02000000 0x90000000 0x02000000>;
29f126890aSEmmanuel Vadot	};
30f126890aSEmmanuel Vadot};
31f126890aSEmmanuel Vadot
32f126890aSEmmanuel Vadot&iomuxc {
33f126890aSEmmanuel Vadot	pinctrl_uart1: uart1grp {
34f126890aSEmmanuel Vadot		fsl,pins = <
35*aa1a8ff2SEmmanuel Vadot			MX25_PAD_UART1_TXD__UART1_TXD 0x00000020
36*aa1a8ff2SEmmanuel Vadot			MX25_PAD_UART1_RXD__UART1_RXD 0x000000a0
37*aa1a8ff2SEmmanuel Vadot			MX25_PAD_UART1_CTS__UART1_CTS 0x00000060
38*aa1a8ff2SEmmanuel Vadot			MX25_PAD_UART1_RTS__UART1_RTS 0x000000e0
39f126890aSEmmanuel Vadot		>;
40f126890aSEmmanuel Vadot	};
41f126890aSEmmanuel Vadot
42f126890aSEmmanuel Vadot	pinctrl_fec: fecgrp {
43f126890aSEmmanuel Vadot		fsl,pins = <
44*aa1a8ff2SEmmanuel Vadot			MX25_PAD_D11__GPIO_4_9		0x00000021 /* FEC PHY power on pin */
45*aa1a8ff2SEmmanuel Vadot			MX25_PAD_D13__GPIO_4_7		0x000000a1 /* FEC reset */
46*aa1a8ff2SEmmanuel Vadot			MX25_PAD_FEC_MDC__FEC_MDC	0x00000060
47*aa1a8ff2SEmmanuel Vadot			MX25_PAD_FEC_MDIO__FEC_MDIO	0x000001f0
48*aa1a8ff2SEmmanuel Vadot			MX25_PAD_FEC_TDATA0__FEC_TDATA0	0x00000060
49*aa1a8ff2SEmmanuel Vadot			MX25_PAD_FEC_TDATA1__FEC_TDATA1	0x00000060
50*aa1a8ff2SEmmanuel Vadot			MX25_PAD_FEC_TX_EN__FEC_TX_EN	0x00000060
51*aa1a8ff2SEmmanuel Vadot			MX25_PAD_FEC_RDATA0__FEC_RDATA0	0x000000c1
52*aa1a8ff2SEmmanuel Vadot			MX25_PAD_FEC_RDATA1__FEC_RDATA1	0x000000c0
53*aa1a8ff2SEmmanuel Vadot			MX25_PAD_FEC_RX_DV__FEC_RX_DV	0x000000c0
54*aa1a8ff2SEmmanuel Vadot			MX25_PAD_FEC_TX_CLK__FEC_TX_CLK	0x000000c0
55f126890aSEmmanuel Vadot		>;
56f126890aSEmmanuel Vadot	};
57f126890aSEmmanuel Vadot
58f126890aSEmmanuel Vadot	pinctrl_nfc: nfcgrp {
59f126890aSEmmanuel Vadot		fsl,pins = <
60*aa1a8ff2SEmmanuel Vadot			MX25_PAD_NF_CE0__NF_CE0		0x00000001
61f126890aSEmmanuel Vadot			MX25_PAD_NFWE_B__NFWE_B		0x80000000
62f126890aSEmmanuel Vadot			MX25_PAD_NFRE_B__NFRE_B		0x80000000
63f126890aSEmmanuel Vadot			MX25_PAD_NFALE__NFALE		0x80000000
64f126890aSEmmanuel Vadot			MX25_PAD_NFCLE__NFCLE		0x80000000
65f126890aSEmmanuel Vadot			MX25_PAD_NFWP_B__NFWP_B		0x80000000
66*aa1a8ff2SEmmanuel Vadot			MX25_PAD_NFRB__NFRB		0x000000e0
67*aa1a8ff2SEmmanuel Vadot			MX25_PAD_D7__D7			0x00000080
68*aa1a8ff2SEmmanuel Vadot			MX25_PAD_D6__D6			0x00000080
69*aa1a8ff2SEmmanuel Vadot			MX25_PAD_D5__D5			0x00000080
70*aa1a8ff2SEmmanuel Vadot			MX25_PAD_D4__D4			0x00000080
71*aa1a8ff2SEmmanuel Vadot			MX25_PAD_D3__D3			0x00000080
72*aa1a8ff2SEmmanuel Vadot			MX25_PAD_D2__D2			0x00000080
73*aa1a8ff2SEmmanuel Vadot			MX25_PAD_D1__D1			0x00000000
74*aa1a8ff2SEmmanuel Vadot			MX25_PAD_D0__D0			0x00000080
75f126890aSEmmanuel Vadot		>;
76f126890aSEmmanuel Vadot	};
77f126890aSEmmanuel Vadot};
78f126890aSEmmanuel Vadot
79f126890aSEmmanuel Vadot&uart1 {
80f126890aSEmmanuel Vadot	pinctrl-names = "default";
81f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart1>;
82f126890aSEmmanuel Vadot	status = "okay";
83f126890aSEmmanuel Vadot};
84f126890aSEmmanuel Vadot
85f126890aSEmmanuel Vadot&fec {
86f126890aSEmmanuel Vadot	pinctrl-names = "default";
87f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_fec>;
88f126890aSEmmanuel Vadot	phy-reset-gpios = <&gpio3 7 GPIO_ACTIVE_LOW>;
89f126890aSEmmanuel Vadot	phy-mode = "rmii";
90f126890aSEmmanuel Vadot	phy-supply = <&reg_fec_phy>;
91f126890aSEmmanuel Vadot	status = "okay";
92f126890aSEmmanuel Vadot};
93f126890aSEmmanuel Vadot
94f126890aSEmmanuel Vadot&nfc {
95f126890aSEmmanuel Vadot	pinctrl-names = "default";
96f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_nfc>;
97f126890aSEmmanuel Vadot	nand-on-flash-bbt;
98f126890aSEmmanuel Vadot	nand-ecc-mode = "hw";
99f126890aSEmmanuel Vadot	nand-bus-width = <8>;
100f126890aSEmmanuel Vadot	status = "okay";
101f126890aSEmmanuel Vadot};
102