ARM: dts: armada388-clearfog: enable spi flash
[linux-2.6-block.git] / arch / arm / boot / dts / am437x-sbc-t43.dts
CommitLineData
686c47f1
NK
1/*
2 * Copyright (C) 2015 CompuLab, Ltd. - http://www.compulab.co.il/
3 *
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.
7 */
8
9#include "am437x-cm-t43.dts"
97ce5054 10#include "compulab-sb-som.dtsi"
686c47f1
NK
11
12/ {
13 model = "CompuLab CM-T43 on SB-SOM-T43";
14 compatible = "compulab,am437x-sbc-t43", "compulab,am437x-cm-t43", "ti,am4372", "ti,am43";
e81bce70
NK
15
16 aliases {
17 display0 = &lcd0;
18 };
686c47f1
NK
19};
20
21&am43xx_pinmux {
97ce5054
NK
22 mmc1_pins: pinmux_mmc1_pins {
23 pinctrl-single,pins = <
24 AM4372_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */
25 AM4372_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
26 AM4372_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */
27 AM4372_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */
28 AM4372_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */
29 AM4372_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
30 AM4372_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
31 AM4372_IOPAD(0x964, PIN_INPUT | MUX_MODE7) /* ecap0_in_pwm0_out.gpio0_7 */
32 >;
33 };
34
e81bce70
NK
35 dss_pinctrl_default: dss_pinctrl_default {
36 pinctrl-single,pins = <
37 AM4372_IOPAD(0x9b0, PIN_OUTPUT_PULLUP | MUX_MODE2) /* cam0 hd -> DSS DATA 23 */
38 AM4372_IOPAD(0x9b4, PIN_OUTPUT_PULLUP | MUX_MODE2)
39 AM4372_IOPAD(0x9b8, PIN_OUTPUT_PULLUP | MUX_MODE2)
40 AM4372_IOPAD(0x9bc, PIN_OUTPUT_PULLUP | MUX_MODE2)
41 AM4372_IOPAD(0x9c0, PIN_OUTPUT_PULLUP | MUX_MODE2)
42 AM4372_IOPAD(0x9c4, PIN_OUTPUT_PULLUP | MUX_MODE2)
43 AM4372_IOPAD(0x9c8, PIN_OUTPUT_PULLUP | MUX_MODE2)
44 AM4372_IOPAD(0x9cc, PIN_OUTPUT_PULLUP | MUX_MODE2) /* cam1 data 9 -> DSS DATA 16 */
45
46 AM4372_IOPAD(0x8a0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 0 */
47 AM4372_IOPAD(0x8a4, PIN_OUTPUT_PULLUP | MUX_MODE0)
48 AM4372_IOPAD(0x8a8, PIN_OUTPUT_PULLUP | MUX_MODE0)
49 AM4372_IOPAD(0x8ac, PIN_OUTPUT_PULLUP | MUX_MODE0)
50 AM4372_IOPAD(0x8b0, PIN_OUTPUT_PULLUP | MUX_MODE0)
51 AM4372_IOPAD(0x8b4, PIN_OUTPUT_PULLUP | MUX_MODE0)
52 AM4372_IOPAD(0x8b8, PIN_OUTPUT_PULLUP | MUX_MODE0)
53 AM4372_IOPAD(0x8bc, PIN_OUTPUT_PULLUP | MUX_MODE0)
54 AM4372_IOPAD(0x8c0, PIN_OUTPUT_PULLUP | MUX_MODE0)
55 AM4372_IOPAD(0x8c4, PIN_OUTPUT_PULLUP | MUX_MODE0)
56 AM4372_IOPAD(0x8c8, PIN_OUTPUT_PULLUP | MUX_MODE0)
57 AM4372_IOPAD(0x8cc, PIN_OUTPUT_PULLUP | MUX_MODE0)
58 AM4372_IOPAD(0x8d0, PIN_OUTPUT_PULLUP | MUX_MODE0)
59 AM4372_IOPAD(0x8d4, PIN_OUTPUT_PULLUP | MUX_MODE0)
60 AM4372_IOPAD(0x8d8, PIN_OUTPUT_PULLUP | MUX_MODE0)
61 AM4372_IOPAD(0x8dc, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 15 */
62 AM4372_IOPAD(0x8e0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS VSYNC */
63 AM4372_IOPAD(0x8e4, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS HSYNC */
64 AM4372_IOPAD(0x8e8, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS PCLK */
65 AM4372_IOPAD(0x8ec, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS AC BIAS EN */
66 AM4372_IOPAD(0xa20, PIN_OUTPUT_PULLUP | MUX_MODE7)
67 >;
68 };
69
686c47f1
NK
70 uart0_pins_default: uart0_pins_default {
71 pinctrl-single,pins = <
72 AM4372_IOPAD(0x968, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE0)
73 AM4372_IOPAD(0x96C, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE0)
74 AM4372_IOPAD(0x970, PIN_INPUT_PULLUP | SLEWCTRL_FAST | DS0_PULL_UP_DOWN_EN | MUX_MODE0) /* uart0_rxd.uart0_rxd */
75 AM4372_IOPAD(0x974, PIN_INPUT | PULL_DISABLE | SLEWCTRL_FAST | DS0_PULL_UP_DOWN_EN | MUX_MODE0) /* uart0_txd.uart0_txd */
76 >;
77 };
78
79 i2c1_pins: i2c1_pins {
80 pinctrl-single,pins = <
81 AM4372_IOPAD(0xa6c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE1) /* spi2_cs0.i2c1_sda */
82 AM4372_IOPAD(0xa60, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE1) /* spi2_sclk.i2c1_scl */
83 >;
84 };
85
86 i2c2_pins: i2c2_pins {
87 pinctrl-single,pins = <
88 AM4372_IOPAD(0x978, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE3) /* uart1_ctsn.i2c2_sda */
89 AM4372_IOPAD(0x97c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE3) /* uart1_rtsn.i2c2_scl */
90 >;
91 };
9fc830b0
NK
92
93 usb2_phy1_default: usb2_phy1_default {
94 pinctrl-single,pins = <
95 AM4372_IOPAD(0xac0, DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE0)
96 >;
97 };
98
99 usb2_phy2_default: usb2_phy2_default {
100 pinctrl-single,pins = <
101 AM4372_IOPAD(0xac4, DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE0)
102 >;
103 };
686c47f1
NK
104};
105
106&i2c1 {
107 status = "okay";
108 pinctrl-names = "default";
109 pinctrl-0 = <&i2c1_pins>;
90f7cf83
NK
110
111 pca9555: pca9555@20 {
112 compatible = "nxp,pca9555";
113 reg = <0x20>;
114 gpio-controller;
115 #gpio-cells = <2>;
116 };
07634f12
NK
117
118 eeprom_base: at24@50 {
119 compatible = "atmel,24c02";
120 reg = <0x50>;
121 pagesize = <16>;
122 };
686c47f1
NK
123};
124
125&i2c2 {
126 status = "okay";
127 pinctrl-names = "default";
128 pinctrl-0 = <&i2c2_pins>;
129};
130
97ce5054
NK
131&mmc1 {
132 status = "okay";
133 bus-width = <4>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&mmc1_pins>;
136 vmmc-supply = <&vsb_3v3>;
137 cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
138 wp-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
139};
140
e81bce70
NK
141&dss {
142 status = "ok";
143
144 pinctrl-names = "default";
145 pinctrl-0 = <&dss_pinctrl_default>;
146
147 port {
a2645788 148 dpi_lcd_out: endpoint {
e81bce70
NK
149 remote-endpoint = <&lcd_in>;
150 data-lines = <24>;
151 };
152 };
153};
154
686c47f1
NK
155&uart0 {
156 pinctrl-names = "default";
157 pinctrl-0 = <&uart0_pins_default>;
158};
9fc830b0
NK
159
160&dwc3_1 {
161 pinctrl-names = "default";
162 pinctrl-0 = <&usb2_phy1_default>;
163};
164
165&dwc3_2 {
166 pinctrl-names = "default";
167 pinctrl-0 = <&usb2_phy2_default>;
168};
e81bce70
NK
169
170&lcd0 {
171 enable-gpios = <&pca9555 14 GPIO_ACTIVE_HIGH
172 &gpio4 28 GPIO_ACTIVE_HIGH>;
173
174 port {
175 lcd_in: endpoint {
176 remote-endpoint = <&dpi_lcd_out>;
177 data-lines = <24>;
178 };
179 };
180};