Linux 5.6.13
[linux/fpc-iii.git] / arch / arm / boot / dts / r8a7745-iwg22d-sodimm.dts
blob58d369ad82799f4ac74e69ad7a1c9f182d6c5129
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for the iWave-RZG1E SODIMM carrier board
4  *
5  * Copyright (C) 2017 Renesas Electronics Corp.
6  */
8 /*
9  * SSI-SGTL5000
10  *
11  * This command is required when Playback/Capture
12  *
13  *      amixer set "DVC Out" 100%
14  *      amixer set "DVC In" 100%
15  *
16  * You can use Mute
17  *
18  *      amixer set "DVC Out Mute" on
19  *      amixer set "DVC In Mute" on
20  *
21  * You can use Volume Ramp
22  *
23  *      amixer set "DVC Out Ramp Up Rate"   "0.125 dB/64 steps"
24  *      amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
25  *      amixer set "DVC Out Ramp" on
26  *      aplay xxx.wav &
27  *      amixer set "DVC Out"  80%  // Volume Down
28  *      amixer set "DVC Out" 100%  // Volume Up
29  */
31 /dts-v1/;
32 #include "r8a7745-iwg22m.dtsi"
34 / {
35         model = "iWave Systems RainboW-G22D-SODIMM board based on RZ/G1E";
36         compatible = "iwave,g22d", "iwave,g22m", "renesas,r8a7745";
38         aliases {
39                 ethernet0 = &avb;
40                 serial3 = &scif4;
41                 serial5 = &hscif1;
42         };
44         chosen {
45                 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
46                 stdout-path = "serial3:115200n8";
47         };
49         audio_clock: audio_clock {
50                 compatible = "fixed-clock";
51                 #clock-cells = <0>;
52                 clock-frequency = <26000000>;
53         };
55         rsnd_sgtl5000: sound {
56                 compatible = "simple-audio-card";
57                 simple-audio-card,format = "i2s";
58                 simple-audio-card,bitclock-master = <&sndcodec>;
59                 simple-audio-card,frame-master = <&sndcodec>;
61                 sndcpu: simple-audio-card,cpu {
62                         sound-dai = <&rcar_sound>;
63                 };
65                 sndcodec: simple-audio-card,codec {
66                         sound-dai = <&sgtl5000>;
67                 };
68         };
70         vccq_sdhi0: regulator-vccq-sdhi0 {
71                 compatible = "regulator-gpio";
73                 regulator-name = "SDHI0 VccQ";
74                 regulator-min-microvolt = <1800000>;
75                 regulator-max-microvolt = <3300000>;
77                 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
78                 gpios-states = <1>;
79                 states = <3300000 1>, <1800000 0>;
80         };
83 &avb {
84         pinctrl-0 = <&avb_pins>;
85         pinctrl-names = "default";
87         phy-handle = <&phy3>;
88         phy-mode = "gmii";
89         renesas,no-ether-link;
90         status = "okay";
92         phy3: ethernet-phy@3 {
93         /*
94          * On some older versions of the platform (before R4.0) the phy address
95          * may be 1 or 3. The address is fixed to 3 for R4.0 onwards.
96          */
97                 reg = <3>;
98                 micrel,led-mode = <1>;
99         };
102 &can0 {
103         pinctrl-0 = <&can0_pins>;
104         pinctrl-names = "default";
106         status = "okay";
109 &hscif1 {
110         pinctrl-0 = <&hscif1_pins>;
111         pinctrl-names = "default";
113         uart-has-rtscts;
114         status = "okay";
117 &hsusb {
118         status = "okay";
119         pinctrl-0 = <&usb0_pins>;
120         pinctrl-names = "default";
123 &i2c5 {
124         pinctrl-0 = <&i2c5_pins>;
125         pinctrl-names = "default";
127         status = "okay";
128         clock-frequency = <400000>;
130         sgtl5000: codec@a {
131                 compatible = "fsl,sgtl5000";
132                 #sound-dai-cells = <0>;
133                 reg = <0x0a>;
134                 clocks = <&audio_clock>;
135                 VDDA-supply = <&reg_3p3v>;
136                 VDDIO-supply = <&reg_3p3v>;
137         };
140 &pci1 {
141         status = "okay";
142         pinctrl-0 = <&usb1_pins>;
143         pinctrl-names = "default";
146 &pfc {
147         avb_pins: avb {
148                 groups = "avb_mdio", "avb_gmii";
149                 function = "avb";
150         };
152         can0_pins: can0 {
153                 groups = "can0_data";
154                 function = "can0";
155         };
157         hscif1_pins: hscif1 {
158                 groups = "hscif1_data", "hscif1_ctrl";
159                 function = "hscif1";
160         };
162         i2c5_pins: i2c5 {
163                 groups = "i2c5_b";
164                 function = "i2c5";
165         };
167         scif4_pins: scif4 {
168                 groups = "scif4_data_b";
169                 function = "scif4";
170         };
172         sdhi0_pins: sd0 {
173                 groups = "sdhi0_data4", "sdhi0_ctrl";
174                 function = "sdhi0";
175                 power-source = <3300>;
176         };
178         sound_pins: sound {
179                 groups = "ssi34_ctrl", "ssi3_data", "ssi4_data";
180                 function = "ssi";
181         };
183         usb0_pins: usb0 {
184                 groups = "usb0";
185                 function = "usb0";
186         };
188         usb1_pins: usb1 {
189                 groups = "usb1";
190                 function = "usb1";
191         };
194 &rcar_sound {
195         pinctrl-0 = <&sound_pins>;
196         pinctrl-names = "default";
197         status = "okay";
199         /* Single DAI */
201         #sound-dai-cells = <0>;
203         rcar_sound,dai {
204                 dai0 {
205                         playback = <&ssi3 &src3 &dvc0>;
206                         capture = <&ssi4 &src4 &dvc1>;
207                 };
208         };
211 &scif4 {
212         pinctrl-0 = <&scif4_pins>;
213         pinctrl-names = "default";
215         status = "okay";
218 &sdhi0 {
219         pinctrl-0 = <&sdhi0_pins>;
220         pinctrl-names = "default";
222         vmmc-supply = <&reg_3p3v>;
223         vqmmc-supply = <&vccq_sdhi0>;
224         cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
225         status = "okay";
228 &ssi4 {
229         shared-pin;
232 &usbphy {
233         status = "okay";