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 = "gpio-leds";
60 gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>;
61 linux,default-trigger = "mmc1";
66 compatible = "regulator-fixed";
67 regulator-name = "1P5V";
68 regulator-min-microvolt = <1500000>;
69 regulator-max-microvolt = <1500000>;
73 rsnd_sgtl5000: sound {
74 compatible = "simple-audio-card";
75 simple-audio-card,format = "i2s";
76 simple-audio-card,bitclock-master = <&sndcodec>;
77 simple-audio-card,frame-master = <&sndcodec>;
79 sndcpu: simple-audio-card,cpu {
80 sound-dai = <&rcar_sound>;
83 sndcodec: simple-audio-card,codec {
84 sound-dai = <&sgtl5000>;
88 vcc_sdhi2: regulator-vcc-sdhi2 {
89 compatible = "regulator-fixed";
91 regulator-name = "SDHI2 Vcc";
92 regulator-min-microvolt = <3300000>;
93 regulator-max-microvolt = <3300000>;
95 gpio = <&gpio1 27 GPIO_ACTIVE_LOW>;
98 vccq_sdhi2: regulator-vccq-sdhi2 {
99 compatible = "regulator-gpio";
101 regulator-name = "SDHI2 VccQ";
102 regulator-min-microvolt = <1800000>;
103 regulator-max-microvolt = <3300000>;
105 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
107 states = <3300000 1>, <1800000 0>;
112 pinctrl-0 = <&avb_pins>;
113 pinctrl-names = "default";
115 phy-handle = <&phy3>;
117 renesas,no-ether-link;
120 phy3: ethernet-phy@3 {
122 micrel,led-mode = <1>;
127 pinctrl-0 = <&i2c2_pins>;
128 pinctrl-names = "default";
131 clock-frequency = <400000>;
134 compatible = "fsl,sgtl5000";
135 #sound-dai-cells = <0>;
137 clocks = <&audio_clock>;
138 VDDA-supply = <®_3p3v>;
139 VDDIO-supply = <®_3p3v>;
140 VDDD-supply = <®_1p5v>;
145 pinctrl-0 = <&can1_pins>;
146 pinctrl-names = "default";
158 gpios = <28 GPIO_ACTIVE_HIGH>;
160 line-name = "can-trx-en-gpio";
165 pinctrl-0 = <&usb0_pins>;
166 pinctrl-names = "default";
171 pinctrl-0 = <&msiof0_pins>;
172 pinctrl-names = "default";
173 cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
178 compatible = "sst,sst25vf016b", "jedec,spi-nor";
180 spi-max-frequency = <50000000>;
184 compatible = "fixed-partitions";
185 #address-cells = <1>;
190 reg = <0x00000000 0x00200000>;
197 pinctrl-0 = <&usb0_pins>;
198 pinctrl-names = "default";
199 /* Disable hsusb to enable USB2.0 host mode support on J2 */
200 /* status = "okay"; */
204 pinctrl-0 = <&usb1_pins>;
205 pinctrl-names = "default";
210 /* Disable xhci to enable USB2.0 host mode support on J23 bottom port */
211 /* status = "okay"; */
215 clock-frequency = <100000000>;
219 /* SW2[6] determines which connector is activated
220 * ON = PCIe X4 (connector-J7)
221 * OFF = mini-PCIe (connector-J26)
228 groups = "avb_mdio", "avb_gmii";
233 groups = "can1_data_b";
242 msiof0_pins: msiof0 {
243 groups = "msiof0_clk", "msiof0_sync", "msiof0_tx", "msiof0_rx";
247 scifa2_pins: scifa2 {
248 groups = "scifa2_data_c";
252 scifb2_pins: scifb2 {
253 groups = "scifb2_data", "scifb2_ctrl";
258 groups = "sdhi2_data4", "sdhi2_ctrl";
260 power-source = <3300>;
263 sdhi2_pins_uhs: sd2_uhs {
264 groups = "sdhi2_data4", "sdhi2_ctrl";
266 power-source = <1800>;
270 groups = "ssi34_ctrl", "ssi3_data", "ssi4_data";
280 groups = "usb1_pwen";
286 pinctrl-0 = <&sound_pins>;
287 pinctrl-names = "default";
291 #sound-dai-cells = <0>;
295 playback = <&ssi4 &src4 &dvc1>;
296 capture = <&ssi3 &src3 &dvc0>;
307 pinctrl-0 = <&scifa2_pins>;
308 pinctrl-names = "default";
314 pinctrl-0 = <&scifb2_pins>;
315 pinctrl-names = "default";
322 pinctrl-0 = <&sdhi2_pins>;
323 pinctrl-1 = <&sdhi2_pins_uhs>;
324 pinctrl-names = "default", "state_uhs";
326 vmmc-supply = <&vcc_sdhi2>;
327 vqmmc-supply = <&vccq_sdhi2>;
328 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
329 wp-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;