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>
8 #include <dt-bindings/clk/versaclock.h>
11 backlight_lvds: backlight-lvds {
12 compatible = "pwm-backlight";
13 power-supply = <®_lcd>;
14 enable-gpios = <&gpio_exp1 3 GPIO_ACTIVE_HIGH>;
15 pwms = <&pwm2 0 25000>;
16 brightness-levels = <0 4 8 16 32 64 128 255>;
17 default-brightness-level = <6>;
20 backlight_dpi: backlight-dpi {
21 compatible = "pwm-backlight";
22 power-supply = <®_lcd>;
23 enable-gpios = <&gpio_exp1 7 GPIO_ACTIVE_LOW>;
24 pwms = <&pwm0 0 25000>;
25 brightness-levels = <0 25 33 50 63 75 88 100>;
26 default-brightness-level = <6>;
30 compatible = "hdmi-connector";
35 remote-endpoint = <&rcar_dw_hdmi0_out>;
41 compatible = "gpio-keys";
44 gpios = <&gpio4 6 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_UP>;
48 debounce-interval = <20>;
51 gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_LEFT>;
55 debounce-interval = <20>;
58 gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_DOWN>;
62 debounce-interval = <20>;
65 gpios = <&gpio5 20 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_RIGHT>;
69 debounce-interval = <20>;
72 gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_ENTER>;
76 debounce-interval = <20>;
81 compatible = "gpio-leds";
82 pinctrl-0 = <&led_pins>;
83 pinctrl-names = "default";
86 gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
88 linux,default-trigger = "heartbeat";
91 gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
95 gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
99 gpios = <&gpio7 3 GPIO_ACTIVE_HIGH>;
105 compatible = "panel-lvds";
106 power-supply = <®_lcd_reset>;
109 backlight = <&backlight_lvds>;
110 data-mapping = "vesa-24";
114 clock-frequency = <30000000>;
126 pixelclk-active = <0>;
131 remote-endpoint = <&lvds0_out>;
137 /* Different LCD with compatible timings */
138 compatible = "rocktech,rk070er9427";
139 backlight = <&backlight_dpi>;
140 enable-gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
141 power-supply = <®_lcd>;
143 rgb_panel: endpoint {
144 remote-endpoint = <&du_out_rgb>;
149 reg_audio: regulator_audio {
150 compatible = "regulator-fixed";
151 regulator-name = "audio-1.8V";
152 regulator-min-microvolt = <1800000>;
153 regulator-max-microvolt = <1800000>;
154 gpio = <&gpio_exp4 1 GPIO_ACTIVE_HIGH>;
158 reg_lcd: regulator-lcd {
159 compatible = "regulator-fixed";
160 regulator-name = "lcd_panel_pwr";
161 regulator-min-microvolt = <3300000>;
162 regulator-max-microvolt = <3300000>;
163 gpio = <&gpio_exp1 1 GPIO_ACTIVE_HIGH>;
167 reg_lcd_reset: regulator-lcd-reset {
168 compatible = "regulator-fixed";
169 regulator-name = "nLCD_RESET";
170 regulator-min-microvolt = <3300000>;
171 regulator-max-microvolt = <3300000>;
172 gpio = <&gpio5 3 GPIO_ACTIVE_HIGH>;
174 vin-supply = <®_lcd>;
177 reg_cam0: regulator_camera {
178 compatible = "regulator-fixed";
179 regulator-name = "reg_cam0";
180 regulator-min-microvolt = <1800000>;
181 regulator-max-microvolt = <1800000>;
182 gpio = <&gpio_exp2 2 GPIO_ACTIVE_HIGH>;
186 reg_cam1: regulator_camera {
187 compatible = "regulator-fixed";
188 regulator-name = "reg_cam1";
189 regulator-min-microvolt = <1800000>;
190 regulator-max-microvolt = <1800000>;
191 gpio = <&gpio_exp2 5 GPIO_ACTIVE_HIGH>;
193 startup-delay-us = <100000>;
197 compatible = "audio-graph-card";
198 label = "rcar-sound";
199 dais = <&rsnd_port0>, <&rsnd_port1>;
202 vccq_sdhi0: regulator-vccq-sdhi0 {
203 compatible = "regulator-gpio";
204 regulator-name = "SDHI0 VccQ";
205 regulator-min-microvolt = <1800000>;
206 regulator-max-microvolt = <3300000>;
207 gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
209 states = <3300000 1>, <1800000 0>;
212 /* External DU dot clocks */
213 x302_clk: x302-clock {
214 compatible = "fixed-clock";
216 clock-frequency = <33000000>;
219 x304_clk: x304-clock {
220 compatible = "fixed-clock";
222 clock-frequency = <25000000>;
226 compatible = "usb-c-connector";
231 #address-cells = <1>;
236 remote-endpoint = <&usb3_hs_ep>;
242 remote-endpoint = <&hd3ss3220_in_ep>;
250 clock-frequency = <22579200>;
254 pinctrl-0 = <&can0_pins>;
255 pinctrl-names = "default";
256 renesas,can-clock-select = <0x0>;
261 pinctrl-0 = <&can1_pins>;
262 pinctrl-names = "default";
263 renesas,can-clock-select = <0x0>;
268 remote-endpoint = <&rgb_panel>;
274 clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>;
279 clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>;
285 #address-cells = <1>;
289 dw_hdmi0_in: endpoint {
290 remote-endpoint = <&du_out_hdmi0>;
295 rcar_dw_hdmi0_out: endpoint {
296 remote-endpoint = <&hdmi0_con>;
301 dw_hdmi0_snd_in: endpoint {
302 remote-endpoint = <&rsnd_endpoint1>;
309 pinctrl-0 = <&hscif1_pins>;
310 pinctrl-names = "default";
322 clock-frequency = <400000>;
323 pinctrl-0 = <&i2c2_pins>;
324 pinctrl-names = "default";
327 compatible = "onnn,pca9654";
334 compatible = "onnn,pca9654";
341 compatible = "onnn,pca9654";
347 versaclock6_bb: clock-controller@6a {
348 compatible = "idt,5p49v6965";
351 clocks = <&x304_clk>;
354 assigned-clocks = <&versaclock6_bb 1>,
358 assigned-clock-rates = <24000000>, <24000000>, <24000000>, <24576000>;
361 idt,mode = <VC5_CMOS>;
362 idt,voltage-microvolt = <1800000>;
363 idt,slew-percent = <100>;
367 idt,mode = <VC5_CMOS>;
368 idt,voltage-microvolt = <1800000>;
369 idt,slew-percent = <100>;
373 idt,mode = <VC5_CMOS>;
374 idt,voltage-microvolt = <3300000>;
375 idt,slew-percent = <100>;
379 idt,mode = <VC5_CMOS>;
380 idt,voltage-microvolt = <3300000>;
381 idt,slew-percent = <100>;
388 clock-frequency = <400000>;
390 pinctrl-0 = <&i2c0_pins>;
391 pinctrl-names = "default";
396 clock-frequency = <400000>;
397 pinctrl-0 = <&i2c5_pins>;
398 pinctrl-names = "default";
401 compatible = "wlf,wm8962";
403 clocks = <&versaclock6_bb 3>;
404 DCVDD-supply = <®_audio>;
405 DBVDD-supply = <®_audio>;
406 AVDD-supply = <®_audio>;
407 CPVDD-supply = <®_audio>;
408 MICVDD-supply = <®_audio>;
409 PLLVDD-supply = <®_audio>;
410 SPKVDD1-supply = <®_audio>;
411 SPKVDD2-supply = <®_audio>;
413 0x0000 /* 0:Default */
414 0x0000 /* 1:Default */
415 0x0000 /* 2:Default */
416 0x0000 /* 3:Default */
417 0x0000 /* 4:Default */
418 0x0000 /* 5:Default */
421 wm8962_endpoint: endpoint {
422 remote-endpoint = <&rsnd_endpoint0>;
430 /* 3 - backlight-enable */
431 /* 4 - Touch_shdwn */
435 compatible = "onnn,pca9654";
442 compatible = "ilitek,ili2117";
444 interrupt-parent = <&gpio5>;
445 interrupts = <9 IRQ_TYPE_EDGE_RISING>;
450 compatible = "ti,hd3ss3220";
452 interrupt-parent = <&gpio6>;
453 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
456 #address-cells = <1>;
460 hd3ss3220_in_ep: endpoint {
461 remote-endpoint = <&ss_ep>;
466 hd3ss3220_out_ep: endpoint {
467 remote-endpoint = <&usb3_role_switch>;
479 lvds0_out: endpoint {
480 remote-endpoint = <&panel_in>;
487 pinctrl-0 = <&msiof1_pins>;
488 pinctrl-names = "default";
490 cs-gpios = <&gpio3 10 GPIO_ACTIVE_LOW>;
511 clock-frequency = <100000000>;
516 groups = "can0_data_a";
521 groups = "can1_data";
526 groups = "du_rgb888", "du_sync", "du_clk_out_1", "du_disp";
541 /* GP_0_4 , AVS1, AVS2, GP_7_3 */
542 pins = "GP_0_4", "GP_7_0", "GP_7_1", "GP_7_3";
546 msiof1_pins: msiof1 {
547 groups = "msiof1_clk_g", "msiof1_rxd_g", "msiof1_txd_g";
562 groups = "sdhi0_data4", "sdhi0_ctrl";
564 power-source = <3300>;
567 sdhi0_pins_uhs: sd0_uhs {
568 groups = "sdhi0_data4", "sdhi0_ctrl";
570 power-source = <1800>;
574 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
578 sound_clk_pins: sound_clk {
579 groups = "audio_clk_a_a", "audio_clk_b_a";
580 function = "audio_clk";
606 pinctrl-0 = <&pwm0_pins>;
607 pinctrl-names = "default";
612 pinctrl-0 = <&pwm2_pins>;
613 pinctrl-names = "default";
618 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
619 pinctrl-names = "default";
622 #sound-dai-cells = <0>;
624 /* audio_clkout0/1/2/3 */
626 clock-frequency = <11289600>;
631 #address-cells = <1>;
635 rsnd_endpoint0: endpoint {
636 remote-endpoint = <&wm8962_endpoint>;
639 bitclock-master = <&rsnd_endpoint0>;
640 frame-master = <&rsnd_endpoint0>;
642 playback = <&ssi1>, <&dvc1>, <&src1>;
648 rsnd_endpoint1: endpoint {
649 remote-endpoint = <&dw_hdmi0_snd_in>;
652 bitclock-master = <&rsnd_endpoint1>;
653 frame-master = <&rsnd_endpoint1>;
667 pinctrl-0 = <&scif0_pins>;
668 pinctrl-names = "default";
673 pinctrl-0 = <&scif5_pins>;
674 pinctrl-names = "default";
679 clock-frequency = <14745600>;
683 pinctrl-0 = <&sdhi0_pins>;
684 pinctrl-1 = <&sdhi0_pins_uhs>;
685 pinctrl-names = "default", "state_uhs";
686 vmmc-supply = <®_3p3v>;
687 vqmmc-supply = <&vccq_sdhi0>;
688 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
720 pinctrl-0 = <&usb0_pins>;
721 pinctrl-names = "default";
726 pinctrl-0 = <&usb1_pins>;
727 pinctrl-names = "default";
732 companion = <&xhci0>;
737 #address-cells = <1>;
741 usb3_hs_ep: endpoint {
742 remote-endpoint = <&hs_ep>;
747 usb3_role_switch: endpoint {
748 remote-endpoint = <&hd3ss3220_out_ep>;
785 pinctrl-0 = <&usb30_pins>;
786 pinctrl-names = "default";