ARM: dts: am57xx: cl-som-am57x: add basic module support
[deliverable/linux.git] / arch / arm / boot / dts / am57xx-cl-som-am57x.dts
CommitLineData
387450fc
DL
1/*
2 * Support for CompuLab CL-SOM-AM57x System-on-Module
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/dts-v1/;
13
14#include <dt-bindings/gpio/gpio.h>
15#include <dt-bindings/interrupt-controller/irq.h>
16#include "dra74x.dtsi"
17
18/ {
19 model = "CompuLab CL-SOM-AM57x";
20 compatible = "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
21
22 memory {
23 device_type = "memory";
24 reg = <0x80000000 0x20000000>; /* 512 MB - minimal configuration */
25 };
26
27 leds {
28 compatible = "gpio-leds";
29 pinctrl-names = "default";
30 pinctrl-0 = <&leds_pins_default>;
31
32 led@0 {
33 label = "cl-som-am57x:green";
34 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
35 linux,default-trigger = "heartbeat";
36 default-state = "off";
37 };
38 };
39};
40
41&dra7_pmx_core {
42 leds_pins_default: leds_pins_default {
43 pinctrl-single,pins = <
44 DRA7XX_CORE_IOPAD(0x347c, PIN_OUTPUT | MUX_MODE14) /* gpmc_a15.gpio2_5 */
45 >;
46 };
47
48 i2c1_pins_default: i2c1_pins_default {
49 pinctrl-single,pins = <
50 DRA7XX_CORE_IOPAD(0x3800, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda.sda */
51 DRA7XX_CORE_IOPAD(0x3804, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl.scl */
52 >;
53 };
54
55 i2c4_pins_default: i2c4_pins_default {
56 pinctrl-single,pins = <
57 DRA7XX_CORE_IOPAD(0x36ac, PIN_INPUT| MUX_MODE10) /* mcasp1_acl.i2c4_sda */
58 DRA7XX_CORE_IOPAD(0x36b0, PIN_INPUT| MUX_MODE10) /* mcasp1_fsr.i2c4_scl */
59 >;
60 };
61
62 tps659038_pins_default: tps659038_pins_default {
63 pinctrl-single,pins = <
64 DRA7XX_CORE_IOPAD(0x3818, PIN_INPUT_PULLUP | MUX_MODE14) /* wakeup0.gpio1_0 */
65 >;
66 };
67};
68
69&i2c1 {
70 status = "okay";
71 pinctrl-names = "default";
72 pinctrl-0 = <&i2c1_pins_default>;
73 clock-frequency = <400000>;
74};
75
76&i2c4 {
77 status = "okay";
78 pinctrl-names = "default";
79 pinctrl-0 = <&i2c4_pins_default>;
80 clock-frequency = <400000>;
81
82 tps659038: tps659038@58 {
83 compatible = "ti,tps659038";
84 reg = <0x58>;
85 interrupt-parent = <&gpio1>;
86 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
87
88 pinctrl-names = "default";
89 pinctrl-0 = <&tps659038_pins_default>;
90
91 #interrupt-cells = <2>;
92 interrupt-controller;
93
94 ti,system-power-controller;
95
96 tps659038_pmic {
97 compatible = "ti,tps659038-pmic";
98
99 regulators {
100 smps12_reg: smps12 {
101 /* VDD_MPU */
102 regulator-name = "smps12";
103 regulator-min-microvolt = < 850000>;
104 regulator-max-microvolt = <1250000>;
105 regulator-always-on;
106 regulator-boot-on;
107 };
108
109 smps3_reg: smps3 {
110 /* VDD_DDR */
111 regulator-name = "smps3";
112 regulator-min-microvolt = <1500000>;
113 regulator-max-microvolt = <1500000>;
114 regulator-always-on;
115 regulator-boot-on;
116 };
117
118 smps45_reg: smps45 {
119 /* VDD_DSPEVE */
120 regulator-name = "smps45";
121 regulator-min-microvolt = < 850000>;
122 regulator-max-microvolt = <1250000>;
123 regulator-always-on;
124 regulator-boot-on;
125 };
126
127 smps6_reg: smps6 {
128 /* VDD_GPU */
129 regulator-name = "smps6";
130 regulator-min-microvolt = < 850000>;
131 regulator-max-microvolt = <1250000>;
132 regulator-always-on;
133 regulator-boot-on;
134 };
135
136 smps7_reg: smps7 {
137 /* VDD_CORE */
138 regulator-name = "smps7";
139 regulator-min-microvolt = < 850000>;
140 regulator-max-microvolt = <1160000>;
141 regulator-always-on;
142 regulator-boot-on;
143 };
144
145 smps8_reg: smps8 {
146 /* VDD_IVA */
147 regulator-name = "smps8";
148 regulator-min-microvolt = < 850000>;
149 regulator-max-microvolt = <1250000>;
150 regulator-always-on;
151 regulator-boot-on;
152 };
153
154 smps9_reg: smps9 {
155 /* PMIC_3V3 */
156 regulator-name = "smps9";
157 regulator-min-microvolt = <3300000>;
158 regulator-max-microvolt = <3300000>;
159 regulator-always-on;
160 regulator-boot-on;
161 };
162
163
164 ldo1_reg: ldo1 {
165 /* VDD_SD / VDDSHV8 */
166 regulator-name = "ldo1";
167 regulator-min-microvolt = <1800000>;
168 regulator-max-microvolt = <3300000>;
169 regulator-boot-on;
170 regulator-always-on;
171 };
172
173 ldo2_reg: ldo2 {
174 /* VDD_1V8 */
175 regulator-name = "ldo2";
176 regulator-min-microvolt = <1800000>;
177 regulator-max-microvolt = <1800000>;
178 regulator-always-on;
179 regulator-boot-on;
180 };
181
182 ldo3_reg: ldo3 {
183 /* VDDA_1V8_PHYA - supplies VDDA_SATA, VDDA_USB1/2/3 */
184 regulator-name = "ldo3";
185 regulator-min-microvolt = <1800000>;
186 regulator-max-microvolt = <1800000>;
187 regulator-always-on;
188 regulator-boot-on;
189 };
190
191 ldo4_reg: ldo4 {
192 /* VDDA_1V8_PHYB - supplies VDDA_HDMI, VDDA_PCIE/0/1 */
193 regulator-name = "ldo4";
194 regulator-min-microvolt = <1800000>;
195 regulator-max-microvolt = <1800000>;
196 regulator-always-on;
197 regulator-boot-on;
198 };
199
200 ldo9_reg: ldo9 {
201 /* VDD_RTC */
202 regulator-name = "ldo9";
203 regulator-min-microvolt = <1050000>;
204 regulator-max-microvolt = <1050000>;
205 regulator-always-on;
206 regulator-boot-on;
207 };
208
209 ldoln_reg: ldoln {
210 /* VDDA_1V8_PLL */
211 regulator-name = "ldoln";
212 regulator-min-microvolt = <1800000>;
213 regulator-max-microvolt = <1800000>;
214 regulator-always-on;
215 regulator-boot-on;
216 };
217
218 ldousb_reg: ldousb {
219 /* VDDA_3V_USB: VDDA_USBHS33 */
220 regulator-name = "ldousb";
221 regulator-min-microvolt = <3300000>;
222 regulator-max-microvolt = <3300000>;
223 regulator-always-on;
224 regulator-boot-on;
225 };
226
227 /* regen1 not used */
228 };
229 };
230
231 tps659038_pwr_button: tps659038_pwr_button {
232 compatible = "ti,palmas-pwrbutton";
233 interrupt-parent = <&tps659038>;
234 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
235 wakeup-source;
236 ti,palmas-long-press-seconds = <12>;
237 };
238
239 tps659038_gpio: tps659038_gpio {
240 compatible = "ti,palmas-gpio";
241 gpio-controller;
242 #gpio-cells = <2>;
243 };
244 };
245};
246
247&cpu0 {
248 cpu0-supply = <&smps12_reg>;
249 voltage-tolerance = <1>;
250};
251
252&sata {
253 status = "okay";
254};
255
256&mailbox5 {
257 status = "okay";
258 mbox_ipu1_ipc3x: mbox_ipu1_ipc3x {
259 status = "okay";
260 };
261 mbox_dsp1_ipc3x: mbox_dsp1_ipc3x {
262 status = "okay";
263 };
264};
265
266&mailbox6 {
267 status = "okay";
268 mbox_ipu2_ipc3x: mbox_ipu2_ipc3x {
269 status = "okay";
270 };
271 mbox_dsp2_ipc3x: mbox_dsp2_ipc3x {
272 status = "okay";
273 };
274};
This page took 0.036024 seconds and 5 git commands to generate.