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 {
178 compatible = "ethernet-phy-id0022.1622",
179 "ethernet-phy-ieee802.3-c22";
181 micrel,led-mode = <1>;
186 pinctrl-0 = <&i2c2_pins>;
187 pinctrl-names = "default";
190 clock-frequency = <400000>;
193 compatible = "fsl,sgtl5000";
194 #sound-dai-cells = <0>;
196 clocks = <&audio_clock>;
197 VDDA-supply = <®_3p3v>;
198 VDDIO-supply = <®_3p3v>;
199 VDDD-supply = <®_1p5v>;
202 touch: touchpanel@38 {
203 compatible = "edt,edt-ft5406";
205 interrupt-parent = <&gpio0>;
206 interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
207 /* GP1_29 is also shared with audio codec reset pin */
208 reset-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
209 vcc-supply = <&vcc_3v3_tft1>;
214 pinctrl-0 = <&can1_pins>;
215 pinctrl-names = "default";
229 touch-interrupt-hog {
231 gpios = <24 GPIO_ACTIVE_LOW>;
239 gpios = <28 GPIO_ACTIVE_HIGH>;
241 line-name = "can-trx-en-gpio";
246 pinctrl-0 = <&usb0_pins>;
247 pinctrl-names = "default";
255 lvds0_out: endpoint {
256 remote-endpoint = <&lvds_receiver_in>;
263 pinctrl-0 = <&msiof0_pins>;
264 pinctrl-names = "default";
265 cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
270 compatible = "sst,sst25vf016b", "jedec,spi-nor";
272 spi-max-frequency = <50000000>;
276 compatible = "fixed-partitions";
277 #address-cells = <1>;
282 reg = <0x00000000 0x00200000>;
289 pinctrl-0 = <&usb0_pins>;
290 pinctrl-names = "default";
291 /* Disable hsusb to enable USB2.0 host mode support on J2 */
292 /* status = "okay"; */
296 pinctrl-0 = <&usb1_pins>;
297 pinctrl-names = "default";
302 /* Disable xhci to enable USB2.0 host mode support on J23 bottom port */
303 /* status = "okay"; */
307 clock-frequency = <100000000>;
311 /* SW2[6] determines which connector is activated
312 * ON = PCIe X4 (connector-J7)
313 * OFF = mini-PCIe (connector-J26)
320 groups = "avb_mdio", "avb_gmii";
324 backlight_pins: backlight {
330 groups = "can1_data_b";
339 msiof0_pins: msiof0 {
340 groups = "msiof0_clk", "msiof0_sync", "msiof0_tx", "msiof0_rx";
344 scifa2_pins: scifa2 {
345 groups = "scifa2_data_c";
349 scifb2_pins: scifb2 {
350 groups = "scifb2_data", "scifb2_ctrl";
355 groups = "sdhi2_data4", "sdhi2_ctrl";
357 power-source = <3300>;
360 sdhi2_pins_uhs: sd2_uhs {
361 groups = "sdhi2_data4", "sdhi2_ctrl";
363 power-source = <1800>;
367 groups = "ssi34_ctrl", "ssi3_data", "ssi4_data";
377 groups = "usb1_pwen";
383 pinctrl-0 = <&sound_pins>;
384 pinctrl-names = "default";
388 #sound-dai-cells = <0>;
392 playback = <&ssi4>, <&src4>, <&dvc1>;
393 capture = <&ssi3>, <&src3>, <&dvc0>;
404 pinctrl-0 = <&scifa2_pins>;
405 pinctrl-names = "default";
411 pinctrl-0 = <&scifb2_pins>;
412 pinctrl-names = "default";
419 pinctrl-0 = <&sdhi2_pins>;
420 pinctrl-1 = <&sdhi2_pins_uhs>;
421 pinctrl-names = "default", "state_uhs";
423 vmmc-supply = <&vcc_sdhi2>;
424 vqmmc-supply = <&vccq_sdhi2>;
425 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
426 wp-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;