blob: c951def82a7c3e3900a6ad28cde0bac9da5b5699 [file] [log] [blame]
Lukasz Majewskiee943652018-04-26 15:07:18 +02001/*
2 * Copyright 2018
3 * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
4 *
5 * SPDX-License-Identifier: GPL-2.0+ or X11
6 */
7
8/dts-v1/;
9#include <dt-bindings/gpio/gpio.h>
10#include "imx53.dtsi"
11#include "imx53-pinfunc.h"
12
Marcel Ziswiler10f4f3f2022-10-22 23:59:40 +020013#define IMX_PAD_SION 0x40000000
14
Lukasz Majewskiee943652018-04-26 15:07:18 +020015/ {
16 model = "K+P iMX53";
17 compatible = "kp,imx53-kp", "fsl,imx53";
18
19 chosen {
20 stdout-path = &uart2;
21 };
Lukasz Majewskifc77d4d2019-04-04 12:26:44 +020022
23 aliases {
24 mmc0 = &esdhc3;
25 };
Lukasz Majewskie626fcb2019-04-04 12:26:50 +020026
27 regulators {
28 compatible = "simple-bus";
29 #address-cells = <1>;
30 #size-cells = <0>;
31
32 reg_usbh1_vbus: regulator-usbh1-vbus {
33 compatible = "regulator-fixed";
34 regulator-name = "usbh1_vbus";
35 regulator-min-microvolt = <5000000>;
36 regulator-max-microvolt = <5000000>;
37 gpio = <&gpio7 8 GPIO_ACTIVE_HIGH>;
38 enable-active-high;
39 };
40 };
41
Lukasz Majewskifc77d4d2019-04-04 12:26:44 +020042};
43
44&esdhc3 {
45 pinctrl-names = "default";
46 pinctrl-0 = <&pinctrl_esdhc3>;
47 bus-width = <8>;
48 non-removable;
49 status = "okay";
Lukasz Majewskiee943652018-04-26 15:07:18 +020050};
51
52&fec {
53 pinctrl-names = "default";
54 pinctrl-0 = <&pinctrl_eth>;
55 phy-mode = "rmii";
Lukasz Majewskida60b432019-04-01 16:00:05 +020056 phy-reset-gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
Lukasz Majewskiee943652018-04-26 15:07:18 +020057 status = "okay";
58};
59
60&i2c2 {
61 pinctrl-names = "default", "gpio";
62 pinctrl-0 = <&pinctrl_i2c2>;
63 pinctrl-1 = <&pinctrl_i2c2_gpio>;
64 clock_frequency = <100000>;
65
66 scl-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
67 sda-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
68
69 status = "okay";
70
71 pmic: mc34708@8 {
72 compatible = "fsl,mc34708";
73 reg = <0x8>;
74 };
75};
76
77&i2c3 {
78 pinctrl-names = "default", "gpio";
79 pinctrl-0 = <&pinctrl_i2c3>;
80 pinctrl-1 = <&pinctrl_i2c3_gpio>;
81 clock_frequency = <100000>;
82
83 scl-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
84 sda-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
85
86 status = "okay";
87};
88
89&iomuxc {
90 pinctrl-names = "default";
91 pinctrl-0 = <&pinctrl_hog>;
92
93 imx53-kp {
Lukasz Majewskifc77d4d2019-04-04 12:26:44 +020094 pinctrl_esdhc3: esdhc3grp {
95 fsl,pins = <
96 MX53_PAD_PATA_DATA8__ESDHC3_DAT0 0x1d4
97 MX53_PAD_PATA_DATA9__ESDHC3_DAT1 0x1d4
98 MX53_PAD_PATA_DATA10__ESDHC3_DAT2 0x1d4
99 MX53_PAD_PATA_DATA11__ESDHC3_DAT3 0x1d4
100 MX53_PAD_PATA_DATA0__ESDHC3_DAT4 0x1d4
101 MX53_PAD_PATA_DATA1__ESDHC3_DAT5 0x1d4
102 MX53_PAD_PATA_DATA2__ESDHC3_DAT6 0x1d4
103 MX53_PAD_PATA_DATA3__ESDHC3_DAT7 0x1d4
104 MX53_PAD_PATA_RESET_B__ESDHC3_CMD 0x1e4
105 MX53_PAD_PATA_IORDY__ESDHC3_CLK 0x1d4
106 >;
107 };
108
Lukasz Majewskiee943652018-04-26 15:07:18 +0200109 pinctrl_eth: ethgrp {
110 fsl,pins = <
111 MX53_PAD_FEC_MDIO__FEC_MDIO 0x1fc
112 MX53_PAD_FEC_MDC__FEC_MDC 0x4
113 MX53_PAD_FEC_RXD1__FEC_RDATA_1 0x180
114 MX53_PAD_FEC_RXD0__FEC_RDATA_0 0x180
115 MX53_PAD_FEC_TXD1__FEC_TDATA_1 0x4
116 MX53_PAD_FEC_TXD0__FEC_TDATA_0 0x4
117 MX53_PAD_FEC_TX_EN__FEC_TX_EN 0x4
118 MX53_PAD_FEC_REF_CLK__FEC_TX_CLK 0x180
119 /* The RX_ER pin needs to be pull down */
120 /* for this device */
121 MX53_PAD_FEC_RX_ER__FEC_RX_ER 0x1c0
122 MX53_PAD_FEC_CRS_DV__FEC_RX_DV 0x180
123 >;
124 };
125
126 pinctrl_hog: hoggrp {
127 fsl,pins = <
128 /* PHY RESET */
129 MX53_PAD_PATA_DA_0__GPIO7_6 0x182
Lukasz Majewskiee943652018-04-26 15:07:18 +0200130 /* BOOSTER_OFF */
131 MX53_PAD_EIM_CS0__GPIO2_23 0x1e4
Lukasz Majewski642c1f52018-05-20 08:33:14 +0200132 /* LCD BACKLIGHT */
133 MX53_PAD_GPIO_1__GPIO1_1 0x1e4
Lukasz Majewski0b35b2d2018-05-20 08:33:16 +0200134 /* KEY1 GPIO */
135 MX53_PAD_EIM_RW__GPIO2_26 0x1e4
Lukasz Majewski8a8ec732020-09-25 17:13:10 +0200136 /* LED GREEN GPIO */
137 MX53_PAD_EIM_WAIT__GPIO5_0 0x1e4
138 /* LED RED GPIO */
139 MX53_PAD_EIM_D28__GPIO3_28 0x1e4
Lukasz Majewskiee943652018-04-26 15:07:18 +0200140 >;
141 };
142
143 pinctrl_i2c2: i2c2grp {
144 fsl,pins = <
145 MX53_PAD_KEY_ROW3__I2C2_SDA
146 (0x1ee | IMX_PAD_SION)
147 MX53_PAD_KEY_COL3__I2C2_SCL
148 (0x1ee | IMX_PAD_SION)
149 >;
150 };
151
152 pinctrl_i2c2_gpio: i2c2grpgpio {
153 fsl,pins = <
154 MX53_PAD_KEY_ROW3__GPIO4_13 0x1e4
155 MX53_PAD_KEY_COL3__GPIO4_12 0x1e4
156 >;
157 };
158
159 pinctrl_i2c3: i2c3grp {
160 fsl,pins = <
161 MX53_PAD_GPIO_6__I2C3_SDA (0x1ee | IMX_PAD_SION)
162 MX53_PAD_GPIO_5__I2C3_SCL (0x1ee | IMX_PAD_SION)
163 >;
164 };
165
166 pinctrl_i2c3_gpio: i2c3grpgpio {
167 fsl,pins = <
168 MX53_PAD_GPIO_6__GPIO1_6 0x1e4
169 MX53_PAD_GPIO_5__GPIO1_5 0x1e4
170 >;
171 };
172
173 pinctrl_uart2: uart2grp {
174 fsl,pins = <
175 MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX 0x1e4
176 MX53_PAD_PATA_DMARQ__UART2_TXD_MUX 0x1e4
177 >;
178 };
Lukasz Majewskie626fcb2019-04-04 12:26:50 +0200179
180 pinctrl_usbh1: usbh1grp {
181 fsl,pins = <
182 /* VBUS_PWR_EN */
183 MX53_PAD_PATA_DA_2__GPIO7_8 0x1e4
184 >;
185 };
Lukasz Majewskiee943652018-04-26 15:07:18 +0200186 };
187};
188
189&uart2 {
190 pinctrl-names = "default";
191 pinctrl-0 = <&pinctrl_uart2>;
192 status = "okay";
193};
Lukasz Majewskie626fcb2019-04-04 12:26:50 +0200194
195&usbh1 {
196 pinctrl-names = "default";
197 pinctrl-0 = <&pinctrl_usbh1>;
198 vbus-supply = <&reg_usbh1_vbus>;
199 status = "okay";
200};