OSDN Git Service

ARM: dts: iwg20d-q7-common: Sound DMA support on DTS
[tomoyo/tomoyo-test1.git] / arch / arm / boot / dts / iwg20d-q7-common.dtsi
1 /*
2  * Device Tree Source for the iWave-RZ/G1M/G1N Qseven carrier board
3  *
4  * Copyright (C) 2017 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 / {
12         aliases {
13                 serial0 = &scif0;
14                 serial3 = &scifb1;
15                 ethernet0 = &avb;
16         };
17
18         chosen {
19                 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
20                 stdout-path = "serial0:115200n8";
21         };
22
23         audio_clock: audio_clock {
24                 compatible = "fixed-clock";
25                 #clock-cells = <0>;
26                 clock-frequency = <26000000>;
27         };
28
29         reg_1p5v: 1p5v {
30                 compatible = "regulator-fixed";
31                 regulator-name = "1P5V";
32                 regulator-min-microvolt = <1500000>;
33                 regulator-max-microvolt = <1500000>;
34                 regulator-always-on;
35         };
36
37         rsnd_sgtl5000: sound {
38                 compatible = "simple-audio-card";
39
40                 simple-audio-card,format = "i2s";
41                 simple-audio-card,bitclock-master = <&sndcodec>;
42                 simple-audio-card,frame-master = <&sndcodec>;
43
44                 sndcpu: simple-audio-card,cpu {
45                         sound-dai = <&rcar_sound>;
46                 };
47
48                 sndcodec: simple-audio-card,codec {
49                         sound-dai = <&sgtl5000>;
50                 };
51         };
52
53         vcc_sdhi1: regulator-vcc-sdhi1 {
54                 compatible = "regulator-fixed";
55
56                 regulator-name = "SDHI1 Vcc";
57                 regulator-min-microvolt = <3300000>;
58                 regulator-max-microvolt = <3300000>;
59
60                 gpio = <&gpio1 16 GPIO_ACTIVE_LOW>;
61         };
62
63         vccq_sdhi1: regulator-vccq-sdhi1 {
64                 compatible = "regulator-gpio";
65
66                 regulator-name = "SDHI1 VccQ";
67                 regulator-min-microvolt = <1800000>;
68                 regulator-max-microvolt = <3300000>;
69
70                 gpios = <&gpio2 30 GPIO_ACTIVE_LOW>;
71                 gpios-states = <1>;
72                 states = <3300000 1
73                           1800000 0>;
74         };
75 };
76
77 &avb {
78         pinctrl-0 = <&avb_pins>;
79         pinctrl-names = "default";
80
81         phy-handle = <&phy3>;
82         phy-mode = "gmii";
83         renesas,no-ether-link;
84         status = "okay";
85
86         phy3: ethernet-phy@3 {
87                 reg = <3>;
88                 micrel,led-mode = <1>;
89         };
90 };
91
92 &can0 {
93         pinctrl-0 = <&can0_pins>;
94         pinctrl-names = "default";
95
96         status = "okay";
97 };
98
99 &hsusb {
100         status = "okay";
101         pinctrl-0 = <&usb0_pins>;
102         pinctrl-names = "default";
103 };
104
105 &i2c2 {
106         pinctrl-0 = <&i2c2_pins>;
107         pinctrl-names = "default";
108
109         status = "okay";
110         clock-frequency = <400000>;
111
112         rtc@68 {
113                 compatible = "ti,bq32000";
114                 reg = <0x68>;
115         };
116
117         sgtl5000: codec@a {
118                 compatible = "fsl,sgtl5000";
119                 #sound-dai-cells = <0>;
120                 reg = <0x0a>;
121                 clocks = <&audio_clock>;
122                 VDDA-supply = <&reg_3p3v>;
123                 VDDIO-supply = <&reg_3p3v>;
124                 VDDD-supply = <&reg_1p5v>;
125         };
126 };
127
128 &pci0 {
129         pinctrl-0 = <&usb0_pins>;
130         pinctrl-names = "default";
131 };
132
133 &pci1 {
134         status = "okay";
135         pinctrl-0 = <&usb1_pins>;
136         pinctrl-names = "default";
137 };
138
139 &pcie_bus_clk {
140         clock-frequency = <100000000>;
141 };
142
143 &pciec {
144         status = "okay";
145 };
146
147 &pfc {
148         can0_pins: can0 {
149                 groups = "can0_data_d";
150                 function = "can0";
151         };
152
153         avb_pins: avb {
154                 groups = "avb_mdio", "avb_gmii";
155                 function = "avb";
156         };
157
158         i2c2_pins: i2c2 {
159                 groups = "i2c2";
160                 function = "i2c2";
161         };
162
163         scif0_pins: scif0 {
164                 groups = "scif0_data_d";
165                 function = "scif0";
166         };
167
168         scifb1_pins: scifb1 {
169                 groups = "scifb1_data_d", "scifb1_ctrl";
170                 function = "scifb1";
171         };
172
173         sdhi1_pins: sd1 {
174                 groups = "sdhi1_data4", "sdhi1_ctrl";
175                 function = "sdhi1";
176                 power-source = <3300>;
177         };
178
179         sdhi1_pins_uhs: sd1_uhs {
180                 groups = "sdhi1_data4", "sdhi1_ctrl";
181                 function = "sdhi1";
182                 power-source = <1800>;
183         };
184
185         sound_pins: sound {
186                 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
187                 function = "ssi";
188         };
189
190         usb0_pins: usb0 {
191                 groups = "usb0";
192                 function = "usb0";
193         };
194
195         usb1_pins: usb1 {
196                 groups = "usb1";
197                 function = "usb1";
198         };
199 };
200
201 &rcar_sound {
202         pinctrl-0 = <&sound_pins>;
203         pinctrl-names = "default";
204         status = "okay";
205
206         /* Single DAI */
207         #sound-dai-cells = <0>;
208
209         rcar_sound,dai {
210                 dai0 {
211                         playback = <&ssi1>;
212                         capture = <&ssi0>;
213                 };
214         };
215 };
216
217 &scif0 {
218         pinctrl-0 = <&scif0_pins>;
219         pinctrl-names = "default";
220
221         status = "okay";
222 };
223
224 &scifb1 {
225         pinctrl-0 = <&scifb1_pins>;
226         pinctrl-names = "default";
227
228         uart-has-rtscts;
229         status = "okay";
230 };
231
232 &sdhi1 {
233         pinctrl-0 = <&sdhi1_pins>;
234         pinctrl-1 = <&sdhi1_pins_uhs>;
235         pinctrl-names = "default", "state_uhs";
236
237         vmmc-supply = <&vcc_sdhi1>;
238         vqmmc-supply = <&vccq_sdhi1>;
239         cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
240         wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
241         sd-uhs-sdr50;
242         status = "okay";
243 };
244
245 &ssi0 {
246         no-busif;
247 };
248
249 &ssi1 {
250         no-busif;
251         shared-pin;
252 };
253
254 &usbphy {
255         status = "okay";
256 };