blob: 17a1972ba821a52fda022e1359e428b2bce48c5e [file] [log] [blame]
Dmitry Lifshitze1fdd062015-12-01 20:03:13 +02001/*
2 * Support for CompuLab SBC-AM57x single board computer
3 *
4 * Copyright (C) 2015 CompuLab Ltd. - http://www.compulab.co.il/
5 * Author: Dmitry Lifshitz <lifshitz@compulab.co.il>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published by
9 * the Free Software Foundation.
10 */
11
12#include "am57xx-cl-som-am57x.dts"
13#include "compulab-sb-som.dtsi"
14
15/ {
16 model = "CompuLab CL-SOM-AM57x on SB-SOM-AM57x";
17 compatible = "compulab,sbc-am57x", "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
18};
19
20&dra7_pmx_core {
21 uart3_pins_default: uart3_pins_default {
22 pinctrl-single,pins = <
23 DRA7XX_CORE_IOPAD(0x37f8, PIN_INPUT_SLEW | MUX_MODE2) /* uart2_ctsn.uart3_rxd */
24 DRA7XX_CORE_IOPAD(0x37fc, PIN_INPUT_SLEW | MUX_MODE1) /* uart2_rtsn.uart3_txd */
25 >;
26 };
Dmitry Lifshitz00d0e462015-12-01 20:03:14 +020027
28 mmc1_pins_default: mmc1_pins_default {
29 pinctrl-single,pins = <
30 DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.clk */
31 DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */
32 DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.dat0 */
33 DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.dat1 */
34 DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.dat2 */
35 DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.dat3 */
36 DRA7XX_CORE_IOPAD(0x376c, PIN_INPUT | MUX_MODE14) /* mmc1_sdcd.gpio6_27 */
37 DRA7XX_CORE_IOPAD(0x377c, PIN_INPUT | MUX_MODE14) /* mmc1_sdwp.gpio6_28 */
38 >;
39 };
Dmitry Lifshitzed7ce762015-12-01 20:03:15 +020040
41 usb1_pins: pinmux_usb1_pins {
42 pinctrl-single,pins = <
43 DRA7XX_CORE_IOPAD(0x3680, PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
44 >;
45 };
Dmitry Lifshitze1fdd062015-12-01 20:03:13 +020046};
47
48&uart3 {
49 status = "okay";
50 interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
51 <&dra7_pmx_core 0x3f8>;
52
53 pinctrl-names = "default";
54 pinctrl-0 = <&uart3_pins_default>;
55};
Dmitry Lifshitz00d0e462015-12-01 20:03:14 +020056
57&mmc1 {
58 status = "okay";
59
60 pinctrl-names = "default";
61 pinctrl-0 = <&mmc1_pins_default>;
62
63 vmmc-supply = <&ldo1_reg>;
64 bus-width = <4>;
65 cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>;
66 wp-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
67};
Dmitry Lifshitzed7ce762015-12-01 20:03:15 +020068
69&usb1 {
70 pinctrl-names = "default";
71 pinctrl-0 = <&usb1_pins>;
72};