1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the Draak board
5 * Copyright (C) 2016-2018 Renesas Electronics Corp.
6 * Copyright (C) 2017 Glider bvba
10 #include "r8a77995.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
14 model = "Renesas Draak board based on r8a77995";
15 compatible = "renesas,draak", "renesas,r8a77995";
23 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
24 stdout-path = "serial0:115200n8";
27 backlight: backlight {
28 compatible = "pwm-backlight";
29 pwms = <&pwm1 0 50000>;
31 brightness-levels = <512 511 505 494 473 440 392 327 241 133 0>;
32 default-brightness-level = <10>;
34 power-supply = <®_12p0v>;
35 enable-gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>;
39 compatible = "composite-video-connector";
42 composite_con_in: endpoint {
43 remote-endpoint = <&adv7180_in>;
49 compatible = "hdmi-connector";
53 hdmi_con_in: endpoint {
54 remote-endpoint = <&adv7612_in>;
60 compatible = "hdmi-connector";
64 hdmi_con_out: endpoint {
65 remote-endpoint = <&adv7511_out>;
71 compatible = "thine,thc63lvd1024";
72 vcc-supply = <®_3p3v>;
80 thc63lvd1024_in: endpoint {
81 remote-endpoint = <&lvds0_out>;
87 thc63lvd1024_out: endpoint {
88 remote-endpoint = <&adv7511_in>;
95 device_type = "memory";
96 /* first 128MB is reserved for secure area. */
97 reg = <0x0 0x48000000 0x0 0x18000000>;
100 reg_1p8v: regulator0 {
101 compatible = "regulator-fixed";
102 regulator-name = "fixed-1.8V";
103 regulator-min-microvolt = <1800000>;
104 regulator-max-microvolt = <1800000>;
109 reg_3p3v: regulator1 {
110 compatible = "regulator-fixed";
111 regulator-name = "fixed-3.3V";
112 regulator-min-microvolt = <3300000>;
113 regulator-max-microvolt = <3300000>;
118 reg_12p0v: regulator1 {
119 compatible = "regulator-fixed";
120 regulator-name = "D12.0V";
121 regulator-min-microvolt = <12000000>;
122 regulator-max-microvolt = <12000000>;
128 compatible = "vga-connector";
132 remote-endpoint = <&adv7123_out>;
138 compatible = "adi,adv7123";
141 #address-cells = <1>;
146 adv7123_in: endpoint {
147 remote-endpoint = <&du_out_rgb>;
152 adv7123_out: endpoint {
153 remote-endpoint = <&vga_in>;
160 compatible = "fixed-clock";
162 clock-frequency = <74250000>;
167 pinctrl-0 = <&avb0_pins>;
168 pinctrl-names = "default";
169 renesas,no-ether-link;
170 phy-handle = <&phy0>;
173 phy0: ethernet-phy@0 {
174 rxc-skew-ps = <1500>;
176 interrupt-parent = <&gpio5>;
177 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
182 pinctrl-0 = <&can0_pins>;
183 pinctrl-names = "default";
188 pinctrl-0 = <&can1_pins>;
189 pinctrl-names = "default";
194 pinctrl-0 = <&du_pins>;
195 pinctrl-names = "default";
198 clocks = <&cpg CPG_MOD 724>,
201 clock-names = "du.0", "du.1", "dclkin.0";
206 remote-endpoint = <&adv7123_in>;
218 clock-frequency = <48000000>;
227 pinctrl-0 = <&i2c0_pins>;
228 pinctrl-names = "default";
232 compatible = "adi,adv7180cp";
236 #address-cells = <1>;
241 adv7180_in: endpoint {
242 remote-endpoint = <&composite_con_in>;
250 * The VIN4 video input path is shared between
251 * CVBS and HDMI inputs through SW[49-53]
254 * CVBS is the default selection, link it to
257 adv7180_out: endpoint {
258 remote-endpoint = <&vin4_in>;
266 compatible = "adi,adv7511w";
267 reg = <0x39>, <0x3f>, <0x38>, <0x3c>;
268 reg-names = "main", "edid", "packet", "cec";
269 interrupt-parent = <&gpio1>;
270 interrupts = <28 IRQ_TYPE_LEVEL_LOW>;
272 /* Depends on LVDS */
273 max-clock = <135000000>;
276 adi,input-depth = <8>;
277 adi,input-colorspace = "rgb";
278 adi,input-clock = "1x";
279 adi,input-style = <1>;
280 adi,input-justification = "evenly";
283 #address-cells = <1>;
288 adv7511_in: endpoint {
289 remote-endpoint = <&thc63lvd1024_out>;
295 adv7511_out: endpoint {
296 remote-endpoint = <&hdmi_con_out>;
303 compatible = "adi,adv7612";
308 #address-cells = <1>;
314 adv7612_in: endpoint {
315 remote-endpoint = <&hdmi_con_in>;
323 * The VIN4 video input path is shared between
324 * CVBS and HDMI inputs through SW[49-53]
327 * CVBS is the default selection, leave HDMI
328 * not connected here.
330 adv7612_out: endpoint {
340 compatible = "rohm,br24t01", "atmel,24c01";
347 pinctrl-0 = <&i2c1_pins>;
348 pinctrl-names = "default";
355 clocks = <&cpg CPG_MOD 727>,
358 clock-names = "fck", "dclkin.0", "extal";
362 lvds0_out: endpoint {
363 remote-endpoint = <&thc63lvd1024_in>;
371 * Even though the LVDS1 output is not connected, the encoder must be
372 * enabled to supply a pixel clock to the DU for the DPAD output when
377 clocks = <&cpg CPG_MOD 727>,
380 clock-names = "fck", "dclkin.0", "extal";
391 groups = "avb0_link", "avb0_mdio", "avb0_mii";
397 groups = "can0_data_a";
402 groups = "can1_data_a";
407 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
432 groups = "scif2_data";
437 groups = "mmc_data8", "mmc_ctrl";
439 power-source = <1800>;
442 sdhi2_pins_uhs: sd2_uhs {
443 groups = "mmc_data8", "mmc_ctrl";
445 power-source = <1800>;
453 vin4_pins_cvbs: vin4 {
454 groups = "vin4_data8", "vin4_sync", "vin4_clk";
460 pinctrl-0 = <&pwm0_pins>;
461 pinctrl-names = "default";
467 pinctrl-0 = <&pwm1_pins>;
468 pinctrl-names = "default";
479 pinctrl-0 = <&scif2_pins>;
480 pinctrl-names = "default";
486 /* used for on-board eMMC */
487 pinctrl-0 = <&sdhi2_pins>;
488 pinctrl-1 = <&sdhi2_pins_uhs>;
489 pinctrl-names = "default", "state_uhs";
491 vmmc-supply = <®_3p3v>;
492 vqmmc-supply = <®_1p8v>;
500 pinctrl-0 = <&usb0_pins>;
501 pinctrl-names = "default";
508 pinctrl-0 = <&vin4_pins_cvbs>;
509 pinctrl-names = "default";
516 remote-endpoint = <&adv7180_out>;