blob: a860f32bca27fd8d089bb93f202b9b196dbcf6ac [file] [log] [blame]
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +02001/*
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"
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +020013#include <dt-bindings/gpio/gpio.h>
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +020014
15/ {
16 model = "APE6EVM";
17 compatible = "renesas,ape6evm-reference", "renesas,r8a73a4";
18
Simon Horman27bc8232014-07-07 09:54:34 +020019 aliases {
20 serial0 = &scifa0;
21 };
22
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +020023 chosen {
Laurent Pinchartd2f463a2013-07-29 22:31:41 +020024 bootargs = "console=ttySC0,115200 ignore_loglevel rw";
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +020025 };
26
27 memory@40000000 {
28 device_type = "memory";
29 reg = <0 0x40000000 0 0x40000000>;
30 };
31
Magnus Damm9701f442013-10-31 12:18:41 +090032 memory@200000000 {
33 device_type = "memory";
34 reg = <2 0x00000000 0 0x40000000>;
35 };
36
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +020037 vcc_mmc0: regulator@0 {
38 compatible = "regulator-fixed";
39 regulator-name = "MMC0 Vcc";
40 regulator-min-microvolt = <2800000>;
41 regulator-max-microvolt = <2800000>;
42 regulator-always-on;
43 };
44
45 vcc_sdhi0: regulator@1 {
46 compatible = "regulator-fixed";
47
48 regulator-name = "SDHI0 Vcc";
49 regulator-min-microvolt = <3300000>;
50 regulator-max-microvolt = <3300000>;
51
52 gpio = <&pfc 76 GPIO_ACTIVE_HIGH>;
53 enable-active-high;
54 };
55
56 /* Common 3.3V rail, used by several devices on APE6EVM */
57 ape6evm_fixed_3v3: regulator@2 {
58 compatible = "regulator-fixed";
59 regulator-name = "3V3";
60 regulator-min-microvolt = <3300000>;
61 regulator-max-microvolt = <3300000>;
62 regulator-always-on;
63 };
64
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +020065 lbsc {
66 compatible = "simple-bus";
67 #address-cells = <1>;
68 #size-cells = <1>;
69 ranges = <0 0 0 0x80000000>;
70 };
71};
Guennadi Liakhovetskib88cf6f2013-07-08 18:04:58 +020072
73&i2c5 {
Guennadi Liakhovetskieda3a4f2013-09-26 13:06:01 +020074 status = "okay";
Guennadi Liakhovetskib88cf6f2013-07-08 18:04:58 +020075 vdd_dvfs: max8973@1b {
76 compatible = "maxim,max8973";
77 reg = <0x1b>;
78
79 regulator-min-microvolt = <935000>;
80 regulator-max-microvolt = <1200000>;
81 regulator-boot-on;
82 regulator-always-on;
83 };
84};
85
86&cpu0 {
87 cpu0-supply = <&vdd_dvfs>;
88 operating-points = <
89 /* kHz uV */
90 1950000 1115000
91 1462500 995000
92 >;
93 voltage-tolerance = <1>; /* 1% */
94};
Guennadi Liakhovetski59b2bc32013-07-23 13:19:07 +020095
96&pfc {
Kuninori Morimotoeeafbdf2013-10-21 19:37:26 -070097 scifa0_pins: serial0 {
Guennadi Liakhovetski59b2bc32013-07-23 13:19:07 +020098 renesas,groups = "scifa0_data";
99 renesas,function = "scifa0";
100 };
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +0200101
Kuninori Morimotoeeafbdf2013-10-21 19:37:26 -0700102 mmc0_pins: mmc {
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +0200103 renesas,groups = "mmc0_data8", "mmc0_ctrl";
104 renesas,function = "mmc0";
105 };
106
Kuninori Morimotoeeafbdf2013-10-21 19:37:26 -0700107 sdhi0_pins: sd0 {
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +0200108 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd";
109 renesas,function = "sdhi0";
110 };
111
Kuninori Morimotoeeafbdf2013-10-21 19:37:26 -0700112 sdhi1_pins: sd1 {
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +0200113 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
114 renesas,function = "sdhi1";
115 };
116};
117
118&mmcif0 {
119 vmmc-supply = <&vcc_mmc0>;
120 bus-width = <8>;
121 non-removable;
122 pinctrl-names = "default";
123 pinctrl-0 = <&mmc0_pins>;
124 status = "okay";
125};
126
Simon Horman27bc8232014-07-07 09:54:34 +0200127&scifa0 {
128 pinctrl-0 = <&scifa0_pins>;
129 pinctrl-names = "default";
130
131 status = "okay";
132};
133
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +0200134&sdhi0 {
135 vmmc-supply = <&vcc_sdhi0>;
136 bus-width = <4>;
137 toshiba,mmc-wrprotect-disable;
138 pinctrl-names = "default";
139 pinctrl-0 = <&sdhi0_pins>;
140 status = "okay";
141};
142
143&sdhi1 {
144 vmmc-supply = <&ape6evm_fixed_3v3>;
145 bus-width = <4>;
146 broken-cd;
147 toshiba,mmc-wrprotect-disable;
148 pinctrl-names = "default";
149 pinctrl-0 = <&sdhi1_pins>;
150 status = "okay";
Guennadi Liakhovetski59b2bc32013-07-23 13:19:07 +0200151};