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"
33 #include <dt-bindings/pwm/pwm.h>
36 model = "iWave Systems RainboW-G21D-Qseven board based on RZ/G1H";
37 compatible = "iwave,g21d", "iwave,g21m", "renesas,r8a7742";
46 bootargs = "ignore_loglevel root=/dev/mmcblk0p1 rw rootwait";
47 stdout-path = "serial2:115200n8";
50 audio_clock: audio_clock {
51 compatible = "fixed-clock";
53 clock-frequency = <26000000>;
56 lcd_backlight: backlight {
57 compatible = "pwm-backlight";
58 pwms = <&tpu 2 5000000 0>;
59 brightness-levels = <0 4 8 16 32 64 128 255>;
60 pinctrl-0 = <&backlight_pins>;
61 pinctrl-names = "default";
62 default-brightness-level = <7>;
63 enable-gpios = <&gpio3 11 GPIO_ACTIVE_HIGH>;
67 compatible = "gpio-leds";
71 gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>;
72 linux,default-trigger = "mmc1";
77 compatible = "ti,ds90cf384a", "lvds-decoder";
78 power-supply = <&vcc_3v3_tft1>;
86 lvds_receiver_in: endpoint {
87 remote-endpoint = <&lvds0_out>;
92 lvds_receiver_out: endpoint {
93 remote-endpoint = <&panel_in>;
100 compatible = "edt,etm0700g0dh6";
101 backlight = <&lcd_backlight>;
102 power-supply = <&vcc_3v3_tft1>;
106 remote-endpoint = <&lvds_receiver_out>;
112 compatible = "regulator-fixed";
113 regulator-name = "1P5V";
114 regulator-min-microvolt = <1500000>;
115 regulator-max-microvolt = <1500000>;
119 rsnd_sgtl5000: sound {
120 compatible = "simple-audio-card";
121 simple-audio-card,format = "i2s";
122 simple-audio-card,bitclock-master = <&sndcodec>;
123 simple-audio-card,frame-master = <&sndcodec>;
125 sndcpu: simple-audio-card,cpu {
126 sound-dai = <&rcar_sound>;
129 sndcodec: simple-audio-card,codec {
130 sound-dai = <&sgtl5000>;
134 vcc_3v3_tft1: regulator-panel {
135 compatible = "regulator-fixed";
137 regulator-name = "vcc-3v3-tft1";
138 regulator-min-microvolt = <3300000>;
139 regulator-max-microvolt = <3300000>;
141 startup-delay-us = <500>;
142 gpio = <&gpio5 28 GPIO_ACTIVE_HIGH>;
145 vcc_sdhi2: regulator-vcc-sdhi2 {
146 compatible = "regulator-fixed";
148 regulator-name = "SDHI2 Vcc";
149 regulator-min-microvolt = <3300000>;
150 regulator-max-microvolt = <3300000>;
152 gpio = <&gpio1 27 GPIO_ACTIVE_LOW>;
155 vccq_sdhi2: regulator-vccq-sdhi2 {
156 compatible = "regulator-gpio";
158 regulator-name = "SDHI2 VccQ";
159 regulator-min-microvolt = <1800000>;
160 regulator-max-microvolt = <3300000>;
162 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
164 states = <3300000 1>, <1800000 0>;
169 pinctrl-0 = <&avb_pins>;
170 pinctrl-names = "default";
172 phy-handle = <&phy3>;
174 renesas,no-ether-link;
177 phy3: ethernet-phy@3 {
179 micrel,led-mode = <1>;
184 pinctrl-0 = <&i2c2_pins>;
185 pinctrl-names = "default";
188 clock-frequency = <400000>;
191 compatible = "fsl,sgtl5000";
192 #sound-dai-cells = <0>;
194 clocks = <&audio_clock>;
195 VDDA-supply = <®_3p3v>;
196 VDDIO-supply = <®_3p3v>;
197 VDDD-supply = <®_1p5v>;
200 touch: touchpanel@38 {
201 compatible = "edt,edt-ft5406";
203 interrupt-parent = <&gpio0>;
204 interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
205 /* GP1_29 is also shared with audio codec reset pin */
206 reset-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
207 vcc-supply = <&vcc_3v3_tft1>;
212 pinctrl-0 = <&can1_pins>;
213 pinctrl-names = "default";
229 gpios = <24 GPIO_ACTIVE_LOW>;
237 gpios = <28 GPIO_ACTIVE_HIGH>;
239 line-name = "can-trx-en-gpio";
244 pinctrl-0 = <&usb0_pins>;
245 pinctrl-names = "default";
253 lvds0_out: endpoint {
254 remote-endpoint = <&lvds_receiver_in>;
261 pinctrl-0 = <&msiof0_pins>;
262 pinctrl-names = "default";
263 cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
268 compatible = "sst,sst25vf016b", "jedec,spi-nor";
270 spi-max-frequency = <50000000>;
274 compatible = "fixed-partitions";
275 #address-cells = <1>;
280 reg = <0x00000000 0x00200000>;
287 pinctrl-0 = <&usb0_pins>;
288 pinctrl-names = "default";
289 /* Disable hsusb to enable USB2.0 host mode support on J2 */
290 /* status = "okay"; */
294 pinctrl-0 = <&usb1_pins>;
295 pinctrl-names = "default";
300 /* Disable xhci to enable USB2.0 host mode support on J23 bottom port */
301 /* status = "okay"; */
305 clock-frequency = <100000000>;
309 /* SW2[6] determines which connector is activated
310 * ON = PCIe X4 (connector-J7)
311 * OFF = mini-PCIe (connector-J26)
318 groups = "avb_mdio", "avb_gmii";
322 backlight_pins: backlight {
328 groups = "can1_data_b";
337 msiof0_pins: msiof0 {
338 groups = "msiof0_clk", "msiof0_sync", "msiof0_tx", "msiof0_rx";
342 scifa2_pins: scifa2 {
343 groups = "scifa2_data_c";
347 scifb2_pins: scifb2 {
348 groups = "scifb2_data", "scifb2_ctrl";
353 groups = "sdhi2_data4", "sdhi2_ctrl";
355 power-source = <3300>;
358 sdhi2_pins_uhs: sd2_uhs {
359 groups = "sdhi2_data4", "sdhi2_ctrl";
361 power-source = <1800>;
365 groups = "ssi34_ctrl", "ssi3_data", "ssi4_data";
375 groups = "usb1_pwen";
381 pinctrl-0 = <&sound_pins>;
382 pinctrl-names = "default";
386 #sound-dai-cells = <0>;
390 playback = <&ssi4 &src4 &dvc1>;
391 capture = <&ssi3 &src3 &dvc0>;
402 pinctrl-0 = <&scifa2_pins>;
403 pinctrl-names = "default";
409 pinctrl-0 = <&scifb2_pins>;
410 pinctrl-names = "default";
417 pinctrl-0 = <&sdhi2_pins>;
418 pinctrl-1 = <&sdhi2_pins_uhs>;
419 pinctrl-names = "default", "state_uhs";
421 vmmc-supply = <&vcc_sdhi2>;
422 vqmmc-supply = <&vccq_sdhi2>;
423 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
424 wp-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;