blob: 93852e278d1ea2e2edb39083a972eab41f603adf [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 Lifshitze1fdd062015-12-01 20:03:13 +020040};
41
42&uart3 {
43 status = "okay";
44 interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
45 <&dra7_pmx_core 0x3f8>;
46
47 pinctrl-names = "default";
48 pinctrl-0 = <&uart3_pins_default>;
49};
Dmitry Lifshitz00d0e462015-12-01 20:03:14 +020050
51&mmc1 {
52 status = "okay";
53
54 pinctrl-names = "default";
55 pinctrl-0 = <&mmc1_pins_default>;
56
57 vmmc-supply = <&ldo1_reg>;
58 bus-width = <4>;
59 cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>;
60 wp-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
61};