2 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
11 #include "am4372.dtsi"
12 #include <dt-bindings/pinctrl/am43xx.h>
13 #include <dt-bindings/pwm/pwm.h>
14 #include <dt-bindings/gpio/gpio.h>
15 #include <dt-bindings/input/input.h>
18 model = "TI AM437x Industrial Development Kit";
19 compatible = "ti,am437x-idk-evm","ti,am4372","ti,am43";
21 v24_0d: fixed-regulator-v24_0d {
22 compatible = "regulator-fixed";
23 regulator-name = "V24_0D";
24 regulator-min-microvolt = <24000000>;
25 regulator-max-microvolt = <24000000>;
30 v3_3d: fixed-regulator-v3_3d {
31 compatible = "regulator-fixed";
32 regulator-name = "V3_3D";
33 regulator-min-microvolt = <3300000>;
34 regulator-max-microvolt = <3300000>;
37 vin-supply = <&v24_0d>;
40 vdd_corereg: fixed-regulator-vdd_corereg {
41 compatible = "regulator-fixed";
42 regulator-name = "VDD_COREREG";
43 regulator-min-microvolt = <1100000>;
44 regulator-max-microvolt = <1100000>;
47 vin-supply = <&v24_0d>;
50 vdd_core: fixed-regulator-vdd_core {
51 compatible = "regulator-fixed";
52 regulator-name = "VDD_CORE";
53 regulator-min-microvolt = <1100000>;
54 regulator-max-microvolt = <1100000>;
57 vin-supply = <&vdd_corereg>;
60 v1_8dreg: fixed-regulator-v1_8dreg{
61 compatible = "regulator-fixed";
62 regulator-name = "V1_8DREG";
63 regulator-min-microvolt = <1800000>;
64 regulator-max-microvolt = <1800000>;
67 vin-supply = <&v24_0d>;
70 v1_8d: fixed-regulator-v1_8d{
71 compatible = "regulator-fixed";
72 regulator-name = "V1_8D";
73 regulator-min-microvolt = <1800000>;
74 regulator-max-microvolt = <1800000>;
77 vin-supply = <&v1_8dreg>;
80 v1_5dreg: fixed-regulator-v1_5dreg{
81 compatible = "regulator-fixed";
82 regulator-name = "V1_5DREG";
83 regulator-min-microvolt = <1500000>;
84 regulator-max-microvolt = <1500000>;
87 vin-supply = <&v24_0d>;
90 v1_5d: fixed-regulator-v1_5d{
91 compatible = "regulator-fixed";
92 regulator-name = "V1_5D";
93 regulator-min-microvolt = <1500000>;
94 regulator-max-microvolt = <1500000>;
97 vin-supply = <&v1_5dreg>;
100 gpio_keys: gpio_keys {
101 compatible = "gpio-keys";
102 pinctrl-names = "default";
103 pinctrl-0 = <&gpio_keys_pins_default>;
104 #address-cells = <1>;
108 label = "power-button";
109 linux,code = <KEY_POWER>;
110 gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
114 /* fixed 32k external oscillator clock */
115 clk_32k_rtc: clk_32k_rtc {
117 compatible = "fixed-clock";
118 clock-frequency = <32768>;
123 gpio_keys_pins_default: gpio_keys_pins_default {
124 pinctrl-single,pins = <
125 0x1b8 (PIN_INPUT | MUX_MODE7) /* cam0_field.gpio4_2 */
129 i2c0_pins_default: i2c0_pins_default {
130 pinctrl-single,pins = <
131 0x188 (PIN_INPUT | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */
132 0x18c (PIN_INPUT | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */
136 i2c0_pins_sleep: i2c0_pins_sleep {
137 pinctrl-single,pins = <
138 0x188 (PIN_INPUT_PULLDOWN | MUX_MODE7)
139 0x18c (PIN_INPUT_PULLDOWN | MUX_MODE7)
143 i2c2_pins_default: i2c2_pins_default {
144 pinctrl-single,pins = <
145 0x1e8 (PIN_INPUT | SLEWCTRL_FAST | MUX_MODE3) /* cam1_data1.i2c2_scl */
146 0x1ec (PIN_INPUT | SLEWCTRL_FAST | MUX_MODE3) /* cam1_data0.i2c2_sda */
150 i2c2_pins_sleep: i2c2_pins_sleep {
151 pinctrl-single,pins = <
152 0x1e8 (PIN_INPUT_PULLDOWN | MUX_MODE7)
153 0x1ec (PIN_INPUT_PULLDOWN | MUX_MODE7)
157 mmc1_pins_default: pinmux_mmc1_pins_default {
158 pinctrl-single,pins = <
159 0x100 (PIN_INPUT | MUX_MODE0) /* mmc0_clk.mmc0_clk */
160 0x104 (PIN_INPUT | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
161 0x1f0 (PIN_INPUT | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
162 0x1f4 (PIN_INPUT | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */
163 0x1f8 (PIN_INPUT | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */
164 0x1fc (PIN_INPUT | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */
165 0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
169 mmc1_pins_sleep: pinmux_mmc1_pins_sleep {
170 pinctrl-single,pins = <
171 0x100 (PIN_INPUT_PULLDOWN | MUX_MODE7)
172 0x104 (PIN_INPUT_PULLDOWN | MUX_MODE7)
173 0x1f0 (PIN_INPUT_PULLDOWN | MUX_MODE7)
174 0x1f4 (PIN_INPUT_PULLDOWN | MUX_MODE7)
175 0x1f8 (PIN_INPUT_PULLDOWN | MUX_MODE7)
176 0x1fc (PIN_INPUT_PULLDOWN | MUX_MODE7)
177 0x160 (PIN_INPUT_PULLDOWN | MUX_MODE7)
181 ecap0_pins_default: backlight_pins_default {
182 pinctrl-single,pins = <
183 0x164 (PIN_OUTPUT | MUX_MODE0) /* ecap0_in_pwm0_out.ecap0_in_pwm0_out */
187 cpsw_default: cpsw_default {
188 pinctrl-single,pins = <
189 0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rgmii1_tclk */
190 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */
191 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */
192 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */
193 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td2 */
194 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td3 */
195 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxclk.rmii1_rclk */
196 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */
197 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rd0 */
198 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rd1 */
199 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rd2 */
200 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rd3 */
204 cpsw_sleep: cpsw_sleep {
205 pinctrl-single,pins = <
206 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
207 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
208 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
209 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
210 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
211 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
212 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
213 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
214 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
215 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
216 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
217 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
221 davinci_mdio_default: davinci_mdio_default {
222 pinctrl-single,pins = <
224 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
225 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
229 davinci_mdio_sleep: davinci_mdio_sleep {
230 pinctrl-single,pins = <
231 /* MDIO reset value */
232 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
233 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
237 qspi_pins_default: qspi_pins_default {
238 pinctrl-single,pins = <
239 0x7c (PIN_OUTPUT_PULLUP | MUX_MODE3) /* gpmc_csn0.qspi_csn */
240 0x88 (PIN_OUTPUT | MUX_MODE2) /* gpmc_csn3.qspi_clk */
241 0x90 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_advn_ale.qspi_d0 */
242 0x94 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_oen_ren.qspi_d1 */
243 0x98 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_wen.qspi_d2 */
244 0x9c (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_be0n_cle.qspi_d3 */
248 qspi_pins_sleep: qspi_pins_sleep{
249 pinctrl-single,pins = <
250 0x7c (PIN_INPUT_PULLDOWN | MUX_MODE7)
251 0x88 (PIN_INPUT_PULLDOWN | MUX_MODE7)
252 0x90 (PIN_INPUT_PULLDOWN | MUX_MODE7)
253 0x94 (PIN_INPUT_PULLDOWN | MUX_MODE7)
254 0x98 (PIN_INPUT_PULLDOWN | MUX_MODE7)
255 0x9c (PIN_INPUT_PULLDOWN | MUX_MODE7)
262 pinctrl-names = "default", "sleep";
263 pinctrl-0 = <&i2c0_pins_default>;
264 pinctrl-1 = <&i2c0_pins_sleep>;
265 clock-frequency = <400000>;
268 compatible = "at24,24c256";
274 compatible = "ti,tps62362";
276 regulator-name = "VDD_MPU";
277 regulator-min-microvolt = <950000>;
278 regulator-max-microvolt = <1330000>;
283 vin-supply = <&v3_3d>;
289 pinctrl-names = "default", "sleep";
290 pinctrl-0 = <&i2c2_pins_default>;
291 pinctrl-1 = <&i2c2_pins_sleep>;
292 clock-frequency = <100000>;
301 pinctrl-names = "default";
302 pinctrl-0 = <&ecap0_pins_default>;
323 pinctrl-names = "default", "sleep";
324 pinctrl-0 = <&mmc1_pins_default>;
325 pinctrl-1 = <&mmc1_pins_sleep>;
326 vmmc-supply = <&v3_3d>;
328 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
333 pinctrl-names = "default", "sleep";
334 pinctrl-0 = <&qspi_pins_default>;
335 pinctrl-1 = <&qspi_pins_sleep>;
337 spi-max-frequency = <48000000>;
339 compatible = "mx66l51235l";
340 spi-max-frequency = <48000000>;
344 spi-tx-bus-width = <1>;
345 spi-rx-bus-width = <4>;
346 #address-cells = <1>;
350 * MTD partition table. The ROM checks the first 512KiB for a
351 * valid file to boot(XIP).
354 label = "QSPI.U_BOOT";
355 reg = <0x00000000 0x000080000>;
358 label = "QSPI.U_BOOT.backup";
359 reg = <0x00080000 0x00080000>;
362 label = "QSPI.U-BOOT-SPL_OS";
363 reg = <0x00100000 0x00010000>;
366 label = "QSPI.U_BOOT_ENV";
367 reg = <0x00110000 0x00010000>;
370 label = "QSPI.U-BOOT-ENV.backup";
371 reg = <0x00120000 0x00010000>;
374 label = "QSPI.KERNEL";
375 reg = <0x00130000 0x0800000>;
378 label = "QSPI.FILESYSTEM";
379 reg = <0x00930000 0x36D0000>;
385 pinctrl-names = "default", "sleep";
386 pinctrl-0 = <&cpsw_default>;
387 pinctrl-1 = <&cpsw_sleep>;
392 pinctrl-names = "default", "sleep";
393 pinctrl-0 = <&davinci_mdio_default>;
394 pinctrl-1 = <&davinci_mdio_sleep>;
399 phy_id = <&davinci_mdio>, <0>;
404 clocks = <&clk_32k_rtc>, <&clk_32768_ck>;
405 clock-names = "ext-clk", "int-clk";
414 cpu0-supply = <&tps>;