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>;
70 vcc_sdhi2: regulator-vcc-sdhi2 {
71 compatible = "regulator-fixed";
73 regulator-name = "SDHI2 Vcc";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
79 vccq_sdhi2: regulator-vccq-sdhi2 {
80 compatible = "regulator-gpio";
82 regulator-name = "SDHI2 VccQ";
83 regulator-min-microvolt = <1800000>;
84 regulator-max-microvolt = <3300000>;
86 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
93 compatible = "hdmi-connector";
98 remote-endpoint = <&adv7511_out>;
104 compatible = "fixed-clock";
106 clock-frequency = <148500000>;
110 compatible = "fixed-clock";
112 clock-frequency = <74250000>;
115 x14_clk: audio_clock {
116 compatible = "fixed-clock";
118 clock-frequency = <11289600>;
122 compatible = "simple-audio-card";
124 simple-audio-card,format = "left_j";
125 simple-audio-card,bitclock-master = <&soundcodec>;
126 simple-audio-card,frame-master = <&soundcodec>;
128 simple-audio-card,cpu {
129 sound-dai = <&rcar_sound>;
132 soundcodec: simple-audio-card,codec {
133 sound-dai = <&ak4642>;
139 #address-cells = <1>;
141 compatible = "i2c-gpio";
143 scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
144 sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
145 i2c-gpio,delay-us = <5>;
149 * A fallback to GPIO is provided for I2C2.
152 compatible = "i2c-demux-pinctrl";
153 i2c-parent = <&i2c2>, <&gpioi2c2>;
154 i2c-bus-name = "i2c-hdmi";
155 #address-cells = <1>;
159 compatible = "asahi-kasei,ak4642";
160 #sound-dai-cells = <0>;
165 compatible = "adi,adv7180";
172 remote-endpoint = <&vin0ep>;
178 compatible = "adi,adv7511w";
180 interrupt-parent = <&gpio3>;
181 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
183 adi,input-depth = <8>;
184 adi,input-colorspace = "rgb";
185 adi,input-clock = "1x";
186 adi,input-style = <1>;
187 adi,input-justification = "evenly";
190 #address-cells = <1>;
195 adv7511_in: endpoint {
196 remote-endpoint = <&du_out_rgb>;
202 adv7511_out: endpoint {
203 remote-endpoint = <&hdmi_con>;
212 clock-frequency = <20000000>;
217 groups = "scif0_data_d";
222 groups = "eth_link", "eth_mdio", "eth_rmii";
227 groups = "intc_irq0";
231 pmic_irq_pins: pmicirq {
232 groups = "intc_irq2";
237 groups = "sdhi0_data4", "sdhi0_ctrl";
242 groups = "sdhi2_data4", "sdhi2_ctrl";
247 groups = "qspi_ctrl", "qspi_data4";
267 groups = "vin0_data8", "vin0_clk";
272 groups = "can0_data";
277 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
282 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
286 audio_clk_pins: audio_clk {
287 groups = "audio_clk_a";
288 function = "audio_clk";
293 pinctrl-0 = <&scif0_pins>;
294 pinctrl-names = "default";
300 pinctrl-0 = <ðer_pins &phy1_pins>;
301 pinctrl-names = "default";
303 phy-handle = <&phy1>;
304 renesas,ether-link-active-low;
307 phy1: ethernet-phy@1 {
309 interrupt-parent = <&irqc0>;
310 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
311 micrel,led-mode = <1>;
316 pinctrl-0 = <&sdhi0_pins>;
317 pinctrl-names = "default";
319 vmmc-supply = <&vcc_sdhi0>;
320 vqmmc-supply = <&vccq_sdhi0>;
321 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
322 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
327 pinctrl-0 = <&sdhi2_pins>;
328 pinctrl-names = "default";
330 vmmc-supply = <&vcc_sdhi2>;
331 vqmmc-supply = <&vccq_sdhi2>;
332 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
337 pinctrl-0 = <&qspi_pins>;
338 pinctrl-names = "default";
343 compatible = "spansion,s25fl512s", "jedec,spi-nor";
345 spi-max-frequency = <30000000>;
346 spi-tx-bus-width = <4>;
347 spi-rx-bus-width = <4>;
351 compatible = "fixed-partitions";
352 #address-cells = <1>;
356 label = "loader_prg";
357 reg = <0x00000000 0x00040000>;
362 reg = <0x00040000 0x00400000>;
367 reg = <0x00440000 0x03bc0000>;
374 pinctrl-0 = <&i2c2_pins>;
375 pinctrl-names = "i2c-hdmi";
377 clock-frequency = <400000>;
381 pinctrl-names = "default";
382 pinctrl-0 = <&pmic_irq_pins>;
384 clock-frequency = <100000>;
387 compatible = "dlg,da9063l";
389 interrupt-parent = <&irqc0>;
390 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
391 interrupt-controller;
394 compatible = "dlg,da9063-watchdog";
398 vdd_dvfs: regulator@68 {
399 compatible = "dlg,da9210";
401 interrupt-parent = <&irqc0>;
402 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
404 regulator-min-microvolt = <1000000>;
405 regulator-max-microvolt = <1000000>;
416 cpu0-supply = <&vdd_dvfs>;
419 /* composite video input */
422 pinctrl-0 = <&vin0_pins>;
423 pinctrl-names = "default";
427 remote-endpoint = <&adv7180>;
434 pinctrl-0 = <&usb0_pins>;
435 pinctrl-names = "default";
441 pinctrl-0 = <&usb1_pins>;
442 pinctrl-names = "default";
448 pinctrl-0 = <&usb0_pins>;
449 pinctrl-names = "default";
459 clock-frequency = <100000000>;
467 pinctrl-0 = <&can0_pins>;
468 pinctrl-names = "default";
474 pinctrl-0 = <&du_pins>;
475 pinctrl-names = "default";
478 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
479 <&x3_clk>, <&x16_clk>;
480 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
485 remote-endpoint = <&adv7511_in>;
494 lvds_connector: endpoint {
501 pinctrl-0 = <&ssi_pins &audio_clk_pins>;
502 pinctrl-names = "default";
506 #sound-dai-cells = <0>;