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 pinctrl-0 = <&du_pins>;
269 pinctrl-names = "default";
272 clocks = <&cpg CPG_MOD 724>,
278 clock-names = "du.0", "du.1", "du.2",
279 "dclkin.0", "dclkin.1", "dclkin.2";
283 remote-endpoint = <&rgb_panel>;
289 clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>;
294 clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>;
300 #address-cells = <1>;
304 dw_hdmi0_in: endpoint {
305 remote-endpoint = <&du_out_hdmi0>;
310 rcar_dw_hdmi0_out: endpoint {
311 remote-endpoint = <&hdmi0_con>;
316 dw_hdmi0_snd_in: endpoint {
317 remote-endpoint = <&rsnd_endpoint1>;
324 pinctrl-0 = <&hscif1_pins>;
325 pinctrl-names = "default";
337 clock-frequency = <400000>;
338 pinctrl-0 = <&i2c2_pins>;
339 pinctrl-names = "default";
342 compatible = "onnn,pca9654";
349 compatible = "onnn,pca9654";
356 compatible = "onnn,pca9654";
362 versaclock6_bb: clock-controller@6a {
363 compatible = "idt,5p49v6965";
366 clocks = <&x304_clk>;
369 assigned-clocks = <&versaclock6_bb 1>,
373 assigned-clock-rates = <24000000>, <24000000>, <24000000>, <24576000>;
376 idt,mode = <VC5_CMOS>;
377 idt,voltage-microvolt = <1800000>;
378 idt,slew-percent = <100>;
382 idt,mode = <VC5_CMOS>;
383 idt,voltage-microvolt = <1800000>;
384 idt,slew-percent = <100>;
388 idt,mode = <VC5_CMOS>;
389 idt,voltage-microvolt = <3300000>;
390 idt,slew-percent = <100>;
394 idt,mode = <VC5_CMOS>;
395 idt,voltage-microvolt = <3300000>;
396 idt,slew-percent = <100>;
403 clock-frequency = <400000>;
405 pinctrl-0 = <&i2c0_pins>;
406 pinctrl-names = "default";
411 clock-frequency = <400000>;
412 pinctrl-0 = <&i2c5_pins>;
413 pinctrl-names = "default";
416 compatible = "wlf,wm8962";
418 clocks = <&versaclock6_bb 3>;
419 DCVDD-supply = <®_audio>;
420 DBVDD-supply = <®_audio>;
421 AVDD-supply = <®_audio>;
422 CPVDD-supply = <®_audio>;
423 MICVDD-supply = <®_audio>;
424 PLLVDD-supply = <®_audio>;
425 SPKVDD1-supply = <®_audio>;
426 SPKVDD2-supply = <®_audio>;
428 0x0000 /* 0:Default */
429 0x0000 /* 1:Default */
430 0x0000 /* 2:Default */
431 0x0000 /* 3:Default */
432 0x0000 /* 4:Default */
433 0x0000 /* 5:Default */
436 wm8962_endpoint: endpoint {
437 remote-endpoint = <&rsnd_endpoint0>;
445 /* 3 - backlight-enable */
446 /* 4 - Touch_shdwn */
450 compatible = "onnn,pca9654";
457 compatible = "ilitek,ili2117";
459 interrupt-parent = <&gpio5>;
460 interrupts = <9 IRQ_TYPE_EDGE_RISING>;
465 compatible = "ti,hd3ss3220";
467 interrupt-parent = <&gpio6>;
468 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
471 #address-cells = <1>;
475 hd3ss3220_in_ep: endpoint {
476 remote-endpoint = <&ss_ep>;
481 hd3ss3220_out_ep: endpoint {
482 remote-endpoint = <&usb3_role_switch>;
494 lvds0_out: endpoint {
495 remote-endpoint = <&panel_in>;
502 pinctrl-0 = <&msiof1_pins>;
503 pinctrl-names = "default";
505 cs-gpios = <&gpio3 10 GPIO_ACTIVE_LOW>;
526 clock-frequency = <100000000>;
531 groups = "can0_data_a";
536 groups = "can1_data";
541 groups = "du_rgb888", "du_sync", "du_clk_out_1", "du_disp";
556 /* GP_0_4 , AVS1, AVS2, GP_7_3 */
557 pins = "GP_0_4", "GP_7_0", "GP_7_1", "GP_7_3";
561 msiof1_pins: msiof1 {
562 groups = "msiof1_clk_g", "msiof1_rxd_g", "msiof1_txd_g";
577 groups = "sdhi0_data4", "sdhi0_ctrl";
579 power-source = <3300>;
582 sdhi0_pins_uhs: sd0_uhs {
583 groups = "sdhi0_data4", "sdhi0_ctrl";
585 power-source = <1800>;
589 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
593 sound_clk_pins: sound_clk {
594 groups = "audio_clk_a_a", "audio_clk_b_a";
595 function = "audio_clk";
621 pinctrl-0 = <&pwm0_pins>;
622 pinctrl-names = "default";
627 pinctrl-0 = <&pwm2_pins>;
628 pinctrl-names = "default";
633 pinctrl-0 = <&sound_pins &sound_clk_pins>;
634 pinctrl-names = "default";
637 #sound-dai-cells = <0>;
639 /* audio_clkout0/1/2/3 */
641 clock-frequency = <11289600>;
646 #address-cells = <1>;
650 rsnd_endpoint0: endpoint {
651 remote-endpoint = <&wm8962_endpoint>;
654 bitclock-master = <&rsnd_endpoint0>;
655 frame-master = <&rsnd_endpoint0>;
657 playback = <&ssi1 &dvc1 &src1>;
663 rsnd_endpoint1: endpoint {
664 remote-endpoint = <&dw_hdmi0_snd_in>;
667 bitclock-master = <&rsnd_endpoint1>;
668 frame-master = <&rsnd_endpoint1>;
682 pinctrl-0 = <&scif0_pins>;
683 pinctrl-names = "default";
688 pinctrl-0 = <&scif5_pins>;
689 pinctrl-names = "default";
694 clock-frequency = <14745600>;
698 pinctrl-0 = <&sdhi0_pins>;
699 pinctrl-1 = <&sdhi0_pins_uhs>;
700 pinctrl-names = "default", "state_uhs";
701 vmmc-supply = <®_3p3v>;
702 vqmmc-supply = <&vccq_sdhi0>;
703 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
735 pinctrl-0 = <&usb0_pins>;
736 pinctrl-names = "default";
741 pinctrl-0 = <&usb1_pins>;
742 pinctrl-names = "default";
747 companion = <&xhci0>;
752 #address-cells = <1>;
756 usb3_hs_ep: endpoint {
757 remote-endpoint = <&hs_ep>;
762 usb3_role_switch: endpoint {
763 remote-endpoint = <&hd3ss3220_out_ep>;
800 pinctrl-0 = <&usb30_pins>;
801 pinctrl-names = "default";