1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the iWave-RZG1E SODIMM carrier board
5 * Copyright (C) 2017 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 "r8a7745-iwg22m.dtsi"
33 #include <dt-bindings/pwm/pwm.h>
36 model = "iWave Systems RainboW-G22D-SODIMM board based on RZ/G1E";
37 compatible = "iwave,g22d", "iwave,g22m", "renesas,r8a7745";
46 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
47 stdout-path = "serial3:115200n8";
50 audio_clock: audio_clock {
51 compatible = "fixed-clock";
53 clock-frequency = <26000000>;
56 backlight_lcd: backlight {
57 compatible = "pwm-backlight";
58 pwms = <&tpu 3 5000000 PWM_POLARITY_INVERTED>;
59 brightness-levels = <0 4 8 16 32 64 128 255>;
60 default-brightness-level = <7>;
64 compatible = "edt,etm043080dh6gp";
65 power-supply = <&vccq_panel>;
66 backlight = <&backlight_lcd>;
70 remote-endpoint = <&du_out_rgb0>;
75 vccq_panel: regulator-vccq-panel {
76 compatible = "regulator-fixed";
77 regulator-name = "Panel VccQ";
78 regulator-min-microvolt = <3300000>;
79 regulator-max-microvolt = <3300000>;
80 gpio = <&gpio1 13 GPIO_ACTIVE_LOW>;
84 vccq_sdhi0: regulator-vccq-sdhi0 {
85 compatible = "regulator-gpio";
87 regulator-name = "SDHI0 VccQ";
88 regulator-min-microvolt = <1800000>;
89 regulator-max-microvolt = <3300000>;
91 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
93 states = <3300000 1>, <1800000 0>;
96 rsnd_sgtl5000: sound {
97 compatible = "simple-audio-card";
98 simple-audio-card,format = "i2s";
99 simple-audio-card,bitclock-master = <&sndcodec>;
100 simple-audio-card,frame-master = <&sndcodec>;
102 sndcpu: simple-audio-card,cpu {
103 sound-dai = <&rcar_sound>;
106 sndcodec: simple-audio-card,codec {
107 sound-dai = <&sgtl5000>;
113 pinctrl-0 = <&avb_pins>;
114 pinctrl-names = "default";
116 phy-handle = <&phy3>;
118 renesas,no-ether-link;
121 phy3: ethernet-phy@3 {
123 * On some older versions of the platform (before R4.0) the phy address
124 * may be 1 or 3. The address is fixed to 3 for R4.0 onwards.
126 compatible = "ethernet-phy-id0022.1622",
127 "ethernet-phy-ieee802.3-c22";
129 micrel,led-mode = <1>;
134 pinctrl-0 = <&can0_pins>;
135 pinctrl-names = "default";
141 pinctrl-0 = <&du0_pins>;
142 pinctrl-names = "default";
149 remote-endpoint = <&lcd_in>;
156 pinctrl-0 = <&hscif1_pins>;
157 pinctrl-names = "default";
165 pinctrl-0 = <&usb0_pins>;
166 pinctrl-names = "default";
170 pinctrl-0 = <&i2c5_pins>;
171 pinctrl-names = "default";
174 clock-frequency = <400000>;
177 compatible = "fsl,sgtl5000";
178 #sound-dai-cells = <0>;
180 clocks = <&audio_clock>;
181 VDDA-supply = <®_3p3v>;
182 VDDIO-supply = <®_3p3v>;
186 compatible = "st,stmpe811";
188 interrupt-parent = <&gpio4>;
189 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
191 /* 3.25 MHz ADC clock speed */
193 /* ADC conversion time: 80 clocks */
194 st,sample-time = <4>;
197 /* internal ADC reference */
201 compatible = "st,stmpe-ts";
202 /* 8 sample average control */
204 /* 7 length fractional part in z */
207 * 50 mA typical 80 mA max touchscreen drivers
208 * current limit value
211 /* 1 ms panel driver settling time */
213 /* 5 ms touch detect interrupt delay */
214 st,touch-det-delay = <5>;
221 pinctrl-0 = <&usb1_pins>;
222 pinctrl-names = "default";
227 groups = "avb_mdio", "avb_gmii";
231 backlight_pins: backlight {
232 groups = "tpu_to3_c";
237 groups = "can0_data";
242 groups = "du0_rgb666", "du0_sync", "du0_disp", "du0_clk0_out";
246 hscif1_pins: hscif1 {
247 groups = "hscif1_data", "hscif1_ctrl";
257 groups = "scif4_data_b";
262 groups = "sdhi0_data4", "sdhi0_ctrl";
264 power-source = <3300>;
268 groups = "ssi34_ctrl", "ssi3_data", "ssi4_data";
284 pinctrl-0 = <&sound_pins>;
285 pinctrl-names = "default";
290 #sound-dai-cells = <0>;
294 playback = <&ssi3>, <&src3>, <&dvc0>;
295 capture = <&ssi4>, <&src4>, <&dvc1>;
301 pinctrl-0 = <&scif4_pins>;
302 pinctrl-names = "default";
308 pinctrl-0 = <&sdhi0_pins>;
309 pinctrl-names = "default";
311 vmmc-supply = <®_3p3v>;
312 vqmmc-supply = <&vccq_sdhi0>;
313 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
322 pinctrl-0 = <&backlight_pins>;
323 pinctrl-names = "default";