1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the Porter board
5 * Copyright (C) 2015 Cogent Embedded, Inc.
14 * This command is required before playback/capture:
16 * amixer set "LINEOUT Mixer DACL" on
20 #include "r8a7791.dtsi"
21 #include <dt-bindings/gpio/gpio.h>
25 compatible = "renesas,porter", "renesas,r8a7791";
34 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
35 stdout-path = "serial0:115200n8";
39 device_type = "memory";
40 reg = <0 0x40000000 0 0x40000000>;
44 device_type = "memory";
45 reg = <2 0x00000000 0 0x40000000>;
48 vcc_sdhi0: regulator-vcc-sdhi0 {
49 compatible = "regulator-fixed";
51 regulator-name = "SDHI0 Vcc";
52 regulator-min-microvolt = <3300000>;
53 regulator-max-microvolt = <3300000>;
57 vccq_sdhi0: regulator-vccq-sdhi0 {
58 compatible = "regulator-gpio";
60 regulator-name = "SDHI0 VccQ";
61 regulator-min-microvolt = <1800000>;
62 regulator-max-microvolt = <3300000>;
64 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
66 states = <3300000 1>, <1800000 0>;
69 vcc_sdhi2: regulator-vcc-sdhi2 {
70 compatible = "regulator-fixed";
72 regulator-name = "SDHI2 Vcc";
73 regulator-min-microvolt = <3300000>;
74 regulator-max-microvolt = <3300000>;
78 vccq_sdhi2: regulator-vccq-sdhi2 {
79 compatible = "regulator-gpio";
81 regulator-name = "SDHI2 VccQ";
82 regulator-min-microvolt = <1800000>;
83 regulator-max-microvolt = <3300000>;
85 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
87 states = <3300000 1>, <1800000 0>;
91 compatible = "hdmi-connector";
96 remote-endpoint = <&adv7511_out>;
102 compatible = "fixed-clock";
104 clock-frequency = <148500000>;
108 compatible = "fixed-clock";
110 clock-frequency = <74250000>;
113 x14_clk: audio_clock {
114 compatible = "fixed-clock";
116 clock-frequency = <11289600>;
120 compatible = "simple-audio-card";
122 simple-audio-card,format = "left_j";
123 simple-audio-card,bitclock-master = <&soundcodec>;
124 simple-audio-card,frame-master = <&soundcodec>;
126 simple-audio-card,cpu {
127 sound-dai = <&rcar_sound>;
130 soundcodec: simple-audio-card,codec {
131 sound-dai = <&ak4642>;
137 #address-cells = <1>;
139 compatible = "i2c-gpio";
141 scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
142 sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
143 i2c-gpio,delay-us = <5>;
147 * A fallback to GPIO is provided for I2C2.
150 compatible = "i2c-demux-pinctrl";
151 i2c-parent = <&i2c2>, <&gpioi2c2>;
152 i2c-bus-name = "i2c-hdmi";
153 #address-cells = <1>;
157 compatible = "asahi-kasei,ak4642";
158 #sound-dai-cells = <0>;
163 compatible = "adi,adv7180";
169 remote-endpoint = <&vin0ep>;
175 compatible = "adi,adv7511w";
177 interrupt-parent = <&gpio3>;
178 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
180 adi,input-depth = <8>;
181 adi,input-colorspace = "rgb";
182 adi,input-clock = "1x";
185 #address-cells = <1>;
190 adv7511_in: endpoint {
191 remote-endpoint = <&du_out_rgb>;
197 adv7511_out: endpoint {
198 remote-endpoint = <&hdmi_con>;
207 clock-frequency = <20000000>;
212 groups = "scif0_data_d";
217 groups = "eth_link", "eth_mdio", "eth_rmii";
222 groups = "intc_irq0";
226 pmic_irq_pins: pmicirq {
227 groups = "intc_irq2";
232 groups = "sdhi0_data4", "sdhi0_ctrl";
237 groups = "sdhi2_data4", "sdhi2_ctrl";
242 groups = "qspi_ctrl", "qspi_data4";
262 groups = "vin0_data8", "vin0_clk";
267 groups = "can0_data";
272 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
277 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
281 audio_clk_pins: audio_clk {
282 groups = "audio_clk_a";
283 function = "audio_clk";
288 pinctrl-0 = <&scif0_pins>;
289 pinctrl-names = "default";
295 pinctrl-0 = <ðer_pins &phy1_pins>;
296 pinctrl-names = "default";
298 phy-handle = <&phy1>;
299 renesas,ether-link-active-low;
302 phy1: ethernet-phy@1 {
304 interrupt-parent = <&irqc0>;
305 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
306 micrel,led-mode = <1>;
307 reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
312 pinctrl-0 = <&sdhi0_pins>;
313 pinctrl-names = "default";
315 vmmc-supply = <&vcc_sdhi0>;
316 vqmmc-supply = <&vccq_sdhi0>;
317 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
318 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
323 pinctrl-0 = <&sdhi2_pins>;
324 pinctrl-names = "default";
326 vmmc-supply = <&vcc_sdhi2>;
327 vqmmc-supply = <&vccq_sdhi2>;
328 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
333 pinctrl-0 = <&qspi_pins>;
334 pinctrl-names = "default";
339 compatible = "spansion,s25fl512s", "jedec,spi-nor";
341 spi-max-frequency = <30000000>;
342 spi-tx-bus-width = <4>;
343 spi-rx-bus-width = <4>;
347 compatible = "fixed-partitions";
348 #address-cells = <1>;
352 label = "loader_prg";
353 reg = <0x00000000 0x00040000>;
358 reg = <0x00040000 0x00400000>;
363 reg = <0x00440000 0x03bc0000>;
370 pinctrl-0 = <&i2c2_pins>;
371 pinctrl-names = "i2c-hdmi";
373 clock-frequency = <400000>;
377 pinctrl-names = "default";
378 pinctrl-0 = <&pmic_irq_pins>;
380 clock-frequency = <100000>;
383 compatible = "dlg,da9063l";
385 interrupt-parent = <&irqc0>;
386 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
387 interrupt-controller;
390 compatible = "dlg,da9063-watchdog";
394 vdd_dvfs: regulator@68 {
395 compatible = "dlg,da9210";
397 interrupt-parent = <&irqc0>;
398 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
400 regulator-min-microvolt = <1000000>;
401 regulator-max-microvolt = <1000000>;
412 cpu0-supply = <&vdd_dvfs>;
415 /* composite video input */
418 pinctrl-0 = <&vin0_pins>;
419 pinctrl-names = "default";
423 remote-endpoint = <&adv7180>;
430 pinctrl-0 = <&usb0_pins>;
431 pinctrl-names = "default";
437 pinctrl-0 = <&usb1_pins>;
438 pinctrl-names = "default";
444 pinctrl-0 = <&usb0_pins>;
445 pinctrl-names = "default";
455 clock-frequency = <100000000>;
463 pinctrl-0 = <&can0_pins>;
464 pinctrl-names = "default";
470 pinctrl-0 = <&du_pins>;
471 pinctrl-names = "default";
474 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
475 <&x3_clk>, <&x16_clk>;
476 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
481 remote-endpoint = <&adv7511_in>;
490 lvds_connector: endpoint {
497 pinctrl-0 = <&ssi_pins &audio_clk_pins>;
498 pinctrl-names = "default";
502 #sound-dai-cells = <0>;