1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the iWave-RZ/G1H Qseven board
5 * Copyright (C) 2020 Renesas Electronics Corp.
11 * This command is required when Playback/Capture
13 * amixer set "DVC Out" 100%
14 * amixer set "DVC In" 100%
18 * amixer set "DVC Out Mute" on
19 * amixer set "DVC In Mute" on
21 * You can use Volume Ramp
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
27 * amixer set "DVC Out" 80% // Volume Down
28 * amixer set "DVC Out" 100% // Volume Up
32 #include "r8a7742-iwg21m.dtsi"
35 model = "iWave Systems RainboW-G21D-Qseven board based on RZ/G1H";
36 compatible = "iwave,g21d", "iwave,g21m", "renesas,r8a7742";
45 bootargs = "ignore_loglevel root=/dev/mmcblk0p1 rw rootwait";
46 stdout-path = "serial2:115200n8";
49 audio_clock: audio_clock {
50 compatible = "fixed-clock";
52 clock-frequency = <26000000>;
56 compatible = "regulator-fixed";
57 regulator-name = "1P5V";
58 regulator-min-microvolt = <1500000>;
59 regulator-max-microvolt = <1500000>;
63 rsnd_sgtl5000: sound {
64 compatible = "simple-audio-card";
65 simple-audio-card,format = "i2s";
66 simple-audio-card,bitclock-master = <&sndcodec>;
67 simple-audio-card,frame-master = <&sndcodec>;
69 sndcpu: simple-audio-card,cpu {
70 sound-dai = <&rcar_sound>;
73 sndcodec: simple-audio-card,codec {
74 sound-dai = <&sgtl5000>;
78 vcc_sdhi2: regulator-vcc-sdhi2 {
79 compatible = "regulator-fixed";
81 regulator-name = "SDHI2 Vcc";
82 regulator-min-microvolt = <3300000>;
83 regulator-max-microvolt = <3300000>;
85 gpio = <&gpio1 27 GPIO_ACTIVE_LOW>;
88 vccq_sdhi2: regulator-vccq-sdhi2 {
89 compatible = "regulator-gpio";
91 regulator-name = "SDHI2 VccQ";
92 regulator-min-microvolt = <1800000>;
93 regulator-max-microvolt = <3300000>;
95 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
97 states = <3300000 1>, <1800000 0>;
102 pinctrl-0 = <&avb_pins>;
103 pinctrl-names = "default";
105 phy-handle = <&phy3>;
107 renesas,no-ether-link;
110 phy3: ethernet-phy@3 {
112 micrel,led-mode = <1>;
117 pinctrl-0 = <&i2c2_pins>;
118 pinctrl-names = "default";
121 clock-frequency = <400000>;
124 compatible = "fsl,sgtl5000";
125 #sound-dai-cells = <0>;
127 clocks = <&audio_clock>;
128 VDDA-supply = <®_3p3v>;
129 VDDIO-supply = <®_3p3v>;
130 VDDD-supply = <®_1p5v>;
136 groups = "avb_mdio", "avb_gmii";
145 scifa2_pins: scifa2 {
146 groups = "scifa2_data_c";
150 scifb2_pins: scifb2 {
151 groups = "scifb2_data", "scifb2_ctrl";
156 groups = "sdhi2_data4", "sdhi2_ctrl";
158 power-source = <3300>;
161 sdhi2_pins_uhs: sd2_uhs {
162 groups = "sdhi2_data4", "sdhi2_ctrl";
164 power-source = <1800>;
168 groups = "ssi34_ctrl", "ssi3_data", "ssi4_data";
174 pinctrl-0 = <&sound_pins>;
175 pinctrl-names = "default";
179 #sound-dai-cells = <0>;
183 playback = <&ssi4 &src4 &dvc1>;
184 capture = <&ssi3 &src3 &dvc0>;
195 pinctrl-0 = <&scifa2_pins>;
196 pinctrl-names = "default";
202 pinctrl-0 = <&scifb2_pins>;
203 pinctrl-names = "default";
210 pinctrl-0 = <&sdhi2_pins>;
211 pinctrl-1 = <&sdhi2_pins_uhs>;
212 pinctrl-names = "default", "state_uhs";
214 vmmc-supply = <&vcc_sdhi2>;
215 vqmmc-supply = <&vccq_sdhi2>;
216 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
217 wp-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;