1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright 2020, Compass Electronics Group, LLC
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
25 stdout-path = "serial0:115200n8";
28 backlight: backlight {
29 compatible = "pwm-backlight";
30 power-supply = <®_lcd>;
31 enable-gpios = <&gpio_exp1 3 GPIO_ACTIVE_HIGH>;
32 pwms = <&pwm0 0 50000>;
33 brightness-levels = <0 4 8 16 32 64 128 255>;
34 default-brightness-level = <6>;
38 compatible = "hdmi-connector";
43 remote-endpoint = <&rcar_dw_hdmi0_out>;
49 compatible = "gpio-keys";
52 gpios = <&gpio4 6 GPIO_ACTIVE_LOW>;
56 debounce-interval = <20>;
59 gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
63 debounce-interval = <20>;
66 gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
70 debounce-interval = <20>;
73 gpios = <&gpio5 20 GPIO_ACTIVE_LOW>;
77 debounce-interval = <20>;
80 gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
84 debounce-interval = <20>;
89 compatible = "gpio-leds";
90 pinctrl-0 = <&led_pins>;
91 pinctrl-names = "default";
94 gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
96 linux,default-trigger = "heartbeat";
99 gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
101 linux,default-trigger = "heartbeat";
104 gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
106 linux,default-trigger = "heartbeat";
109 gpios = <&gpio7 3 GPIO_ACTIVE_HIGH>;
111 linux,default-trigger = "heartbeat";
115 reg_audio: regulator_audio {
116 compatible = "regulator-fixed";
117 regulator-name = "audio-1.8V";
118 regulator-min-microvolt = <1800000>;
119 regulator-max-microvolt = <1800000>;
120 gpio = <&gpio_exp2 7 GPIO_ACTIVE_HIGH>;
124 reg_lcd: regulator-lcd {
125 compatible = "regulator-fixed";
126 regulator-name = "lcd_panel_pwr";
127 regulator-min-microvolt = <3300000>;
128 regulator-max-microvolt = <3300000>;
129 gpio = <&gpio_exp1 1 GPIO_ACTIVE_HIGH>;
133 reg_lcd_reset: regulator-lcd-reset {
134 compatible = "regulator-fixed";
135 regulator-name = "nLCD_RESET";
136 regulator-min-microvolt = <3300000>;
137 regulator-max-microvolt = <3300000>;
138 gpio = <&gpio5 3 GPIO_ACTIVE_HIGH>;
140 vin-supply = <®_lcd>;
143 reg_cam0: regulator_camera {
144 compatible = "regulator-fixed";
145 regulator-name = "reg_cam0";
146 regulator-min-microvolt = <1800000>;
147 regulator-max-microvolt = <1800000>;
148 gpio = <&gpio_exp2 2 GPIO_ACTIVE_HIGH>;
152 reg_cam1: regulator_camera {
153 compatible = "regulator-fixed";
154 regulator-name = "reg_cam1";
155 regulator-min-microvolt = <1800000>;
156 regulator-max-microvolt = <1800000>;
157 gpio = <&gpio_exp2 5 GPIO_ACTIVE_HIGH>;
159 startup-delay-us = <100000>;
163 compatible = "audio-graph-card";
164 label = "rcar-sound";
165 dais = <&rsnd_port0>, <&rsnd_port1>;
168 vccq_sdhi0: regulator-vccq-sdhi0 {
169 compatible = "regulator-gpio";
171 regulator-name = "SDHI0 VccQ";
172 regulator-min-microvolt = <1800000>;
173 regulator-max-microvolt = <3300000>;
175 gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
177 states = <3300000 1>, <1800000 0>;
181 /* External DU dot clocks */
182 x302_clk: x302-clock {
183 compatible = "fixed-clock";
185 clock-frequency = <33000000>;
188 x304_clk: x304-clock {
189 compatible = "fixed-clock";
191 clock-frequency = <25000000>;
196 clock-frequency = <22579200>;
200 clock-frequency = <22579200>;
204 pinctrl-0 = <&can0_pins>;
205 pinctrl-names = "default";
206 renesas,can-clock-select = <0x0>;
211 pinctrl-0 = <&can1_pins>;
212 pinctrl-names = "default";
213 renesas,can-clock-select = <0x0>;
218 pinctrl-0 = <&du_pins>;
219 pinctrl-names = "default";
222 clocks = <&cpg CPG_MOD 724>,
228 clock-names = "du.0", "du.1", "du.2",
229 "dclkin.0", "dclkin.1", "dclkin.2";
235 clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>, <&versaclock5 3>, <&versaclock6_bb 4>;
240 clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>, <&versaclock5 4>;
246 #address-cells = <1>;
250 dw_hdmi0_in: endpoint {
251 remote-endpoint = <&du_out_hdmi0>;
256 rcar_dw_hdmi0_out: endpoint {
257 remote-endpoint = <&hdmi0_con>;
263 dw_hdmi0_snd_in: endpoint {
264 remote-endpoint = <&rsnd_endpoint1>;
271 pinctrl-0 = <&hscif1_pins>;
272 pinctrl-names = "default";
284 clock-frequency = <100000>;
285 pinctrl-0 = <&i2c2_pins>;
286 pinctrl-names = "default";
289 compatible = "onnn,pca9654";
296 compatible = "onnn,pca9654";
302 versaclock6_bb: versaclock6_bb@6a {
303 compatible = "idt,5p49v6965";
306 clocks = <&x304_clk>;
308 /* CSI0_MCLK, CSI1_MCLK, AUDIO_CLKIN, USB_HUB_MCLK_BB */
309 assigned-clocks = <&versaclock6_bb 1>,
313 assigned-clock-rates = <24000000>, <24000000>, <24000000>, <24000000>;
319 clock-frequency = <400000>;
321 pinctrl-0 = <&i2c0_pins>;
322 pinctrl-names = "default";
327 clock-frequency = <100000>;
328 pinctrl-0 = <&i2c5_pins>;
329 pinctrl-names = "default";
332 compatible = "wlf,wm8962";
334 DCVDD-supply = <®_audio>;
335 DBVDD-supply = <®_audio>;
336 AVDD-supply = <®_audio>;
337 CPVDD-supply = <®_audio>;
338 MICVDD-supply = <®_audio>;
339 PLLVDD-supply = <®_audio>;
340 SPKVDD1-supply = <®_audio>;
341 SPKVDD2-supply = <®_audio>;
343 0x0000 /* 0:Default */
344 0x0000 /* 1:Default */
345 0x0000 /* 2:Default */
346 0x0000 /* 3:Default */
347 0x0000 /* 4:Default */
348 0x0000 /* 5:Default */
351 wm8962_endpoint: endpoint {
352 remote-endpoint = <&rsnd_endpoint0>;
360 /* 3 - backlight-enable */
361 /* 4 - Touch_shdwn */
365 compatible = "onnn,pca9654";
372 compatible = "ilitek,ili2117";
374 interrupt-parent = <&gpio5>;
375 interrupts = <9 IRQ_TYPE_EDGE_RISING>;
398 clock-frequency = <100000000>;
403 groups = "can0_data_a";
408 groups = "can1_data";
413 groups = "du_rgb888", "du_sync", "du_clk_out_1", "du_disp";
428 /* GP_0_4 , AVS1, AVS2, GP_7_3 */
429 pins = "GP_0_4", "GP_7_0", "GP_7_1", "GP_7_3";
433 msiof1_pins: msiof1 {
434 groups = "msiof1_clk_g", "msiof1_rxd_g", "msiof1_txd_g";
444 groups = "sdhi0_data4", "sdhi0_ctrl";
446 power-source = <3300>;
449 sdhi0_pins_uhs: sd0_uhs {
450 groups = "sdhi0_data4", "sdhi0_ctrl";
452 power-source = <1800>;
456 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
460 sound_clk_pins: sound_clk {
461 groups = "audio_clk_a_a";
462 function = "audio_clk";
488 pinctrl-0 = <&pwm0_pins>;
489 pinctrl-names = "default";
494 pinctrl-0 = <&sound_pins &sound_clk_pins>;
495 pinctrl-names = "default";
498 #sound-dai-cells = <0>;
500 /* audio_clkout0/1/2/3 */
502 clock-frequency = <11289600>;
506 clocks = <&cpg CPG_MOD 1005>,
507 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
508 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
509 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
510 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
511 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
512 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
513 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
514 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
515 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
516 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
517 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
518 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
519 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
520 <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>,
521 <&cpg CPG_CORE R8A774A1_CLK_S0D4>;
524 #address-cells = <1>;
528 rsnd_endpoint0: endpoint {
529 remote-endpoint = <&wm8962_endpoint>;
532 bitclock-master = <&rsnd_endpoint0>;
533 frame-master = <&rsnd_endpoint0>;
535 playback = <&ssi1 &dvc1 &src1>;
541 rsnd_endpoint1: endpoint {
542 remote-endpoint = <&dw_hdmi0_snd_in>;
545 bitclock-master = <&rsnd_endpoint1>;
546 frame-master = <&rsnd_endpoint1>;
555 pinctrl-0 = <&scif0_pins>;
556 pinctrl-names = "default";
561 pinctrl-0 = <&scif5_pins>;
562 pinctrl-names = "default";
567 clock-frequency = <14745600>;
571 pinctrl-0 = <&sdhi0_pins>;
572 pinctrl-1 = <&sdhi0_pins_uhs>;
573 pinctrl-names = "default", "state_uhs";
574 vmmc-supply = <®_3p3v>;
575 vqmmc-supply = <&vccq_sdhi0>;
576 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
588 pinctrl-0 = <&usb0_pins>;
589 pinctrl-names = "default";
594 pinctrl-0 = <&usb1_pins>;
595 pinctrl-names = "default";