]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts
scsi: cxgb4i: libcxgbi: in error case RST tcp conn
[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                 ethernet0 = &avb;
22         };
23
24         chosen {
25                 bootargs = "ignore_loglevel";
26                 stdout-path = "serial0:115200n8";
27         };
28
29         memory@48000000 {
30                 device_type = "memory";
31                 /* first 128MB is reserved for secure area. */
32                 reg = <0x0 0x48000000 0x0 0x78000000>;
33         };
34
35         memory@600000000 {
36                 device_type = "memory";
37                 reg = <0x6 0x00000000 0x0 0x80000000>;
38         };
39
40         reg_1p8v: regulator0 {
41                 compatible = "regulator-fixed";
42                 regulator-name = "fixed-1.8V";
43                 regulator-min-microvolt = <1800000>;
44                 regulator-max-microvolt = <1800000>;
45                 regulator-boot-on;
46                 regulator-always-on;
47         };
48
49         reg_3p3v: regulator1 {
50                 compatible = "regulator-fixed";
51                 regulator-name = "fixed-3.3V";
52                 regulator-min-microvolt = <3300000>;
53                 regulator-max-microvolt = <3300000>;
54                 regulator-boot-on;
55                 regulator-always-on;
56         };
57
58         vcc_sdhi0: regulator-vcc-sdhi0 {
59                 compatible = "regulator-fixed";
60
61                 regulator-name = "SDHI0 Vcc";
62                 regulator-min-microvolt = <3300000>;
63                 regulator-max-microvolt = <3300000>;
64
65                 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
66                 enable-active-high;
67         };
68
69         vccq_sdhi0: regulator-vccq-sdhi0 {
70                 compatible = "regulator-gpio";
71
72                 regulator-name = "SDHI0 VccQ";
73                 regulator-min-microvolt = <1800000>;
74                 regulator-max-microvolt = <3300000>;
75
76                 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
77                 gpios-states = <1>;
78                 states = <3300000 1
79                           1800000 0>;
80         };
81
82         vcc_sdhi3: regulator-vcc-sdhi3 {
83                 compatible = "regulator-fixed";
84
85                 regulator-name = "SDHI3 Vcc";
86                 regulator-min-microvolt = <3300000>;
87                 regulator-max-microvolt = <3300000>;
88
89                 gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
90                 enable-active-high;
91         };
92
93         vccq_sdhi3: regulator-vccq-sdhi3 {
94                 compatible = "regulator-gpio";
95
96                 regulator-name = "SDHI3 VccQ";
97                 regulator-min-microvolt = <1800000>;
98                 regulator-max-microvolt = <3300000>;
99
100                 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
101                 gpios-states = <1>;
102                 states = <3300000 1
103                           1800000 0>;
104         };
105 };
106
107 &pfc {
108         pinctrl-0 = <&scif_clk_pins>;
109         pinctrl-names = "default";
110
111         avb_pins: avb {
112                 groups = "avb_mdc";
113                 function = "avb";
114         };
115
116         scif2_pins: scif2 {
117                 groups = "scif2_data_a";
118                 function = "scif2";
119         };
120         scif_clk_pins: scif_clk {
121                 groups = "scif_clk_a";
122                 function = "scif_clk";
123         };
124
125         i2c2_pins: i2c2 {
126                 groups = "i2c2_a";
127                 function = "i2c2";
128         };
129
130         sdhi0_pins: sd0 {
131                 groups = "sdhi0_data4", "sdhi0_ctrl";
132                 function = "sdhi0";
133                 power-source = <3300>;
134         };
135
136         sdhi0_pins_uhs: sd0_uhs {
137                 groups = "sdhi0_data4", "sdhi0_ctrl";
138                 function = "sdhi0";
139                 power-source = <1800>;
140         };
141
142         sdhi2_pins: sd2 {
143                 groups = "sdhi2_data8", "sdhi2_ctrl";
144                 function = "sdhi2";
145                 power-source = <3300>;
146         };
147
148         sdhi2_pins_uhs: sd2_uhs {
149                 groups = "sdhi2_data8", "sdhi2_ctrl";
150                 function = "sdhi2";
151                 power-source = <1800>;
152         };
153
154         sdhi3_pins: sd3 {
155                 groups = "sdhi3_data4", "sdhi3_ctrl";
156                 function = "sdhi3";
157                 power-source = <3300>;
158         };
159
160         sdhi3_pins_uhs: sd3_uhs {
161                 groups = "sdhi3_data4", "sdhi3_ctrl";
162                 function = "sdhi3";
163                 power-source = <1800>;
164         };
165 };
166
167 &avb {
168         pinctrl-0 = <&avb_pins>;
169         pinctrl-names = "default";
170         renesas,no-ether-link;
171         phy-handle = <&phy0>;
172         status = "okay";
173
174         phy0: ethernet-phy@0 {
175                 rxc-skew-ps = <900>;
176                 rxdv-skew-ps = <0>;
177                 rxd0-skew-ps = <0>;
178                 rxd1-skew-ps = <0>;
179                 rxd2-skew-ps = <0>;
180                 rxd3-skew-ps = <0>;
181                 txc-skew-ps = <900>;
182                 txen-skew-ps = <0>;
183                 txd0-skew-ps = <0>;
184                 txd1-skew-ps = <0>;
185                 txd2-skew-ps = <0>;
186                 txd3-skew-ps = <0>;
187                 reg = <0>;
188                 interrupt-parent = <&gpio2>;
189                 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
190         };
191 };
192
193 &extal_clk {
194         clock-frequency = <16666666>;
195 };
196
197 &extalr_clk {
198         clock-frequency = <32768>;
199 };
200
201 &sdhi0 {
202         pinctrl-0 = <&sdhi0_pins>;
203         pinctrl-1 = <&sdhi0_pins_uhs>;
204         pinctrl-names = "default", "state_uhs";
205
206         vmmc-supply = <&vcc_sdhi0>;
207         vqmmc-supply = <&vccq_sdhi0>;
208         cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
209         wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
210         bus-width = <4>;
211         sd-uhs-sdr50;
212         status = "okay";
213 };
214
215 &sdhi2 {
216         /* used for on-board 8bit eMMC */
217         pinctrl-0 = <&sdhi2_pins>;
218         pinctrl-1 = <&sdhi2_pins_uhs>;
219         pinctrl-names = "default", "state_uhs";
220
221         vmmc-supply = <&reg_3p3v>;
222         vqmmc-supply = <&reg_1p8v>;
223         bus-width = <8>;
224         non-removable;
225         status = "okay";
226 };
227
228 &sdhi3 {
229         pinctrl-0 = <&sdhi3_pins>;
230         pinctrl-1 = <&sdhi3_pins_uhs>;
231         pinctrl-names = "default", "state_uhs";
232
233         vmmc-supply = <&vcc_sdhi3>;
234         vqmmc-supply = <&vccq_sdhi3>;
235         cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
236         wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
237         bus-width = <4>;
238         sd-uhs-sdr50;
239         status = "okay";
240 };
241
242 &scif2 {
243         pinctrl-0 = <&scif2_pins>;
244         pinctrl-names = "default";
245         status = "okay";
246 };
247
248 &scif_clk {
249         clock-frequency = <14745600>;
250         status = "okay";
251 };
252
253 &i2c2 {
254         pinctrl-0 = <&i2c2_pins>;
255         pinctrl-names = "default";
256
257         status = "okay";
258 };
259
260 &wdt0 {
261         timeout-sec = <60>;
262         status = "okay";
263 };