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";
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>;
171 phy-mode = "rgmii-txid";
174 phy0: ethernet-phy@0 {
175 rxc-skew-ps = <1500>;
177 interrupt-parent = <&gpio5>;
178 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
183 pinctrl-0 = <&can0_pins>;
184 pinctrl-names = "default";
189 pinctrl-0 = <&can1_pins>;
190 pinctrl-names = "default";
195 pinctrl-0 = <&du_pins>;
196 pinctrl-names = "default";
199 clocks = <&cpg CPG_MOD 724>,
202 clock-names = "du.0", "du.1", "dclkin.0";
207 remote-endpoint = <&adv7123_in>;
219 clock-frequency = <48000000>;
228 pinctrl-0 = <&i2c0_pins>;
229 pinctrl-names = "default";
233 compatible = "adi,adv7180cp";
237 #address-cells = <1>;
242 adv7180_in: endpoint {
243 remote-endpoint = <&composite_con_in>;
251 * The VIN4 video input path is shared between
252 * CVBS and HDMI inputs through SW[49-53]
255 * CVBS is the default selection, link it to
258 adv7180_out: endpoint {
259 remote-endpoint = <&vin4_in>;
267 compatible = "adi,adv7511w";
268 reg = <0x39>, <0x3f>, <0x38>, <0x3c>;
269 reg-names = "main", "edid", "packet", "cec";
270 interrupt-parent = <&gpio1>;
271 interrupts = <28 IRQ_TYPE_LEVEL_LOW>;
273 /* Depends on LVDS */
274 max-clock = <135000000>;
277 adi,input-depth = <8>;
278 adi,input-colorspace = "rgb";
279 adi,input-clock = "1x";
280 adi,input-style = <1>;
281 adi,input-justification = "evenly";
284 #address-cells = <1>;
289 adv7511_in: endpoint {
290 remote-endpoint = <&thc63lvd1024_out>;
296 adv7511_out: endpoint {
297 remote-endpoint = <&hdmi_con_out>;
304 compatible = "adi,adv7612";
309 #address-cells = <1>;
315 adv7612_in: endpoint {
316 remote-endpoint = <&hdmi_con_in>;
324 * The VIN4 video input path is shared between
325 * CVBS and HDMI inputs through SW[49-53]
328 * CVBS is the default selection, leave HDMI
329 * not connected here.
331 adv7612_out: endpoint {
341 compatible = "rohm,br24t01", "atmel,24c01";
348 pinctrl-0 = <&i2c1_pins>;
349 pinctrl-names = "default";
356 clocks = <&cpg CPG_MOD 727>,
359 clock-names = "fck", "dclkin.0", "extal";
363 lvds0_out: endpoint {
364 remote-endpoint = <&thc63lvd1024_in>;
372 * Even though the LVDS1 output is not connected, the encoder must be
373 * enabled to supply a pixel clock to the DU for the DPAD output when
378 clocks = <&cpg CPG_MOD 727>,
381 clock-names = "fck", "dclkin.0", "extal";
392 groups = "avb0_link", "avb0_mdio", "avb0_mii";
398 groups = "can0_data_a";
403 groups = "can1_data_a";
408 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
433 groups = "scif2_data";
438 groups = "mmc_data8", "mmc_ctrl";
440 power-source = <1800>;
443 sdhi2_pins_uhs: sd2_uhs {
444 groups = "mmc_data8", "mmc_ctrl";
446 power-source = <1800>;
454 vin4_pins_cvbs: vin4 {
455 groups = "vin4_data8", "vin4_sync", "vin4_clk";
461 pinctrl-0 = <&pwm0_pins>;
462 pinctrl-names = "default";
468 pinctrl-0 = <&pwm1_pins>;
469 pinctrl-names = "default";
480 pinctrl-0 = <&scif2_pins>;
481 pinctrl-names = "default";
487 /* used for on-board eMMC */
488 pinctrl-0 = <&sdhi2_pins>;
489 pinctrl-1 = <&sdhi2_pins_uhs>;
490 pinctrl-names = "default", "state_uhs";
492 vmmc-supply = <®_3p3v>;
493 vqmmc-supply = <®_1p8v>;
501 pinctrl-0 = <&usb0_pins>;
502 pinctrl-names = "default";
509 pinctrl-0 = <&vin4_pins_cvbs>;
510 pinctrl-names = "default";
515 #address-cells = <1>;
522 remote-endpoint = <&adv7180_out>;