blob: 605f6c627307938a6fcf624aa41fbe3121b14fd2 [file] [log] [blame]
Simon Hormanb8b82b22012-11-22 00:34:25 +09001/*
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/;
Laurent Pinchart31c46cb2013-11-09 13:23:53 +010015#include "sh73a0.dtsi"
Laurent Pinchartf8f77ce2013-05-09 17:41:59 +020016#include <dt-bindings/gpio/gpio.h>
Laurent Pinchart77e2d7e2013-11-09 13:23:55 +010017#include <dt-bindings/interrupt-controller/irq.h>
Simon Hormanb8b82b22012-11-22 00:34:25 +090018
19/ {
20 model = "KZM-A9-GT";
21 compatible = "renesas,kzm9g-reference", "renesas,sh73a0";
22
Guennadi Liakhovetski251ed172013-04-05 12:00:37 +020023 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
Simon Hormanb8b82b22012-11-22 00:34:25 +090036 chosen {
Laurent Pinchartd2f463a2013-07-29 22:31:41 +020037 bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200 rw";
Simon Hormanb8b82b22012-11-22 00:34:25 +090038 };
39
40 memory {
41 device_type = "memory";
42 reg = <0x41000000 0x1e800000>;
43 };
44
Guennadi Liakhovetskif017d012013-02-08 19:38:27 +010045 reg_1p8v: regulator@0 {
Simon Hormanb8b82b22012-11-22 00:34:25 +090046 compatible = "regulator-fixed";
47 regulator-name = "fixed-1.8V";
48 regulator-min-microvolt = <1800000>;
49 regulator-max-microvolt = <1800000>;
Guennadi Liakhovetskif017d012013-02-08 19:38:27 +010050 regulator-always-on;
51 regulator-boot-on;
52 };
53
Guennadi Liakhovetskic791c032013-03-19 13:47:39 +010054 reg_3p3v: regulator@1 {
Guennadi Liakhovetskif017d012013-02-08 19:38:27 +010055 compatible = "regulator-fixed";
Guennadi Liakhovetskic791c032013-03-19 13:47:39 +010056 regulator-name = "fixed-3.3V";
57 regulator-min-microvolt = <3300000>;
58 regulator-max-microvolt = <3300000>;
Guennadi Liakhovetskif017d012013-02-08 19:38:27 +010059 regulator-always-on;
60 regulator-boot-on;
61 };
Guennadi Liakhovetski8c1de8e2013-03-21 17:05:44 +010062
Laurent Pinchartf8f77ce2013-05-09 17:41:59 +020063 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
Guennadi Liakhovetski8c1de8e2013-03-21 17:05:44 +010081 lan9220@10000000 {
82 compatible = "smsc,lan9220", "smsc,lan9115";
83 reg = <0x10000000 0x100>;
84 phy-mode = "mii";
85 interrupt-parent = <&irqpin0>;
Laurent Pinchart77e2d7e2013-11-09 13:23:55 +010086 interrupts = <3 IRQ_TYPE_NONE>; /* active low */
Guennadi Liakhovetski8c1de8e2013-03-21 17:05:44 +010087 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 };
Laurent Pinchart14692732013-05-10 00:23:04 +020093
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 };
Simon Hormanb8b82b22012-11-22 00:34:25 +0900109};
110
Guennadi Liakhovetski251ed172013-04-05 12:00:37 +0200111&i2c0 {
Guennadi Liakhovetskieda3a4f2013-09-26 13:06:01 +0200112 status = "okay";
Guennadi Liakhovetski251ed172013-04-05 12:00:37 +0200113 as3711@40 {
114 compatible = "ams,as3711";
115 reg = <0x40>;
116
117 regulators {
118 vdd_dvfs: sd1 {
119 regulator-name = "1.315V CPU";
120 regulator-min-microvolt = <1050000>;
121 regulator-max-microvolt = <1350000>;
122 regulator-always-on;
123 regulator-boot-on;
124 };
125 sd2 {
126 regulator-name = "1.8V";
127 regulator-min-microvolt = <1800000>;
128 regulator-max-microvolt = <1800000>;
129 regulator-always-on;
130 regulator-boot-on;
131 };
132 sd4 {
133 regulator-name = "1.215V";
134 regulator-min-microvolt = <1215000>;
135 regulator-max-microvolt = <1235000>;
136 regulator-always-on;
137 regulator-boot-on;
138 };
139 ldo2 {
140 regulator-name = "2.8V CPU";
141 regulator-min-microvolt = <2800000>;
142 regulator-max-microvolt = <2800000>;
143 regulator-always-on;
144 regulator-boot-on;
145 };
146 ldo3 {
147 regulator-name = "3.0V CPU";
148 regulator-min-microvolt = <3000000>;
149 regulator-max-microvolt = <3000000>;
150 regulator-always-on;
151 regulator-boot-on;
152 };
153 ldo4 {
154 regulator-name = "2.8V";
155 regulator-min-microvolt = <2800000>;
156 regulator-max-microvolt = <2800000>;
157 regulator-always-on;
158 regulator-boot-on;
159 };
160 ldo5 {
161 regulator-name = "2.8V #2";
162 regulator-min-microvolt = <2800000>;
163 regulator-max-microvolt = <2800000>;
164 regulator-always-on;
165 regulator-boot-on;
166 };
167 ldo7 {
168 regulator-name = "1.15V CPU";
169 regulator-min-microvolt = <1150000>;
170 regulator-max-microvolt = <1150000>;
171 regulator-always-on;
172 regulator-boot-on;
173 };
174 ldo8 {
175 regulator-name = "1.15V CPU #2";
176 regulator-min-microvolt = <1150000>;
177 regulator-max-microvolt = <1150000>;
178 regulator-always-on;
179 regulator-boot-on;
180 };
181 };
182 };
183};
184
Laurent Pinchartec028602013-05-09 17:41:59 +0200185&i2c3 {
186 pinctrl-0 = <&i2c3_pins>;
187 pinctrl-names = "default";
Guennadi Liakhovetskieda3a4f2013-09-26 13:06:01 +0200188 status = "okay";
Laurent Pinchartec028602013-05-09 17:41:59 +0200189};
190
Simon Hormanb8b82b22012-11-22 00:34:25 +0900191&mmcif {
Laurent Pinchartec028602013-05-09 17:41:59 +0200192 pinctrl-0 = <&mmcif_pins>;
193 pinctrl-names = "default";
194
Guennadi Liakhovetskif017d012013-02-08 19:38:27 +0100195 bus-width = <8>;
196 vmmc-supply = <&reg_1p8v>;
Guennadi Liakhovetski546e5d32013-03-19 13:47:43 +0100197 status = "okay";
198};
199
Laurent Pinchartec028602013-05-09 17:41:59 +0200200&pfc {
201 pinctrl-0 = <&scifa4_pins>;
202 pinctrl-names = "default";
203
204 i2c3_pins: i2c3 {
205 renesas,groups = "i2c3_1";
206 renesas,function = "i2c3";
207 };
208
Kuninori Morimoto26adf1a2013-10-21 19:37:39 -0700209 mmcif_pins: mmc {
Laurent Pinchartec028602013-05-09 17:41:59 +0200210 mux {
211 renesas,groups = "mmc0_data8_0", "mmc0_ctrl_0";
212 renesas,function = "mmc0";
213 };
214 cfg {
215 renesas,groups = "mmc0_data8_0";
216 renesas,pins = "PORT279";
217 bias-pull-up;
218 };
219 };
220
Kuninori Morimoto26adf1a2013-10-21 19:37:39 -0700221 scifa4_pins: serial4 {
Laurent Pinchartec028602013-05-09 17:41:59 +0200222 renesas,groups = "scifa4_data", "scifa4_ctrl";
223 renesas,function = "scifa4";
224 };
225
Kuninori Morimoto26adf1a2013-10-21 19:37:39 -0700226 sdhi0_pins: sd0 {
Laurent Pinchartec028602013-05-09 17:41:59 +0200227 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp";
228 renesas,function = "sdhi0";
229 };
230
Kuninori Morimoto26adf1a2013-10-21 19:37:39 -0700231 sdhi2_pins: sd2 {
Laurent Pinchartec028602013-05-09 17:41:59 +0200232 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
233 renesas,function = "sdhi2";
234 };
235};
236
Guennadi Liakhovetski546e5d32013-03-19 13:47:43 +0100237&sdhi0 {
Laurent Pinchartec028602013-05-09 17:41:59 +0200238 pinctrl-0 = <&sdhi0_pins>;
239 pinctrl-names = "default";
240
Laurent Pinchartf8f77ce2013-05-09 17:41:59 +0200241 vmmc-supply = <&vmmc_sdhi0>;
Guennadi Liakhovetski546e5d32013-03-19 13:47:43 +0100242 bus-width = <4>;
243 status = "okay";
244};
245
246&sdhi2 {
Laurent Pinchartec028602013-05-09 17:41:59 +0200247 pinctrl-0 = <&sdhi2_pins>;
248 pinctrl-names = "default";
249
Laurent Pinchartf8f77ce2013-05-09 17:41:59 +0200250 vmmc-supply = <&vmmc_sdhi2>;
Guennadi Liakhovetski546e5d32013-03-19 13:47:43 +0100251 bus-width = <4>;
252 broken-cd;
253 status = "okay";
Simon Hormanb8b82b22012-11-22 00:34:25 +0900254};