blob: d58877def6d6083ed04dc1870e55e4cbc505570c [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 Pinchart72e14c02013-11-09 13:23:58 +010086 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
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 Pincharta40d9ad2013-11-26 02:21:18 +0100189
190 pcf8575: gpio@20 {
191 compatible = "nxp,pcf8575";
192 reg = <0x20>;
193 interrupt-parent = <&irqpin2>;
194 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
195 gpio-controller;
196 #gpio-cells = <2>;
197 interrupt-controller;
198 #interrupt-cells = <2>;
199 };
Laurent Pinchartec028602013-05-09 17:41:59 +0200200};
201
Simon Hormanb8b82b22012-11-22 00:34:25 +0900202&mmcif {
Laurent Pinchartec028602013-05-09 17:41:59 +0200203 pinctrl-0 = <&mmcif_pins>;
204 pinctrl-names = "default";
205
Guennadi Liakhovetskif017d012013-02-08 19:38:27 +0100206 bus-width = <8>;
207 vmmc-supply = <&reg_1p8v>;
Guennadi Liakhovetski546e5d32013-03-19 13:47:43 +0100208 status = "okay";
209};
210
Laurent Pinchartec028602013-05-09 17:41:59 +0200211&pfc {
212 pinctrl-0 = <&scifa4_pins>;
213 pinctrl-names = "default";
214
215 i2c3_pins: i2c3 {
216 renesas,groups = "i2c3_1";
217 renesas,function = "i2c3";
218 };
219
Kuninori Morimoto26adf1a2013-10-21 19:37:39 -0700220 mmcif_pins: mmc {
Laurent Pinchartec028602013-05-09 17:41:59 +0200221 mux {
222 renesas,groups = "mmc0_data8_0", "mmc0_ctrl_0";
223 renesas,function = "mmc0";
224 };
225 cfg {
226 renesas,groups = "mmc0_data8_0";
227 renesas,pins = "PORT279";
228 bias-pull-up;
229 };
230 };
231
Kuninori Morimoto26adf1a2013-10-21 19:37:39 -0700232 scifa4_pins: serial4 {
Laurent Pinchartec028602013-05-09 17:41:59 +0200233 renesas,groups = "scifa4_data", "scifa4_ctrl";
234 renesas,function = "scifa4";
235 };
236
Kuninori Morimoto26adf1a2013-10-21 19:37:39 -0700237 sdhi0_pins: sd0 {
Laurent Pinchartec028602013-05-09 17:41:59 +0200238 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp";
239 renesas,function = "sdhi0";
240 };
241
Kuninori Morimoto26adf1a2013-10-21 19:37:39 -0700242 sdhi2_pins: sd2 {
Laurent Pinchartec028602013-05-09 17:41:59 +0200243 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
244 renesas,function = "sdhi2";
245 };
246};
247
Guennadi Liakhovetski546e5d32013-03-19 13:47:43 +0100248&sdhi0 {
Laurent Pinchartec028602013-05-09 17:41:59 +0200249 pinctrl-0 = <&sdhi0_pins>;
250 pinctrl-names = "default";
251
Laurent Pinchartf8f77ce2013-05-09 17:41:59 +0200252 vmmc-supply = <&vmmc_sdhi0>;
Guennadi Liakhovetski546e5d32013-03-19 13:47:43 +0100253 bus-width = <4>;
254 status = "okay";
255};
256
257&sdhi2 {
Laurent Pinchartec028602013-05-09 17:41:59 +0200258 pinctrl-0 = <&sdhi2_pins>;
259 pinctrl-names = "default";
260
Laurent Pinchartf8f77ce2013-05-09 17:41:59 +0200261 vmmc-supply = <&vmmc_sdhi2>;
Guennadi Liakhovetski546e5d32013-03-19 13:47:43 +0100262 bus-width = <4>;
263 broken-cd;
264 status = "okay";
Simon Hormanb8b82b22012-11-22 00:34:25 +0900265};