]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
Merge branch 'akpm' (incoming from Andrew)
[mirror_ubuntu-zesty-kernel.git] / arch / arm / boot / dts / sh73a0-kzm9g-reference.dts
CommitLineData
b8b82b29
SH
1/*
2 * Device Tree Source for the KZM-A9-GT board
3 *
4 * Copyright (C) 2012 Horms Solutions Ltd.
5 *
6 * Based on sh73a0-kzm9g.dts
7 * Copyright (C) 2012 Renesas Solutions Corp.
8 *
9 * This file is licensed under the terms of the GNU General Public License
10 * version 2. This program is licensed "as is" without any warranty of any
11 * kind, whether express or implied.
12 */
13
14/dts-v1/;
31c46cbf 15#include "sh73a0.dtsi"
f8f77ce9 16#include <dt-bindings/gpio/gpio.h>
77e2d7e2 17#include <dt-bindings/interrupt-controller/irq.h>
b8b82b29
SH
18
19/ {
20 model = "KZM-A9-GT";
21 compatible = "renesas,kzm9g-reference", "renesas,sh73a0";
22
251ed173
GL
23 cpus {
24 cpu@0 {
25 cpu0-supply = <&vdd_dvfs>;
26 operating-points = <
27 /* kHz uV */
28 1196000 1315000
29 598000 1175000
30 398667 1065000
31 >;
32 voltage-tolerance = <1>; /* 1% */
33 };
34 };
35
b8b82b29 36 chosen {
d2f463a6 37 bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200 rw";
b8b82b29
SH
38 };
39
40 memory {
41 device_type = "memory";
42 reg = <0x41000000 0x1e800000>;
43 };
44
f017d011 45 reg_1p8v: regulator@0 {
b8b82b29
SH
46 compatible = "regulator-fixed";
47 regulator-name = "fixed-1.8V";
48 regulator-min-microvolt = <1800000>;
49 regulator-max-microvolt = <1800000>;
f017d011
GL
50 regulator-always-on;
51 regulator-boot-on;
52 };
53
c791c036 54 reg_3p3v: regulator@1 {
f017d011 55 compatible = "regulator-fixed";
c791c036
GL
56 regulator-name = "fixed-3.3V";
57 regulator-min-microvolt = <3300000>;
58 regulator-max-microvolt = <3300000>;
f017d011
GL
59 regulator-always-on;
60 regulator-boot-on;
61 };
8c1de8ee 62
f8f77ce9
LP
63 vmmc_sdhi0: regulator@2 {
64 compatible = "regulator-fixed";
65 regulator-name = "SDHI0 Vcc";
66 regulator-min-microvolt = <3300000>;
67 regulator-max-microvolt = <3300000>;
68 gpio = <&pfc 15 GPIO_ACTIVE_HIGH>;
69 enable-active-high;
70 };
71
72 vmmc_sdhi2: regulator@3 {
73 compatible = "regulator-fixed";
74 regulator-name = "SDHI2 Vcc";
75 regulator-min-microvolt = <3300000>;
76 regulator-max-microvolt = <3300000>;
77 gpio = <&pfc 14 GPIO_ACTIVE_HIGH>;
78 enable-active-high;
79 };
80
8c1de8ee
GL
81 lan9220@10000000 {
82 compatible = "smsc,lan9220", "smsc,lan9115";
83 reg = <0x10000000 0x100>;
84 phy-mode = "mii";
85 interrupt-parent = <&irqpin0>;
72e14c05 86 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
8c1de8ee
GL
87 reg-io-width = <4>;
88 smsc,irq-push-pull;
89 smsc,save-mac-address;
90 vddvario-supply = <&reg_1p8v>;
91 vdd33a-supply = <&reg_3p3v>;
92 };
14692739
LP
93
94 leds {
95 compatible = "gpio-leds";
96 led1 {
97 gpios = <&pfc 20 GPIO_ACTIVE_LOW>;
98 };
99 led2 {
100 gpios = <&pfc 21 GPIO_ACTIVE_LOW>;
101 };
102 led3 {
103 gpios = <&pfc 22 GPIO_ACTIVE_LOW>;
104 };
105 led4 {
106 gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
107 };
108 };
5ec5f734
LP
109
110 gpio-keys {
111 compatible = "gpio-keys";
112
113 back-key {
114 gpios = <&pcf8575 8 GPIO_ACTIVE_LOW>;
115 linux,code = <158>;
116 label = "SW3";
117 };
118
119 right-key {
120 gpios = <&pcf8575 9 GPIO_ACTIVE_LOW>;
121 linux,code = <106>;
122 label = "SW2-R";
123 };
124
125 left-key {
126 gpios = <&pcf8575 10 GPIO_ACTIVE_LOW>;
127 linux,code = <105>;
128 label = "SW2-L";
129 };
130
131 enter-key {
132 gpios = <&pcf8575 11 GPIO_ACTIVE_LOW>;
133 linux,code = <28>;
134 label = "SW2-P";
135 };
136
137 up-key {
138 gpios = <&pcf8575 12 GPIO_ACTIVE_LOW>;
139 linux,code = <103>;
140 label = "SW2-U";
141 };
142
143 down-key {
144 gpios = <&pcf8575 13 GPIO_ACTIVE_LOW>;
145 linux,code = <108>;
146 label = "SW2-D";
147 };
148
149 home-key {
150 gpios = <&pcf8575 14 GPIO_ACTIVE_LOW>;
151 linux,code = <102>;
152 label = "SW1";
153 };
154 };
3c2a87c8
KM
155
156 sound {
157 compatible = "simple-audio-card";
158 simple-audio-card,format = "left_j";
159 simple-audio-card,cpu {
160 sound-dai = <&sh_fsi2 0>;
161 };
162 simple-audio-card,codec {
163 sound-dai = <&ak4648>;
164 bitclock-master;
165 frame-master;
166 system-clock-frequency = <11289600>;
167 };
168 };
b8b82b29
SH
169};
170
251ed173 171&i2c0 {
eda3a4fa 172 status = "okay";
251ed173
GL
173 as3711@40 {
174 compatible = "ams,as3711";
175 reg = <0x40>;
176
177 regulators {
178 vdd_dvfs: sd1 {
179 regulator-name = "1.315V CPU";
180 regulator-min-microvolt = <1050000>;
181 regulator-max-microvolt = <1350000>;
182 regulator-always-on;
183 regulator-boot-on;
184 };
185 sd2 {
186 regulator-name = "1.8V";
187 regulator-min-microvolt = <1800000>;
188 regulator-max-microvolt = <1800000>;
189 regulator-always-on;
190 regulator-boot-on;
191 };
192 sd4 {
193 regulator-name = "1.215V";
194 regulator-min-microvolt = <1215000>;
195 regulator-max-microvolt = <1235000>;
196 regulator-always-on;
197 regulator-boot-on;
198 };
199 ldo2 {
200 regulator-name = "2.8V CPU";
201 regulator-min-microvolt = <2800000>;
202 regulator-max-microvolt = <2800000>;
203 regulator-always-on;
204 regulator-boot-on;
205 };
206 ldo3 {
207 regulator-name = "3.0V CPU";
208 regulator-min-microvolt = <3000000>;
209 regulator-max-microvolt = <3000000>;
210 regulator-always-on;
211 regulator-boot-on;
212 };
213 ldo4 {
214 regulator-name = "2.8V";
215 regulator-min-microvolt = <2800000>;
216 regulator-max-microvolt = <2800000>;
217 regulator-always-on;
218 regulator-boot-on;
219 };
220 ldo5 {
221 regulator-name = "2.8V #2";
222 regulator-min-microvolt = <2800000>;
223 regulator-max-microvolt = <2800000>;
224 regulator-always-on;
225 regulator-boot-on;
226 };
227 ldo7 {
228 regulator-name = "1.15V CPU";
229 regulator-min-microvolt = <1150000>;
230 regulator-max-microvolt = <1150000>;
231 regulator-always-on;
232 regulator-boot-on;
233 };
234 ldo8 {
235 regulator-name = "1.15V CPU #2";
236 regulator-min-microvolt = <1150000>;
237 regulator-max-microvolt = <1150000>;
238 regulator-always-on;
239 regulator-boot-on;
240 };
241 };
242 };
3c2a87c8
KM
243
244 ak4648: ak4648@0x12 {
245 #sound-dai-cells = <0>;
246 compatible = "asahi-kasei,ak4648";
247 reg = <0x12>;
248 };
251ed173
GL
249};
250
ec028600
LP
251&i2c3 {
252 pinctrl-0 = <&i2c3_pins>;
253 pinctrl-names = "default";
eda3a4fa 254 status = "okay";
a40d9ad3
LP
255
256 pcf8575: gpio@20 {
257 compatible = "nxp,pcf8575";
258 reg = <0x20>;
259 interrupt-parent = <&irqpin2>;
260 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
261 gpio-controller;
262 #gpio-cells = <2>;
263 interrupt-controller;
264 #interrupt-cells = <2>;
265 };
ec028600
LP
266};
267
b8b82b29 268&mmcif {
ec028600
LP
269 pinctrl-0 = <&mmcif_pins>;
270 pinctrl-names = "default";
271
f017d011
GL
272 bus-width = <8>;
273 vmmc-supply = <&reg_1p8v>;
546e5d3e
GL
274 status = "okay";
275};
276
ec028600
LP
277&pfc {
278 pinctrl-0 = <&scifa4_pins>;
279 pinctrl-names = "default";
280
281 i2c3_pins: i2c3 {
282 renesas,groups = "i2c3_1";
283 renesas,function = "i2c3";
284 };
285
26adf1a7 286 mmcif_pins: mmc {
ec028600
LP
287 mux {
288 renesas,groups = "mmc0_data8_0", "mmc0_ctrl_0";
289 renesas,function = "mmc0";
290 };
291 cfg {
292 renesas,groups = "mmc0_data8_0";
293 renesas,pins = "PORT279";
294 bias-pull-up;
295 };
296 };
297
26adf1a7 298 scifa4_pins: serial4 {
ec028600
LP
299 renesas,groups = "scifa4_data", "scifa4_ctrl";
300 renesas,function = "scifa4";
301 };
302
26adf1a7 303 sdhi0_pins: sd0 {
ec028600
LP
304 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp";
305 renesas,function = "sdhi0";
306 };
307
26adf1a7 308 sdhi2_pins: sd2 {
ec028600
LP
309 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
310 renesas,function = "sdhi2";
311 };
3c2a87c8
KM
312
313 fsia_pins: sounda {
314 renesas,groups = "fsia_mclk_in", "fsia_sclk_in",
315 "fsia_data_in", "fsia_data_out";
316 renesas,function = "fsia";
317 };
ec028600
LP
318};
319
546e5d3e 320&sdhi0 {
ec028600
LP
321 pinctrl-0 = <&sdhi0_pins>;
322 pinctrl-names = "default";
323
f8f77ce9 324 vmmc-supply = <&vmmc_sdhi0>;
546e5d3e
GL
325 bus-width = <4>;
326 status = "okay";
327};
328
329&sdhi2 {
ec028600
LP
330 pinctrl-0 = <&sdhi2_pins>;
331 pinctrl-names = "default";
332
f8f77ce9 333 vmmc-supply = <&vmmc_sdhi2>;
546e5d3e
GL
334 bus-width = <4>;
335 broken-cd;
336 status = "okay";
b8b82b29 337};
3c2a87c8
KM
338
339&sh_fsi2 {
340 pinctrl-0 = <&fsia_pins>;
341 pinctrl-names = "default";
342
343 status = "okay";
344};