]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts
arm64: dts: exynos: Add clocks to Exynos5433 LPASS module
[karo-tx-linux.git] / arch / arm64 / boot / dts / renesas / r8a7796-salvator-x.dts
1 /*
2  * Device Tree Source for the Salvator-X board
3  *
4  * Copyright (C) 2016 Renesas Electronics 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 "r8a7796.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14
15 / {
16         model = "Renesas Salvator-X board based on r8a7796";
17         compatible = "renesas,salvator-x", "renesas,r8a7796";
18
19         aliases {
20                 serial0 = &scif2;
21         };
22
23         chosen {
24                 bootargs = "ignore_loglevel";
25                 stdout-path = "serial0:115200n8";
26         };
27
28         memory@48000000 {
29                 device_type = "memory";
30                 /* first 128MB is reserved for secure area. */
31                 reg = <0x0 0x48000000 0x0 0x78000000>;
32         };
33
34         reg_1p8v: regulator0 {
35                 compatible = "regulator-fixed";
36                 regulator-name = "fixed-1.8V";
37                 regulator-min-microvolt = <1800000>;
38                 regulator-max-microvolt = <1800000>;
39                 regulator-boot-on;
40                 regulator-always-on;
41         };
42
43         reg_3p3v: regulator1 {
44                 compatible = "regulator-fixed";
45                 regulator-name = "fixed-3.3V";
46                 regulator-min-microvolt = <3300000>;
47                 regulator-max-microvolt = <3300000>;
48                 regulator-boot-on;
49                 regulator-always-on;
50         };
51
52         vcc_sdhi0: regulator-vcc-sdhi0 {
53                 compatible = "regulator-fixed";
54
55                 regulator-name = "SDHI0 Vcc";
56                 regulator-min-microvolt = <3300000>;
57                 regulator-max-microvolt = <3300000>;
58
59                 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
60                 enable-active-high;
61         };
62
63         vccq_sdhi0: regulator-vccq-sdhi0 {
64                 compatible = "regulator-gpio";
65
66                 regulator-name = "SDHI0 VccQ";
67                 regulator-min-microvolt = <1800000>;
68                 regulator-max-microvolt = <3300000>;
69
70                 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
71                 gpios-states = <1>;
72                 states = <3300000 1
73                           1800000 0>;
74         };
75
76         vcc_sdhi3: regulator-vcc-sdhi3 {
77                 compatible = "regulator-fixed";
78
79                 regulator-name = "SDHI3 Vcc";
80                 regulator-min-microvolt = <3300000>;
81                 regulator-max-microvolt = <3300000>;
82
83                 gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
84                 enable-active-high;
85         };
86
87         vccq_sdhi3: regulator-vccq-sdhi3 {
88                 compatible = "regulator-gpio";
89
90                 regulator-name = "SDHI3 VccQ";
91                 regulator-min-microvolt = <1800000>;
92                 regulator-max-microvolt = <3300000>;
93
94                 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
95                 gpios-states = <1>;
96                 states = <3300000 1
97                           1800000 0>;
98         };
99 };
100
101 &pfc {
102         pinctrl-0 = <&scif_clk_pins>;
103         pinctrl-names = "default";
104
105         scif2_pins: scif2 {
106                 groups = "scif2_data_a";
107                 function = "scif2";
108         };
109         scif_clk_pins: scif_clk {
110                 groups = "scif_clk_a";
111                 function = "scif_clk";
112         };
113
114         i2c2_pins: i2c2 {
115                 groups = "i2c2_a";
116                 function = "i2c2";
117         };
118
119         sdhi0_pins: sd0 {
120                 groups = "sdhi0_data4", "sdhi0_ctrl";
121                 function = "sdhi0";
122                 power-source = <3300>;
123         };
124
125         sdhi0_pins_uhs: sd0_uhs {
126                 groups = "sdhi0_data4", "sdhi0_ctrl";
127                 function = "sdhi0";
128                 power-source = <1800>;
129         };
130
131         sdhi2_pins: sd2 {
132                 groups = "sdhi2_data8", "sdhi2_ctrl";
133                 function = "sdhi2";
134                 power-source = <3300>;
135         };
136
137         sdhi2_pins_uhs: sd2_uhs {
138                 groups = "sdhi2_data8", "sdhi2_ctrl";
139                 function = "sdhi2";
140                 power-source = <1800>;
141         };
142
143         sdhi3_pins: sd3 {
144                 groups = "sdhi3_data4", "sdhi3_ctrl";
145                 function = "sdhi3";
146                 power-source = <3300>;
147         };
148
149         sdhi3_pins_uhs: sd3_uhs {
150                 groups = "sdhi3_data4", "sdhi3_ctrl";
151                 function = "sdhi3";
152                 power-source = <1800>;
153         };
154 };
155
156 &extal_clk {
157         clock-frequency = <16666666>;
158 };
159
160 &extalr_clk {
161         clock-frequency = <32768>;
162 };
163
164 &sdhi0 {
165         pinctrl-0 = <&sdhi0_pins>;
166         pinctrl-1 = <&sdhi0_pins_uhs>;
167         pinctrl-names = "default", "state_uhs";
168
169         vmmc-supply = <&vcc_sdhi0>;
170         vqmmc-supply = <&vccq_sdhi0>;
171         cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
172         wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
173         bus-width = <4>;
174         sd-uhs-sdr50;
175         status = "okay";
176 };
177
178 &sdhi2 {
179         /* used for on-board 8bit eMMC */
180         pinctrl-0 = <&sdhi2_pins>;
181         pinctrl-1 = <&sdhi2_pins_uhs>;
182         pinctrl-names = "default", "state_uhs";
183
184         vmmc-supply = <&reg_3p3v>;
185         vqmmc-supply = <&reg_1p8v>;
186         bus-width = <8>;
187         non-removable;
188         status = "okay";
189 };
190
191 &sdhi3 {
192         pinctrl-0 = <&sdhi3_pins>;
193         pinctrl-1 = <&sdhi3_pins_uhs>;
194         pinctrl-names = "default", "state_uhs";
195
196         vmmc-supply = <&vcc_sdhi3>;
197         vqmmc-supply = <&vccq_sdhi3>;
198         cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
199         wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
200         bus-width = <4>;
201         sd-uhs-sdr50;
202         status = "okay";
203 };
204
205 &scif2 {
206         pinctrl-0 = <&scif2_pins>;
207         pinctrl-names = "default";
208         status = "okay";
209 };
210
211 &scif_clk {
212         clock-frequency = <14745600>;
213         status = "okay";
214 };
215
216 &i2c2 {
217         pinctrl-0 = <&i2c2_pins>;
218         pinctrl-names = "default";
219
220         status = "okay";
221 };
222
223 &wdt0 {
224         timeout-sec = <60>;
225         status = "okay";
226 };