blob: 338f0cbfff7ab2b6a202ce164c6aa6497365fd3e [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
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +020028 vcc_mmc0: regulator@0 {
29 compatible = "regulator-fixed";
30 regulator-name = "MMC0 Vcc";
31 regulator-min-microvolt = <2800000>;
32 regulator-max-microvolt = <2800000>;
33 regulator-always-on;
34 };
35
36 vcc_sdhi0: regulator@1 {
37 compatible = "regulator-fixed";
38
39 regulator-name = "SDHI0 Vcc";
40 regulator-min-microvolt = <3300000>;
41 regulator-max-microvolt = <3300000>;
42
43 gpio = <&pfc 76 GPIO_ACTIVE_HIGH>;
44 enable-active-high;
45 };
46
47 /* Common 3.3V rail, used by several devices on APE6EVM */
48 ape6evm_fixed_3v3: regulator@2 {
49 compatible = "regulator-fixed";
50 regulator-name = "3V3";
51 regulator-min-microvolt = <3300000>;
52 regulator-max-microvolt = <3300000>;
53 regulator-always-on;
54 };
55
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +020056 lbsc {
57 compatible = "simple-bus";
58 #address-cells = <1>;
59 #size-cells = <1>;
60 ranges = <0 0 0 0x80000000>;
61 };
62};
Guennadi Liakhovetskib88cf6f2013-07-08 18:04:58 +020063
64&i2c5 {
Guennadi Liakhovetskieda3a4f2013-09-26 13:06:01 +020065 status = "okay";
Guennadi Liakhovetskib88cf6f2013-07-08 18:04:58 +020066 vdd_dvfs: max8973@1b {
67 compatible = "maxim,max8973";
68 reg = <0x1b>;
69
70 regulator-min-microvolt = <935000>;
71 regulator-max-microvolt = <1200000>;
72 regulator-boot-on;
73 regulator-always-on;
74 };
75};
76
77&cpu0 {
78 cpu0-supply = <&vdd_dvfs>;
79 operating-points = <
80 /* kHz uV */
81 1950000 1115000
82 1462500 995000
83 >;
84 voltage-tolerance = <1>; /* 1% */
85};
Guennadi Liakhovetski59b2bc32013-07-23 13:19:07 +020086
87&pfc {
88 pinctrl-0 = <&scifa0_pins>;
89 pinctrl-names = "default";
90
Kuninori Morimotoeeafbdf2013-10-21 19:37:26 -070091 scifa0_pins: serial0 {
Guennadi Liakhovetski59b2bc32013-07-23 13:19:07 +020092 renesas,groups = "scifa0_data";
93 renesas,function = "scifa0";
94 };
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +020095
Kuninori Morimotoeeafbdf2013-10-21 19:37:26 -070096 mmc0_pins: mmc {
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +020097 renesas,groups = "mmc0_data8", "mmc0_ctrl";
98 renesas,function = "mmc0";
99 };
100
Kuninori Morimotoeeafbdf2013-10-21 19:37:26 -0700101 sdhi0_pins: sd0 {
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +0200102 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd";
103 renesas,function = "sdhi0";
104 };
105
Kuninori Morimotoeeafbdf2013-10-21 19:37:26 -0700106 sdhi1_pins: sd1 {
Guennadi Liakhovetskidbffb5a2013-08-01 09:41:21 +0200107 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
108 renesas,function = "sdhi1";
109 };
110};
111
112&mmcif0 {
113 vmmc-supply = <&vcc_mmc0>;
114 bus-width = <8>;
115 non-removable;
116 pinctrl-names = "default";
117 pinctrl-0 = <&mmc0_pins>;
118 status = "okay";
119};
120
121&sdhi0 {
122 vmmc-supply = <&vcc_sdhi0>;
123 bus-width = <4>;
124 toshiba,mmc-wrprotect-disable;
125 pinctrl-names = "default";
126 pinctrl-0 = <&sdhi0_pins>;
127 status = "okay";
128};
129
130&sdhi1 {
131 vmmc-supply = <&ape6evm_fixed_3v3>;
132 bus-width = <4>;
133 broken-cd;
134 toshiba,mmc-wrprotect-disable;
135 pinctrl-names = "default";
136 pinctrl-0 = <&sdhi1_pins>;
137 status = "okay";
Guennadi Liakhovetski59b2bc32013-07-23 13:19:07 +0200138};