2bcf69124a6ab3eca1a5a52cb8b1b35a46534dbe
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / r8a73a4-ape6evm-reference.dts
1 /*
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/;
12 #include "r8a73a4.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14
15 / {
16         model = "APE6EVM";
17         compatible = "renesas,ape6evm-reference", "renesas,r8a73a4";
18
19         aliases {
20                 serial0 = &scifa0;
21         };
22
23         chosen {
24                 bootargs = "ignore_loglevel rw";
25                 stdout-path = &scifa0;
26         };
27
28         memory@40000000 {
29                 device_type = "memory";
30                 reg = <0 0x40000000 0 0x40000000>;
31         };
32
33         memory@200000000 {
34                 device_type = "memory";
35                 reg = <2 0x00000000 0 0x40000000>;
36         };
37
38         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 {
59                 compatible = "regulator-fixed";
60                 regulator-name = "3V3";
61                 regulator-min-microvolt = <3300000>;
62                 regulator-max-microvolt = <3300000>;
63                 regulator-always-on;
64         };
65
66         lbsc {
67                 compatible = "simple-bus";
68                 #address-cells = <1>;
69                 #size-cells = <1>;
70                 ranges = <0 0 0 0x80000000>;
71         };
72 };
73
74 &i2c5 {
75         status = "okay";
76         vdd_dvfs: max8973@1b {
77                 compatible = "maxim,max8973";
78                 reg = <0x1b>;
79
80                 regulator-min-microvolt = <935000>;
81                 regulator-max-microvolt = <1200000>;
82                 regulator-boot-on;
83                 regulator-always-on;
84         };
85 };
86
87 &cpu0 {
88         cpu0-supply = <&vdd_dvfs>;
89         operating-points = <
90                 /* kHz  uV */
91                 1950000 1115000
92                 1462500  995000
93         >;
94         voltage-tolerance = <1>; /* 1% */
95 };
96
97 &pfc {
98         scifa0_pins: serial0 {
99                 renesas,groups = "scifa0_data";
100                 renesas,function = "scifa0";
101         };
102
103         mmc0_pins: mmc {
104                 renesas,groups = "mmc0_data8", "mmc0_ctrl";
105                 renesas,function = "mmc0";
106         };
107
108         sdhi0_pins: sd0 {
109                 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd";
110                 renesas,function = "sdhi0";
111         };
112
113         sdhi1_pins: sd1 {
114                 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
115                 renesas,function = "sdhi1";
116         };
117 };
118
119 &mmcif0 {
120         vmmc-supply = <&vcc_mmc0>;
121         bus-width = <8>;
122         non-removable;
123         pinctrl-names = "default";
124         pinctrl-0 = <&mmc0_pins>;
125         status = "okay";
126 };
127
128 &scifa0 {
129         pinctrl-0 = <&scifa0_pins>;
130         pinctrl-names = "default";
131
132         status = "okay";
133 };
134
135 &sdhi0 {
136         vmmc-supply = <&vcc_sdhi0>;
137         bus-width = <4>;
138         toshiba,mmc-wrprotect-disable;
139         pinctrl-names = "default";
140         pinctrl-0 = <&sdhi0_pins>;
141         status = "okay";
142 };
143
144 &sdhi1 {
145         vmmc-supply = <&ape6evm_fixed_3v3>;
146         bus-width = <4>;
147         broken-cd;
148         toshiba,mmc-wrprotect-disable;
149         pinctrl-names = "default";
150         pinctrl-0 = <&sdhi1_pins>;
151         status = "okay";
152 };