]>
Commit | Line | Data |
---|---|---|
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 | /dts-v1/; | |
10 | ||
11 | #include <dt-bindings/pinctrl/am43xx.h> | |
12 | #include <dt-bindings/gpio/gpio.h> | |
13 | #include <dt-bindings/interrupt-controller/irq.h> | |
14 | #include "am4372.dtsi" | |
15 | ||
16 | / { | |
17 | model = "CompuLab CM-T43"; | |
18 | compatible = "compulab,am437x-cm-t43", "ti,am4372", "ti,am43"; | |
19 | ||
20 | leds { | |
21 | compatible = "gpio-leds"; | |
22 | ||
23 | ledb { | |
24 | label = "cm-t43:green"; | |
25 | gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; | |
26 | linux,default-trigger = "heartbeat"; | |
27 | }; | |
28 | }; | |
29 | }; | |
30 | ||
31 | &am43xx_pinmux { | |
32 | pinctrl-names = "default"; | |
33 | pinctrl-0 = <&cm_t43_led_pins>; | |
34 | ||
35 | cm_t43_led_pins: cm_t43_led_pins { | |
36 | pinctrl-single,pins = < | |
37 | AM4372_IOPAD(0xa78, MUX_MODE7) | |
38 | >; | |
39 | }; | |
40 | ||
41 | i2c0_pins: i2c0_pins { | |
42 | pinctrl-single,pins = < | |
43 | AM4372_IOPAD(0x988, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */ | |
44 | AM4372_IOPAD(0x98c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ | |
45 | >; | |
46 | }; | |
81fb61fc NK |
47 | |
48 | spi0_pins: pinmux_spi0_pins { | |
49 | pinctrl-single,pins = < | |
50 | AM4372_IOPAD(0x950, PIN_INPUT | MUX_MODE0) /* spi0_sclk.spi0_sclk */ | |
51 | AM4372_IOPAD(0x954, PIN_INPUT | MUX_MODE0) /* spi0_d0.spi0_d0 */ | |
52 | AM4372_IOPAD(0x958, PIN_OUTPUT | MUX_MODE0) /* spi0_d1.spi0_d1 */ | |
53 | AM4372_IOPAD(0x95C, PIN_OUTPUT | MUX_MODE0) /* spi0_cs0.spi0_cs0 */ | |
54 | >; | |
55 | }; | |
686c47f1 NK |
56 | }; |
57 | ||
58 | &i2c0 { | |
59 | status = "okay"; | |
60 | pinctrl-names = "default"; | |
61 | pinctrl-0 = <&i2c0_pins>; | |
62 | clock-frequency = <100000>; | |
989d21ec | 63 | |
4bbbd23c NK |
64 | tps65218: tps65218@24 { |
65 | compatible = "ti,tps65218"; | |
66 | reg = <0x24>; | |
67 | interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* NMIn */ | |
68 | interrupt-parent = <&gic>; | |
69 | interrupt-controller; | |
70 | #interrupt-cells = <2>; | |
71 | ||
72 | dcdc1: regulator-dcdc1 { | |
73 | compatible = "ti,tps65218-dcdc1"; | |
74 | regulator-name = "vdd_core"; | |
75 | regulator-min-microvolt = <912000>; | |
76 | regulator-max-microvolt = <1144000>; | |
77 | regulator-boot-on; | |
78 | regulator-always-on; | |
79 | }; | |
80 | ||
81 | dcdc2: regulator-dcdc2 { | |
82 | compatible = "ti,tps65218-dcdc2"; | |
83 | regulator-name = "vdd_mpu"; | |
84 | regulator-min-microvolt = <912000>; | |
85 | regulator-max-microvolt = <1378000>; | |
86 | regulator-boot-on; | |
87 | regulator-always-on; | |
88 | }; | |
89 | ||
90 | dcdc3: regulator-dcdc3 { | |
91 | compatible = "ti,tps65218-dcdc3"; | |
92 | regulator-name = "vdcdc3"; | |
93 | regulator-suspend-enable; | |
94 | regulator-min-microvolt = <1500000>; | |
95 | regulator-max-microvolt = <1500000>; | |
96 | regulator-boot-on; | |
97 | regulator-always-on; | |
98 | }; | |
99 | ||
100 | dcdc5: regulator-dcdc5 { | |
101 | compatible = "ti,tps65218-dcdc5"; | |
102 | regulator-name = "v1_0bat"; | |
103 | regulator-min-microvolt = <1000000>; | |
104 | regulator-max-microvolt = <1000000>; | |
105 | regulator-boot-on; | |
106 | regulator-always-on; | |
107 | }; | |
108 | ||
109 | dcdc6: regulator-dcdc6 { | |
110 | compatible = "ti,tps65218-dcdc6"; | |
111 | regulator-name = "v1_8bat"; | |
112 | regulator-min-microvolt = <1800000>; | |
113 | regulator-max-microvolt = <1800000>; | |
114 | regulator-boot-on; | |
115 | regulator-always-on; | |
116 | }; | |
117 | ||
118 | ldo1: regulator-ldo1 { | |
119 | compatible = "ti,tps65218-ldo1"; | |
120 | regulator-min-microvolt = <1800000>; | |
121 | regulator-max-microvolt = <1800000>; | |
122 | regulator-boot-on; | |
123 | regulator-always-on; | |
124 | }; | |
125 | }; | |
126 | ||
989d21ec NK |
127 | eeprom_module: at24@50 { |
128 | compatible = "atmel,24c02"; | |
129 | reg = <0x50>; | |
130 | pagesize = <16>; | |
131 | }; | |
686c47f1 NK |
132 | }; |
133 | ||
134 | &gpio0 { | |
135 | status = "okay"; | |
136 | }; | |
137 | ||
138 | &gpio1 { | |
139 | status = "okay"; | |
140 | }; | |
141 | ||
142 | &gpio2 { | |
143 | status = "okay"; | |
144 | }; | |
145 | ||
146 | &gpio3 { | |
147 | status = "okay"; | |
148 | }; | |
149 | ||
150 | &gpio4 { | |
151 | status = "okay"; | |
152 | }; | |
153 | ||
154 | &gpio5 { | |
155 | status = "okay"; | |
156 | }; | |
157 | ||
81fb61fc NK |
158 | &spi0 { |
159 | status = "okay"; | |
160 | pinctrl-names = "default"; | |
161 | pinctrl-0 = <&spi0_pins>; | |
162 | dmas = <&edma 16 | |
163 | &edma 17>; | |
164 | dma-names = "tx0", "rx0"; | |
165 | ||
166 | flash: w25q64cvzpig@0 { | |
167 | #address-cells = <1>; | |
168 | #size-cells = <1>; | |
169 | compatible = "jedec,spi-nor"; | |
170 | reg = <0>; | |
171 | spi-max-frequency = <20000000>; | |
172 | partition@0 { | |
173 | label = "uboot"; | |
174 | reg = <0x0 0xc0000>; | |
175 | }; | |
176 | ||
177 | partition@c0000 { | |
178 | label = "uboot environment"; | |
179 | reg = <0xc0000 0x40000>; | |
180 | }; | |
181 | ||
182 | partition@100000 { | |
183 | label = "reserved"; | |
184 | reg = <0x100000 0x100000>; | |
185 | }; | |
186 | }; | |
187 | }; | |
188 | ||
686c47f1 NK |
189 | &uart0 { |
190 | status = "okay"; | |
191 | }; | |
192 | ||
193 | &cpu { | |
4bbbd23c | 194 | cpu0-supply = <&dcdc2>; |
686c47f1 NK |
195 | operating-points = <1000000 1330000>, |
196 | <800000 1260000>, | |
197 | <720000 1200000>, | |
198 | <600000 1100000>, | |
199 | <300000 950000>; | |
200 | }; |