blob: 70b1fff8f4a3592a69bf889455504fa1d553adde [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
19 chosen {
Laurent Pinchartd2f463a2013-07-29 22:31:41 +020020 bootargs = "console=ttySC0,115200 ignore_loglevel rw";
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +020021 };
22
23 memory@40000000 {
24 device_type = "memory";
25 reg = <0 0x40000000 0 0x40000000>;
26 };
27
Magnus Damm9701f442013-10-31 12:18:41 +090028 memory@200000000 {
29 device_type = "memory";
30 reg = <2 0x00000000 0 0x40000000>;
31 };
32
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +020033 vcc_mmc0: regulator@0 {
34 compatible = "regulator-fixed";
35 regulator-name = "MMC0 Vcc";
36 regulator-min-microvolt = <2800000>;
37 regulator-max-microvolt = <2800000>;
38 regulator-always-on;
39 };
40
41 vcc_sdhi0: regulator@1 {
42 compatible = "regulator-fixed";
43
44 regulator-name = "SDHI0 Vcc";
45 regulator-min-microvolt = <3300000>;
46 regulator-max-microvolt = <3300000>;
47
48 gpio = <&pfc 76 GPIO_ACTIVE_HIGH>;
49 enable-active-high;
50 };
51
52 /* Common 3.3V rail, used by several devices on APE6EVM */
53 ape6evm_fixed_3v3: regulator@2 {
54 compatible = "regulator-fixed";
55 regulator-name = "3V3";
56 regulator-min-microvolt = <3300000>;
57 regulator-max-microvolt = <3300000>;
58 regulator-always-on;
59 };
60
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +020061 lbsc {
62 compatible = "simple-bus";
63 #address-cells = <1>;
64 #size-cells = <1>;
65 ranges = <0 0 0 0x80000000>;
66 };
67};
Guennadi Liakhovetskib88cf6f2013-07-08 18:04:58 +020068
69&i2c5 {
Guennadi Liakhovetskieda3a4f2013-09-26 13:06:01 +020070 status = "okay";
Guennadi Liakhovetskib88cf6f2013-07-08 18:04:58 +020071 vdd_dvfs: max8973@1b {
72 compatible = "maxim,max8973";
73 reg = <0x1b>;
74
75 regulator-min-microvolt = <935000>;
76 regulator-max-microvolt = <1200000>;
77 regulator-boot-on;
78 regulator-always-on;
79 };
80};
81
82&cpu0 {
83 cpu0-supply = <&vdd_dvfs>;
84 operating-points = <
85 /* kHz uV */
86 1950000 1115000
87 1462500 995000
88 >;
89 voltage-tolerance = <1>; /* 1% */
90};
Guennadi Liakhovetski59b2bc32013-07-23 13:19:07 +020091
92&pfc {
93 pinctrl-0 = <&scifa0_pins>;
94 pinctrl-names = "default";
95
Kuninori Morimotoeeafbdf2013-10-21 19:37:26 -070096 scifa0_pins: serial0 {
Guennadi Liakhovetski59b2bc32013-07-23 13:19:07 +020097 renesas,groups = "scifa0_data";
98 renesas,function = "scifa0";
99 };
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +0200100
Kuninori Morimotoeeafbdf2013-10-21 19:37:26 -0700101 mmc0_pins: mmc {
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +0200102 renesas,groups = "mmc0_data8", "mmc0_ctrl";
103 renesas,function = "mmc0";
104 };
105
Kuninori Morimotoeeafbdf2013-10-21 19:37:26 -0700106 sdhi0_pins: sd0 {
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +0200107 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd";
108 renesas,function = "sdhi0";
109 };
110
Kuninori Morimotoeeafbdf2013-10-21 19:37:26 -0700111 sdhi1_pins: sd1 {
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +0200112 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
113 renesas,function = "sdhi1";
114 };
115};
116
117&mmcif0 {
118 vmmc-supply = <&vcc_mmc0>;
119 bus-width = <8>;
120 non-removable;
121 pinctrl-names = "default";
122 pinctrl-0 = <&mmc0_pins>;
123 status = "okay";
124};
125
126&sdhi0 {
127 vmmc-supply = <&vcc_sdhi0>;
128 bus-width = <4>;
129 toshiba,mmc-wrprotect-disable;
130 pinctrl-names = "default";
131 pinctrl-0 = <&sdhi0_pins>;
132 status = "okay";
133};
134
135&sdhi1 {
136 vmmc-supply = <&ape6evm_fixed_3v3>;
137 bus-width = <4>;
138 broken-cd;
139 toshiba,mmc-wrprotect-disable;
140 pinctrl-names = "default";
141 pinctrl-0 = <&sdhi1_pins>;
142 status = "okay";
Guennadi Liakhovetski59b2bc32013-07-23 13:19:07 +0200143};