blob: c98cd1442d7c71b751499633a36cc8764daf1578 [file] [log] [blame]
Magnus Damm78ded162013-03-29 17:00:02 +09001/*
2 * Device Tree Source for the APE6EVM board
3 *
4 * Copyright (C) 2013 Renesas Solutions Corp.
5 *
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
9 */
10
11/dts-v1/;
Laurent Pinchart31c46cb2013-11-09 13:23:53 +010012#include "r8a73a4.dtsi"
Ulrich Hecht326baa82014-12-17 17:18:14 +010013#include <dt-bindings/gpio/gpio.h>
Magnus Damm78ded162013-03-29 17:00:02 +090014
15/ {
16 model = "APE6EVM";
17 compatible = "renesas,ape6evm", "renesas,r8a73a4";
18
Ulrich Hecht326baa82014-12-17 17:18:14 +010019 aliases {
20 serial0 = &scifa0;
21 };
22
Magnus Damm78ded162013-03-29 17:00:02 +090023 chosen {
Laurent Pinchartd2f463a2013-07-29 22:31:41 +020024 bootargs = "console=ttySC0,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw";
Ulrich Hecht326baa82014-12-17 17:18:14 +010025 stdout-path = &scifa0;
Magnus Damm78ded162013-03-29 17:00:02 +090026 };
27
28 memory@40000000 {
29 device_type = "memory";
30 reg = <0 0x40000000 0 0x40000000>;
31 };
32
Takashi Yoshii8353f092013-10-31 12:15:49 +090033 memory@200000000 {
34 device_type = "memory";
35 reg = <2 0x00000000 0 0x40000000>;
36 };
37
Ulrich Hecht326baa82014-12-17 17:18:14 +010038 vcc_mmc0: regulator@0 {
39 compatible = "regulator-fixed";
40 regulator-name = "MMC0 Vcc";
41 regulator-min-microvolt = <2800000>;
42 regulator-max-microvolt = <2800000>;
43 regulator-always-on;
44 };
45
46 vcc_sdhi0: regulator@1 {
47 compatible = "regulator-fixed";
48
49 regulator-name = "SDHI0 Vcc";
50 regulator-min-microvolt = <3300000>;
51 regulator-max-microvolt = <3300000>;
52
53 gpio = <&pfc 76 GPIO_ACTIVE_HIGH>;
54 enable-active-high;
55 };
56
57 /* Common 3.3V rail, used by several devices on APE6EVM */
58 ape6evm_fixed_3v3: regulator@2 {
Magnus Damm15351a7a2013-03-29 17:00:21 +090059 compatible = "regulator-fixed";
60 regulator-name = "3V3";
61 regulator-min-microvolt = <3300000>;
62 regulator-max-microvolt = <3300000>;
63 regulator-always-on;
64 };
65
Magnus Damm78ded162013-03-29 17:00:02 +090066 lbsc {
Ulrich Hecht326baa82014-12-17 17:18:14 +010067 compatible = "simple-bus";
Magnus Damm78ded162013-03-29 17:00:02 +090068 #address-cells = <1>;
69 #size-cells = <1>;
Ulrich Hecht326baa82014-12-17 17:18:14 +010070 ranges = <0 0 0 0x20000000>;
Magnus Damm15351a7a2013-03-29 17:00:21 +090071
72 ethernet@8000000 {
Ulrich Hecht6cdaa632014-12-17 17:18:13 +010073 compatible = "smsc,lan9220", "smsc,lan9115";
Magnus Damm15351a7a2013-03-29 17:00:21 +090074 reg = <0x08000000 0x1000>;
75 interrupt-parent = <&irqc1>;
Laurent Pinchart77e2d7e2013-11-09 13:23:55 +010076 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm15351a7a2013-03-29 17:00:21 +090077 phy-mode = "mii";
78 reg-io-width = <4>;
79 smsc,irq-active-high;
80 smsc,irq-push-pull;
81 vdd33a-supply = <&ape6evm_fixed_3v3>;
82 vddvario-supply = <&ape6evm_fixed_3v3>;
83 };
Magnus Damm78ded162013-03-29 17:00:02 +090084 };
85};
Guennadi Liakhovetski463a2432013-06-27 11:47:58 +020086
87&i2c5 {
Guennadi Liakhovetskieda3a4f2013-09-26 13:06:01 +020088 status = "okay";
Guennadi Liakhovetski463a2432013-06-27 11:47:58 +020089 vdd_dvfs: max8973@1b {
90 compatible = "maxim,max8973";
91 reg = <0x1b>;
92
93 regulator-min-microvolt = <935000>;
94 regulator-max-microvolt = <1200000>;
95 regulator-boot-on;
96 regulator-always-on;
97 };
98};
99
100&cpu0 {
101 cpu0-supply = <&vdd_dvfs>;
102 operating-points = <
103 /* kHz uV */
104 1950000 1115000
105 1462500 995000
106 >;
107 voltage-tolerance = <1>; /* 1% */
108};
Ulrich Hecht326baa82014-12-17 17:18:14 +0100109
110&cmt1 {
111 status = "okay";
112};
113
114&pfc {
115 scifa0_pins: serial0 {
116 renesas,groups = "scifa0_data";
117 renesas,function = "scifa0";
118 };
119
120 mmc0_pins: mmc {
121 renesas,groups = "mmc0_data8", "mmc0_ctrl";
122 renesas,function = "mmc0";
123 };
124
125 sdhi0_pins: sd0 {
126 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd";
127 renesas,function = "sdhi0";
128 };
129
130 sdhi1_pins: sd1 {
131 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
132 renesas,function = "sdhi1";
133 };
134};
135
136&mmcif0 {
137 vmmc-supply = <&vcc_mmc0>;
138 bus-width = <8>;
139 non-removable;
140 pinctrl-names = "default";
141 pinctrl-0 = <&mmc0_pins>;
142 status = "okay";
143};
144
145&scifa0 {
146 pinctrl-0 = <&scifa0_pins>;
147 pinctrl-names = "default";
148
149 status = "okay";
150};
151
152&sdhi0 {
153 vmmc-supply = <&vcc_sdhi0>;
154 bus-width = <4>;
155 toshiba,mmc-wrprotect-disable;
156 pinctrl-names = "default";
157 pinctrl-0 = <&sdhi0_pins>;
158 status = "okay";
159};
160
161&sdhi1 {
162 vmmc-supply = <&ape6evm_fixed_3v3>;
163 bus-width = <4>;
164 broken-cd;
165 toshiba,mmc-wrprotect-disable;
166 pinctrl-names = "default";
167 pinctrl-0 = <&sdhi1_pins>;
168 status = "okay";
169};