Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target...
[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 = "console=ttySC0,115200 ignore_loglevel rw";
25         };
26
27         memory@40000000 {
28                 device_type = "memory";
29                 reg = <0 0x40000000 0 0x40000000>;
30         };
31
32         memory@200000000 {
33                 device_type = "memory";
34                 reg = <2 0x00000000 0 0x40000000>;
35         };
36
37         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
65         lbsc {
66                 compatible = "simple-bus";
67                 #address-cells = <1>;
68                 #size-cells = <1>;
69                 ranges = <0 0 0 0x80000000>;
70         };
71 };
72
73 &i2c5 {
74         status = "okay";
75         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 };
95
96 &pfc {
97         scifa0_pins: serial0 {
98                 renesas,groups = "scifa0_data";
99                 renesas,function = "scifa0";
100         };
101
102         mmc0_pins: mmc {
103                 renesas,groups = "mmc0_data8", "mmc0_ctrl";
104                 renesas,function = "mmc0";
105         };
106
107         sdhi0_pins: sd0 {
108                 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd";
109                 renesas,function = "sdhi0";
110         };
111
112         sdhi1_pins: sd1 {
113                 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
127 &scifa0 {
128         pinctrl-0 = <&scifa0_pins>;
129         pinctrl-names = "default";
130
131         status = "okay";
132 };
133
134 &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";
151 };